hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
1426ab298bc4e50c9d39d51582ef042c6fe4c915
3,800
py
Python
eutils/_internal/client.py
jvansan/eutils
22a58d314c062dae2da42a026116984748b6c30b
[ "Apache-2.0" ]
null
null
null
eutils/_internal/client.py
jvansan/eutils
22a58d314c062dae2da42a026116984748b6c30b
[ "Apache-2.0" ]
null
null
null
eutils/_internal/client.py
jvansan/eutils
22a58d314c062dae2da42a026116984748b6c30b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import logging import os import lxml.etree as le from .exceptions import EutilsError from .queryservice import QueryService from .xmlfacades.dbsnp import ExchangeSet from .xmlfacades.einforesult import EInfoRe...
33.333333
107
0.658684
39fdae30f41e5796d4ea296c491b2a4c813f83df
18,155
py
Python
make_master_db.py
candrsn/fl_voter_processing
a9241bc0f59d3edc091d2e9b3d9de9b81b493994
[ "MIT" ]
null
null
null
make_master_db.py
candrsn/fl_voter_processing
a9241bc0f59d3edc091d2e9b3d9de9b81b493994
[ "MIT" ]
null
null
null
make_master_db.py
candrsn/fl_voter_processing
a9241bc0f59d3edc091d2e9b3d9de9b81b493994
[ "MIT" ]
null
null
null
import sys import os import json import sqlite3 import glob import subprocess import logging import time def master_tables_ddl(cur): # Reference only voter_ddl = """ CREATE TABLE IF NOT EXISTS voter (county_code text(3), voter_id text(10), name_last text(30), name_suffix text(5), name_first text(30), name_mid...
47.902375
162
0.649132
120021d01ea5d95b391d56e285880705838a3b5c
266
py
Python
operators/crossplane/python/pulumi_pulumi_kubernetes_crds_operators_crossplane/storage/v1alpha1/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/crossplane/python/pulumi_pulumi_kubernetes_crds_operators_crossplane/storage/v1alpha1/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/crossplane/python/pulumi_pulumi_kubernetes_crds_operators_crossplane/storage/v1alpha1/__init__.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .Bucket import * from ._inputs import * from . import outputs
29.555556
80
0.706767
77e7c0e093d9a8a0c1301a5a00b1ca8c2d3fbe9a
7,886
py
Python
tensorflow/contrib/bayesflow/python/ops/special_math.py
atfkaka/tensorflow
5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a
[ "Apache-2.0" ]
101
2016-12-03T11:40:52.000Z
2017-12-23T02:02:03.000Z
tensorflow/contrib/bayesflow/python/ops/special_math.py
atfkaka/tensorflow
5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a
[ "Apache-2.0" ]
9
2016-12-14T03:27:46.000Z
2017-09-13T02:29:07.000Z
tensorflow/contrib/bayesflow/python/ops/special_math.py
atfkaka/tensorflow
5657d0dee8d87f4594b3e5902ed3e3ca8d6dfc0a
[ "Apache-2.0" ]
47
2016-12-04T12:37:24.000Z
2018-01-14T18:13:07.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.845455
80
0.640249
30688e92f49fe2fc614e7fad3734b2d2ff8e4144
209
py
Python
Robotsvsdino/weapon.py
techysoldier/OOP
1579c603465158caba9f05b29771f02644ddb8dd
[ "MIT" ]
null
null
null
Robotsvsdino/weapon.py
techysoldier/OOP
1579c603465158caba9f05b29771f02644ddb8dd
[ "MIT" ]
null
null
null
Robotsvsdino/weapon.py
techysoldier/OOP
1579c603465158caba9f05b29771f02644ddb8dd
[ "MIT" ]
null
null
null
class Weapon: def __init__(self,name,attack_power): self.name = name self.attack_power = attack_power # devin_dino = weapon("devin", "6") # print(devin_dino.name,devin_dino.attack_power)
26.125
48
0.69378
72350de4d85ff53eaa8c088fa50bce07805b3ffd
426,573
py
Python
tests/python/unittest/test_operator.py
aws-taylor/incubator-mxnet
c91084d40879cb4b49e5fb1ff281b28feee4c7e3
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_operator.py
aws-taylor/incubator-mxnet
c91084d40879cb4b49e5fb1ff281b28feee4c7e3
[ "Apache-2.0" ]
null
null
null
tests/python/unittest/test_operator.py
aws-taylor/incubator-mxnet
c91084d40879cb4b49e5fb1ff281b28feee4c7e3
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
43.302507
173
0.574282
177ebe5eb503079eaf0f01a150c891e72a8028d3
10,032
py
Python
tests/test_conf.py
kevinlai219/Mezzanine-Django
a92cde236448e19cdbf853b5cb34f99a60972147
[ "BSD-2-Clause" ]
3,053
2015-01-01T08:16:01.000Z
2022-03-31T12:06:03.000Z
tests/test_conf.py
kevinlai219/Mezzanine-Django
a92cde236448e19cdbf853b5cb34f99a60972147
[ "BSD-2-Clause" ]
818
2015-01-03T05:44:45.000Z
2022-03-08T00:06:23.000Z
tests/test_conf.py
kevinlai219/Mezzanine-Django
a92cde236448e19cdbf853b5cb34f99a60972147
[ "BSD-2-Clause" ]
1,352
2015-01-01T06:17:14.000Z
2022-03-26T16:21:54.000Z
import warnings from unittest import skipUnless from django.conf import settings as django_settings from django.utils.encoding import force_str from mezzanine.conf import register_setting, registry, settings from mezzanine.conf.context_processors import TemplateSettings from mezzanine.conf.models import Setting from ...
38.436782
86
0.639952
1faa5bf671e591096dfe504db664ecda3e725326
2,661
py
Python
test/aqua/test_bernstein_vazirani.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
504
2018-12-15T16:34:03.000Z
2022-03-26T11:24:53.000Z
test/aqua/test_bernstein_vazirani.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
746
2018-12-16T16:44:42.000Z
2021-07-10T16:59:43.000Z
test/aqua/test_bernstein_vazirani.py
stefan-woerner/aqua
12e1b867e254977d9c5992612a7919d8fe016cb4
[ "Apache-2.0" ]
421
2018-12-22T14:49:00.000Z
2022-03-04T09:47:07.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2018, 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
38.565217
89
0.710635
70b11d5419e45f0ec3006493e75cfaea5a7d4418
10,432
py
Python
melime/explainers/explainer.py
elian204/melime
aef885fa4b6b02f7bf7294140d78a85fe546b622
[ "MIT" ]
48
2020-09-15T02:26:46.000Z
2021-09-03T17:08:53.000Z
melime/explainers/explainer.py
elian204/melime
aef885fa4b6b02f7bf7294140d78a85fe546b622
[ "MIT" ]
1
2020-11-03T04:14:27.000Z
2020-11-05T16:32:25.000Z
melime/explainers/explainer.py
elian204/melime
aef885fa4b6b02f7bf7294140d78a85fe546b622
[ "MIT" ]
3
2020-09-20T16:52:11.000Z
2021-09-25T10:04:27.000Z
import warnings from collections import defaultdict import numpy as np from scipy.stats import multivariate_normal from sklearn import metrics from melime.explainers.local_models.local_model_statistics import BasicStatistics from melime.explainers.local_models.local_model_linear import RidgeMod, HuberRegressorMod, SG...
38.637037
116
0.60765
a3ae33038916d377340203f630801f05687cc260
3,903
py
Python
examples/swmr_multiprocess.py
benjaminhwilliams/h5py
fd0753a184194ae2f9a47d5a19fc83d3ec017bbc
[ "BSD-3-Clause" ]
1
2018-07-13T06:29:17.000Z
2018-07-13T06:29:17.000Z
examples/swmr_multiprocess.py
benjaminhwilliams/h5py
fd0753a184194ae2f9a47d5a19fc83d3ec017bbc
[ "BSD-3-Clause" ]
null
null
null
examples/swmr_multiprocess.py
benjaminhwilliams/h5py
fd0753a184194ae2f9a47d5a19fc83d3ec017bbc
[ "BSD-3-Clause" ]
1
2021-04-08T11:11:04.000Z
2021-04-08T11:11:04.000Z
""" Demonstrate the use of h5py in SWMR mode to write to a dataset (appending) from one process while monitoring the growing dataset from another process. Usage: swmr_multiprocess.py [FILENAME [DATASETNAME]] FILENAME: name of file to monitor. Default: swmrmp.h5 D...
33.93913
106
0.59339
329eb39501cef2040f5b76b927c58b73a8302d78
3,275
py
Python
lib/modules/python/situational_awareness/network/active_directory/dscl_get_users.py
vinnybod/Empire
6ad0bcd171952da93f059348e4ae00e20154dce7
[ "BSD-3-Clause" ]
3
2020-03-24T04:37:00.000Z
2021-04-07T06:05:16.000Z
lib/modules/python/situational_awareness/network/active_directory/dscl_get_users.py
vinnybod/Empire
6ad0bcd171952da93f059348e4ae00e20154dce7
[ "BSD-3-Clause" ]
null
null
null
lib/modules/python/situational_awareness/network/active_directory/dscl_get_users.py
vinnybod/Empire
6ad0bcd171952da93f059348e4ae00e20154dce7
[ "BSD-3-Clause" ]
null
null
null
from builtins import object class Module(object): def __init__(self, mainMenu, params=[]): # metadata info about the module, not modified during runtime self.info = { # name for the module that will appear in module menus 'Name': 'dscl Get-Users', # list of one...
36.388889
122
0.561221
ad780e8e3d955e9c2948c5f3bfa7c4ba2b59ada1
9,255
py
Python
src/ralph/account/models.py
jjagodzinski/ralph
000a22bcc934dc2051e7a09ab1e84bd1c25a9e73
[ "Apache-2.0" ]
null
null
null
src/ralph/account/models.py
jjagodzinski/ralph
000a22bcc934dc2051e7a09ab1e84bd1c25a9e73
[ "Apache-2.0" ]
null
null
null
src/ralph/account/models.py
jjagodzinski/ralph
000a22bcc934dc2051e7a09ab1e84bd1c25a9e73
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import functools from django.conf import settings from django.contrib.auth.models import Group from django.core.urlresolv...
36.437008
78
0.645165
4f217dc4653e55bb7ef891b3d70fa9e84beb4cdd
5,914
py
Python
plugins/bot_mcFinder.py
BluesDawn576/BDbot_Plugins
d84f89bb382291486737133148eec58f6ed34efa
[ "MIT" ]
2
2021-05-02T14:24:45.000Z
2021-07-15T11:08:39.000Z
plugins/bot_mcFinder.py
BluesDawn576/BDbot_Plugins
d84f89bb382291486737133148eec58f6ed34efa
[ "MIT" ]
null
null
null
plugins/bot_mcFinder.py
BluesDawn576/BDbot_Plugins
d84f89bb382291486737133148eec58f6ed34efa
[ "MIT" ]
null
null
null
import const import json import requests from botoy import Action, GroupMsg from botoy.collection import MsgTypes from botoy.decorators import ignore_botself, in_content, these_msgtypes from botoy.refine import refine_pic_group_msg from botoy.sugar import Text @ignore_botself @these_msgtypes(MsgTypes.TextMsg) @in_con...
44.466165
2,179
0.707136
839a5775860a3f732d91f421ce719f61f8823499
21,559
py
Python
src/benchmarks/gc/src/dead_code.py
svick/Performance
8f782f846a16da0388fa51c6327a575741f279be
[ "MIT" ]
null
null
null
src/benchmarks/gc/src/dead_code.py
svick/Performance
8f782f846a16da0388fa51c6327a575741f279be
[ "MIT" ]
null
null
null
src/benchmarks/gc/src/dead_code.py
svick/Performance
8f782f846a16da0388fa51c6327a575741f279be
[ "MIT" ]
null
null
null
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the MIT license. # See the LICENSE file in the project root for more information. duration_msec # unused variable (jupyter_notebook.py:331) alloced_mb # unused variable (jupyter_notebook.py:332) gen0...
65.330303
100
0.800501
6314b49979a051388a2fac6dfd3077481813b075
1,604
py
Python
tutorial/snippets/views.py
jjfeore/restful-tutorial
13580cabfd3d5478001838784400575978a2ce10
[ "MIT" ]
null
null
null
tutorial/snippets/views.py
jjfeore/restful-tutorial
13580cabfd3d5478001838784400575978a2ce10
[ "MIT" ]
null
null
null
tutorial/snippets/views.py
jjfeore/restful-tutorial
13580cabfd3d5478001838784400575978a2ce10
[ "MIT" ]
null
null
null
from snippets.models import Snippet from snippets.serializers import SnippetSerializer from rest_framework import generics, permissions, renderers, viewsets from django.contrib.auth.models import User from snippets.serializers import UserSerializer from snippets.permissions import IsOwnerOrReadOnly from rest_framework....
34.12766
75
0.740648
30c7da58c84496a2696836abf398d28211a692bc
576
py
Python
react-track/app/tracks/migrations/0002_track_posted_by.py
julesc00/react-track
792dd9d076f7eaac230034a06dd4593d2cfdca51
[ "MIT" ]
null
null
null
react-track/app/tracks/migrations/0002_track_posted_by.py
julesc00/react-track
792dd9d076f7eaac230034a06dd4593d2cfdca51
[ "MIT" ]
null
null
null
react-track/app/tracks/migrations/0002_track_posted_by.py
julesc00/react-track
792dd9d076f7eaac230034a06dd4593d2cfdca51
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-29 22:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('tracks', '0001_initial'), ...
26.181818
121
0.671875
b181051f671fad64626e39ce3c2a564326a57ceb
2,862
py
Python
merkle-tree/merkle_tree.py
ltucker284/basic-chain
71820fbc963d534bdfb82054e08d757d3518bb99
[ "Apache-2.0" ]
2
2020-05-10T14:05:34.000Z
2021-09-08T04:37:15.000Z
merkle-tree/merkle_tree.py
ltucker284/basic-chain
71820fbc963d534bdfb82054e08d757d3518bb99
[ "Apache-2.0" ]
2
2021-03-10T01:08:20.000Z
2021-05-10T20:37:57.000Z
merkle-tree/merkle_tree.py
ltucker284/basic-chain
71820fbc963d534bdfb82054e08d757d3518bb99
[ "Apache-2.0" ]
2
2021-03-19T08:16:05.000Z
2021-09-08T04:37:24.000Z
####################################### # The following class was cloned from the following repo: https://github.com/Concerned-HumanDev/Simple-Merkle-Tree-in-Python.git # All the credit for creating this Merkle Tree example goes to the owner of the repo: Jae Duk Seo # Code has been updated to Python 3. ###############...
38.16
128
0.606918
e4ba8c2f1af19919508d4bc28008d3a4370f8724
441
py
Python
production/main.py
RaeChen07/SteamDataAnalysis
ac3fe30ec56f71ac4eb05366dac892aba60375c9
[ "MIT" ]
null
null
null
production/main.py
RaeChen07/SteamDataAnalysis
ac3fe30ec56f71ac4eb05366dac892aba60375c9
[ "MIT" ]
null
null
null
production/main.py
RaeChen07/SteamDataAnalysis
ac3fe30ec56f71ac4eb05366dac892aba60375c9
[ "MIT" ]
null
null
null
""" Main script, will run all the other scripts and generate all the graphs """ import os import multi_playtime import multi_ach import machine_learning import engagement_trend def main(): if not os.path.isdir("output"): # Create folder for plot outputs os.mkdir("output") multi_playtime.mai...
16.961538
71
0.693878
cbb0b39705b70430ae4ce49ad696c912b40d6a3a
1,591
py
Python
lingvo/core/tshape_test.py
Singed-jj/lingvo
a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56
[ "Apache-2.0" ]
1
2020-08-04T08:39:35.000Z
2020-08-04T08:39:35.000Z
lingvo/core/tshape_test.py
Singed-jj/lingvo
a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56
[ "Apache-2.0" ]
null
null
null
lingvo/core/tshape_test.py
Singed-jj/lingvo
a2a4ac8bd835ffc2f95fc38ee3e9bc17c30fcc56
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
31.82
80
0.626021
da165023ec13da6e8e4f09bde02911481d804f7c
8,111
py
Python
tensorflow_datasets/core/file_format_adapter.py
manda-creator/datasets
040bccda79b096dc428e66e7d0a6dece7b22b8eb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/file_format_adapter.py
manda-creator/datasets
040bccda79b096dc428e66e7d0a6dece7b22b8eb
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/file_format_adapter.py
manda-creator/datasets
040bccda79b096dc428e66e7d0a6dece7b22b8eb
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
32.186508
80
0.725681
2cf6d1a725545c357021892afc0e2227a4fb9359
757
py
Python
scripts/get_mean_score.py
Faldict/data_diet
335fb6ce50235ff9aed6cb9ae8513fea9afce252
[ "Apache-2.0" ]
null
null
null
scripts/get_mean_score.py
Faldict/data_diet
335fb6ce50235ff9aed6cb9ae8513fea9afce252
[ "Apache-2.0" ]
null
null
null
scripts/get_mean_score.py
Faldict/data_diet
335fb6ce50235ff9aed6cb9ae8513fea9afce252
[ "Apache-2.0" ]
null
null
null
# python get_mean_score.py <ROOT:str> <EXP:str> <N_RUNS:int> <STEP:int> <TYPE:str> import numpy as np import os import sys ROOT = sys.argv[1] EXP = sys.argv[2] N_RUNS = int(sys.argv[3]) STEP = int(sys.argv[4]) TYPE = sys.argv[5] if TYPE == 'l2_error': path_name = 'error_l2_norm_scores' elif TYPE == 'grad_norm': ...
24.419355
82
0.696169
e5c5702d0f5c53b5a9a5b0c0a7f0d7da751ca83f
6,199
py
Python
architecture_view_sdk/model/topboard/sprint_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
architecture_view_sdk/model/topboard/sprint_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
architecture_view_sdk/model/topboard/sprint_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: sprint.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf impo...
46.609023
671
0.756251
583bccb9914bd55b39b146384346af82e9585a8b
620
py
Python
lib/models/utils.py
YaphetS-X/CenterNet-MobileNetV3
144891f00c252092e0ff617f42f3583d9f3282cd
[ "MIT" ]
84
2019-09-10T08:37:53.000Z
2022-02-02T15:12:52.000Z
lib/models/utils.py
1qWERTy12/CenterNet-MobileNetV3
144891f00c252092e0ff617f42f3583d9f3282cd
[ "MIT" ]
8
2019-09-05T06:19:14.000Z
2021-07-13T03:39:18.000Z
lib/models/utils.py
1qWERTy12/CenterNet-MobileNetV3
144891f00c252092e0ff617f42f3583d9f3282cd
[ "MIT" ]
16
2019-09-25T01:08:55.000Z
2021-11-15T11:33:09.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function def _gather_feat(feat, ind, mask=None): dim = feat.size(2) ind = ind.unsqueeze(2).expand(ind.size(0), ind.size(1), dim) feat = feat.gather(1, ind) if mask is not None: mask = mask.uns...
26.956522
65
0.66129
fcd0981e6af9348d1f542141243250828f63d2ac
1,792
py
Python
haprestio/files/templates/haproxy.cfg.py
innofocus/haprestio
6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde
[ "MIT" ]
null
null
null
haprestio/files/templates/haproxy.cfg.py
innofocus/haprestio
6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde
[ "MIT" ]
null
null
null
haprestio/files/templates/haproxy.cfg.py
innofocus/haprestio
6a9bf3a3d73fb3faa7cf1e5cfc757cc360fbafde
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import multiprocessing, sys haproxy_user = sys.argv[1] haproxy_pass = sys.argv[2] haproxy_cfg = """ global log stdout format raw local0 info #log /dev/log local0 #log /dev/log local1 notice chroot /var/lib/haproxy stats socket /run/haproxy.admin.sock mode 660 level admin stats ti...
27.569231
159
0.726004
ed1a236b543784e1d734fb0543348805b8b48abf
1,183
py
Python
problems/663.Equal_Tree_Partition/li.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/663.Equal_Tree_Partition/li.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
problems/663.Equal_Tree_Partition/li.py
subramp-prep/leetcode
d125201d9021ab9b1eea5e5393c2db4edd84e740
[ "Unlicense" ]
null
null
null
# coding=utf-8 # Author: Jianghan LI # Question: 663.Equal_Tree_Partition # Complexity: O(N) # Date: 2017-08-20 # Contest 46, 0:36:46 - 0:57:02, 2 wrong tries # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.r...
28.166667
107
0.579036
cbc7d14e8f82a9f79b8ae61500615f7a7902c6a4
1,174
py
Python
web/frontend/urls.py
tcsvn/activity-assistant
eeb0ef72a046a8a781ff31b384edec8243dd22a7
[ "MIT" ]
45
2020-11-06T20:31:13.000Z
2022-03-24T06:14:18.000Z
web/frontend/urls.py
tcsvn/activity-assistant
eeb0ef72a046a8a781ff31b384edec8243dd22a7
[ "MIT" ]
10
2020-12-14T00:17:11.000Z
2022-02-06T19:39:01.000Z
web/frontend/urls.py
tcsvn/activity-assistant
eeb0ef72a046a8a781ff31b384edec8243dd22a7
[ "MIT" ]
3
2020-12-15T22:50:09.000Z
2022-03-13T21:12:28.000Z
from django.conf.urls import url, include from django.urls import path, re_path from rest_framework.routers import DefaultRouter from frontend import views from rest_framework.schemas import get_schema_view urlpatterns = [] urlpatterns += [ path('', views.SetupView.as_view(), name='setup'), re_path(r'^dashboa...
51.043478
109
0.722317
f40dc4422dcd56adc952a9d62c499582a434c57b
14,448
py
Python
rstbx/indexing_api/lattice.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
rstbx/indexing_api/lattice.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
rstbx/indexing_api/lattice.py
rimmartin/cctbx_project
644090f9432d9afc22cfb542fc3ab78ca8e15e5d
[ "BSD-3-Clause-LBNL" ]
null
null
null
from __future__ import division from six.moves import range from rstbx.array_family import flex from rstbx.indexing_api import dps_extended from rstbx.indexing_api.sampling import hemisphere_shortcut from rstbx.dps_core import Directional_FFT import math,cmath from scitbx import matrix from libtbx.test_utils import app...
43.518072
111
0.667497
8d65327dfb2f5fefb222a7a020498133a6dae6ee
55
py
Python
GUI/apps/StatisticsApp.py
FeelsBright/SmartMed
91dd91e51be82d7dc9779a3ad0a739f4214652be
[ "Apache-2.0" ]
null
null
null
GUI/apps/StatisticsApp.py
FeelsBright/SmartMed
91dd91e51be82d7dc9779a3ad0a739f4214652be
[ "Apache-2.0" ]
null
null
null
GUI/apps/StatisticsApp.py
FeelsBright/SmartMed
91dd91e51be82d7dc9779a3ad0a739f4214652be
[ "Apache-2.0" ]
null
null
null
from .App import App class StatisticsApp(App): pass
9.166667
25
0.745455
45d8af2a74052fe6222e28a91a97e188ba514225
948
py
Python
data/db_repository/versions/008_migration.py
wgd3/fitgents
171b63f79febd82c9a7e57717923e827c61db1f0
[ "MIT" ]
null
null
null
data/db_repository/versions/008_migration.py
wgd3/fitgents
171b63f79febd82c9a7e57717923e827c61db1f0
[ "MIT" ]
null
null
null
data/db_repository/versions/008_migration.py
wgd3/fitgents
171b63f79febd82c9a7e57717923e827c61db1f0
[ "MIT" ]
null
null
null
from sqlalchemy import * from migrate import * from migrate.changeset import schema pre_meta = MetaData() post_meta = MetaData() users = Table('users', post_meta, Column('user_id', Integer, primary_key=True, nullable=False), Column('name', String(length=50)), Column('email', String(length=50)), Column...
29.625
68
0.712025
cf14c86e687b12e722e324841b79c70b3ab10b7b
2,530
py
Python
python/gemm_sparse_prod.py
alsam/scriptics-samples
0169bcec96c29ba1e50d4d3ed5ad5afbb62a272b
[ "MIT" ]
null
null
null
python/gemm_sparse_prod.py
alsam/scriptics-samples
0169bcec96c29ba1e50d4d3ed5ad5afbb62a272b
[ "MIT" ]
null
null
null
python/gemm_sparse_prod.py
alsam/scriptics-samples
0169bcec96c29ba1e50d4d3ed5ad5afbb62a272b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #-*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2021 Alexander Samoilov # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, includi...
44.385965
131
0.666008
2d55c272e37f3971828bd6dba4db5d30ed3864fc
776
py
Python
python/fogcreek_encode.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
null
null
null
python/fogcreek_encode.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
null
null
null
python/fogcreek_encode.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
1
2018-10-09T02:03:12.000Z
2018-10-09T02:03:12.000Z
from random import randint magic_string = "keyboarding_" magic_list = list(magic_string) base_string = "abcdefghijklmnopqrstuvwxyz_" base_list = list(base_string) encoded_dict = {} count = 100 # encode magic list for c in magic_list: encoded_dict[c] = count count = count - 1 if c in base_list: ...
20.972973
49
0.662371
be9c09e4e01f45bec3b83b0cd523e2320b17cd37
840
py
Python
stroppy/__main__.py
ciaron/stroppy
081f14d50917bd7669b6554719791ceee538b96e
[ "MIT" ]
null
null
null
stroppy/__main__.py
ciaron/stroppy
081f14d50917bd7669b6554719791ceee538b96e
[ "MIT" ]
null
null
null
stroppy/__main__.py
ciaron/stroppy
081f14d50917bd7669b6554719791ceee538b96e
[ "MIT" ]
null
null
null
# __main__.py # original from https://realpython.com/pypi-publish-python-package/ from configparser import ConfigParser from importlib import resources # Python 3.7+ import sys from reader import feed from reader import viewer def main(): """Read the Real Python article feed""" # Read URL of the Real Pytho...
26.25
67
0.670238
4d4bb3ffe3cb4e9c0e97cc06c738d251e77c2da2
499
py
Python
env/Lib/site-packages/plotly/validators/scatterpolargl/line/_shape.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/scatterpolargl/line/_shape.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/scatterpolargl/line/_shape.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, plotly_name="shape", parent_name="scatterpolargl.line", **kwargs ): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name...
33.266667
78
0.627255
e165457e997b3b03f13cabf436dfeaf68d43027e
655
py
Python
yawast/scanner/plugins/http/waf.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
yawast/scanner/plugins/http/waf.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
yawast/scanner/plugins/http/waf.py
sasqwatch/yawast
41572108e4d46f76cb83eae6dd3727bc02bd46c7
[ "BSD-3-Clause" ]
null
null
null
from typing import List, Dict from yawast.reporting.enums import Vulnerabilities from yawast.scanner.plugins.result import Result def get_waf(headers: Dict, raw: str, url: str) -> List[Result]: results = [] if "Server" in headers: if headers["Server"] == "cloudflare": results.append( ...
27.291667
88
0.60458
7341eeafc791717acfa5a2dbdb2f41adca8c5e76
1,137
py
Python
corehq/ex-submodules/casexml/apps/stock/tests/mock_consumption.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/ex-submodules/casexml/apps/stock/tests/mock_consumption.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/ex-submodules/casexml/apps/stock/tests/mock_consumption.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
from __future__ import absolute_import from __future__ import unicode_literals from casexml.apps.stock.models import ConsumptionMixin from dimagi.utils import parsing as dateparse from datetime import datetime, timedelta from casexml.apps.stock.consumption import compute_daily_consumption_from_transactions, Consumption...
29.153846
112
0.770449
020eb7132b0c6e00069d6443b38510a2a01b17c2
101
py
Python
pre_process.py
AnuragVanam/team-text-eater
70920603100015ef25b4ac11e3198e8e766d38df
[ "Apache-2.0" ]
null
null
null
pre_process.py
AnuragVanam/team-text-eater
70920603100015ef25b4ac11e3198e8e766d38df
[ "Apache-2.0" ]
null
null
null
pre_process.py
AnuragVanam/team-text-eater
70920603100015ef25b4ac11e3198e8e766d38df
[ "Apache-2.0" ]
null
null
null
import string def pre_process(para): result = para.translate(string.punctuation) return(result)
16.833333
45
0.772277
89bd556d9bd1056fc3ddaf7dae1b610a3812ca6d
164
py
Python
src/client/client.py
Kirishikesan/HoneySim
cf2e76816a9adc186b909addef8558cce2fc3055
[ "MIT" ]
null
null
null
src/client/client.py
Kirishikesan/HoneySim
cf2e76816a9adc186b909addef8558cce2fc3055
[ "MIT" ]
null
null
null
src/client/client.py
Kirishikesan/HoneySim
cf2e76816a9adc186b909addef8558cce2fc3055
[ "MIT" ]
null
null
null
import socket s = socket.socket() port = 3000 s.connect(('127.0.0.1', port)) print (s.recv(1024) ) s.close()
16.4
31
0.432927
cce233322695c19117937e8ad7ce2c0ff4661a50
3,062
py
Python
dlcv/utils.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
null
null
null
dlcv/utils.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
null
null
null
dlcv/utils.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
null
null
null
"""This file is part of DeepLens which is released under MIT License and is copyrighted by the University of Chicago. This project is developed by the database group (chidata). utils.py defines some utilities that can be used for debugging and manipulating image streams. """ import cv2 import numpy as np import iter...
29.728155
111
0.633246
8219c809c801ccf965a889f8566b2f1bd144a7db
403
py
Python
django-app_poetry_base/django_app/django_snacks_base/django_snacks/wsgi.py
robertCodedIt/django-snacks
99bd320a1f412f2d967479e8d22dfa52c31a0331
[ "MIT" ]
null
null
null
django-app_poetry_base/django_app/django_snacks_base/django_snacks/wsgi.py
robertCodedIt/django-snacks
99bd320a1f412f2d967479e8d22dfa52c31a0331
[ "MIT" ]
null
null
null
django-app_poetry_base/django_app/django_snacks_base/django_snacks/wsgi.py
robertCodedIt/django-snacks
99bd320a1f412f2d967479e8d22dfa52c31a0331
[ "MIT" ]
null
null
null
""" WSGI config for django_snacks project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
3957c2a340fab6846222dca93cfe8c43e09f8e89
10,183
py
Python
squareconnect/models/batch_retrieve_inventory_changes_request.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
53
2016-08-06T17:12:16.000Z
2020-08-02T19:43:58.000Z
squareconnect/models/batch_retrieve_inventory_changes_request.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
32
2016-08-19T16:32:30.000Z
2020-01-14T18:01:37.000Z
squareconnect/models/batch_retrieve_inventory_changes_request.py
shaminmeerankutty/connect-python-sdk
524c8fe344bc3c0340833984970a07d519c4f5be
[ "Apache-2.0" ]
45
2016-09-05T11:58:09.000Z
2020-11-15T16:26:41.000Z
# coding: utf-8 """ Copyright 2017 Square, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable la...
36.761733
233
0.648826
498c333cb911e29dd3bbb2a51a4af2051c51c4cf
42,648
py
Python
networkx/classes/digraph.py
SultanOrazbayev/networkx
5be9755636fa4da71da2e28f8467336d3c0164a7
[ "BSD-3-Clause" ]
2
2020-02-25T14:07:05.000Z
2020-11-21T20:29:37.000Z
networkx/classes/digraph.py
SultanOrazbayev/networkx
5be9755636fa4da71da2e28f8467336d3c0164a7
[ "BSD-3-Clause" ]
2
2020-10-16T04:18:16.000Z
2021-11-19T20:00:15.000Z
networkx/classes/digraph.py
SultanOrazbayev/networkx
5be9755636fa4da71da2e28f8467336d3c0164a7
[ "BSD-3-Clause" ]
1
2021-08-18T03:14:44.000Z
2021-08-18T03:14:44.000Z
"""Base class for directed graphs.""" from copy import deepcopy import networkx as nx from networkx.classes.graph import Graph from networkx.classes.coreviews import AdjacencyView from networkx.classes.reportviews import ( OutEdgeView, InEdgeView, DiDegreeView, InDegreeView, OutDegreeView, ) from n...
34.900164
86
0.583732
a19f115944654f7bce5cae85b755d9ba96482200
4,824
py
Python
gluon/contrib/pbkdf2.py
AustinKellar/web2py_installation
b6b8bb890762f875871d11a934b5ed7aea33563c
[ "BSD-3-Clause" ]
1,573
2015-01-01T07:19:06.000Z
2022-03-30T09:06:06.000Z
gluon/contrib/pbkdf2.py
AustinKellar/web2py_installation
b6b8bb890762f875871d11a934b5ed7aea33563c
[ "BSD-3-Clause" ]
1,691
2015-01-03T11:03:23.000Z
2022-03-30T07:27:28.000Z
gluon/contrib/pbkdf2.py
AustinKellar/web2py_installation
b6b8bb890762f875871d11a934b5ed7aea33563c
[ "BSD-3-Clause" ]
895
2015-01-03T19:56:15.000Z
2022-03-18T18:30:57.000Z
# -*- coding: utf-8 -*- """ pbkdf2 ~~~~~~ This module implements pbkdf2 for Python. It also has some basic tests that ensure that it works. The implementation is straightforward and uses stdlib only stuff and can be easily be copy/pasted into your favourite application. Use this as repla...
36.824427
78
0.641169
1178a100b889180dbbd248234933ca474b0c3a6f
2,003
py
Python
backend/users/models.py
mnieber/django-graphql-registration
20dc61e207f92dcbc88fb83707315e5b304238cd
[ "MIT" ]
null
null
null
backend/users/models.py
mnieber/django-graphql-registration
20dc61e207f92dcbc88fb83707315e5b304238cd
[ "MIT" ]
null
null
null
backend/users/models.py
mnieber/django-graphql-registration
20dc61e207f92dcbc88fb83707315e5b304238cd
[ "MIT" ]
null
null
null
import uuid from django.conf import settings from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin, ) from django.db import models class UserManager(BaseUserManager): def create_user( self, email, username, password, accepts_terms, terms_version_accepted...
32.836066
79
0.676985
aa52c24867ebe239b5837c7e9c7cee34c29db504
63,073
py
Python
mi/instrument/teledyne/workhorse_monitor_150_khz/particles.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/teledyne/workhorse_monitor_150_khz/particles.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
mi/instrument/teledyne/workhorse_monitor_150_khz/particles.py
rhan1498/marine-integrations
ad94c865e0e4cc7c8fd337870410c74b57d5c826
[ "BSD-2-Clause" ]
null
null
null
""" @package mi.instrument.teledyne.workhorse_monitor_75_khz.particles @file marine-integrations/mi/instrument/teledyne/workhorse_monitor_75_khz/driver.py @author Roger Unwin @brief Driver particle code for the teledyne 75_khz particles Release notes: """ import re from struct import * import time as time import datet...
56.976513
170
0.651594
f91f489f1aac45ceddb8d33ae1983cd9c6dc8909
129
py
Python
xero_python/__init__.py
GraceYBR/xero-python
3682b1e61273ccbceb3617bf4fdb1cd1a36187c2
[ "MIT" ]
null
null
null
xero_python/__init__.py
GraceYBR/xero-python
3682b1e61273ccbceb3617bf4fdb1cd1a36187c2
[ "MIT" ]
null
null
null
xero_python/__init__.py
GraceYBR/xero-python
3682b1e61273ccbceb3617bf4fdb1cd1a36187c2
[ "MIT" ]
null
null
null
"""Top-level package for xero-python.""" __author__ = """Xero Developer API""" __email__ = "api@xero.com" __version__ = "1.5.2"
21.5
40
0.674419
234ebcbb67394f4ea28290e3dee9868668ac28fd
12,198
py
Python
leg/software/lab_experiments/gui example/__init__.py
sburden-group/pareto_leg_hardware
39283d67be67bed464580db8b2487edd33c30100
[ "MIT" ]
null
null
null
leg/software/lab_experiments/gui example/__init__.py
sburden-group/pareto_leg_hardware
39283d67be67bed464580db8b2487edd33c30100
[ "MIT" ]
5
2022-02-18T22:49:26.000Z
2022-03-11T22:09:42.000Z
leg/software/lab_experiments/gui example/__init__.py
sburden-group/pareto_leg_hardware
39283d67be67bed464580db8b2487edd33c30100
[ "MIT" ]
null
null
null
import tkinter as tk import tkinter.messagebox as tkmsgbox import tkinter.simpledialog as tksimpledialog import tkinter.filedialog as tkfiledialog from pareto_leg.odrive_driver import odrive, OdriveDriver import numpy as np import yaml from math import remainder class PIController(): """ this is math stuff for con...
49.185484
124
0.646581
34bc3ea7f361963efaf78218b6c73be51339222a
21,525
py
Python
glearn/nerualnetworks/cnn.py
ggutierrez545/neuralnetworks
891fc622515af765b8529091b99e377215e195ca
[ "MIT" ]
null
null
null
glearn/nerualnetworks/cnn.py
ggutierrez545/neuralnetworks
891fc622515af765b8529091b99e377215e195ca
[ "MIT" ]
7
2020-07-17T23:58:40.000Z
2020-08-17T21:28:21.000Z
glearn/nerualnetworks/cnn.py
ggutierrez545/neuralnetworks
891fc622515af765b8529091b99e377215e195ca
[ "MIT" ]
null
null
null
import numpy as np from glearn.utils.activation import activation, loss from glearn.nerualnetworks.nn import NeuralNetwork, InputLayer, ConnectedLayer, ConnectedSegment class ConvolutionalNeuralNet(NeuralNetwork): def __init__(self, seed=10, l_rate=0.01, m_factor=0.9, loss_func=''): super().__init__(seed...
36.055276
136
0.586481
83069a70003b5005dba143faf3cc3344c3175927
61
py
Python
careplus/search/models.py
stemado/satb
7ef5698db8125072e3609da3766d3e80feff6e40
[ "MIT" ]
null
null
null
careplus/search/models.py
stemado/satb
7ef5698db8125072e3609da3766d3e80feff6e40
[ "MIT" ]
8
2020-03-24T15:42:15.000Z
2022-01-13T00:44:54.000Z
careplus/search/models.py
stemado/satb
7ef5698db8125072e3609da3766d3e80feff6e40
[ "MIT" ]
null
null
null
from django.db import models from django.db import models
10.166667
28
0.786885
712978fddf7a6bbb366e6a200ad607eb9aae31b3
5,958
py
Python
sortUi.py
rtli/AccountBook
55fc783f71edb4931057d81157de82abc897fb07
[ "MIT" ]
null
null
null
sortUi.py
rtli/AccountBook
55fc783f71edb4931057d81157de82abc897fb07
[ "MIT" ]
null
null
null
sortUi.py
rtli/AccountBook
55fc783f71edb4931057d81157de82abc897fb07
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'sort.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui, ...
40.530612
75
0.662135
2b7bf2d70b5d176a8d4b78d179d33daeae3c4a12
560
py
Python
main.py
Nedarb111/01-Introduction
7183092096c344ccc5627408d0f6d15ef92e59bc
[ "MIT" ]
null
null
null
main.py
Nedarb111/01-Introduction
7183092096c344ccc5627408d0f6d15ef92e59bc
[ "MIT" ]
null
null
null
main.py
Nedarb111/01-Introduction
7183092096c344ccc5627408d0f6d15ef92e59bc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import utils utils.check_version((3,7)) utils.clear() print('My name is Braden Marksberry') print('I love "A Link to the Past" and a large majority of other "Zelda" titles.') print('I am not the most expirienced programer...I have not really done any code- I usually just write music for games....
43.076923
121
0.75
16bfeac9ffeb39cd4e5882dcd8b75b3280fdd625
44
py
Python
scale/port/__init__.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
scale/port/__init__.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
scale/port/__init__.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
default_app_config = 'port.apps.PortConfig'
22
43
0.818182
fd10b4f6fd5443377be246b7c3d9e592b72e204c
1,442
py
Python
multitier/__init__.py
knivets/djaodjin-multitier
faef56e9424ab493c9e0fca0b6fd56231a648070
[ "BSD-2-Clause" ]
null
null
null
multitier/__init__.py
knivets/djaodjin-multitier
faef56e9424ab493c9e0fca0b6fd56231a648070
[ "BSD-2-Clause" ]
null
null
null
multitier/__init__.py
knivets/djaodjin-multitier
faef56e9424ab493c9e0fca0b6fd56231a648070
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2018, Djaodjin Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and t...
48.066667
78
0.778779
a3df1196344896ab8ec388ad5653b48f79bf3d18
1,355
py
Python
Lib/lib2to3/pygram.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
5
2020-01-25T19:30:31.000Z
2021-03-05T20:34:57.000Z
Lib/lib2to3/pygram.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
18
2019-12-09T17:05:24.000Z
2021-06-09T15:19:49.000Z
Lib/lib2to3/pygram.py
gerph/cpython
98813cb03c2371789669c3d8debf8fca2a344de9
[ "CNRI-Python-GPL-Compatible" ]
3
2020-05-15T22:25:58.000Z
2021-03-05T20:35:00.000Z
# Copyright 2006 Google, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Export the Python grammar and symbols.""" # Python imports import os # Local imports from .pgen2 import token from .pgen2 import driver from . import pytree # The grammar file _GRAMMAR_FILE = os.path.join(os.path....
30.795455
85
0.729889
abe9ca2331937bc311afd175243c3b7b68472e52
24,625
py
Python
apex/transformer/tensor_parallel/layers.py
anirudhprabhakaran3/apex
3c88451afbbf5b835ce0ff21165b48787feeeab4
[ "BSD-3-Clause" ]
null
null
null
apex/transformer/tensor_parallel/layers.py
anirudhprabhakaran3/apex
3c88451afbbf5b835ce0ff21165b48787feeeab4
[ "BSD-3-Clause" ]
null
null
null
apex/transformer/tensor_parallel/layers.py
anirudhprabhakaran3/apex
3c88451afbbf5b835ce0ff21165b48787feeeab4
[ "BSD-3-Clause" ]
1
2021-12-20T00:49:01.000Z
2021-12-20T00:49:01.000Z
# coding=utf-8 # Copyright (c) 2021-22, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
37.085843
107
0.635655
4c2599c3bc59ac5686166b6befa8490f4ddec0b7
1,458
py
Python
neptune/generated/analytics/test/test_analyticscontroller_api.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
neptune/generated/analytics/test/test_analyticscontroller_api.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
neptune/generated/analytics/test/test_analyticscontroller_api.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable l...
23.516129
87
0.707133
701ef1692d06a302334436e9f5a8400802fdbb5b
2,326
py
Python
portfolios/migrations/0002_auto_20170809_1352.py
tkanemoto/django-portfolios
328990d030b3509cf5aeef09c3ae605104a18564
[ "Apache-2.0" ]
null
null
null
portfolios/migrations/0002_auto_20170809_1352.py
tkanemoto/django-portfolios
328990d030b3509cf5aeef09c3ae605104a18564
[ "Apache-2.0" ]
null
null
null
portfolios/migrations/0002_auto_20170809_1352.py
tkanemoto/django-portfolios
328990d030b3509cf5aeef09c3ae605104a18564
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-08-09 13:52 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
40.807018
133
0.595873
a881d9ffc8a2da348ebea1e482fd5303678f3206
57,208
py
Python
project/app/api/utils.py
Lambda-School-Labs/Labs25-SaverLife-TeamC-ds
f7d5f663abca860d055ad0b6a47508c50e689b08
[ "MIT" ]
1
2020-08-04T20:15:57.000Z
2020-08-04T20:15:57.000Z
project/app/api/utils.py
Lambda-School-Labs/Labs25-SaverLife-TeamC-ds
f7d5f663abca860d055ad0b6a47508c50e689b08
[ "MIT" ]
3
2020-08-10T20:19:10.000Z
2020-09-25T20:19:36.000Z
project/app/api/utils.py
Lambda-School-Labs/Labs25-SaverLife-TeamC-ds
f7d5f663abca860d055ad0b6a47508c50e689b08
[ "MIT" ]
null
null
null
from fastapi import APIRouter, HTTPException import pandas as pd import numpy as np import psycopg2 import plotly.express as px from pydantic import BaseModel, Field, validator from fastapi.templating import Jinja2Templates from typing import Optional import json import random import sys import traceback from sktime....
90.518987
10,787
0.649525
cb9cfc174df1533750d164fb94209f0ed3e90fc0
13,170
py
Python
Quantum q-learning/neural_net.py
NimishMishra/research
2448fc9da643429117b851cb582d490cfe46d422
[ "MIT" ]
4
2020-06-21T07:22:27.000Z
2021-07-12T16:51:20.000Z
Quantum q-learning/neural_net.py
NimishMishra/research
2448fc9da643429117b851cb582d490cfe46d422
[ "MIT" ]
2
2020-12-30T18:06:26.000Z
2020-12-30T18:06:26.000Z
Quantum q-learning/neural_net.py
NimishMishra/research
2448fc9da643429117b851cb582d490cfe46d422
[ "MIT" ]
null
null
null
import numpy as np import keras.backend.tensorflow_backend as backend from keras.models import Sequential from keras.layers import Dense, Dropout, Conv2D, MaxPooling2D, Activation, Flatten from keras.optimizers import Adam from keras.callbacks import TensorBoard import tensorflow as tf from collections import deque imp...
33.51145
163
0.636446
550596433c2080d2210de68e60461c51953707b9
341
py
Python
tableprint/metadata.py
sumanthratna/tableprint
f91c39652d2c500add3373597af2df0b54472652
[ "MIT" ]
1
2020-05-18T21:31:30.000Z
2020-05-18T21:31:30.000Z
tableprint/metadata.py
sumanthratna/tableprint
f91c39652d2c500add3373597af2df0b54472652
[ "MIT" ]
1
2020-07-07T23:46:34.000Z
2020-07-07T23:46:34.000Z
tableprint/metadata.py
sumanthratna/tableprint
f91c39652d2c500add3373597af2df0b54472652
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Version info __version__ = '0.9.0' __license__ = 'MIT' # Project description(s) __description__ = 'Pretty console printing of tabular data' # The project's main homepage. __url__ = 'https://github.com/nirum/tableprint' # Author details __author__ = 'Niru Maheswaranathan' __author_email__ =...
21.3125
59
0.730205
8212ba70a3f255bdb354f97ae585643ef387f804
6,416
py
Python
main.py
helish88/giveaway
1513ff8ba3f6384ba3c37d158de1ef51b9a07511
[ "Apache-2.0" ]
12
2020-09-17T04:27:13.000Z
2022-03-08T08:55:47.000Z
main.py
helish88/giveaway
1513ff8ba3f6384ba3c37d158de1ef51b9a07511
[ "Apache-2.0" ]
3
2021-01-25T09:22:53.000Z
2021-01-28T09:17:52.000Z
main.py
helish88/giveaway
1513ff8ba3f6384ba3c37d158de1ef51b9a07511
[ "Apache-2.0" ]
5
2020-08-05T14:47:26.000Z
2021-07-17T19:50:46.000Z
# Imports import discord import asyncio import random import re # From imports from discord.ext import commands from datetime import datetime, timedelta from colorama import Fore, Style token = '' # Input your token here. intents = discord.Intents.default() bot = commands.Bot(command_prefix='!', case_...
37.964497
179
0.624065
02ab2d6983c2944fb7e0991456e8eda8bf2e0762
227
py
Python
2_UNIXCommands/Exercise10.py
takeyoshinitta/NLP-100-Exercise
e77fb385fbbf50c8a8bdc47442db1421739ea5b6
[ "MIT" ]
3
2022-01-04T19:02:22.000Z
2022-02-21T08:52:18.000Z
2_UNIXCommands/Exercise10.py
takeyoshinitta/NLP-100-Exercise
e77fb385fbbf50c8a8bdc47442db1421739ea5b6
[ "MIT" ]
null
null
null
2_UNIXCommands/Exercise10.py
takeyoshinitta/NLP-100-Exercise
e77fb385fbbf50c8a8bdc47442db1421739ea5b6
[ "MIT" ]
null
null
null
# 10. Line count # Count the number of lines of the file. Confirm the result by using wc command. count = 0 with open('popular-names.txt') as f: for line in f: count += 1 print ('Number of lines is ' + str(count))
25.222222
80
0.656388
ce7d7bae9b30678b7b253e0527fb4244bfd899e7
35
py
Python
HelloWorld.py
StevenLearningHub/PythonLeaning
3e7260f3965ef9966e76ef0f9a5c8a2649188c47
[ "Apache-2.0" ]
null
null
null
HelloWorld.py
StevenLearningHub/PythonLeaning
3e7260f3965ef9966e76ef0f9a5c8a2649188c47
[ "Apache-2.0" ]
null
null
null
HelloWorld.py
StevenLearningHub/PythonLeaning
3e7260f3965ef9966e76ef0f9a5c8a2649188c47
[ "Apache-2.0" ]
null
null
null
print "This line will be printed."
17.5
34
0.742857
0c3042e50697d5005b0439948f18005440053a80
5,215
py
Python
svm/master.py
EnsekiTT/ml_review
acedd27d877519b413605a5db5ddd6fb4ffff765
[ "MIT" ]
null
null
null
svm/master.py
EnsekiTT/ml_review
acedd27d877519b413605a5db5ddd6fb4ffff765
[ "MIT" ]
null
null
null
svm/master.py
EnsekiTT/ml_review
acedd27d877519b413605a5db5ddd6fb4ffff765
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import sys import random from scipy import * from scipy.linalg import norm import pandas as pd import matplotlib.pyplot as plt class svm(object): """ Support Vector Machine using SMO Algorithm. """ def __init__(self, kernel=lambda x,y:dot(x,y), c=10000, t...
22.381974
102
0.601534
beb369b1d8a9b2769833833b06524f2bc86080db
1,962
py
Python
lib/bullet/src/examples/pybullet/vrEvent.py
mtesseracttech/CustomEngine
1a9ed564408ae29fe49681a810b851403d71f486
[ "Apache-2.0" ]
12
2017-08-24T05:58:53.000Z
2021-07-15T17:32:26.000Z
lib/bullet/src/examples/pybullet/vrEvent.py
mtesseracttech/CustomEngine
1a9ed564408ae29fe49681a810b851403d71f486
[ "Apache-2.0" ]
1
2017-06-05T13:38:29.000Z
2017-06-05T13:38:29.000Z
lib/bullet/src/examples/pybullet/vrEvent.py
mtesseracttech/CustomEngine
1a9ed564408ae29fe49681a810b851403d71f486
[ "Apache-2.0" ]
6
2017-06-04T22:43:37.000Z
2019-07-15T05:36:11.000Z
# See pybullet quickstart guide here: # https://docs.google.com/document/d/10sXEhzFRSnvFcl3XxNGhnD4N2SedqwdAvK3dsihxVUA/edit# # Create a Tiltbrush-like app, drawing lines using any controller # Line width can be changed import pybullet as p CONTROLLER_ID = 0 POSITION=1 ORIENTATION=2 BUTTONS=6 #assume that the VR phy...
31.645161
122
0.702854
01a0263760ebf637cf7d9aa3c8d1a06d1daa3dba
17,177
py
Python
venv/Lib/site-packages/selenium/webdriver/common/devtools/v85/profiler.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
2
2022-02-25T09:12:07.000Z
2022-03-22T19:45:43.000Z
venv/Lib/site-packages/selenium/webdriver/common/devtools/v85/profiler.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
null
null
null
venv/Lib/site-packages/selenium/webdriver/common/devtools/v85/profiler.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
1
2022-03-28T09:19:34.000Z
2022-03-28T09:19:34.000Z
# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all of the modules. # # CDP domain: Profiler from __future__ import annotations from .util import event_class, T_JSON_DICT from dataclasses import dataclass import enum import...
28.772194
127
0.645864
b76a22b63971ec2c0610d28f6dd9ef621e29f4bd
2,278
py
Python
wasm/compat.py
bigdot123456/wasmDecode
063abc4a951cbc721bd6c42718de87bef9a574a0
[ "MIT" ]
269
2016-11-09T19:07:10.000Z
2022-02-20T00:55:07.000Z
wasm/compat.py
bigdot123456/wasmDecode
063abc4a951cbc721bd6c42718de87bef9a574a0
[ "MIT" ]
8
2017-01-16T20:28:48.000Z
2021-07-20T18:31:07.000Z
wasm/compat.py
bigdot123456/wasmDecode
063abc4a951cbc721bd6c42718de87bef9a574a0
[ "MIT" ]
42
2016-11-09T19:13:58.000Z
2022-03-08T08:51:15.000Z
"""Defines compatibility quirks for Python 2.7.""" from __future__ import print_function, absolute_import, division, unicode_literals import sys import functools import logging import warnings def add_metaclass(metaclass): """ Class decorator for creating a class with a metaclass. Borrowed from `six` mod...
27.780488
82
0.636084
f47d9b6db371b96886e9dc310616b8808e6c7b76
3,439
py
Python
sparkcommonfunc/data_transformation/PivotRowToColumnAndBack.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
sparkcommonfunc/data_transformation/PivotRowToColumnAndBack.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
sparkcommonfunc/data_transformation/PivotRowToColumnAndBack.py
pengfei99/PySparkCommonFunc
8238949f52a8e0d2c30c42d9f4002941f43db466
[ "MIT" ]
null
null
null
from pyspark.sql import SparkSession, DataFrame from pyspark.sql import functions as f """Exp1 : Simple pivot example, understand what pivot will do""" def exp1(df): print("Exp1: show the country list groupby Product") df.groupBy("Product").agg(f.collect_list("Country")).show(truncate=False) print("Exp1:...
37.791209
109
0.668218
e3830c06f89d6f2d74a584e9e1bc699ca3e50f84
1,954
py
Python
course_schedule/solution.py
mahimadubey/leetcode-python
38acc65fa4315f86acb62874ca488620c5d77e17
[ "BSD-2-Clause" ]
528
2015-01-08T21:27:06.000Z
2022-03-17T09:23:44.000Z
course_schedule/solution.py
durgaharish1993/leetcode-python
6c523ef4759a57433e10271b584eece16f9f05f3
[ "BSD-2-Clause" ]
null
null
null
course_schedule/solution.py
durgaharish1993/leetcode-python
6c523ef4759a57433e10271b584eece16f9f05f3
[ "BSD-2-Clause" ]
278
2015-01-12T06:45:17.000Z
2022-02-20T08:09:22.000Z
""" There are a total of n courses you have to take, labeled from 0 to n - 1. Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair: [0,1] Given the total number of courses and a list of prerequisite pairs, is it possible for you to finish all ...
31.015873
77
0.608495
083f66a03dec913991616bc78c957c015717c27f
1,151
py
Python
build/make_functions.py
gigamonkey/sheets
a89e76360ad9a35e44e5e352346eeccbe6952b1f
[ "BSD-3-Clause" ]
null
null
null
build/make_functions.py
gigamonkey/sheets
a89e76360ad9a35e44e5e352346eeccbe6952b1f
[ "BSD-3-Clause" ]
1
2021-04-03T23:07:35.000Z
2021-04-03T23:07:35.000Z
build/make_functions.py
gigamonkey/sheets
a89e76360ad9a35e44e5e352346eeccbe6952b1f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from urllib.parse import urlparse from build.make_spreadsheets import emit_docs from bs4 import BeautifulSoup import sys with open(sys.argv[1]) as f: html_doc = f.read() url = sys.argv[2] p = urlparse(sys.argv[2]) base_url = f"{p.scheme}//{p.netloc}" soup = BeautifulSoup(html_doc, 'html.p...
26.159091
75
0.65682
14ae8e06c21a15ef7f3ed6fe68fe29bc6130f0cf
26,828
py
Python
game/OTPInternalRepository.py
AnythingTechPro/toontown-otp-original
40749161f02c6f75844b1d072bf1498b42c2800d
[ "BSD-3-Clause" ]
2
2019-12-05T01:07:38.000Z
2021-02-25T06:00:47.000Z
game/OTPInternalRepository.py
rasheelprogrammer/toontown-otp-original
40749161f02c6f75844b1d072bf1498b42c2800d
[ "BSD-3-Clause" ]
null
null
null
game/OTPInternalRepository.py
rasheelprogrammer/toontown-otp-original
40749161f02c6f75844b1d072bf1498b42c2800d
[ "BSD-3-Clause" ]
1
2021-02-25T06:00:48.000Z
2021-02-25T06:00:48.000Z
import collections from panda3d.core import * from direct.distributed.MsgTypes import * from realtime.types import * from direct.showbase import ShowBase # __builtin__.config from direct.task.TaskManagerGlobal import * # taskMgr from direct.directnotify import DirectNotifyGlobal from direct.distributed.ConnectionRepos...
35.962466
128
0.625578
9477e57b7c5d2cf35e4a875781835dc50c722f9f
6,403
py
Python
amqpstorm/management/api.py
ZygusPatryk/amqpstorm
0f3ad84a529f12769d34638a88c38f3055cb05cd
[ "MIT" ]
140
2016-06-07T18:53:57.000Z
2022-03-23T01:50:15.000Z
amqpstorm/management/api.py
ZygusPatryk/amqpstorm
0f3ad84a529f12769d34638a88c38f3055cb05cd
[ "MIT" ]
85
2016-04-11T23:32:32.000Z
2022-03-19T07:21:21.000Z
amqpstorm/management/api.py
ZygusPatryk/amqpstorm
0f3ad84a529f12769d34638a88c38f3055cb05cd
[ "MIT" ]
38
2016-04-20T20:21:13.000Z
2022-03-23T05:31:58.000Z
from amqpstorm.compatibility import quote from amqpstorm.management.basic import Basic from amqpstorm.management.channel import Channel from amqpstorm.management.connection import Connection from amqpstorm.management.exchange import Exchange from amqpstorm.management.healthchecks import HealthChecks from amqpstorm.mana...
27.363248
96
0.606122
0d6ddff95ea03e809a867e8f308299ca6ab5a1e5
1,681
py
Python
igsr_archive/object.py
olaaustine/igsr_archive
7cca14a2ed58845e2101968098859dddeab627fc
[ "Apache-2.0" ]
1
2020-04-16T12:44:24.000Z
2020-04-16T12:44:24.000Z
igsr_archive/object.py
olaaustine/igsr_archive
7cca14a2ed58845e2101968098859dddeab627fc
[ "Apache-2.0" ]
null
null
null
igsr_archive/object.py
olaaustine/igsr_archive
7cca14a2ed58845e2101968098859dddeab627fc
[ "Apache-2.0" ]
2
2022-01-11T12:26:52.000Z
2022-02-22T16:22:34.000Z
import logging # create logger object_logger = logging.getLogger(__name__) class fObject(object): """ Class to represent a FIRE object. An Object is the encapsulation of a file which was successfully archived. Attributes ---------- objectId : int The numerical unique identifie...
28.982759
90
0.56395
a478bf4e50a326bffefeb30af518dbb51a8fe18f
64,693
py
Python
speedtest.py
AndradeClaudio/speedtest-cli
cccfa97515e8c673bf99f2ca0ffcfe37045a6e2a
[ "Apache-2.0" ]
null
null
null
speedtest.py
AndradeClaudio/speedtest-cli
cccfa97515e8c673bf99f2ca0ffcfe37045a6e2a
[ "Apache-2.0" ]
null
null
null
speedtest.py
AndradeClaudio/speedtest-cli
cccfa97515e8c673bf99f2ca0ffcfe37045a6e2a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2012 Matt Martz # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/lic...
32.443831
79
0.548715
98f0e719b7cdd169580a8ace5230ec457f4e1be1
13,008
py
Python
sklearn/manifold/_isomap.py
matiasrvazquez/scikit-learn
e821a9e8a0d4ef63b1219faf9ab902ad0fd4b181
[ "BSD-3-Clause" ]
2
2017-11-22T08:20:15.000Z
2017-11-22T08:23:14.000Z
sklearn/manifold/_isomap.py
matiasrvazquez/scikit-learn
e821a9e8a0d4ef63b1219faf9ab902ad0fd4b181
[ "BSD-3-Clause" ]
1
2022-03-06T18:49:03.000Z
2022-03-06T18:49:03.000Z
sklearn/manifold/_isomap.py
matiasrvazquez/scikit-learn
e821a9e8a0d4ef63b1219faf9ab902ad0fd4b181
[ "BSD-3-Clause" ]
null
null
null
"""Isomap for manifold learning""" # Author: Jake Vanderplas -- <vanderplas@astro.washington.edu> # License: BSD 3 clause (C) 2011 import warnings import numpy as np import scipy from scipy.sparse import issparse from scipy.sparse.csgraph import shortest_path from scipy.sparse.csgraph import connected_components fr...
35.252033
87
0.625077
eff777be5b493e0157f39796d52b76e0e725b656
2,382
py
Python
hw4/controllers.py
jgkim2020/homework
bdab7f693c5b1f2fb5ab0e2cfb7b9052bd3fb6ce
[ "MIT" ]
null
null
null
hw4/controllers.py
jgkim2020/homework
bdab7f693c5b1f2fb5ab0e2cfb7b9052bd3fb6ce
[ "MIT" ]
null
null
null
hw4/controllers.py
jgkim2020/homework
bdab7f693c5b1f2fb5ab0e2cfb7b9052bd3fb6ce
[ "MIT" ]
null
null
null
import numpy as np from cost_functions import trajectory_cost_fn import time class Controller(): def __init__(self): pass # Get the appropriate action(s) for this state(s) def get_action(self, state): pass class RandomController(Controller): def __init__(self, env): """ YOUR ...
38.419355
133
0.620067
5b1bb715d1aee846a73b5924b4976e266b238c3f
2,828
py
Python
app/models.py
kode-ai/capson
3b5175aeb38807bbbe9ae3bc6b7824c492f75d8f
[ "MIT" ]
null
null
null
app/models.py
kode-ai/capson
3b5175aeb38807bbbe9ae3bc6b7824c492f75d8f
[ "MIT" ]
null
null
null
app/models.py
kode-ai/capson
3b5175aeb38807bbbe9ae3bc6b7824c492f75d8f
[ "MIT" ]
null
null
null
from . import db from flask_login import UserMixin from app import login_manager from werkzeug.security import generate_password_hash,check_password_hash from time import time @login_manager.user_loader def load_user(user_id): return User.query.get(int(user_id)) class User(UserMixin,db.Model): """ Class ...
29.768421
78
0.668317
bfcb379eefe5d27d3babb64b26cd3c7ed2a61cfd
12,426
py
Python
tests/riscv/state_transition/state_transition_merge_state_elements_force.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
111
2020-06-12T22:31:30.000Z
2022-03-19T03:45:20.000Z
tests/riscv/state_transition/state_transition_merge_state_elements_force.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
34
2020-06-12T20:23:40.000Z
2022-03-15T20:04:31.000Z
tests/riscv/state_transition/state_transition_merge_state_elements_force.py
noahsherrill/force-riscv
500cec3017f619dbf853a497bf02eaeecca927c9
[ "Apache-2.0" ]
32
2020-06-12T19:15:26.000Z
2022-02-20T11:38:31.000Z
# # Copyright (C) [2020] Futurewei Technologies, Inc. # # FORCE-RISCV is licensed under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # THIS SOFTWARE IS PR...
41.558528
79
0.665942
e563a508c1b16127bb15a468957cd90b8fe20277
193
py
Python
tests.py
guumeyer/myFlaskBook
e917caea14f448cc6dc73783db4fc4f91b845b2c
[ "Apache-2.0" ]
null
null
null
tests.py
guumeyer/myFlaskBook
e917caea14f448cc6dc73783db4fc4f91b845b2c
[ "Apache-2.0" ]
null
null
null
tests.py
guumeyer/myFlaskBook
e917caea14f448cc6dc73783db4fc4f91b845b2c
[ "Apache-2.0" ]
null
null
null
import os, sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) import unittest from user.tests import UserTest if __name__ == '__main__': unittest.main()
19.3
79
0.720207
f48652ff784630e9d4e796c14eb44d940293e595
20,086
py
Python
third_party/crashpad/crashpad/build/run_tests.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
third_party/crashpad/crashpad/build/run_tests.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
113
2015-05-04T09:58:14.000Z
2022-01-31T19:35:03.000Z
third_party/crashpad/crashpad/build/run_tests.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
#!/usr/bin/env python # coding: utf-8 # Copyright 2014 The Crashpad Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICEN...
41.845833
80
0.607836
d02b57a9b5cd53235d0a2472f859650cfc49b76c
18,364
py
Python
.vim/bundle/vim-wakatime/packages/wakatime/arguments.py
ELC/dotfiles
2721242c2e8cbb48b85e3573c9ad129f91932a8e
[ "MIT" ]
1
2022-03-18T19:25:55.000Z
2022-03-18T19:25:55.000Z
.vim/bundle/vim-wakatime/packages/wakatime/arguments.py
ELC/dotfiles
2721242c2e8cbb48b85e3573c9ad129f91932a8e
[ "MIT" ]
null
null
null
.vim/bundle/vim-wakatime/packages/wakatime/arguments.py
ELC/dotfiles
2721242c2e8cbb48b85e3573c9ad129f91932a8e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ wakatime.arguments ~~~~~~~~~~~~~~~~~~ Command-line arguments. :copyright: (c) 2016 Alan Hamlett. :license: BSD, see LICENSE for more details. """ from __future__ import print_function import os import re import time import traceback from .__about__ import __version_...
50.312329
121
0.566924
2be31143df5dcfbe8a9582d556f398ccda293464
169
py
Python
configs/swin/mask_rcnn_swin-t-p4-w7_fpn_fp16_ms-crop-3x_coco.py
Brym-Gyimah/mmdetection
d5d749afe57c77e2ec4500395faed3566fdfedae
[ "Apache-2.0" ]
20,190
2018-09-10T01:11:53.000Z
2022-03-31T22:31:33.000Z
configs/swin/mask_rcnn_swin-t-p4-w7_fpn_fp16_ms-crop-3x_coco.py
Joker-co/mmdet_pro
96abfd90cf0e38c5ce398795f949e9328eb85c1b
[ "Apache-2.0" ]
6,736
2018-09-17T09:45:51.000Z
2022-03-31T22:54:10.000Z
configs/swin/mask_rcnn_swin-t-p4-w7_fpn_fp16_ms-crop-3x_coco.py
Joker-co/mmdet_pro
96abfd90cf0e38c5ce398795f949e9328eb85c1b
[ "Apache-2.0" ]
7,837
2018-09-11T02:58:23.000Z
2022-03-31T22:31:38.000Z
_base_ = './mask_rcnn_swin-t-p4-w7_fpn_ms-crop-3x_coco.py' # you need to set mode='dynamic' if you are using pytorch<=1.5.0 fp16 = dict(loss_scale=dict(init_scale=512))
42.25
64
0.745562
1c0a13dd5688268e59ad9e13a7796200064d7055
4,979
py
Python
download_atts/download.py
zpix1/vk_pm_downloader
0f4c338aa0d4a611c8f280174445a6089b808280
[ "MIT" ]
2
2019-08-31T19:14:14.000Z
2022-02-25T17:15:45.000Z
download_atts/download.py
zpix1/vk_pm_downloader
0f4c338aa0d4a611c8f280174445a6089b808280
[ "MIT" ]
1
2022-02-25T18:43:38.000Z
2022-02-26T13:22:47.000Z
download_atts/download.py
zpix1/vk_pm_downloader
0f4c338aa0d4a611c8f280174445a6089b808280
[ "MIT" ]
2
2021-12-14T23:42:43.000Z
2022-01-02T14:36:57.000Z
#! /usr/bin/env python3 import argparse import sys import os import asyncio import random from time import sleep from bs4 import BeautifulSoup import requests import aiohttp from urllib.parse import urlparse parser = argparse.ArgumentParser(description='Скачать все вложения из файлов VK PM Downloader') parser.add_ar...
38.3
161
0.648122
e8bee2cffab12bf872581aba2513ba4246d685be
38,579
py
Python
windows/native_exec/simple_x86.py
srounet/PythonForWindows
83b02310e447eb9910649ff48ae9435d7cd6abb8
[ "BSD-3-Clause" ]
null
null
null
windows/native_exec/simple_x86.py
srounet/PythonForWindows
83b02310e447eb9910649ff48ae9435d7cd6abb8
[ "BSD-3-Clause" ]
null
null
null
windows/native_exec/simple_x86.py
srounet/PythonForWindows
83b02310e447eb9910649ff48ae9435d7cd6abb8
[ "BSD-3-Clause" ]
1
2021-07-28T23:24:09.000Z
2021-07-28T23:24:09.000Z
import sys import collections import struct import binascii # py3 is_py3 = (sys.version_info.major >= 3) if is_py3: basestring = str int_types = int else: int_types = (int, long) class BitArray(object): def __init__(self, size, bits): self.size = size if len(bits) > size: r...
33.171969
165
0.598538
2b3d6ced1bae06cc953ee3c69a585a07caee1a6e
6,577
py
Python
tests/core/test_tasks.py
MajesticFalcon/nornir
75f82dbb7f492d0f283abcc5eb6b5fee08db9487
[ "Apache-2.0" ]
955
2018-05-16T17:10:12.000Z
2022-03-30T20:14:26.000Z
tests/core/test_tasks.py
MajesticFalcon/nornir
75f82dbb7f492d0f283abcc5eb6b5fee08db9487
[ "Apache-2.0" ]
490
2018-05-16T08:00:22.000Z
2022-03-28T21:14:39.000Z
tests/core/test_tasks.py
MajesticFalcon/nornir
75f82dbb7f492d0f283abcc5eb6b5fee08db9487
[ "Apache-2.0" ]
243
2018-05-17T11:07:24.000Z
2022-03-27T18:01:07.000Z
import logging from nornir.core.task import Result from nornir.core.exceptions import NornirSubTaskError class CustomException(Exception): pass def a_task_for_testing(task, fail_on=None): fail_on = fail_on or [] if task.host.name in fail_on: raise CustomException() return Result(host=task.h...
34.07772
87
0.650753
a961e6ed38177ba021451237a61939b0e67f2c9f
5,220
py
Python
Modules/Scripted/EditorLib/Testing/ThresholdThreadingTest.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
Modules/Scripted/EditorLib/Testing/ThresholdThreadingTest.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
Modules/Scripted/EditorLib/Testing/ThresholdThreadingTest.py
TheInterventionCentre/NorMIT-Plan-App
765ed9a5dccc1cc134b65ccabe93fc132baeb2ea
[ "MIT" ]
null
null
null
import unittest import qt import slicer import EditorLib from EditorLib.EditUtil import EditUtil class ThresholdThreading(unittest.TestCase): def setUp(self): pass def delayDisplay(self,message,msec=1000): """This utility method displays a small dialog and waits. This does two things: 1) it lets the ...
28.681319
126
0.696743
c7eaaa46a427bf22fafd87c5106762d9114f29d3
807
py
Python
api/tests/integration/tests/substructure/sub_components.py
f1nzer/Indigo
59efbd0be0b42f449f706c3a3c8d094e483e5ef4
[ "Apache-2.0" ]
null
null
null
api/tests/integration/tests/substructure/sub_components.py
f1nzer/Indigo
59efbd0be0b42f449f706c3a3c8d094e483e5ef4
[ "Apache-2.0" ]
null
null
null
api/tests/integration/tests/substructure/sub_components.py
f1nzer/Indigo
59efbd0be0b42f449f706c3a3c8d094e483e5ef4
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.append( os.path.normpath( os.path.join(os.path.abspath(__file__), "..", "..", "..", "common") ) ) from env_indigo import * indigo = Indigo() smiles = [ "Cl.C1CCCCC1", "Cl.C1=CC=CC=C1", "Cl.c1ccccc1", "Clc1ccccc1", "ClC1=CC=CC=C1", "ClC1CCC=CC1", ...
23.057143
75
0.527881
87a4c4c40d9d8d74b94a40251c85bf34b8d67eb6
2,065
py
Python
Num-15.py
SESCNCFUARTYOM/robot
7d3680dee3c7f9de7edf43300749bbf2bf3bbca2
[ "MIT" ]
null
null
null
Num-15.py
SESCNCFUARTYOM/robot
7d3680dee3c7f9de7edf43300749bbf2bf3bbca2
[ "MIT" ]
null
null
null
Num-15.py
SESCNCFUARTYOM/robot
7d3680dee3c7f9de7edf43300749bbf2bf3bbca2
[ "MIT" ]
null
null
null
XAXIS = "ABCDEFGH" YAXIS = "12345678" FORBIDDEN = { "A2": ["right"], "B2": ["left"], "B6": ["up"], "B7": ["down"], "C5": ["up"], "C6": ["down"], "D4": ["up"], "D5": ["down"], "D7": ["up"], "D8": ["down"], "E2": ["up"], "E3": ["down"], "E8": ["right"], "F8":...
19.855769
53
0.489588
3bbae437ccd4ccca7700b5f17d149941e66aa52e
1,741
py
Python
scripts/run_submission.py
edervishaj/spotify-recsys-challenge
4077201ac7e4ed9da433bd10a92c183614182437
[ "Apache-2.0" ]
3
2018-10-12T20:19:57.000Z
2019-12-11T01:11:38.000Z
scripts/run_submission.py
kiminh/spotify-recsys-challenge
5e7844a77ce3c26658400f161d2d74d682f30e69
[ "Apache-2.0" ]
null
null
null
scripts/run_submission.py
kiminh/spotify-recsys-challenge
5e7844a77ce3c26658400f161d2d74d682f30e69
[ "Apache-2.0" ]
4
2018-10-27T20:30:18.000Z
2020-10-14T07:43:27.000Z
from scipy import sparse from boosts.hole_boost import HoleBoost from boosts.tail_boost import TailBoost from boosts.album_boost import AlbumBoost from boosts.match_boost import MatchBoost from utils.post_processing import * from utils.submitter import Submitter from utils.pre_processing import * def submission(boost...
32.240741
88
0.64618
390b8934d6f2031e8884266394456ba20dde1416
71,735
py
Python
src/sentry/south_migrations/0300_auto__add_processingissue__add_unique_processingissue_project_checksum.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
null
null
null
src/sentry/south_migrations/0300_auto__add_processingissue__add_unique_processingissue_project_checksum.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
src/sentry/south_migrations/0300_auto__add_processingissue__add_unique_processingissue_project_checksum.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'ProcessingIssue' db.create_table('sentry_processingissue'...
86.951515
217
0.590089
9abeb3c24676a94c01f9189a752153edc4b139a6
283
py
Python
tests/core/test_random_forest.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
tests/core/test_random_forest.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
tests/core/test_random_forest.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
null
null
null
from hytra.core.probabilitygenerator import RandomForestClassifier def test_rf(): rf = RandomForestClassifier( "/CountClassification", "tests/mergerResolvingTestDataset/tracking.ilp" ) assert len(rf._randomForests) == 1 assert len(rf.selectedFeatures) == 4
28.3
79
0.742049
b3ccfbf3a2af2e2dcf1864046055a1f4972a2ca6
125
py
Python
weapon.py
alykane20/Robot_Dino_Battle
5f78d360ca1dda10cdb91ec1036573442cd95856
[ "MIT" ]
null
null
null
weapon.py
alykane20/Robot_Dino_Battle
5f78d360ca1dda10cdb91ec1036573442cd95856
[ "MIT" ]
null
null
null
weapon.py
alykane20/Robot_Dino_Battle
5f78d360ca1dda10cdb91ec1036573442cd95856
[ "MIT" ]
null
null
null
class Weapon: def __init__(self, name, attack_power): self.name = name self.attack_power = attack_power
20.833333
43
0.656
1b91f336c959812f9d233a68bb80e0c91abbefa1
1,121
py
Python
py/fiberassign/test/fiberassign_test_suite.py
rstaten/fiberassign
d336e7df37380dcb09054acf7a89491701dcec73
[ "BSD-3-Clause" ]
7
2016-04-05T20:43:34.000Z
2021-10-19T06:03:00.000Z
py/fiberassign/test/fiberassign_test_suite.py
rstaten/fiberassign
d336e7df37380dcb09054acf7a89491701dcec73
[ "BSD-3-Clause" ]
323
2015-07-29T15:19:52.000Z
2022-03-29T00:15:57.000Z
py/fiberassign/test/fiberassign_test_suite.py
rstaten/fiberassign
d336e7df37380dcb09054acf7a89491701dcec73
[ "BSD-3-Clause" ]
10
2015-04-10T14:16:15.000Z
2021-05-10T23:14:03.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ fiberassign.test.fiberassign_test_suite =================================================== Used to initialize the unit test framework via ``python setup.py test``. """ from __future__ import absolute_import, division, print_fu...
28.025
85
0.685103
354032c04d8c4e4e17549e52aceb15e2962c4ddf
17,026
py
Python
scibert/helper.py
se4en/scibert
c74ed633699727ce84851ac2787b009b24c84586
[ "Apache-2.0" ]
null
null
null
scibert/helper.py
se4en/scibert
c74ed633699727ce84851ac2787b009b24c84586
[ "Apache-2.0" ]
null
null
null
scibert/helper.py
se4en/scibert
c74ed633699727ce84851ac2787b009b24c84586
[ "Apache-2.0" ]
null
null
null
""" Module including helper functions for feature extraction and other stuff including metrics, jsonhandler, etc""" import json from collections import Counter import logging import re from typing import List, Dict import numpy as np import string from scibert.resources.lexicons import ALL_CONCEPT_LEXICONS, ALL_ACTIO...
43.65641
157
0.560496
8768a445ac1144dc2b739b964d8eade14f0e414b
662
py
Python
Binary Tree/findMaximumBST.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
8
2019-01-17T23:45:41.000Z
2021-07-08T02:06:16.000Z
Binary Tree/findMaximumBST.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
null
null
null
Binary Tree/findMaximumBST.py
hoaiphun96/Leet-Code-Problems
bc4651fa9c8eae261bb280bb25b7537722d3b1f9
[ "MIT", "Unlicense" ]
9
2018-04-27T04:50:06.000Z
2022-03-03T14:17:13.000Z
""" Given a Binary Search Tree , return the node with the maximum data. Example: 4 / \ 2 8 / \ 5 10 Output ==> 10 (TreeNode) Note: Each node of BinaryTree is a TreeNode. Check out Use Me section to find out it's structure. """ class BinaryTree: def __init__(self, root_node=...
20.060606
61
0.595166
45504b112822e9f169688bf2013fc404b8962870
932
py
Python
froide/foirequest/urls/make_request_urls.py
OpendataCH/froide
8136bac0d8caa56f9cfc7ba15480be987280e55d
[ "MIT" ]
null
null
null
froide/foirequest/urls/make_request_urls.py
OpendataCH/froide
8136bac0d8caa56f9cfc7ba15480be987280e55d
[ "MIT" ]
null
null
null
froide/foirequest/urls/make_request_urls.py
OpendataCH/froide
8136bac0d8caa56f9cfc7ba15480be987280e55d
[ "MIT" ]
null
null
null
from django.urls import path, re_path from django.utils.translation import pgettext_lazy from ..views import DraftRequestView, MakeRequestView, RequestSentView urlpatterns = [ # Translators: part in /request/to/public-body-slug URL path("", MakeRequestView.as_view(), name="foirequest-make_request"), re_pa...
31.066667
78
0.638412
6b7fc4d23eeba155b97fd4c3cdc2dbc4173cd283
15,400
py
Python
docs/sphinxext/sphinxarg/ext.py
aarontuor/cpp
97f975b9a3b816bc59b912237daab7118667e01e
[ "MIT" ]
117
2017-12-19T08:14:05.000Z
2022-03-28T11:22:14.000Z
docs/sphinxext/sphinxarg/ext.py
aarontuor/cpp
97f975b9a3b816bc59b912237daab7118667e01e
[ "MIT" ]
7
2018-04-12T06:50:18.000Z
2021-06-30T21:05:36.000Z
docs/sphinxext/sphinxarg/ext.py
aarontuor/cpp
97f975b9a3b816bc59b912237daab7118667e01e
[ "MIT" ]
44
2018-01-11T06:59:28.000Z
2022-03-23T10:55:50.000Z
from argparse import ArgumentParser import os from docutils import nodes from docutils.statemachine import StringList from docutils.parsers.rst.directives import flag, unchanged from sphinx.util.compat import Directive from sphinx.util.nodes import nested_parse_with_titles from sphinxarg.parser import parse_parser, p...
41.397849
97
0.561104
fbeef5c219837835f8797ef42b441aecf6a7dcca
1,099
py
Python
server/djangoapp/urls.py
gsvr30/CloudAppDevelopment_Capstone
138c1b8ea35c5af5bcdd1b15a3154ef01585bbe6
[ "Apache-2.0" ]
null
null
null
server/djangoapp/urls.py
gsvr30/CloudAppDevelopment_Capstone
138c1b8ea35c5af5bcdd1b15a3154ef01585bbe6
[ "Apache-2.0" ]
null
null
null
server/djangoapp/urls.py
gsvr30/CloudAppDevelopment_Capstone
138c1b8ea35c5af5bcdd1b15a3154ef01585bbe6
[ "Apache-2.0" ]
null
null
null
from django.urls import path from django.conf.urls.static import static from django.conf import settings from . import views app_name = 'djangoapp' urlpatterns = [ # route is a string contains a URL pattern # view refers to the view function # name the URL # path for about view path(route='about/'...
37.896552
86
0.705187
8ef7687a5bc19dd8d428ca95f8472d1519a10cb7
1,280
py
Python
setup.py
lsetiawan/ooipy
23c23e84be0a05a74ed69d7b79dcc3429c4c9fc4
[ "MIT" ]
null
null
null
setup.py
lsetiawan/ooipy
23c23e84be0a05a74ed69d7b79dcc3429c4c9fc4
[ "MIT" ]
null
null
null
setup.py
lsetiawan/ooipy
23c23e84be0a05a74ed69d7b79dcc3429c4c9fc4
[ "MIT" ]
null
null
null
from __future__ import ( absolute_import, division, print_function, unicode_literals, ) import os import setuptools import versioneer here = os.path.abspath(os.path.dirname(__file__)) # Dependencies. with open("requirements.txt") as f: requirements = f.readlines() install_requires = [t.strip() fo...
29.090909
106
0.682031
44347a0ff86da519089e9b90b89dc261781852e2
1,661
py
Python
neseg/seg.py
myosmatrix/neseg
de3215534e940ebb41b543eb407de43c093548a8
[ "MIT" ]
null
null
null
neseg/seg.py
myosmatrix/neseg
de3215534e940ebb41b543eb407de43c093548a8
[ "MIT" ]
null
null
null
neseg/seg.py
myosmatrix/neseg
de3215534e940ebb41b543eb407de43c093548a8
[ "MIT" ]
null
null
null
import sys import os import xlrd import ahocorasick import neseg.lib.FMM as fmm import neseg.lib.RMM as rmm NESEG_VERSION='0.7' def readCSV2List(filePath): try: file=open(filePath,'r',encoding="utf-8") context = file.read() list_result=context.split("\n")# 以回车符\n分割成单独的行 ...
27.683333
82
0.627935
b0a45b123b86ae01c541c049f1d26906acda7d82
3,020
py
Python
assistant/filemanager/tests.py
personal-assisntant-2/personal-assistant
5dfc2ba100285cfa9b50058ecd1212912b80b5b4
[ "MIT" ]
null
null
null
assistant/filemanager/tests.py
personal-assisntant-2/personal-assistant
5dfc2ba100285cfa9b50058ecd1212912b80b5b4
[ "MIT" ]
22
2021-11-03T05:47:28.000Z
2021-11-08T10:19:46.000Z
assistant/filemanager/tests.py
personal-assisntant-2/personal-assistant
5dfc2ba100285cfa9b50058ecd1212912b80b5b4
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User from django.core.files.base import ContentFile from django.core.files.uploadedfile import SimpleUploadedFile from django.contrib import auth from django.test import TestCase from django.urls import reverse from .models import UploadedFiles class BaseFileManagerTestCase(Test...
29.320388
88
0.653642