hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
2c8f9cd8c353d266e205c8f9c1f417a0f3e49d42
438
py
Python
HuaWeiOJ Algorithms/What-I-had/countstr.py
zipingguo/HuaWeiOJAlgorithm
3eb535dd047b85d263b0d5db95e592dde9fe4878
[ "MIT" ]
1
2019-06-03T13:00:49.000Z
2019-06-03T13:00:49.000Z
HuaWeiOJ Algorithms/What-I-had/countstr.py
skylinebin/AlgorithmPractice
3eb535dd047b85d263b0d5db95e592dde9fe4878
[ "MIT" ]
1
2018-07-24T08:43:15.000Z
2018-07-24T08:43:15.000Z
HuaWeiOJ Algorithms/What-I-had/countstr.py
skylinebin/AlgorithmPractice
3eb535dd047b85d263b0d5db95e592dde9fe4878
[ "MIT" ]
null
null
null
def countstrnum(gets): list =[0,0,0,0] for w in gets: if (w>='a' and w<='z')|(w>='A'and w<='Z'): list[0]+=1 elif w ==' ': list[1]+=1 elif w>='0' and w<='9': list[2]+=1 else: list[3]+=1 return list def main(): getstr = r...
17.52
50
0.436073
0
0
0
0
0
0
0
0
31
0.070776
2c8faf8eecad5b6ac0b19aefead4deb655a3a6fb
16,629
py
Python
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
100
2019-05-21T21:26:19.000Z
2022-03-27T18:22:27.000Z
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
6
2019-07-30T03:08:44.000Z
2021-05-07T16:49:55.000Z
latent_rationale/snli/util.py
bastings/interpretable_neural_predictions
fef61833bd22205dc2d4f77e2c0ed3f40cbe8ea6
[ "MIT" ]
20
2019-06-19T18:36:41.000Z
2022-01-08T12:59:39.000Z
import os from argparse import ArgumentParser import torch from hashlib import md5 import numpy as np import glob import re from torch.nn import functional as F from latent_rationale.snli.constants import UNK_TOKEN, PAD_TOKEN, INIT_TOKEN from latent_rationale.snli.plotting import plot_heatmap from latent_rationale.snl...
35.76129
81
0.561609
0
0
0
0
0
0
0
0
3,237
0.19466
2c90b5d9ca4e30a7536eb52aa5d3f546ab0a79d4
1,709
py
Python
app.py
jainanchit51/quora-questions
bb43416a08d03fd92be4da68a125efcff6b84bb7
[ "Apache-2.0" ]
null
null
null
app.py
jainanchit51/quora-questions
bb43416a08d03fd92be4da68a125efcff6b84bb7
[ "Apache-2.0" ]
null
null
null
app.py
jainanchit51/quora-questions
bb43416a08d03fd92be4da68a125efcff6b84bb7
[ "Apache-2.0" ]
null
null
null
import os import sys import logging from flask import Flask, request, jsonify, send_file from flask_cors import CORS import pandas as pd import numpy as np import tensorflow as tf import tensorflow_hub as hub import numpy as np import os import pandas as pd import re import keras.layers as layers from keras.models impo...
20.590361
73
0.710942
0
0
0
0
716
0.418958
0
0
514
0.300761
2c90d43bd4573142aef667226910752d64197626
1,437
py
Python
robotframework_rp_tools/visitor.py
Shumodan/robotframework_tools
f2daac5ef54027d1014c9036dfbd167bf2d1279c
[ "MIT" ]
1
2020-02-12T13:07:56.000Z
2020-02-12T13:07:56.000Z
robotframework_rp_tools/visitor.py
Shumodan/robotframework_tools
f2daac5ef54027d1014c9036dfbd167bf2d1279c
[ "MIT" ]
null
null
null
robotframework_rp_tools/visitor.py
Shumodan/robotframework_tools
f2daac5ef54027d1014c9036dfbd167bf2d1279c
[ "MIT" ]
null
null
null
import logging from robot.model import SuiteVisitor from .visitor_model import Keyword, Test, Suite, Message from .service import RobotService from .variables import ConfigurationVariables logging.getLogger(name='reportportal_client').setLevel(logging.WARNING) logging.getLogger(name='urllib3').setLevel(lo...
28.74
72
0.661795
1,095
0.762004
0
0
0
0
0
0
30
0.020877
2c9220dbfde66eef7cdc24410685f09d9949bf06
5,357
py
Python
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
1
2018-09-10T01:35:08.000Z
2018-09-10T01:35:08.000Z
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
null
null
null
lc_functions.py
mrawls/kepler-makelc
72a929b04d1c71bb5e854b96a9901544f681ed86
[ "MIT" ]
null
null
null
import numpy as np from pyraf import iraf from pyraf.iraf import kepler ''' Useful functions for Kepler light curve processing Use this with the program 'makelc.py' Originally by Jean McKeever Edited and improved by Meredith Rawls ''' # calculate orbital phase # times must be a list of observation times in the same un...
36.691781
82
0.682472
0
0
0
0
0
0
0
0
2,645
0.493746
2c925b2706415b690a9c401ac995120ba9c0bb9d
220
py
Python
rdfs/__init__.py
Caterpillar3211/respect_your_dfs
c7fa9fc187aa4bd7fdcd7b58b79981f351adbd71
[ "MIT" ]
1
2019-06-19T20:11:12.000Z
2019-06-19T20:11:12.000Z
rdfs/__init__.py
Caterpillar3211/respect_your_dfs
c7fa9fc187aa4bd7fdcd7b58b79981f351adbd71
[ "MIT" ]
null
null
null
rdfs/__init__.py
Caterpillar3211/respect_your_dfs
c7fa9fc187aa4bd7fdcd7b58b79981f351adbd71
[ "MIT" ]
null
null
null
from .helpers import load_dataset from .core import Merger from .core import CategoryEncoder from .core import Imputer from .core import AttributeAdder from .core import Pipesystem from .core import OptimizedPipesystem
24.444444
37
0.836364
0
0
0
0
0
0
0
0
0
0
2c93c3807680923e216b02227b5a6105e6428b73
17,649
py
Python
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
src/beacon_api/utils/polyvalent_functions.py
jrambla/beacon-2.x
f6c8bbecd183471d62c01e040d6e0b3c9ef8f448
[ "Apache-2.0" ]
null
null
null
""" Functions used by different endopoints. - To do basic operations - To parse the filters request - To manage access resolution """ import ast import logging import yaml import requests from pathlib import Path from ..api.exceptions import BeaconBadRequest, BeaconServerError, BeaconForbidden, BeaconUnauthorised...
49.025
209
0.570854
0
0
0
0
0
0
6,122
0.346875
8,014
0.454077
2c944c74e0e3bc492036f61816aa58854af0c891
219
py
Python
eworld/apps/mytest/views.py
wwfyde/Asa
d61230479d72e53b49e4b2a5c1589514a4b34b71
[ "MIT" ]
null
null
null
eworld/apps/mytest/views.py
wwfyde/Asa
d61230479d72e53b49e4b2a5c1589514a4b34b71
[ "MIT" ]
null
null
null
eworld/apps/mytest/views.py
wwfyde/Asa
d61230479d72e53b49e4b2a5c1589514a4b34b71
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index(request): return HttpResponse('hello, 世界!') def my_test(request): return HttpResponse('my_test!')
18.25
37
0.748858
0
0
0
0
0
0
0
0
51
0.2287
2c94bd3786b5a0a64f466b5fdfd28ee49d03d138
990
py
Python
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
17
2020-01-14T06:25:10.000Z
2022-01-25T18:02:37.000Z
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
null
null
null
02_Double/double_aws-samples_1_v1.py
Machine-Learning-Labs/DeepRacerRewardFunctionsCollection
f6addf4654de90f9d1669fd5de67331add93ab2f
[ "MIT" ]
5
2020-05-30T18:49:18.000Z
2021-09-03T19:38:39.000Z
''' @author: AWS Samples @Link: https://docs.aws.amazon.com/deepracer/latest/developerguide/what-is-deepracer.html @License: Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. ''' def reward_function(params): ''' Example of rewarding the agent to follow the track center line ...
30.9375
93
0.680808
0
0
0
0
0
0
0
0
527
0.532323
2c95e40e7220fe3c7db4c0c8a471b2078f613932
14,498
py
Python
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
3
2019-09-05T16:57:15.000Z
2019-10-01T19:56:58.000Z
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
22
2019-09-03T13:23:37.000Z
2019-10-03T20:32:48.000Z
parsons/github/github.py
cmc333333/parsons
50804a3627117797570f1e9233c9bbad583f7831
[ "Apache-2.0" ]
2
2019-09-01T18:30:10.000Z
2019-10-03T20:07:46.000Z
import logging from functools import partial, wraps import petl import requests from github import Github as PyGithub from github.GithubException import UnknownObjectException from parsons.etl.table import Table from parsons.utilities import check_env, files logger = logging.getLogger(__name__) def _wrap_method(de...
34.193396
100
0.588702
13,134
0.905918
0
0
13,408
0.924817
0
0
8,641
0.596013
2c9a5e861f23480fac50f9be5af7a2dbcb98e3ce
883
py
Python
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
3
2015-01-05T14:09:25.000Z
2018-03-21T19:33:15.000Z
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
null
null
null
subsevenzip/__init__.py
dsvensson/subsevenzip-python
078c3876e5fd1ffd84e57ae992a142d247a5832f
[ "0BSD" ]
null
null
null
# Copyright (c) 2015, Daniel Svensson <dsvensson@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND T...
51.941176
79
0.770102
0
0
0
0
0
0
0
0
779
0.88222
2c9aecffdd6b777c17830740cf390cf1fac9b755
2,815
py
Python
Tensorflow/tensorflow_random_seed.py
cuevas1208/BlogEntries
efaa4a21f0cbe8630dcdd856d0f9202a038f3022
[ "MIT" ]
null
null
null
Tensorflow/tensorflow_random_seed.py
cuevas1208/BlogEntries
efaa4a21f0cbe8630dcdd856d0f9202a038f3022
[ "MIT" ]
null
null
null
Tensorflow/tensorflow_random_seed.py
cuevas1208/BlogEntries
efaa4a21f0cbe8630dcdd856d0f9202a038f3022
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tensorflow random seed """ import tensorflow as tf import numpy as np mu = 0 sigma = 0.3 # variables with/without function seed fc1_W = tf.Variable(tf.truncated_normal(shape=(1, 2), mean=mu, stddev=sigma, seed=1)) fc2_W = tf.Variable(tf.truncated_normal(shape=(1, 2), mean=mu, stddev=sigma)...
42.014925
121
0.666785
0
0
0
0
0
0
0
0
811
0.288099
2c9c0d396117796db353f3a441a592194e83f2a4
291
py
Python
apps/registro_hora_extra/models.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
1
2020-11-08T16:44:20.000Z
2020-11-08T16:44:20.000Z
apps/registro_hora_extra/models.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
null
null
null
apps/registro_hora_extra/models.py
MatheusMullerGit/app_empresas
67e7a38bff51b24aa65bdedd421459f37e27a2b2
[ "MIT" ]
null
null
null
from django.db import models from apps.funcionarios.models import Funcionario class RegistroHoraExtra(models.Model): motivo = models.CharField(max_length=100) funcionario = models.ForeignKey(Funcionario, on_delete=models.PROTECT) def __str__(self): return self.motivo
26.454545
74
0.769759
210
0.721649
0
0
0
0
0
0
0
0
2c9cde5b74aab37c4a5c3f8526d53c2ae5e2a58f
11
py
Python
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
conv_net.py
BoltzmannZhaung/Fashion-Boltzmann
fb83f6da564ded93e3577af561ef2950e043e59b
[ "MIT" ]
null
null
null
Ongoing....
11
11
0.636364
0
0
0
0
0
0
0
0
0
0
2c9cfa04dec4051e0276862ca37caf6daae18af1
3,716
py
Python
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
thirdparty/gd2c/gd2c/loader.py
ppiecuch/godot
ff2098b324b814a0d1bd9d5722aa871fc5214fab
[ "MIT", "Apache-2.0", "CC-BY-4.0", "Unlicense" ]
null
null
null
from __future__ import annotations from pathlib import Path from gd2c.gdscriptclass import GDScriptClass, GDScriptClassConstant, GDScriptFunctionConstant, GDScriptFunction, GDScriptGlobal, GDScriptMember, GDScriptFunctionParameter from gd2c.variant import VariantType from gd2c.bytecode import extract from typing import...
43.209302
170
0.626749
2,968
0.798708
200
0.053821
0
0
0
0
415
0.111679
2c9e2ce825149494c4555d540152aae13598ea62
1,301
py
Python
deepppl/tests/target_py/kmeans.py
sfantao/deepppl
3091c342814744d622eda6f7a185085d420a152b
[ "Apache-2.0" ]
18
2018-06-07T17:41:30.000Z
2021-03-19T23:31:14.000Z
deepppl/tests/target_py/kmeans.py
sfantao/deepppl
3091c342814744d622eda6f7a185085d420a152b
[ "Apache-2.0" ]
19
2018-06-11T17:42:03.000Z
2020-10-13T17:19:11.000Z
deepppl/tests/target_py/kmeans.py
sfantao/deepppl
3091c342814744d622eda6f7a185085d420a152b
[ "Apache-2.0" ]
7
2018-06-08T20:50:24.000Z
2020-10-12T22:00:09.000Z
import torch from torch import tensor, rand import pyro import torch.distributions.constraints as constraints import pyro.distributions as dist def transformed_data(D=None, K=None, N=None, y=None): neg_log_K = -log(K) return {'neg_log_K': neg_log_K} def model(D=None, K=None, N=None, y=None, transformed_data...
34.236842
75
0.571868
0
0
0
0
0
0
0
0
81
0.06226
2c9ffef9867b37cc6ff8be2016f65cefeb7bd057
5,885
py
Python
Siberia/plug/plugin_adminka.py
spouk/Siberia
0b7dfe2271b285eb038a09ef954ed8c605cbd2d2
[ "MIT" ]
null
null
null
Siberia/plug/plugin_adminka.py
spouk/Siberia
0b7dfe2271b285eb038a09ef954ed8c605cbd2d2
[ "MIT" ]
null
null
null
Siberia/plug/plugin_adminka.py
spouk/Siberia
0b7dfe2271b285eb038a09ef954ed8c605cbd2d2
[ "MIT" ]
null
null
null
#!/usr/local/bin/python __author__ = 'spouk' __all__ = ('AdminkaPlugin',) __version__ = 0.1 __name__ = 'AdminkaPLugin for Siberia' __middleware__ = True #--------------------------------------------------------------------------- # global imports #----------------------------------------------------------------------...
38.464052
121
0.584367
5,550
0.87886
1,127
0.178464
1,091
0.172763
235
0.037213
2,368
0.37498
2ca1f66514af862a2395c2a72cc563dfe7628eb9
2,576
py
Python
services/jobs/tests/api/base.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
6
2018-10-02T15:04:11.000Z
2019-12-13T11:36:49.000Z
services/jobs/tests/api/base.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
54
2019-01-09T17:14:29.000Z
2020-10-02T11:39:38.000Z
services/jobs/tests/api/base.py
Open-EO/openeo-openshift-driver
822dbd3ccee25180cc48efd2f891504b6b5edc14
[ "Apache-2.0" ]
6
2018-07-03T15:58:05.000Z
2019-07-03T07:20:46.000Z
"""Provide base test class.""" from typing import Any, Callable from nameko_sqlalchemy.database_session import Session from jobs.dependencies.dag_handler import DagHandler from jobs.service import JobService from .exceptions import get_missing_resource_service_exception, get_not_authorized_service_exception from ..ut...
42.933333
102
0.689829
2,170
0.842391
0
0
0
0
0
0
872
0.338509
2ca27a57f6a2ef5f5d6134f2ea7bd3a0c622653d
99
py
Python
bloom/audio/__init__.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
9
2020-11-22T03:04:52.000Z
2022-01-17T15:36:25.000Z
bloom/seq/__init__.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
null
null
null
bloom/seq/__init__.py
thomasrogers03/bloom
5d49c18a241216aca354aa79971940691e6f33b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Thomas Rogers # SPDX-License-Identifier: Apache-2.0 from .manager import Manager
19.8
37
0.787879
0
0
0
0
0
0
0
0
67
0.676768
2ca3388b5b4f8f447dfd365008e2dd96e0c723ba
1,919
py
Python
egi/models.py
gtaylor/evennia-game-directory
f7a4d0731503de540026dc0fe6409a7c24ad676e
[ "BSD-3-Clause" ]
1
2019-02-06T10:58:11.000Z
2019-02-06T10:58:11.000Z
egi/models.py
gtaylor/evennia-game-index
f7a4d0731503de540026dc0fe6409a7c24ad676e
[ "BSD-3-Clause" ]
4
2017-10-24T21:47:53.000Z
2019-09-22T13:12:57.000Z
egi/models.py
gtaylor/evennia-game-directory
f7a4d0731503de540026dc0fe6409a7c24ad676e
[ "BSD-3-Clause" ]
2
2017-02-09T16:25:27.000Z
2017-10-24T21:40:42.000Z
import datetime from google.appengine.ext import ndb class GameListing(ndb.Model): # Game listing stuff game_name = ndb.StringProperty(required=True) game_status = ndb.StringProperty(required=True) game_website = ndb.StringProperty() listing_contact = ndb.StringProperty(required=True) short_d...
37.627451
95
0.706097
1,862
0.970297
0
0
790
0.411673
0
0
417
0.217301
2ca4292d50c5517e99b0982bf8f944c2f58adef3
2,267
py
Python
stylelens/dataset/df/generate_category_classifier_dataset.py
williamcameron/bl-magi
a35809489c15df25efc9c322166afaee7df3e192
[ "Apache-2.0" ]
null
null
null
stylelens/dataset/df/generate_category_classifier_dataset.py
williamcameron/bl-magi
a35809489c15df25efc9c322166afaee7df3e192
[ "Apache-2.0" ]
null
null
null
stylelens/dataset/df/generate_category_classifier_dataset.py
williamcameron/bl-magi
a35809489c15df25efc9c322166afaee7df3e192
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function from stylelens_dataset.categories import Categories from stylelens_dataset.objects import Objects from pprint import pprint import os import urllib.request as urllib # create an instance of the API class category_api = Categories() object_api = Objects() def download_image_from_u...
25.47191
100
0.603
0
0
0
0
0
0
0
0
239
0.105426
2ca44cd0b909b867cabf4f36b32c482801cc16f1
8,429
py
Python
keras/dtensor/lazy_variable.py
englert-m/keras
7007cd0fd548032f1bb2c23b1defa4812628baec
[ "Apache-2.0" ]
null
null
null
keras/dtensor/lazy_variable.py
englert-m/keras
7007cd0fd548032f1bb2c23b1defa4812628baec
[ "Apache-2.0" ]
null
null
null
keras/dtensor/lazy_variable.py
englert-m/keras
7007cd0fd548032f1bb2c23b1defa4812628baec
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 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...
41.522167
111
0.678965
4,972
0.589868
107
0.012694
137
0.016253
0
0
2,873
0.340847
2ca4ea63da0f23de067acef30ee7375c05e958de
783
py
Python
src/ctc/db/schemas/protocol_schemas/fourbyte_schema_defs.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/db/schemas/protocol_schemas/fourbyte_schema_defs.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/db/schemas/protocol_schemas/fourbyte_schema_defs.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
from __future__ import annotations import toolsql fourbyte_schema: toolsql.DBSchema = { 'tables': { 'function_signatures': { 'columns': [ {'name': 'id', 'primary': True}, {'name': 'created_at'}, {'name': 'text_signature', 'index': True}, ...
27.964286
58
0.427842
0
0
0
0
0
0
0
0
299
0.381865
2ca5cbc4f5357898528acdf248026bc993f249fb
2,493
py
Python
txaws/tests/test_util.py
vargas/txaws
b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6
[ "MIT" ]
1
2021-12-17T00:03:24.000Z
2021-12-17T00:03:24.000Z
txaws/tests/test_util.py
vargas/txaws
b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6
[ "MIT" ]
null
null
null
txaws/tests/test_util.py
vargas/txaws
b75d00e042c6e7e1609c05e01ee54e1c72b1eaf6
[ "MIT" ]
1
2021-12-17T00:06:41.000Z
2021-12-17T00:06:41.000Z
from urllib.parse import urlparse import binascii from twisted.trial.unittest import TestCase from txaws.util import hmac_sha1, iso8601time, parse class MiscellaneousTestCase(TestCase): def test_hmac_sha1(self): cases = [ (binascii.unhexlify(b"0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"), ...
33.24
77
0.579222
2,338
0.937826
0
0
0
0
0
0
1,038
0.416366
2ca6030084049893d40df687b5267b7ac8dd9230
7,674
py
Python
vgame/theater.py
cilame/vgame
9b7076256500137fe5c95426798007734dd613a2
[ "MIT" ]
null
null
null
vgame/theater.py
cilame/vgame
9b7076256500137fe5c95426798007734dd613a2
[ "MIT" ]
null
null
null
vgame/theater.py
cilame/vgame
9b7076256500137fe5c95426798007734dd613a2
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * from .actor import Actor from .actor import Player, Wall, Enemy, Bullet, NPC, Anime, Map from .actor import Menu, Background, Button from .actor import Delayer import vgame class Camera: ''' 主要负责处理镜头的处理,看看后续能够扩展出多少的功能。 ''' DEBUG = False def __init__(sel...
36.717703
100
0.600078
8,461
0.974545
0
0
839
0.096637
0
0
1,912
0.220226
2ca6f197d99db0e7bed05280ad0f94868eb2b0f8
844
py
Python
src/utils/queries.py
stivenramireza/real-estate-api
b6de176bed5612ce2ad874f622d4675fc4b6d5a5
[ "MIT" ]
null
null
null
src/utils/queries.py
stivenramireza/real-estate-api
b6de176bed5612ce2ad874f622d4675fc4b6d5a5
[ "MIT" ]
2
2022-03-22T17:27:19.000Z
2022-03-22T18:29:14.000Z
src/utils/queries.py
stivenramireza/real-estate-api
b6de176bed5612ce2ad874f622d4675fc4b6d5a5
[ "MIT" ]
null
null
null
PROPERTIES = """ SELECT p.id, p.address, p.city, s.name AS status, p.price, p.description, p.year FROM property p INNER JOIN ( SELECT sh.property_id, sh.status_id, sh.update_date FROM status_history sh INNER JOIN ( ...
26.375
75
0.575829
0
0
0
0
0
0
0
0
780
0.924171
2ca906d948f8bdc4ff1f5129d6cb152946ac17af
60,654
py
Python
third_party/chromite/lib/auto_updater.py
zipated/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
third_party/chromite/lib/auto_updater.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
third_party/chromite/lib/auto_updater.py
cangulcan/src
2b8388091c71e442910a21ada3d97ae8bc1845d3
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# -*- coding: utf-8 -*- # Copyright 2016 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Library containing functions to execute auto-update on a remote device. TODO(xixuan): Make this lib support other update logic...
40.328457
80
0.685099
56,340
0.928875
0
0
1,555
0.025637
0
0
27,227
0.44889
2caaeb7931baabb2f2a4e505483d42162334c020
1,368
py
Python
d2lbook/common.py
dltech-xyz/d2l-book
5f5279708f029c9724f4b258a1a26b6db2317532
[ "Apache-2.0" ]
1
2021-01-02T03:34:04.000Z
2021-01-02T03:34:04.000Z
d2lbook/common.py
szha/d2l-book
5f5279708f029c9724f4b258a1a26b6db2317532
[ "Apache-2.0" ]
null
null
null
d2lbook/common.py
szha/d2l-book
5f5279708f029c9724f4b258a1a26b6db2317532
[ "Apache-2.0" ]
1
2020-09-15T05:57:12.000Z
2020-09-15T05:57:12.000Z
import re from typing import Optional, List, Any, Callable, Tuple # Our special mark in markdown, e.g. :label:`chapter_intro` md_mark_pattern = re.compile(':([-\/\\._\w\d]+):(`[\ \*-\/\\\._\w\d]+`)?') # Same for md_mark_pattern, but for rst files rst_mark_pattern = re.compile(':([-\/\\._\w\d]+):(``[\ \*-\/\\\._\w\d]+`...
33.365854
77
0.597953
0
0
0
0
0
0
0
0
433
0.31652
2cab7ae8cc2711116a7008627d7fc69c47ab979f
4,999
py
Python
emulator/demoEmulator.py
ojotoxy/Processor
8e6e4e8b33b2d3b51b05104089e801f187bb4617
[ "Apache-2.0" ]
1
2021-07-21T03:46:43.000Z
2021-07-21T03:46:43.000Z
emulator/demoEmulator.py
ojotoxy/Processor
8e6e4e8b33b2d3b51b05104089e801f187bb4617
[ "Apache-2.0" ]
null
null
null
emulator/demoEmulator.py
ojotoxy/Processor
8e6e4e8b33b2d3b51b05104089e801f187bb4617
[ "Apache-2.0" ]
1
2021-01-22T07:46:38.000Z
2021-01-22T07:46:38.000Z
#!/usr/bin/env python3 from enum import Enum # This computer will have these memory mapped registers: # 0 = PC # 1 = SP # but I didn't implement them. Only the program counter exists and its not memory mapped class Memory(object): def __init__(self): self.storage = {} def __setitem__(self, addr, v...
29.063953
100
0.605721
222
0.044409
0
0
0
0
0
0
1,203
0.240648
2cab9074e65111400851764c05e26e3e8f87a58f
1,332
py
Python
archive/scripts/make_movie_tfgfx.py
bionicles/neuromax
a53a17a1c033c11ac607a9e28f43b1f906e58aad
[ "MIT" ]
null
null
null
archive/scripts/make_movie_tfgfx.py
bionicles/neuromax
a53a17a1c033c11ac607a9e28f43b1f906e58aad
[ "MIT" ]
null
null
null
archive/scripts/make_movie_tfgfx.py
bionicles/neuromax
a53a17a1c033c11ac607a9e28f43b1f906e58aad
[ "MIT" ]
null
null
null
import tensorflow_graphics as gfx import tensorflow as tf lambertian = gfx.rendering.reflectance.lambertian phong = gfx.rendering.reflectance.phong def make_movie(keyframes, length, save_path): frames_per_keyframe = length / tf.shape(keyframes)[0] frames = interpolate(keyframes, frames_per_keyframe) movi...
29.6
70
0.725976
0
0
0
0
0
0
0
0
83
0.062312
2cac3774024d9e4cfb2af027a48547d41fba7453
4,635
py
Python
sweden_crs_transformations/transformation/_transformer.py
TomasJohansson/sweden_crs_transformations_4python
d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04
[ "MIT" ]
1
2021-10-02T20:05:59.000Z
2021-10-02T20:05:59.000Z
sweden_crs_transformations/transformation/_transformer.py
TomasJohansson/sweden_crs_transformations_4python
d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04
[ "MIT" ]
null
null
null
sweden_crs_transformations/transformation/_transformer.py
TomasJohansson/sweden_crs_transformations_4python
d4c0ae1bab2e0f505f3e6f948c1b31b3bf397f04
[ "MIT" ]
null
null
null
""" | Copyright (c) Tomas Johansson , http://www.programmerare.com | The code in this library is licensed with MIT. | The library is based on the C#.NET library 'sweden_crs_transformations_4net' (https://github.com/TomasJohansson/sweden_crs_transformations_4net) | which in turn is based on 'MightyLittleGeodesy' (https...
52.078652
196
0.783603
3,163
0.682122
0
0
2,530
0.545611
0
0
1,362
0.293724
2cace54cc66cc33d32eb380eadf379d0098d853a
8,842
py
Python
ggshield/config.py
boblefrag/gg-shield
8eef8e02596ca05b9250482d9ea5cafd4435cfa0
[ "MIT" ]
null
null
null
ggshield/config.py
boblefrag/gg-shield
8eef8e02596ca05b9250482d9ea5cafd4435cfa0
[ "MIT" ]
null
null
null
ggshield/config.py
boblefrag/gg-shield
8eef8e02596ca05b9250482d9ea5cafd4435cfa0
[ "MIT" ]
null
null
null
import copy import json import os from typing import Any, Dict, List, NamedTuple import click import yaml from dotenv import load_dotenv from pygitguardian.models import PolicyBreak from .git_shell import get_git_root, is_git_dir from .text_utils import display_error CONTEXT_SETTINGS = dict(help_option_names=["-h",...
33.240602
87
0.577358
7,312
0.826962
0
0
0
0
0
0
1,503
0.169984
2cad9f866ea7aa26c12ef287f5ee514f9321fee4
1,444
py
Python
pynetest/lib/pyne_test_blocks.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
4
2018-08-10T20:05:10.000Z
2019-07-24T15:29:32.000Z
pynetest/lib/pyne_test_blocks.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
6
2018-09-25T20:15:51.000Z
2021-12-22T17:09:52.000Z
pynetest/lib/pyne_test_blocks.py
Avvir/pyne
864885a8fb632b72c00af164f150b1daa38a346f
[ "MIT" ]
null
null
null
class BehaviorBlock: def __init__(self, parent, method, description): self.method = method self.parent = parent self.description = description class Context(object): def __init__(self, parent): if parent is not None: for attr in dir(parent.context): ...
32.088889
121
0.665512
1,428
0.98892
0
0
0
0
0
0
27
0.018698
2cae6969a37d3bd9a688ae9ce4914b584b626699
1,166
py
Python
code/Metricsource.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
code/Metricsource.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
code/Metricsource.py
t1191578/moniteredit
48465d7cbee2452392720a26320d8753f8807bc9
[ "Apache-2.0" ]
null
null
null
import requests from multipledispatch import dispatch class Source: def __init__(self,url,query="query?query="): self.url = url self.query= query def url(self): #form url pass @dispatch(str) def inputoutput(self, metricreq): Aurl = self.url+self.query+metricreq...
29.897436
69
0.587479
1,002
0.859348
0
0
830
0.711835
0
0
222
0.190395
2caedda016fdd7a5fa90f4f8076880daa0ea5858
2,677
py
Python
applications/zcomx/modules/mysql.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
applications/zcomx/modules/mysql.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
applications/zcomx/modules/mysql.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Classes for handling mysql. """ import os class LocalMySQL(object): """Class representing the local MySQL connection parameters.""" def __init__( self, request=None, database=None, user=None, password=None, ...
24.336364
72
0.513261
2,003
0.748226
0
0
0
0
0
0
892
0.333209
2cb1bb53ea364d5eed2d8ae779c2ec9f50b57788
966
py
Python
mygrations/formats/mysql/file_reader/parsers/index_primary.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
10
2018-04-09T08:39:42.000Z
2022-03-14T15:36:05.000Z
mygrations/formats/mysql/file_reader/parsers/index_primary.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
14
2018-05-02T11:14:08.000Z
2022-01-15T18:48:54.000Z
mygrations/formats/mysql/file_reader/parsers/index_primary.py
cmancone/mygrations
30d1d568ca7d6c38dbc5211834dd2d04c0bcf078
[ "MIT" ]
5
2018-07-18T02:20:48.000Z
2022-02-19T09:32:07.000Z
from mygrations.core.parse.parser import parser from mygrations.formats.mysql.definitions.index import index class index_primary(parser, index): _index_type = 'primary' has_comma = False # PRIMARY KEY (`id`), rules = [{ 'type': 'literal', 'value': 'PRIMARY KEY' }, { 'type':...
22.465116
74
0.509317
856
0.886128
0
0
0
0
0
0
251
0.259834
2cb216483c7cc5cdf448cba2017524ee4e2e0d25
499
py
Python
bauh/view/core/timeshift.py
alesmuc/bauh
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
[ "Zlib" ]
null
null
null
bauh/view/core/timeshift.py
alesmuc/bauh
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
[ "Zlib" ]
null
null
null
bauh/view/core/timeshift.py
alesmuc/bauh
5f9fbd7f38eea6f54b5d6a97848c1ee8b6a43ecb
[ "Zlib" ]
null
null
null
from bauh.commons.system import run_cmd, SimpleProcess def is_available() -> bool: return bool(run_cmd('which timeshift', print_error=False)) def delete_all_snapshots(root_password: str) -> SimpleProcess: return SimpleProcess(['timeshift', '--delete-all', '--scripted'], root_password=root_password) def cr...
35.642857
115
0.737475
0
0
0
0
0
0
0
0
93
0.186373
2cb2e46e1c301bd4740db07e928c276400566195
813
py
Python
update_tools.py
gflaherty/rules_pyz
900546b12e880f272c82534cdd2423dcb109e795
[ "Apache-2.0" ]
26
2018-01-29T23:28:45.000Z
2020-12-01T21:30:32.000Z
update_tools.py
gflaherty/rules_pyz
900546b12e880f272c82534cdd2423dcb109e795
[ "Apache-2.0" ]
28
2018-03-31T19:41:12.000Z
2019-01-30T21:57:43.000Z
update_tools.py
gflaherty/rules_pyz
900546b12e880f272c82534cdd2423dcb109e795
[ "Apache-2.0" ]
17
2018-03-08T21:30:22.000Z
2019-11-22T17:16:00.000Z
#!/usr/bin/env python import os import subprocess GOOS_TO_BAZEL = { 'darwin': 'osx', 'linux': 'linux', } GO_TOOL_SRC = ('pypi/pip_generate.go',) # TODO: Build 32-bit versions? GOARCH = 'amd64' def main(): script_dir = os.path.dirname(__file__) for src in GO_TOOL_SRC: for goos, bazel_os in...
23.228571
70
0.554736
0
0
0
0
0
0
0
0
164
0.201722
2cb2f10583b45235d86386a62278891da1c81b82
445
py
Python
cryptolens/exchanges/poloniex.py
hkilian/cryptolens
22ad4257fb9316e57b2402a83dbbfd583493fb39
[ "MIT" ]
null
null
null
cryptolens/exchanges/poloniex.py
hkilian/cryptolens
22ad4257fb9316e57b2402a83dbbfd583493fb39
[ "MIT" ]
1
2021-06-01T21:50:08.000Z
2021-06-01T21:50:08.000Z
cryptolens/exchanges/poloniex.py
hkilian/cryptolens
22ad4257fb9316e57b2402a83dbbfd583493fb39
[ "MIT" ]
1
2017-11-02T05:08:57.000Z
2017-11-02T05:08:57.000Z
import json import requests from .exchange import Exchange class Poloniex(Exchange): def __init__(self): Exchange.__init__(self, "GDAX") def PullData(self): url = "https://poloniex.com/public?command=returnTicker&currencyPair=USDT_BTC" response = requests.get(url) ticker = response.json()['USDT_BTC'] d...
21.190476
80
0.705618
384
0.862921
0
0
0
0
0
0
136
0.305618
2cb370dba58960e4d34825e77ae18854da4dd923
354
py
Python
exercises/exc_04_02.py
rklymentiev/py-for-neuro
6bb163347483642c79eac429e5a9289edff7ce09
[ "MIT" ]
7
2021-04-28T13:12:16.000Z
2022-01-15T00:21:11.000Z
exercises/exc_04_02.py
rklymentiev/py-for-neuro
6bb163347483642c79eac429e5a9289edff7ce09
[ "MIT" ]
2
2021-04-02T18:42:55.000Z
2021-05-20T08:43:06.000Z
exercises/exc_04_02.py
rklymentiev/py-for-neuro
6bb163347483642c79eac429e5a9289edff7ce09
[ "MIT" ]
2
2021-07-04T22:57:29.000Z
2021-07-29T19:28:43.000Z
import pandas as ___ import seaborn as ___ import matplotlib.pyplot as ___ # read in the data ___ # select the columns with 'mean' in the name selected_columns = list(___) # find the correlations corr_matrix = ___ # make a plot plt.___(figsize=(8,7), facecolor='white') sns.___(data=___, cmap="YlGnBu") plt.___("Correl...
20.823529
44
0.748588
0
0
0
0
0
0
0
0
142
0.40113
2cb48221d02e0baf45affa673f10aefd1a5bbb90
301
py
Python
Python/libraries/recognizers-number/recognizers_number/number/utilities.py
XiaoxiaoMa0815/Recognizers-Text
d9a4bc939348bd79b5982345255961dff5f356c6
[ "MIT" ]
1
2019-01-03T16:41:29.000Z
2019-01-03T16:41:29.000Z
Python/libraries/recognizers-number/recognizers_number/number/utilities.py
XiaoxiaoMa0815/Recognizers-Text
d9a4bc939348bd79b5982345255961dff5f356c6
[ "MIT" ]
76
2018-11-09T18:19:44.000Z
2019-08-20T20:29:53.000Z
Python/libraries/recognizers-number/recognizers_number/number/utilities.py
XiaoxiaoMa0815/Recognizers-Text
d9a4bc939348bd79b5982345255961dff5f356c6
[ "MIT" ]
6
2017-05-04T17:24:59.000Z
2019-07-23T15:48:44.000Z
from decimal import localcontext def precision(*args, **kwargs): def decorator(f): def inner_decorator(*a, **kwa): with localcontext() as ctx: ctx.prec = kwargs['prec'] return f(*a, **kwa) return inner_decorator return decorator
21.5
41
0.568106
0
0
0
0
0
0
0
0
6
0.019934
2cb530e8e30ba2311d864307233f32b3ff43ff4d
3,178
py
Python
tests/lexer_test.py
tykazzz/pseudo
7414ab0f14142b9ed704d03af0223cf847bf8861
[ "MIT" ]
null
null
null
tests/lexer_test.py
tykazzz/pseudo
7414ab0f14142b9ed704d03af0223cf847bf8861
[ "MIT" ]
null
null
null
tests/lexer_test.py
tykazzz/pseudo
7414ab0f14142b9ed704d03af0223cf847bf8861
[ "MIT" ]
null
null
null
"""This module contains unit tests for lexer module.""" import pytest import pseudo from pseudo.pseudo_types import Operation, Operator, Int __author__ = "Patryk Niedźwiedziński" @pytest.fixture def lexer(): """Returns lexer object.""" lex = pseudo.lexer.Lexer("") return lex def test_is_keyword(lexer...
25.023622
66
0.618943
0
0
0
0
108
0.033962
0
0
578
0.181761
2cb565f8f4592084ba48eb766f3c4fa262a33c69
717
py
Python
holobot/extensions/moderation/iconfig_provider.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
1
2021-05-24T00:17:46.000Z
2021-05-24T00:17:46.000Z
holobot/extensions/moderation/iconfig_provider.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
41
2021-03-24T22:50:09.000Z
2021-12-17T12:15:13.000Z
holobot/extensions/moderation/iconfig_provider.py
rexor12/holobot
89b7b416403d13ccfeee117ef942426b08d3651d
[ "MIT" ]
null
null
null
from datetime import timedelta from holobot.sdk.math import Range class IConfigProvider: def get_reason_length_range(self) -> Range[int]: raise NotImplementedError def get_decay_threshold_range(self) -> Range[timedelta]: raise NotImplementedError def get_warn_cleanup_interval(self) -> tim...
28.68
60
0.739191
649
0.90516
0
0
0
0
0
0
0
0
2cb5d0513e18be9868992203c2b17473bf86c5fd
1,901
py
Python
account/functions.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
null
null
null
account/functions.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
8
2020-03-24T17:11:49.000Z
2022-01-13T01:18:11.000Z
account/functions.py
opendream/asip
20583aca6393102d425401d55ea32ac6b78be048
[ "MIT" ]
null
null
null
from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from common.functions import instance_get_thumbnail, common_clean def user_render_reference(user, display_edit_link=False, field_name='admins'): html = '<span ...
29.703125
243
0.686481
0
0
0
0
0
0
0
0
411
0.216202
2cb5f4cd3fc9c93d71c637d25d6816c5fcb669d6
19,227
py
Python
app/helpers.py
zhuding/javatools
4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63
[ "Apache-2.0" ]
null
null
null
app/helpers.py
zhuding/javatools
4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63
[ "Apache-2.0" ]
null
null
null
app/helpers.py
zhuding/javatools
4b3a57b2ddfec36cae4af08ac5c3d71cfe879f63
[ "Apache-2.0" ]
null
null
null
# coding=utf8 from app import db def get_databases(): sql = "SHOW DATABASES" result = db.engine.execute(sql) dbs = [] for row in result: dbs.append(row['Database']) return dbs def get_tables(dbname): sql = "SELECT TABLE_NAME AS tableName FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='" + dbname + "'" res...
34.211744
149
0.504031
0
0
0
0
0
0
0
0
8,259
0.429552
2cb613c315cc43ee19bfbe4b247bf4ef3c518953
321
py
Python
flask_exp/hello.py
fly2rain/try_git_pycharm
0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a
[ "Unlicense" ]
null
null
null
flask_exp/hello.py
fly2rain/try_git_pycharm
0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a
[ "Unlicense" ]
null
null
null
flask_exp/hello.py
fly2rain/try_git_pycharm
0bb6b6b05c9d5942c46fa572a5f4dbaa90309b8a
[ "Unlicense" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello World!' if __name__ == '__main__': # app.run() x = "Hello world" y = "hello" z = "1 2 3" print(x.lower().strip().split()) print(y.lower().strip().split()) print(z.lower().strip().split())...
17.833333
36
0.566978
0
0
0
0
60
0.186916
0
0
67
0.208723
2cb6f59ec4572da89ea0442177be6d5a3a77df0f
1,931
py
Python
pythonforandroid/recipes/numpy/__init__.py
wo01/python-for-android
df0866d95c9c508299a6f948302454beb971e3ac
[ "MIT" ]
2
2019-01-07T12:13:25.000Z
2019-10-19T09:53:50.000Z
pythonforandroid/recipes/numpy/__init__.py
tangingw/python-for-android
7c125ad96f71a950ed272a116a9446c6f60e87a9
[ "MIT" ]
null
null
null
pythonforandroid/recipes/numpy/__init__.py
tangingw/python-for-android
7c125ad96f71a950ed272a116a9446c6f60e87a9
[ "MIT" ]
3
2018-12-13T09:57:33.000Z
2019-01-09T15:36:46.000Z
from pythonforandroid.recipe import CompiledComponentsPythonRecipe from pythonforandroid.toolchain import warning from os.path import join class NumpyRecipe(CompiledComponentsPythonRecipe): version = '1.15.1' url = 'https://pypi.python.org/packages/source/n/numpy/numpy-{version}.zip' site_packages_name =...
34.482143
79
0.592439
1,764
0.913516
0
0
0
0
0
0
529
0.273951
2cba683ad98eb61e03c5f63735dc9df320aadbb6
6,136
py
Python
webdriverwrapper/exceptions.py
jayeshgupta91/python-webdriverwrapper
9b2c32bbf06ada669feb62ef17fd23365a14ad14
[ "MIT" ]
null
null
null
webdriverwrapper/exceptions.py
jayeshgupta91/python-webdriverwrapper
9b2c32bbf06ada669feb62ef17fd23365a14ad14
[ "MIT" ]
null
null
null
webdriverwrapper/exceptions.py
jayeshgupta91/python-webdriverwrapper
9b2c32bbf06ada669feb62ef17fd23365a14ad14
[ "MIT" ]
null
null
null
# pylint: disable=wildcard-import,unused-wildcard-import from selenium.common.exceptions import * try: from Levenshtein import distance as levenshteinDistance except ImportError: levenshteinDistance = None def _create_exception_msg( id_=None, class_name=None, name=None, tag_name=None, parent...
33.167568
133
0.661506
2,776
0.452412
0
0
0
0
0
0
1,519
0.247555
2cbac9b4a32de65eb7ed3eda5e7c0c677bf993fd
2,508
py
Python
tambola_game_engine/player_input_handler.py
nitinnain/tambola-game
abf04eb9fbf529b10fbb95072e6a8b43564a85ff
[ "MIT" ]
1
2020-08-13T10:26:40.000Z
2020-08-13T10:26:40.000Z
tambola_game_engine/player_input_handler.py
nitinnain/tambola-game
abf04eb9fbf529b10fbb95072e6a8b43564a85ff
[ "MIT" ]
null
null
null
tambola_game_engine/player_input_handler.py
nitinnain/tambola-game
abf04eb9fbf529b10fbb95072e6a8b43564a85ff
[ "MIT" ]
3
2019-07-21T16:57:20.000Z
2021-06-20T09:35:06.000Z
# # Tambola / Housie Mobile Game # __author__ = 'nitin' #import time from player_ticket import PlayerTicket class PlayerInputHandler: def __init__(self, game_instance): self._game_instance = game_instance #Player Id will be sent by Client # TODO Need to create player Ids in DB ...
30.585366
86
0.573365
2,361
0.941388
0
0
0
0
0
0
1,004
0.400319
2cbbe59ec1db7c1f7fb72c95d3212e9c905755bf
283
py
Python
sample_problems/problems_with_solution110.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
sample_problems/problems_with_solution110.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
sample_problems/problems_with_solution110.py
adi01trip01/adi_workspace
f493b3ba84645eec3a57607243760a826880d1a3
[ "MIT" ]
null
null
null
# Write a Python program to get numbers divisible by fifteen from a list using an anonymous function. num_list = [45, 55, 60, 37, 100, 105, 220] # use anonymous function to filter result = list(filter(lambda x: (x % 15 == 0), num_list)) print("Numbers divisible by 15 are", result)
40.428571
101
0.720848
0
0
0
0
0
0
0
0
164
0.579505
2cbc33b05d4bd502f34bf5b95f0ed333a15834e5
366
py
Python
jp.atcoder/abc079/abc079_a/8657621.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc079/abc079_a/8657621.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc079/abc079_a/8657621.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys def main(): n = sys.stdin.readline().rstrip() cnt = 1 for i in range(3): if n[i] == n[i + 1]: cnt += 1 if cnt == 3: ans = "Yes" break else: cnt = 1 else: ans = "No" print(ans)...
15.25
38
0.355191
0
0
0
0
0
0
0
0
19
0.051913
2cbc43e5fdf0860ab5f93a19da28d89f2488e1bd
308
py
Python
examples/plot_expression_vs_inconsistent_splicing.py
YeoLab/flotilla
31da64567e59003c2b9c03fc8f4eb27ee62e299c
[ "MIT", "BSD-3-Clause" ]
98
2015-01-08T19:38:47.000Z
2021-05-04T02:11:55.000Z
examples/plot_expression_vs_inconsistent_splicing.py
YeoLab/flotilla
31da64567e59003c2b9c03fc8f4eb27ee62e299c
[ "MIT", "BSD-3-Clause" ]
123
2015-01-08T22:28:43.000Z
2019-12-20T05:22:29.000Z
examples/plot_expression_vs_inconsistent_splicing.py
YeoLab/flotilla
31da64567e59003c2b9c03fc8f4eb27ee62e299c
[ "MIT", "BSD-3-Clause" ]
27
2015-01-21T15:41:40.000Z
2020-12-22T05:40:47.000Z
""" Show percentage of splicing events whose psi scores are inconsistent between pooled and single ============================================================================================== """ import flotilla study = flotilla.embark(flotilla._shalek2013) study.plot_expression_vs_inconsistent_splicing()
44
94
0.577922
0
0
0
0
0
0
0
0
197
0.63961
2cbcd4b9ca17022184bd917e756928bc5a757104
77
py
Python
hello repeter.py
Jayapraveen34/crazy-lover
be5bd897c40c31b3e5e6eafe3b6436cb3d888efe
[ "BSD-2-Clause" ]
null
null
null
hello repeter.py
Jayapraveen34/crazy-lover
be5bd897c40c31b3e5e6eafe3b6436cb3d888efe
[ "BSD-2-Clause" ]
null
null
null
hello repeter.py
Jayapraveen34/crazy-lover
be5bd897c40c31b3e5e6eafe3b6436cb3d888efe
[ "BSD-2-Clause" ]
null
null
null
a="hello \n" b=int(input(" Enter the number of times:")) h=a*b print (h)
15.4
44
0.597403
0
0
0
0
0
0
0
0
39
0.506494
2cbee0cbd3a8e329664cb277cc0c7a2000dc5e6f
174
py
Python
mamiru/app.py
if1live/mamiru
3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c
[ "MIT" ]
null
null
null
mamiru/app.py
if1live/mamiru
3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c
[ "MIT" ]
null
null
null
mamiru/app.py
if1live/mamiru
3d69e9ee75e6e51021c7c5a766afd636c3ab9d2c
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- from .loggers import create_logger from .mpd_player import MPDPlayer mpd_player = MPDPlayer() mpd_player.open() logger = create_logger('mamiru')
13.384615
34
0.729885
0
0
0
0
0
0
0
0
30
0.172414
2cbf89be6da24a22a9ca1b7215e2c9dcd62dc519
184
py
Python
pycqed/measurement/waveform_control_CC/__init__.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
60
2016-08-03T10:00:18.000Z
2021-11-10T11:46:16.000Z
pycqed/measurement/waveform_control_CC/__init__.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
512
2016-08-03T17:10:02.000Z
2022-03-31T14:03:43.000Z
pycqed/measurement/waveform_control_CC/__init__.py
nuttamas/PycQED_py3
1ee35c7428d36ed42ba4afb5d4bda98140b2283e
[ "MIT" ]
34
2016-10-19T12:00:52.000Z
2022-03-19T04:43:26.000Z
''' Module containing waveforms for any codeword based waveform generator. This is the library containing pulses for CBox (still uses old one) QWG UHFQC (not used yet) '''
23
70
0.722826
0
0
0
0
0
0
0
0
183
0.994565
2cc08333be3174d0b142d7bc58887c3bfc8700a5
6,369
py
Python
app/routes.py
MBkkt/TaskManager
ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e
[ "MIT" ]
null
null
null
app/routes.py
MBkkt/TaskManager
ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e
[ "MIT" ]
1
2019-04-30T22:19:15.000Z
2019-04-30T22:20:06.000Z
app/routes.py
MBkkt/Task_Manager
ed4a5cb5bbb93dc3b10d459cf2e37a82be5b8a5e
[ "MIT" ]
null
null
null
from functools import wraps from flask import render_template, flash, redirect, url_for, request from flask_login import login_user, logout_user, current_user, login_required from app import app from app.models import User, Task from app.forms import ( LoginForm, RegistrationForm, AddTask, EditTaskForPerformer,...
31.374384
77
0.633851
0
0
0
0
4,545
0.713613
0
0
944
0.148218
2cc092fe85073efa8f38bdc1b3e3d9c07f22b3d8
4,136
py
Python
project.py
Peter-Sanders/IE-512-Decison-Analysis-Final-Project
868c6bb3843350d943027073cf4b4631d0188de0
[ "Unlicense" ]
1
2019-12-14T03:08:23.000Z
2019-12-14T03:08:23.000Z
project.py
Peter-Sanders/IE-512-Decison-Analysis-Final-Project
868c6bb3843350d943027073cf4b4631d0188de0
[ "Unlicense" ]
null
null
null
project.py
Peter-Sanders/IE-512-Decison-Analysis-Final-Project
868c6bb3843350d943027073cf4b4631d0188de0
[ "Unlicense" ]
null
null
null
# coding: utf-8 # # Stock Choice Decision Analysis # Code written and commentated by Peter Sanders # ### Load Relevant Packages # In[1]: from pandas_datareader import data import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from datetime import datetime import numpy as np import math from sci...
19.237209
126
0.671905
0
0
0
0
0
0
0
0
1,371
0.33148
2cc23585208ade836fd3bc7a82d50a60c3e5f9ae
4,282
py
Python
pyaz/network/routeserver/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/network/routeserver/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
null
null
null
pyaz/network/routeserver/__init__.py
py-az-cli/py-az-cli
9a7dc44e360c096a5a2f15595353e9dad88a9792
[ "MIT" ]
1
2022-02-03T09:12:01.000Z
2022-02-03T09:12:01.000Z
''' Manage the route server. ''' from ... pyaz_utils import _call_az from . import peering def create(hosted_subnet, name, resource_group, location=None, public_ip_address=None, tags=None): ''' Create a route server. Required Parameters: - hosted_subnet -- The ID of a subnet where Route Server would ...
43.252525
164
0.704577
0
0
0
0
0
0
0
0
3,518
0.821579
2cc331db5c05974b7e5d6a6759775540b86d78ad
40,276
py
Python
slicem_gui.py
marcottelab/Slicem
2dbf9f8faf89a12c983595871809445663bc5a26
[ "MIT" ]
5
2019-10-05T03:04:57.000Z
2021-10-02T23:52:56.000Z
slicem_gui.py
marcottelab/Slicem
2dbf9f8faf89a12c983595871809445663bc5a26
[ "MIT" ]
2
2019-11-24T09:58:13.000Z
2020-11-09T23:57:28.000Z
slicem_gui.py
marcottelab/SLICEM
2dbf9f8faf89a12c983595871809445663bc5a26
[ "MIT" ]
null
null
null
import os import mrcfile import numpy as np import pandas as pd import networkx as nx from igraph import Graph from scipy import ndimage as ndi from skimage import transform, measure import tkinter as tk from tkinter import ttk import tkinter.filedialog import matplotlib from matplotlib import cm import matplotlib.py...
34.931483
112
0.553282
31,078
0.771626
0
0
0
0
0
0
5,113
0.126949
2cc3614089af5f1da1c7bc8aa724616051ecf077
8,055
py
Python
moonv4/moon_db/moon_db/migrate_repo/versions/001_moon.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
moonv4/moon_db/moon_db/migrate_repo/versions/001_moon.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
moonv4/moon_db/moon_db/migrate_repo/versions/001_moon.py
hashnfv/hashnfv-moon
daaba34fa2ed4426bc0fde359e54a5e1b872208c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Open Platform for NFV Project, Inc. and its contributors # This software is distributed under the terms and conditions of the 'Apache-2.0' # license which can be found in the file 'LICENSE' in this package distribution # or at 'http://www.apache.org/licenses/LICENSE-2.0'. import sqlalchemy as sql de...
37.119816
91
0.638485
0
0
0
0
0
0
0
0
1,702
0.211297
2cc36408fd4a9ecb70290277aa45a301b255ed9b
1,683
py
Python
project/asks/migrations/0002_auto_20211002_1924.py
fael07/Live-Questions-Backend
40813ba8a34edc5219c5648a3b0b35c55139db55
[ "MIT" ]
null
null
null
project/asks/migrations/0002_auto_20211002_1924.py
fael07/Live-Questions-Backend
40813ba8a34edc5219c5648a3b0b35c55139db55
[ "MIT" ]
null
null
null
project/asks/migrations/0002_auto_20211002_1924.py
fael07/Live-Questions-Backend
40813ba8a34edc5219c5648a3b0b35c55139db55
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-10-02 22:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('asks', '0001_initial'), ] operations = [ migrations.CreateModel( name='Option', fields=[ ('id', mode...
29.017241
117
0.526441
1,590
0.944742
0
0
0
0
0
0
280
0.16637
2cc537735a2d67e707923633b8c5359a8e975af1
650
py
Python
src/openprocurement/tender/openeu/procedure/state/bid.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
10
2020-02-18T01:56:21.000Z
2022-03-28T00:32:57.000Z
src/openprocurement/tender/openeu/procedure/state/bid.py
quintagroup/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
26
2018-07-16T09:30:44.000Z
2021-02-02T17:51:30.000Z
src/openprocurement/tender/openeu/procedure/state/bid.py
ProzorroUKR/openprocurement.api
2855a99aa8738fb832ee0dbad4e9590bd3643511
[ "Apache-2.0" ]
15
2019-08-08T10:50:47.000Z
2022-02-05T14:13:36.000Z
from openprocurement.api.utils import error_handler from openprocurement.tender.core.procedure.state.bid import BidState as BaseBidState class BidState(BaseBidState): def status_up(self, before, after, data): assert before != after, "Statuses must be different" # this logic moved here from valida...
40.625
99
0.695385
509
0.783077
0
0
0
0
0
0
205
0.315385
2cc54c1983960e2959f4569eed5ba54d8ffadc15
4,903
py
Python
api/serializers.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
api/serializers.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
api/serializers.py
apigram/jade-api
1aece29c3109db68897fdf854be431554e7f2863
[ "Apache-2.0" ]
null
null
null
from rest_framework_nested.serializers import NestedHyperlinkedModelSerializer from rest_framework_nested.relations import NestedHyperlinkedRelatedField from rest_framework import serializers from api.models import User, Company, CompanyContact, Order, Item, Contact, OrderItem import copy class UserSerializer(seriali...
27.544944
85
0.646543
4,580
0.934122
0
0
0
0
0
0
690
0.14073
2cc5625c16ac62cef1a16f88ef8ee506d837539a
1,703
py
Python
kanga/management/commands/add-origins.py
deptofdefense/kanga
9c8d926a4828e2fca528915ddf35759d1c328c85
[ "MIT" ]
1
2022-03-05T01:17:59.000Z
2022-03-05T01:17:59.000Z
kanga/management/commands/add-origins.py
deptofdefense/kanga
9c8d926a4828e2fca528915ddf35759d1c328c85
[ "MIT" ]
null
null
null
kanga/management/commands/add-origins.py
deptofdefense/kanga
9c8d926a4828e2fca528915ddf35759d1c328c85
[ "MIT" ]
null
null
null
# ================================================================= # # Work of the U.S. Department of Defense, Defense Digital Service. # Released as open source under the MIT License. See LICENSE file. # # ================================================================= import json import sys from django.core.man...
28.864407
84
0.500881
1,178
0.69172
0
0
0
0
0
0
342
0.200822
2cc59f6d545ed4eb26a63f14b39ba4426d435d78
17,950
py
Python
krun/tests/test_manifest_manager.py
softdevteam/krun
a0c8e5bfb91d192695df63a500be96b7e6764491
[ "Apache-2.0", "MIT-0", "MIT" ]
68
2015-09-28T18:29:45.000Z
2022-01-25T21:54:18.000Z
krun/tests/test_manifest_manager.py
softdevteam/krun
a0c8e5bfb91d192695df63a500be96b7e6764491
[ "Apache-2.0", "MIT-0", "MIT" ]
369
2015-07-01T14:43:22.000Z
2021-07-28T09:34:25.000Z
krun/tests/test_manifest_manager.py
softdevteam/krun
a0c8e5bfb91d192695df63a500be96b7e6764491
[ "Apache-2.0", "MIT-0", "MIT" ]
9
2016-04-29T18:28:28.000Z
2020-10-02T21:17:26.000Z
import os.path import pytest from krun.config import Config from krun.scheduler import ManifestManager from krun.util import FatalKrunError from krun.tests.mocks import MockPlatform, mock_platform DEFAULT_MANIFEST = "krun.manifest" TEST_DIR = os.path.abspath(os.path.dirname(__file__)) BLANK_EXAMPLE_MANIFEST = """eta...
32.695811
94
0.710306
90
0.005014
0
0
0
0
0
0
6,618
0.368691
2cc813a4b5a65446f5e51d5a31e50f0a7569413f
692
py
Python
examples/joost/grammarator.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
9
2015-07-22T18:07:44.000Z
2021-11-08T11:21:11.000Z
examples/joost/grammarator.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
null
null
null
examples/joost/grammarator.py
wilkeraziz/grasp
95f5135fd3711eed32cddce2049dd595314fb1f4
[ "Apache-2.0" ]
1
2021-01-12T10:00:22.000Z
2021-01-12T10:00:22.000Z
#!/usr/bin/env python3 import argparse parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('k', metavar='k', type=int, nargs='?', help='number of classes of terminals (terminal-generating non-terminals)') args = parser.parse_args() # print("k = %d" % args.k) print("""[A] |||...
26.615385
76
0.492775
0
0
0
0
0
0
0
0
415
0.599711
2cc8a319785bcf5c5e30be8b85f1e68c1cbe6353
159
py
Python
matchbox/util/nooplistener.py
ayllon/MatchBox
367b69c51f1ef4b574ce2a534d3e5441b2b2933b
[ "MIT" ]
null
null
null
matchbox/util/nooplistener.py
ayllon/MatchBox
367b69c51f1ef4b574ce2a534d3e5441b2b2933b
[ "MIT" ]
null
null
null
matchbox/util/nooplistener.py
ayllon/MatchBox
367b69c51f1ef4b574ce2a534d3e5441b2b2933b
[ "MIT" ]
null
null
null
class NoopListener(object): def __init__(self, iterable): self.__iterable = iterable def __iter__(self): return iter(self.__iterable)
22.714286
36
0.672956
158
0.993711
0
0
0
0
0
0
0
0
2ccbbcd205dc73323b99918be9662a57635d2a3f
5,924
py
Python
app/sims/method/fields.py
DeepanshS/mrsimulator-ui
42f1a85f1cb76896cde2a3c8d4e38fe2c989b710
[ "BSD-3-Clause" ]
2
2019-11-21T16:14:13.000Z
2020-10-17T21:36:00.000Z
app/sims/method/fields.py
DeepanshS/mrsimulator-ui
42f1a85f1cb76896cde2a3c8d4e38fe2c989b710
[ "BSD-3-Clause" ]
32
2021-07-07T20:16:29.000Z
2022-03-29T14:09:23.000Z
app/sims/method/fields.py
DeepanshS/mrsimulator-ui
42f1a85f1cb76896cde2a3c8d4e38fe2c989b710
[ "BSD-3-Clause" ]
2
2019-10-23T18:23:57.000Z
2021-03-25T00:13:10.000Z
# -*- coding: utf-8 -*- import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input from dash.dependencies import Output from app import app from app.custom_widgets import collapsable_card from app.custom_widgets import container from app.custom_widgets import custom_butt...
29.182266
88
0.61293
0
0
0
0
0
0
0
0
3,044
0.512717
2ccd10be9cf005daa54af29a59abb7193ea30f61
987
py
Python
Python_OO/Encapsulamento.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
Python_OO/Encapsulamento.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
Python_OO/Encapsulamento.py
Madara701/Python_OO
8d67569a8c4771dd82f5259c2ed5e782cd4e4036
[ "Apache-2.0" ]
null
null
null
''' # Exemplo de encapsulamento da forma que é feita em Java class P: def __init__(self,x): self.__x = x #<- tornando ele um atributo privado def getX(self): return self.__x def setX(self, x): if x > 0: self.__x = x p = P(10) #<- passei o primeiro valor que deve chamar...
23.5
93
0.619048
338
0.338338
0
0
238
0.238238
0
0
752
0.752753
2ccde9b29ea22d626ef946f293750a7818adbe97
1,915
py
Python
GCC-paddle/tests/test_node_classification.py
S-HuaBomb/Contrib
10596814bb98c9e2499e4240e56207dc3b547959
[ "Apache-2.0" ]
243
2020-06-16T08:06:57.000Z
2022-03-31T10:09:37.000Z
GCC-paddle/tests/test_node_classification.py
S-HuaBomb/Contrib
10596814bb98c9e2499e4240e56207dc3b547959
[ "Apache-2.0" ]
34
2020-02-20T11:04:58.000Z
2022-03-12T00:54:26.000Z
GCC-paddle/tests/test_node_classification.py
S-HuaBomb/Contrib
10596814bb98c9e2499e4240e56207dc3b547959
[ "Apache-2.0" ]
49
2020-06-28T02:37:17.000Z
2022-03-29T08:07:35.000Z
import argparse import os from gcc.tasks.node_classification import NodeClassification from tests.utils import E2E_PATH, MOCO_PATH, get_default_args, generate_emb def run(dataset, model, emb_path=""): args = get_default_args() args.dataset = dataset args.model = model args.emb_path = emb_path tas...
29.015152
86
0.654308
0
0
0
0
0
0
0
0
571
0.298172
2ccee2fa8c8ba625dd902253db0db5b0a2526b08
563
py
Python
class2/exercises/exercise2/exercise2c.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
60
2019-05-11T05:23:10.000Z
2022-03-30T08:03:43.000Z
class2/exercises/exercise2/exercise2c.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
14
2021-03-31T19:08:08.000Z
2021-09-15T17:29:40.000Z
class2/exercises/exercise2/exercise2c.py
EndlessDynamics/Fork_nornir_course
04bf7e3819659f481a4e04059152877b795177b2
[ "Apache-2.0" ]
21
2019-08-08T21:30:46.000Z
2022-03-28T06:22:25.000Z
from rich import print from nornir import InitNornir from nornir.core.filter import F from nornir_netmiko import netmiko_send_command def main(): nr = InitNornir(config_file="config.yaml") filt = F(groups__contains="ios") nr = nr.filter(filt) my_results = nr.run( task=netmiko_send_command, com...
22.52
73
0.694494
0
0
0
0
0
0
0
0
59
0.104796
e2ba3189a471ae4c5fad168efa534a2e6749bec4
13,265
py
Python
portality/api/current/data_objects/application.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
47
2015-04-24T13:13:39.000Z
2022-03-06T03:22:42.000Z
portality/api/current/data_objects/application.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
1,215
2015-01-02T14:29:38.000Z
2022-03-28T14:19:13.000Z
portality/api/current/data_objects/application.py
DOAJ/doaj
b11f163c48f51f9e3ada2b02c617b50b847dcb4c
[ "Apache-2.0" ]
14
2015-11-27T13:01:23.000Z
2021-05-21T07:57:23.000Z
import uuid from datetime import datetime from portality.api.current.data_objects.common import _check_for_script from portality.lib import swagger, seamless, coerce, dates, dataobj from portality import models from copy import deepcopy from portality.api.current.data_objects.common_journal_application import Outgoin...
35.467914
140
0.603166
9,680
0.72974
0
0
1,975
0.148888
0
0
3,875
0.292122
e2bb34491e38dbc3dc365a94ad89e01f67df3fb7
1,147
py
Python
config.py
Arrackisarookie/blog
26d9a73b823ca08973541fcd2306a9d31272dfb0
[ "MIT" ]
4
2019-10-02T13:41:44.000Z
2022-02-05T15:35:35.000Z
config.py
Arrackisarookie/blog
26d9a73b823ca08973541fcd2306a9d31272dfb0
[ "MIT" ]
null
null
null
config.py
Arrackisarookie/blog
26d9a73b823ca08973541fcd2306a9d31272dfb0
[ "MIT" ]
1
2020-06-11T14:25:48.000Z
2020-06-11T14:25:48.000Z
import os class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'dev' ADMIN_EMAIL = os.environ.get('ADMIN_EMAIL') or 'nicearrack@163.com' ADMIN_NAME = os.environ.get('ADMIN_NAME') or 'Arrack' SITE_TITLE = 'Maybe' SITE_SUBTITLE = 'Everything is not too late.' SQLALCHEMY_TRACK_MO...
23.408163
103
0.711421
972
0.847428
0
0
49
0.04272
0
0
257
0.224063
e2bd7c8a213c65827af43039aa4e15d0d27034d2
4,086
py
Python
app.py
joumanarahime/sqlalchemy-challenge
e86c3a05443a6d2664b2f9ab8145565c7fbce24b
[ "ADSL" ]
null
null
null
app.py
joumanarahime/sqlalchemy-challenge
e86c3a05443a6d2664b2f9ab8145565c7fbce24b
[ "ADSL" ]
null
null
null
app.py
joumanarahime/sqlalchemy-challenge
e86c3a05443a6d2664b2f9ab8145565c7fbce24b
[ "ADSL" ]
null
null
null
import numpy as np import pandas as dp import datetime as dt import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify #engine = create_engine("sqlite:///Resources/hawaii.sqlite") engine = create_engi...
27.986301
140
0.610622
0
0
0
0
2,978
0.72883
0
0
1,084
0.265296
e2c0bf5b55ffe7710e49dea53d18f7b4cbfd6eba
1,756
py
Python
django_auth2/views/activate.py
Nick1994209/django-auth2
b8678f06ade985d2b5b0606e6e49bd9d2a49931a
[ "MIT" ]
null
null
null
django_auth2/views/activate.py
Nick1994209/django-auth2
b8678f06ade985d2b5b0606e6e49bd9d2a49931a
[ "MIT" ]
null
null
null
django_auth2/views/activate.py
Nick1994209/django-auth2
b8678f06ade985d2b5b0606e6e49bd9d2a49931a
[ "MIT" ]
null
null
null
from django.contrib import auth from django.db.transaction import atomic from django.http import Http404 from django.shortcuts import redirect, render from django.urls import reverse from django.utils.encoding import force_text from django.utils.http import urlsafe_base64_decode from django.views import View from djang...
27.4375
92
0.719248
1,176
0.669704
0
0
606
0.345103
0
0
140
0.079727
e2c22072840b5cebafa87588c583e804ebeab003
4,035
py
Python
Project1/Scripts/SVMAverageFeature/SVM_PerPhoto.py
TheLaurens/Team-Brains
78b2417c90116336ac02036d4c148eb221f73830
[ "MIT" ]
null
null
null
Project1/Scripts/SVMAverageFeature/SVM_PerPhoto.py
TheLaurens/Team-Brains
78b2417c90116336ac02036d4c148eb221f73830
[ "MIT" ]
null
null
null
Project1/Scripts/SVMAverageFeature/SVM_PerPhoto.py
TheLaurens/Team-Brains
78b2417c90116336ac02036d4c148eb221f73830
[ "MIT" ]
1
2018-10-04T01:54:53.000Z
2018-10-04T01:54:53.000Z
# -*- coding: utf-8 -*- """ Created on Wed Mar 30 13:42:47 2016 @author: DTump """ #Combines the featurevalues of the images with the labels assigned to the #corresponding business. It trains an SVM on these featurevalues of the images #to the labels of the trainset of the traindata and then #predicts the labels th...
35.394737
119
0.752169
0
0
0
0
0
0
0
0
1,852
0.458984
e2c27c3325a471c439f695d2c7b7452fdcb4a522
7,171
py
Python
cliquet/tests/test_listeners.py
codebyravi/cliquet
6346dd436b5c553a48da6a3430ffd34fe8c7bcbe
[ "Apache-2.0" ]
89
2015-02-26T07:49:37.000Z
2019-11-15T01:00:03.000Z
cliquet/tests/test_listeners.py
codebyravi/cliquet
6346dd436b5c553a48da6a3430ffd34fe8c7bcbe
[ "Apache-2.0" ]
605
2015-02-19T21:45:40.000Z
2019-03-28T14:11:25.000Z
cliquet/tests/test_listeners.py
codebyravi/cliquet
6346dd436b5c553a48da6a3430ffd34fe8c7bcbe
[ "Apache-2.0" ]
33
2015-03-18T17:40:00.000Z
2020-07-13T06:16:48.000Z
# -*- coding: utf-8 -*- import json import uuid from contextlib import contextmanager from datetime import datetime import mock from pyramid import testing from cliquet import initialization from cliquet.events import ResourceChanged, ResourceRead, ACTIONS from cliquet.listeners import ListenerBase from cliquet.stora...
32.447964
78
0.649979
6,492
0.905313
641
0.089388
677
0.094408
0
0
980
0.136662
e2c2ef5f0ed5007739bc437e3d290c9dbf8eeede
256
py
Python
frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
5
2017-09-12T15:56:31.000Z
2022-03-09T13:50:21.000Z
frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
212
2017-08-16T13:03:18.000Z
2020-10-06T12:26:21.000Z
frappe/patches/v11_0/remove_doctype_user_permissions_for_page_and_report.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
14
2020-11-04T11:22:44.000Z
2022-02-01T20:59:37.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe def execute(): frappe.delete_doc_if_exists("DocType", "User Permission for Page and Report")
32
85
0.769531
0
0
0
0
0
0
0
0
144
0.5625
e2c2f8ba329df746295b2ad639358341171d0025
9,753
py
Python
GhostHooksrc.py
UiIsBack/GhostHook
1118757b604f8325f6d066a51c2fcd7d8d8686a4
[ "Apache-2.0" ]
7
2022-03-05T14:37:58.000Z
2022-03-20T03:32:02.000Z
GhostHooksrc.py
UiIsBack/GhostHook
1118757b604f8325f6d066a51c2fcd7d8d8686a4
[ "Apache-2.0" ]
null
null
null
GhostHooksrc.py
UiIsBack/GhostHook
1118757b604f8325f6d066a51c2fcd7d8d8686a4
[ "Apache-2.0" ]
1
2022-03-11T22:54:48.000Z
2022-03-11T22:54:48.000Z
import os os.system(f'cls & mode 85,20 & title GhostHook! - Version 1.4!') from json import loads, dumps from threading import Thread from time import sleep from sys import argv import pystyle from pystyle import * import time import requests from colorama import Fore import threading import sys def ...
36.803774
127
0.347073
0
0
0
0
0
0
0
0
5,048
0.502339
e2c416a4bb316127137c72ec92b16939e3cadcdc
8,142
py
Python
pyblish_starter/vendor/Qt.py
pyblish/pyblish-starter
7d0ed4769737271685838c9d5348c22bc17e7506
[ "MIT" ]
17
2016-09-27T06:48:03.000Z
2021-05-29T13:23:12.000Z
pyblish_starter/vendor/Qt.py
pyblish/pyblish-starter
7d0ed4769737271685838c9d5348c22bc17e7506
[ "MIT" ]
7
2016-09-22T06:17:48.000Z
2020-03-22T01:46:53.000Z
pyblish_starter/vendor/Qt.py
pyblish/pyblish-starter
7d0ed4769737271685838c9d5348c22bc17e7506
[ "MIT" ]
7
2016-09-27T14:10:58.000Z
2022-02-09T13:18:15.000Z
"""Map all bindings to PySide2 This module replaces itself with the most desirable binding. Project goals: Qt.py was born in the film and visual effects industry to address the growing need for the development of software capable of running with more than one flavour of the Qt bindings for Python - PySide...
29.5
76
0.648735
0
0
0
0
0
0
0
0
3,278
0.402604
e2c47328612db2e98bae7524f25a77728b3348bc
260
py
Python
chess/players.py
Jonxslays/Chess
e7dbad1bfb2825fa8db616c64e9e3719e58c526c
[ "MIT" ]
1
2021-12-16T13:33:05.000Z
2021-12-16T13:33:05.000Z
chess/players.py
Jonxslays/Chess
e7dbad1bfb2825fa8db616c64e9e3719e58c526c
[ "MIT" ]
null
null
null
chess/players.py
Jonxslays/Chess
e7dbad1bfb2825fa8db616c64e9e3719e58c526c
[ "MIT" ]
null
null
null
from __future__ import annotations from dataclasses import dataclass, field from chess.moves import Move @dataclass class Player: """Represents a chess player.""" color: str score: int = 0 captures: list[Move] = field(default_factory=list)
18.571429
54
0.726923
140
0.538462
0
0
151
0.580769
0
0
32
0.123077
e2c5a70bc31179b591d0599334c26264e4b70aca
676
py
Python
.config/polybar/scripts/weather/weather.py
XECortex/dots
ce07f010b2ba80b8105b5bf7786f54df9048ec81
[ "MIT" ]
3
2021-02-18T17:59:17.000Z
2021-02-19T19:54:18.000Z
.config/polybar/scripts/weather/weather.py
XECortex/dots
ce07f010b2ba80b8105b5bf7786f54df9048ec81
[ "MIT" ]
null
null
null
.config/polybar/scripts/weather/weather.py
XECortex/dots
ce07f010b2ba80b8105b5bf7786f54df9048ec81
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import requests path = os.path.dirname(os.path.realpath(__file__)) if not os.path.isfile(f"{path}/config.py"): print(f"⚠ No weather config found. Check out \"{path}/config.py\"") exit() else: from config import * url = f"https://api.openweathermap.org/data/2.5/weather?id=...
28.166667
104
0.647929
0
0
0
0
0
0
0
0
279
0.409692
e2c72ceb88a1e9c682a071477b57dcf4d8d544d4
1,074
py
Python
util/driver.py
youran1024/AutoTest
91925ea69f87acc9718674e483dfac61bbcc6dbf
[ "MIT" ]
1
2018-12-13T06:43:15.000Z
2018-12-13T06:43:15.000Z
util/driver.py
youran1024/AutoTest
91925ea69f87acc9718674e483dfac61bbcc6dbf
[ "MIT" ]
null
null
null
util/driver.py
youran1024/AutoTest
91925ea69f87acc9718674e483dfac61bbcc6dbf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from appium import webdriver server_base = "http://127.0.0.1:" server_end = "/wd/hub" capabilities = { "platformName": "iOS", "automationName": "XCUITest", "platformVersion": "11.0", "app": "/Users/hunter/Desktop/python/PythonAppium2/app/iOSFinancial.app...
22.851064
77
0.620112
350
0.325885
0
0
0
0
0
0
462
0.430168
e2c79bb231a5883f6c6734e5c39580db4ae4b01c
8,821
py
Python
app_store_sdk/api/micro_app/get_packages_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
app_store_sdk/api/micro_app/get_packages_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
app_store_sdk/api/micro_app/get_packages_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: get_packages.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.protobu...
42.205742
743
0.769981
0
0
0
0
0
0
0
0
2,373
0.269017
e2ca2a685e2cc8d72a34a28cd4d603f543566419
412
py
Python
tests/unit/test_cli.py
amenezes/rabbit-client
411b62b91bf0dd6fbf1fbc1c9a3dc801339adc74
[ "Apache-2.0" ]
5
2019-09-19T00:02:02.000Z
2022-01-04T17:33:37.000Z
tests/unit/test_cli.py
amenezes/rabbit-client
411b62b91bf0dd6fbf1fbc1c9a3dc801339adc74
[ "Apache-2.0" ]
null
null
null
tests/unit/test_cli.py
amenezes/rabbit-client
411b62b91bf0dd6fbf1fbc1c9a3dc801339adc74
[ "Apache-2.0" ]
null
null
null
import pytest from cleo import CommandTester from rabbit.__main__ import application def test_consumer_command(): command = application.find("consumer") ct = CommandTester(command) assert "" == ct.io.fetch_output() def test_file_not_found_event_command(): command = application.find("send-event") ...
22.888889
44
0.725728
0
0
0
0
0
0
0
0
29
0.070388
e2cad3607d2ce5a48ecfd0c702c092fd6ba21786
24
py
Python
data/studio21_generated/introductory/4440/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4440/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4440/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def validate_pin(pin):
12
22
0.75
0
0
0
0
0
0
0
0
0
0
e2cb10f64b9ef71fc7c131f5445359c3201c9700
1,497
py
Python
objectModel/Python/cdm/resolvedmodel/expression_parser/input_values.py
rt112000/CDM
34bd34f9260140a8f8aa02bd87c23033f3daad4c
[ "CC-BY-4.0", "MIT" ]
884
2019-05-10T02:09:10.000Z
2022-03-31T14:02:00.000Z
objectModel/Python/cdm/resolvedmodel/expression_parser/input_values.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
171
2019-06-10T11:34:37.000Z
2022-03-31T22:50:12.000Z
objectModel/Python/cdm/resolvedmodel/expression_parser/input_values.py
spbast/CDM
bf97a3720c97ee4c9df3625084cf8b3bc65ff9c7
[ "CC-BY-4.0", "MIT" ]
340
2019-05-07T18:00:16.000Z
2022-03-31T12:00:15.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from typing import Optional, TYPE_CHECKING if TYPE_CHECKING: from cdm.resolvedmodel.projections.projection_directive import ProjectionDirective class InputVa...
49.9
138
0.752171
1,189
0.794255
0
0
0
0
0
0
488
0.325985
e2cc469a9d5f9eb52e92e899cd71c384665fc22f
187
py
Python
rx3/core/observable/merge.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
rx3/core/observable/merge.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
rx3/core/observable/merge.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
import rx3 from rx3 import operators as ops from rx3.core import Observable def _merge(*sources: Observable) -> Observable: return rx3.from_iterable(sources).pipe(ops.merge_all())
20.777778
59
0.770053
0
0
0
0
0
0
0
0
0
0
e2cd7f4f07d9be0f1ed74501dcf688591a74dbfd
1,155
py
Python
test/log/LoggerFixture.py
pip-services3-python/pip-services3-aws-python
f80f5bc1949edf29332c58481ea2051ac3ef9795
[ "MIT" ]
null
null
null
test/log/LoggerFixture.py
pip-services3-python/pip-services3-aws-python
f80f5bc1949edf29332c58481ea2051ac3ef9795
[ "MIT" ]
null
null
null
test/log/LoggerFixture.py
pip-services3-python/pip-services3-aws-python
f80f5bc1949edf29332c58481ea2051ac3ef9795
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time from pip_services3_components.log import CachedLogger, LogLevel class LoggerFixture: _logger: CachedLogger = None def __init__(self, logger: CachedLogger): self._logger = logger def test_log_level(self): assert self._logger.get_level() >= LogLevel.Not...
27.5
63
0.6329
1,051
0.909957
0
0
0
0
0
0
189
0.163636
e2d00c6db9f20e63c501bb2ab3b7059442e579b6
11,511
py
Python
probeye/definition/noise_model.py
BAMresearch/probeye
ff018ef629f7d5ce4a263b6656b363f90ab6be02
[ "MIT" ]
null
null
null
probeye/definition/noise_model.py
BAMresearch/probeye
ff018ef629f7d5ce4a263b6656b363f90ab6be02
[ "MIT" ]
42
2021-08-24T06:50:17.000Z
2022-03-25T09:05:41.000Z
probeye/definition/noise_model.py
BAMresearch/probeye
ff018ef629f7d5ce4a263b6656b363f90ab6be02
[ "MIT" ]
2
2021-11-14T22:30:54.000Z
2022-02-28T13:39:00.000Z
# standard library from typing import Union, List, Optional # third party imports import numpy as np # local imports from probeye.definition.sensor import Sensor from probeye.subroutines import make_list, translate_prms_def class NoiseModelBase: def __init__( self, dist: str, prms_def: U...
40.819149
88
0.616541
11,279
0.979845
0
0
0
0
0
0
6,932
0.602207
e2d04c5ee8c36428fe2986aecb0322ff15966a1b
5,050
py
Python
gnes/client/cli.py
dixiak/gnes
12513d29157a06bd22923717fd0c19a856f20193
[ "Apache-2.0" ]
null
null
null
gnes/client/cli.py
dixiak/gnes
12513d29157a06bd22923717fd0c19a856f20193
[ "Apache-2.0" ]
null
null
null
gnes/client/cli.py
dixiak/gnes
12513d29157a06bd22923717fd0c19a856f20193
[ "Apache-2.0" ]
null
null
null
# Tencent is pleased to support the open source community by making GNES available. # # Copyright (C) 2019 THL A29 Limited, a Tencent company. 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...
40.4
122
0.596634
4,135
0.818812
0
0
0
0
0
0
1,189
0.235446
e2d095cca36d579b4c4aba638f516534e9e13094
1,224
py
Python
wave path difference/3d.py
muronglengjing/sound-wave
b6d75f11f015bc422460be1df79a36234a64afb1
[ "MIT" ]
3
2020-11-09T15:45:19.000Z
2021-01-02T04:15:49.000Z
wave path difference/3d.py
muronglengjing/sound-wave
b6d75f11f015bc422460be1df79a36234a64afb1
[ "MIT" ]
null
null
null
wave path difference/3d.py
muronglengjing/sound-wave
b6d75f11f015bc422460be1df79a36234a64afb1
[ "MIT" ]
1
2020-11-09T15:49:54.000Z
2020-11-09T15:49:54.000Z
import numpy as np import matplotlib.pyplot as plt from matplotlib.widgets import Slider import matplotlib.animation as animation # to get the distance of wave # y = kx + b # ax+by+cz+d = 0 class F: def __init__(self, a, b, c, d): self.a = a self.b = b self.c = c self.d = d de...
17.485714
104
0.558007
256
0.20915
0
0
0
0
0
0
132
0.107843
e2d1bb0b22edf3413b741eb5f67bcbec7c51c19a
1,470
py
Python
work_dirs_bottle/cascade_rcnn_r50_fpn/reclass.py
speciallan/mmdetection
786a6b4eb9f0b9bb3fd5b3ab81ede7d1b23573d6
[ "Apache-2.0" ]
null
null
null
work_dirs_bottle/cascade_rcnn_r50_fpn/reclass.py
speciallan/mmdetection
786a6b4eb9f0b9bb3fd5b3ab81ede7d1b23573d6
[ "Apache-2.0" ]
null
null
null
work_dirs_bottle/cascade_rcnn_r50_fpn/reclass.py
speciallan/mmdetection
786a6b4eb9f0b9bb3fd5b3ab81ede7d1b23573d6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Speciallan def main(): #gen coco pretrained weight path = './work_dirs_bottle/cascade_rcnn_r50_fpn/checkpoints/' import torch num_classes = 11 model_coco = torch.load(path+"cascade_rcnn_dconv_c3-c5_r50_fpn_1x_20190125-dfa53166.pth") # weight ...
63.913043
134
0.729252
0
0
0
0
0
0
0
0
880
0.598639
e2d1c535f397cdd8f4ccfa83d542ceadcab2a601
6,007
py
Python
wlauto/workloads/video/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
5
2016-04-27T13:51:12.000Z
2016-06-23T12:38:14.000Z
wlauto/workloads/video/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
110
2016-05-05T19:13:26.000Z
2017-01-20T16:18:02.000Z
wlauto/workloads/video/__init__.py
joesavage/workload-automation
3a863fa14369d9bf1f20f82eb5ab4582499c6b99
[ "Apache-2.0" ]
1
2016-04-27T15:18:55.000Z
2016-04-27T15:18:55.000Z
# Copyright 2013-2015 ARM Limited # # 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 law or agreed to in w...
45.165414
124
0.649575
4,776
0.795072
0
0
1,363
0.226902
0
0
2,584
0.430165
e2d2b4052b90ff8fb0044cd2881dbc85ff0ecd49
337
py
Python
pyGAE/app_config.py
analyticstraining/pycocms
29d7c3eea9377495bcafd8b8c62016c21c1a74a7
[ "MIT" ]
null
null
null
pyGAE/app_config.py
analyticstraining/pycocms
29d7c3eea9377495bcafd8b8c62016c21c1a74a7
[ "MIT" ]
null
null
null
pyGAE/app_config.py
analyticstraining/pycocms
29d7c3eea9377495bcafd8b8c62016c21c1a74a7
[ "MIT" ]
null
null
null
''' Configuration script in Python. Add a secret_key ''' APP_CONFIG = { 'webapp2_extras.auth': { 'user_model': 'models.User', 'user_attributes': ['name', "email_address"] }, 'webapp2_extras.sessions': { 'secret_key': 'YOUR_SECRET_KEY' } } APP_NAME = "pycoCMS" MAIL_SENDER = 'pyc...
19.823529
52
0.626113
0
0
0
0
0
0
0
0
224
0.664688
e2d40cbadb8b28d4ec71d0513975ed33675020aa
627
py
Python
Cloud/2/ATMClientCLI.py
hsinewu/School
2c55a3fd4a7794e64651b66d36f439a11c180b2c
[ "MIT" ]
null
null
null
Cloud/2/ATMClientCLI.py
hsinewu/School
2c55a3fd4a7794e64651b66d36f439a11c180b2c
[ "MIT" ]
null
null
null
Cloud/2/ATMClientCLI.py
hsinewu/School
2c55a3fd4a7794e64651b66d36f439a11c180b2c
[ "MIT" ]
null
null
null
# Echo client program import socket, select, sys, threading from Tkinter import * HOST = 'localhost' # The remote host PORT = 54321 # The same port as used by the server sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((HOST, PORT)) def sending(): while 1: sock.sendall(raw...
20.9
59
0.633174
0
0
0
0
0
0
0
0
106
0.169059
e2d4c6363a58b677b5bab043fe856e68f531b918
782
py
Python
python/dos.py
PrestonMonteWest/bin
d7ed1eea9d60d58a6f8af5bdc22da646c585407d
[ "Unlicense" ]
null
null
null
python/dos.py
PrestonMonteWest/bin
d7ed1eea9d60d58a6f8af5bdc22da646c585407d
[ "Unlicense" ]
null
null
null
python/dos.py
PrestonMonteWest/bin
d7ed1eea9d60d58a6f8af5bdc22da646c585407d
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 from socket import socket, AF_INET, SOCK_STREAM from threading import Thread from multiprocessing import cpu_count import sys def attack(host, port, num): s = socket(AF_INET, SOCK_STREAM) s.connect((host, port)) while True: print('Thread {} : Sending request to {}:{}...'.fo...
24.4375
80
0.539642
0
0
0
0
0
0
0
0
120
0.153453
e2d59b1a9aed0843e778775b09a7e6c0571ef6a6
206
py
Python
Asset/Elements/Utility/DummyBuildingUtility.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
Asset/Elements/Utility/DummyBuildingUtility.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
Asset/Elements/Utility/DummyBuildingUtility.py
vd1371/GIAMS
dd6551f344b8d0377131d4496846eb5d03b6189c
[ "MIT" ]
null
null
null
import numpy as np from .BaseUtility import BaseUtility class DummyUtility(BaseUtility): def __init__(self): super().__init__() def utility_function(self, x): return 100 * (1 - np.exp(-0.19 * x))
18.727273
38
0.708738
147
0.713592
0
0
0
0
0
0
0
0
e2d5ccd08fb025be9e587c89b99c79c78aebefef
503
py
Python
comments/migrations/0003_auto_20190126_0840.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
10
2016-02-06T15:40:30.000Z
2018-09-27T15:15:13.000Z
comments/migrations/0003_auto_20190126_0840.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
94
2016-02-04T18:39:36.000Z
2022-01-20T05:25:00.000Z
comments/migrations/0003_auto_20190126_0840.py
lesspointless/Shakal-NG
eee491af94527228735c2bca7644605effd74b37
[ "MIT" ]
8
2016-05-10T20:29:53.000Z
2021-02-07T00:50:31.000Z
# Generated by Django 2.1 on 2019-01-26 07:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('comments', '0002_auto_20170603_1644'), ] operations = [ migrations.AlterUniqueTogether( name='commentflag', unique_together=set(), ), migrations.RemoveField( ...
17.344828
45
0.691849
420
0.83499
0
0
0
0
0
0
147
0.292247
e2d5cd751c072b142bbb935e2b3ffd45cd7fb705
528
py
Python
setup.py
QuantumEnergyE/netcli
00af7aa9d9c61c1306f46c00a803719d77c69d8c
[ "MIT" ]
null
null
null
setup.py
QuantumEnergyE/netcli
00af7aa9d9c61c1306f46c00a803719d77c69d8c
[ "MIT" ]
null
null
null
setup.py
QuantumEnergyE/netcli
00af7aa9d9c61c1306f46c00a803719d77c69d8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name='netcli', version='1.0', packages=['netcli'], include_package_data=True, install_requires=[ 'pygments>=2.0.2', 'prompt_toolkit>=1.0.0,<1.1.0', 'click>=4.0', 'fuzzyfinder>=1.0.0' ], entry_points={ ...
22
51
0.568182
0
0
0
0
0
0
0
0
242
0.458333