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
292c9626c9e04b5cf826e77da7923dbc37aaacf1
9,595
py
Python
perfkitbenchmarker/linux_packages/cassandra.py
parsa-epfl/PerfKitBenchmarker
7a7981100ebf68d6a24a8a347464800f40c47aa5
[ "Apache-2.0" ]
1
2016-12-07T19:49:58.000Z
2016-12-07T19:49:58.000Z
perfkitbenchmarker/linux_packages/cassandra.py
parsa-epfl/PerfKitBenchmarker
7a7981100ebf68d6a24a8a347464800f40c47aa5
[ "Apache-2.0" ]
null
null
null
perfkitbenchmarker/linux_packages/cassandra.py
parsa-epfl/PerfKitBenchmarker
7a7981100ebf68d6a24a8a347464800f40c47aa5
[ "Apache-2.0" ]
1
2021-12-07T13:29:48.000Z
2021-12-07T13:29:48.000Z
# Copyright 2015 PerfKitBenchmarker 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 appli...
31.05178
79
0.682751
2b56b125fcb2cd5b2bdd734923280950dbb1595e
9,606
py
Python
speaker_id.py
Dodger23/SincNet
bf848e88dc8d6cbeb4484e89486ec0a4ab237cb1
[ "MIT" ]
null
null
null
speaker_id.py
Dodger23/SincNet
bf848e88dc8d6cbeb4484e89486ec0a4ab237cb1
[ "MIT" ]
null
null
null
speaker_id.py
Dodger23/SincNet
bf848e88dc8d6cbeb4484e89486ec0a4ab237cb1
[ "MIT" ]
null
null
null
# speaker_id.py # Mirco Ravanelli # Mila - University of Montreal # July 2018 # Description: # This code performs a speaker_id experiments with SincNet. # How to run it: # python speaker_id.py --cfg=cfg/SincNet_TIMIT.cfg import os #import scipy.io.wavfile import soundfile as sf import torch import torch.nn as n...
28.087719
163
0.706642
081f27c4b0326aa1f19355d021c99164785418c5
3,548
py
Python
elasticquery/dsl.py
Fizzadar/ElasticQuery
b9640623fac206b93ed9f56519c99c3a35916aca
[ "MIT" ]
86
2015-02-17T00:54:58.000Z
2022-03-29T02:27:01.000Z
elasticquery/dsl.py
Fizzadar/ElasticQuery
b9640623fac206b93ed9f56519c99c3a35916aca
[ "MIT" ]
19
2015-02-26T12:41:29.000Z
2021-11-02T17:17:15.000Z
elasticquery/dsl.py
Fizzadar/ElasticQuery
b9640623fac206b93ed9f56519c99c3a35916aca
[ "MIT" ]
24
2015-03-27T09:07:05.000Z
2022-01-12T08:45:59.000Z
# ElasticQuery # File: elasticquery/filterquery.py # Desc: The base queryfilter/aggregate classes & metaclasses from .dsl_util import make_struct, unroll_definitions, unroll_struct class MetaQuery(type): ''' Metaclass mapping attributes to dsl objects on Filter/Query getattr. ''' def __init__(cls, n...
23.496689
90
0.576381
4521f4b953f6654b4933860699a78546335dcbb1
2,364
py
Python
var/spack/repos/builtin/packages/r-enrichplot/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2,360
2017-11-06T08:47:01.000Z
2022-03-31T14:45:33.000Z
var/spack/repos/builtin/packages/r-enrichplot/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
13,838
2017-11-04T07:49:45.000Z
2022-03-31T23:38:39.000Z
var/spack/repos/builtin/packages/r-enrichplot/package.py
LiamBindle/spack
e90d5ad6cfff2ba3de7b537d6511adccd9d5fcf1
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1,793
2017-11-04T07:45:50.000Z
2022-03-30T14:31:53.000Z
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class REnrichplot(RPackage): """Visualization of Functional Enrichment Result The 'enric...
50.297872
79
0.642978
46f6bc686e621c3aec09ceffd6d3a36c56a8e6e1
163
py
Python
{{cookiecutter.repo_name}}/run.py
Jswig/cookiecutter-minimal-ml
c4c4059701638f0d32c1374b9f9d98c192410cc1
[ "MIT" ]
1
2020-04-19T02:56:21.000Z
2020-04-19T02:56:21.000Z
{{cookiecutter.repo_name}}/run.py
Jswig/cookiecutter-flexible-ml
c4c4059701638f0d32c1374b9f9d98c192410cc1
[ "MIT" ]
1
2020-05-06T02:33:16.000Z
2020-05-09T22:56:09.000Z
{{cookiecutter.repo_name}}/run.py
Jswig/cookiecutter-minimal-ml
c4c4059701638f0d32c1374b9f9d98c192410cc1
[ "MIT" ]
1
2020-07-11T23:20:02.000Z
2020-07-11T23:20:02.000Z
# import files from src as needed here def build_project(): # your code to run the full analysis here pass if __name__ == "__main__": build_project()
20.375
45
0.693252
189b4138bbd20789f96d9fc11cf199db46108ca6
23
py
Python
src/dcn_v2/__init__.py
Hzx66666/FairMOT_PS
c0b2ef18cd712ebd2512ce73672667a72a9d4f04
[ "MIT" ]
null
null
null
src/dcn_v2/__init__.py
Hzx66666/FairMOT_PS
c0b2ef18cd712ebd2512ce73672667a72a9d4f04
[ "MIT" ]
null
null
null
src/dcn_v2/__init__.py
Hzx66666/FairMOT_PS
c0b2ef18cd712ebd2512ce73672667a72a9d4f04
[ "MIT" ]
null
null
null
from .dcn_v2 import DCN
23
23
0.826087
0acf32e7ec9b650949edc9e869284bc7f7ef7115
917
py
Python
python/runtime/pai/__init__.py
bobmayuze/sqlflow
8e51c19eed656d506ffa9240024b8e12010cbd01
[ "Apache-2.0" ]
null
null
null
python/runtime/pai/__init__.py
bobmayuze/sqlflow
8e51c19eed656d506ffa9240024b8e12010cbd01
[ "Apache-2.0" ]
null
null
null
python/runtime/pai/__init__.py
bobmayuze/sqlflow
8e51c19eed656d506ffa9240024b8e12010cbd01
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The SQLFlow 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 applicable law o...
50.944444
82
0.798255
e84cdfb1511c7482d3a414af11ee71b116e42afa
393
py
Python
backend/chat_user_profile/api/v1/urls.py
crowdbotics-apps/agape-centre-29820
25ff06c33043baa5a8a65148e60498000f079048
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/chat_user_profile/api/v1/urls.py
crowdbotics-apps/agape-centre-29820
25ff06c33043baa5a8a65148e60498000f079048
[ "FTL", "AML", "RSA-MD" ]
20
2021-08-22T20:25:03.000Z
2021-10-06T00:05:44.000Z
backend/chat_user_profile/api/v1/urls.py
crowdbotics-apps/kp3-29820
25ff06c33043baa5a8a65148e60498000f079048
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.urls import path, include from rest_framework.routers import DefaultRouter from .viewsets import ContactViewSet, ProfileViewSet, VerificationCodeViewSet router = DefaultRouter() router.register("verificationcode", VerificationCodeViewSet) router.register("contact", ContactViewSet) router.register("profile"...
30.230769
77
0.80916
773ea18760a1527725d3b5c48b2edbee2f731fac
1,930
py
Python
lib/utils/visualize.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
21
2020-06-19T01:05:38.000Z
2020-08-11T02:15:03.000Z
lib/utils/visualize.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
1
2020-07-11T17:01:07.000Z
2020-07-11T17:01:07.000Z
lib/utils/visualize.py
penghouwen/CDARTS
7dddc8d5db4ed343979ed3687c6adfc39dfce284
[ "MIT" ]
1
2020-11-02T02:43:20.000Z
2020-11-02T02:43:20.000Z
""" Network architecture visualizer using graphviz """ import sys from graphviz import Digraph import lib.utils.genotypes as gt def plot(genotype, file_path, caption=None): """ make DAG plot and save to file_path as .png """ edge_attr = { 'fontsize': '20', 'fontname': 'times' } node_at...
25.733333
79
0.549223
a1ad8fba8f950b892d44f12924929e267f039853
1,410
py
Python
Moderate/A Pile Of Bricks/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Moderate/A Pile Of Bricks/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
Moderate/A Pile Of Bricks/main.py
AstrorEnales/CodeEval
eae0fb471d27d3a83d544ff4a4651ed1a2076930
[ "MIT" ]
null
null
null
import sys def parseCoords(x): return [int(y) for y in x.strip('[').strip(']').split(',')] def size2(a, b): return sorted([abs(a[0] - b[0]), abs(a[1] - b[1])]) def size3(a, b): s = [] s.append(sorted([abs(a[0] - b[0]), abs(a[1] - b[1])])) s.append(sorted([abs(a[0] - b[0]), abs(a[2] - b...
37.105263
94
0.485816
e3bc0493daeca34c625af621a67a751ac2ab4694
574
py
Python
CNN Visualization/Visualizing and Understanding Convolutional Networks/notebooks/utils.py
KushajveerSingh/pytorch_projects
ba70b662897a7483230c7e3ea04428df2a5fa3b8
[ "MIT" ]
19
2019-06-04T20:19:24.000Z
2022-03-14T03:15:54.000Z
CNN Visualization/Visualizing and Understanding Convolutional Networks/notebooks/utils.py
KushajveerSingh/pytorch_projects
ba70b662897a7483230c7e3ea04428df2a5fa3b8
[ "MIT" ]
null
null
null
CNN Visualization/Visualizing and Understanding Convolutional Networks/notebooks/utils.py
KushajveerSingh/pytorch_projects
ba70b662897a7483230c7e3ea04428df2a5fa3b8
[ "MIT" ]
12
2019-06-06T12:56:39.000Z
2021-12-30T11:54:08.000Z
import json import torch def decode_predictions(preds, top=5): with open('/home/kushaj/Desktop/Data/imagenet_class_index.json') as f: class_index_dict = json.load(f) results = [] for pred in preds: top_value, top_indices = torch.topk(pred, top) result = [tuple(class_index_d...
33.764706
78
0.61324
4edf42b518c8f4492b07b5cf2b53e4ce44588287
11,524
py
Python
statsmodels/genmod/tests/test_bayes_mixed_glm.py
josef-pkt/statsmodels
9eebbfa000b9f7ca853247efbced99f4ddaa088c
[ "BSD-3-Clause" ]
20
2015-01-28T21:52:59.000Z
2022-01-24T01:24:26.000Z
statsmodels/genmod/tests/test_bayes_mixed_glm.py
josef-pkt/statsmodels
9eebbfa000b9f7ca853247efbced99f4ddaa088c
[ "BSD-3-Clause" ]
6
2015-08-28T16:59:03.000Z
2019-04-12T22:29:01.000Z
statsmodels/genmod/tests/test_bayes_mixed_glm.py
josef-pkt/statsmodels
9eebbfa000b9f7ca853247efbced99f4ddaa088c
[ "BSD-3-Clause" ]
28
2015-04-01T20:02:25.000Z
2021-07-03T00:09:28.000Z
import numpy as np from statsmodels.genmod.bayes_mixed_glm import ( BinomialBayesMixedGLM, PoissonBayesMixedGLM) import pandas as pd from scipy import sparse from numpy.testing import assert_allclose from scipy.optimize import approx_fprime def gen_simple_logit(nc, cs, s): np.random.seed(3799) exog_vc =...
30.486772
76
0.559788
3abd19a46e6e61e5fd3033d66e7030cfb719dea6
28,496
py
Python
sympy/stats/tests/test_stochastic_process.py
rahulmnair1997/sympy
04c784908573c8524e98fa258b784cdd64df210f
[ "BSD-3-Clause" ]
1
2021-11-16T14:29:20.000Z
2021-11-16T14:29:20.000Z
sympy/stats/tests/test_stochastic_process.py
Sanchayan-Bhowal/sympy
c237fe7f4c1a4abcfaef0e79600e26cba4ac0a6d
[ "BSD-3-Clause" ]
null
null
null
sympy/stats/tests/test_stochastic_process.py
Sanchayan-Bhowal/sympy
c237fe7f4c1a4abcfaef0e79600e26cba4ac0a6d
[ "BSD-3-Clause" ]
null
null
null
from sympy import (S, symbols, FiniteSet, Eq, Matrix, MatrixSymbol, Float, And, ImmutableMatrix, Ne, Lt, Gt, exp, Not, Rational, Lambda, erf, Piecewise, factorial, Interval, oo, Contains, sqrt, pi, ceiling, gamma, lowergamma, Sum, Range, Tuple, ImmutableDenseMatr...
51.344144
163
0.556113
efd1ffbc376c999f7eea6718dccbf15c2807af3c
10,514
py
Python
chromanode.py
killerstorm/ngcccbase
30fd033835ceeecd0eafc3461bf5b4dcfff117de
[ "MIT" ]
31
2015-01-25T01:59:07.000Z
2022-03-11T02:49:53.000Z
chromanode.py
killerstorm/ngcccbase
30fd033835ceeecd0eafc3461bf5b4dcfff117de
[ "MIT" ]
5
2015-06-16T14:43:49.000Z
2016-07-19T12:49:16.000Z
chromanode.py
jeorgen/ngcccbase
0a7348d95353598a320e5612166402ba676c8d33
[ "MIT" ]
17
2015-02-14T15:19:49.000Z
2019-11-28T19:17:50.000Z
#!/usr/bin/env python import os, sys import json import hashlib import httplib import threading, time from socket import error as SocketError from bitcoin.rpc import JSONRPCException import web from coloredcoinlib import BlockchainState, ColorDefinition urls = ( '/tx', 'Tx', '/publish_tx', 'PublishTx', ...
33.807074
101
0.573045
9446bb0db5c987a15f2712cfb098cfc172269636
6,063
py
Python
smt/applications/tests/test_mfkplsk.py
Laurentww/smt
f124c01ffa78c04b80221dded278a20123dac742
[ "BSD-3-Clause" ]
354
2017-08-15T22:12:58.000Z
2022-03-31T08:34:19.000Z
smt/applications/tests/test_mfkplsk.py
enjoyneer87/smt
4a4df255b9259965439120091007f9852f41523e
[ "BSD-3-Clause" ]
258
2017-08-11T15:08:40.000Z
2022-03-30T09:54:26.000Z
smt/applications/tests/test_mfkplsk.py
enjoyneer87/smt
4a4df255b9259965439120091007f9852f41523e
[ "BSD-3-Clause" ]
184
2017-08-11T14:55:17.000Z
2022-03-17T11:22:50.000Z
# -*- coding: utf-8 -*- """ Created on Mon May 07 14:20:11 2018 @author: m.meliani Adapted to new SMT version in march 2020 by Nathalie Bartoli """ import matplotlib matplotlib.use("Agg") import unittest import numpy as np import unittest import inspect from collections import OrderedDict from smt.problems impor...
27.684932
84
0.55616
4c8712d3391ca9e50a19cee9ad195dc17b750552
650
py
Python
imdb/items.py
LeeCrazy/scrapy-imdb
31094ea42731b4f8b6d3fb0fb9040b25396d28b7
[ "Apache-2.0" ]
10
2016-12-27T14:47:44.000Z
2019-12-30T11:19:27.000Z
imdb/items.py
ejibo/imdbspider
b60c393cc791524e2d78d9811cd32a07757ed778
[ "Apache-2.0" ]
null
null
null
imdb/items.py
ejibo/imdbspider
b60c393cc791524e2d78d9811cd32a07757ed778
[ "Apache-2.0" ]
6
2017-04-18T06:52:41.000Z
2019-04-13T13:22:11.000Z
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html from scrapy import Field, Item class ImdbItem(Item): # define the fields for your item here like: video_title = Field() video_rating = Field() video_n...
23.214286
51
0.653846
eb75599eb0d843504deadb6dfde802dcb8eaa28f
11,264
py
Python
src/pyoram/storage/block_storage_ram.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
24
2016-04-14T14:27:37.000Z
2022-03-13T13:53:18.000Z
src/pyoram/storage/block_storage_ram.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
4
2016-03-14T04:40:23.000Z
2016-06-01T04:37:18.000Z
src/pyoram/storage/block_storage_ram.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
4
2016-03-16T23:53:24.000Z
2020-05-27T19:27:37.000Z
__all__ = ('BlockStorageRAM',) import os import struct import logging import errno from multiprocessing.pool import ThreadPool import pyoram from pyoram.storage.block_storage import \ (BlockStorageInterface, BlockStorageTypeFactory) from pyoram.storage.block_storage_mmap import \ (BlockStorageMMap, ...
35.75873
80
0.568182
664e0b58e3c2ac302dfc83de36d1e571a5e4bd3b
2,471
py
Python
setup.py
syscocloud/puppetboard
94052a0330b1e73963504a2a2fff9dbab52b2a87
[ "Apache-2.0" ]
null
null
null
setup.py
syscocloud/puppetboard
94052a0330b1e73963504a2a2fff9dbab52b2a87
[ "Apache-2.0" ]
null
null
null
setup.py
syscocloud/puppetboard
94052a0330b1e73963504a2a2fff9dbab52b2a87
[ "Apache-2.0" ]
null
null
null
import sys import codecs from setuptools.command.test import test as TestCommand from setuptools import setup, find_packages from puppetboard.version import __version__ with codecs.open('README.md', encoding='utf-8') as f: README = f.read() with codecs.open('CHANGELOG.md', encoding='utf-8') as f: CHANGELOG =...
32.513158
74
0.654391
1ae57b4ca2b8267cf20b89a3d439c1e2a2cdfcea
8,870
py
Python
contrib/devtools/symbol-check.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
contrib/devtools/symbol-check.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
contrib/devtools/symbol-check.py
robbelouwet/Elixir
609412402c5dd4fb9d77ae6d87505d8efd608132
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014 Wladimir J. van der Laan # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' A script to check that the executables produced by gitian only contain certain symbols and are only linked aga...
32.851852
154
0.666404
5fe2c0c567b4b17bb3a6765a147b357e4bb37551
1,827
py
Python
landingpages/migrations/0001_initial.py
R3v1L/django-landingpages
a4a028337be0d3fbdfa3e62ec35cd9c79bce87ef
[ "MIT" ]
null
null
null
landingpages/migrations/0001_initial.py
R3v1L/django-landingpages
a4a028337be0d3fbdfa3e62ec35cd9c79bce87ef
[ "MIT" ]
null
null
null
landingpages/migrations/0001_initial.py
R3v1L/django-landingpages
a4a028337be0d3fbdfa3e62ec35cd9c79bce87ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import sitetools.models.fields class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='LandingPage', fields=[ ...
53.735294
207
0.634921
7647d9bcd10dceef30b546a53ed49360a462cdbb
94,142
py
Python
hrpro/custom.py
hereabdulla/hrpro
5ee5db9182a8152fd23140e6490dc995b0aef743
[ "MIT" ]
null
null
null
hrpro/custom.py
hereabdulla/hrpro
5ee5db9182a8152fd23140e6490dc995b0aef743
[ "MIT" ]
null
null
null
hrpro/custom.py
hereabdulla/hrpro
5ee5db9182a8152fd23140e6490dc995b0aef743
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, VHRS and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe,os,base64 import requests import datetime import json,calendar from datetime import datetime,timedelta,date,time import datetime as dt from datetim...
45.833496
264
0.538548
3be1b257ed049b89648aee83c0dec50c88e59eb8
2,770
py
Python
flask-nlp-api/client.py
dr-jgsmith/flask-nlp-api
bc47594a0b200271ff71d1637ae76338d3b3912c
[ "MIT" ]
1
2019-06-14T06:36:24.000Z
2019-06-14T06:36:24.000Z
flask-nlp-api/client.py
dr-jgsmith/flask-nlp-api
bc47594a0b200271ff71d1637ae76338d3b3912c
[ "MIT" ]
null
null
null
flask-nlp-api/client.py
dr-jgsmith/flask-nlp-api
bc47594a0b200271ff71d1637ae76338d3b3912c
[ "MIT" ]
null
null
null
from requests import put, get, post, delete data = { 'username': 'Peter2Face', 'email': 'Peter2Face@live.com', 'password_hash': 'I2Peter2Face' } data2 = { 'username': 'Peter2Face', 'password_hash': 'I2Peter2Face' } x = post('http://localhost:5000/modern_api/users/add', data=data).json() print(x...
25.412844
120
0.65343
d7d0fc0b86820f14f5ec9e2bf269901f63926cac
555
py
Python
exercices-pin-raspberry/Dection Temperature/temp.py
Elitross/Ecole-raspberrypi
5897217550194516014562e76df8a28b2aa83480
[ "MIT" ]
null
null
null
exercices-pin-raspberry/Dection Temperature/temp.py
Elitross/Ecole-raspberrypi
5897217550194516014562e76df8a28b2aa83480
[ "MIT" ]
null
null
null
exercices-pin-raspberry/Dection Temperature/temp.py
Elitross/Ecole-raspberrypi
5897217550194516014562e76df8a28b2aa83480
[ "MIT" ]
null
null
null
from gpiozero import CPUTemperature from time import sleep, strftime, time import matplotlib.pyplot as plt plt.ion() x = [] y = [] cpu = CPUTemperature() with open("/home/pi/repo/exercice-temperature-raspberrypi/cpu_temp.csv", "a") as log: while True: temp = cpu.temperature print(temp) """ ...
17.903226
85
0.598198
39b76150ad9acca5ac05fb03d132f742a8e1a45c
2,182
py
Python
hamper/cli.py
ecnahc515/hamper
c344f17caca40ebf830bb46682ff5477d33a4f0e
[ "MIT" ]
2
2021-11-08T09:59:46.000Z
2022-01-23T23:30:26.000Z
hamper/cli.py
ecnahc515/hamper
c344f17caca40ebf830bb46682ff5477d33a4f0e
[ "MIT" ]
3
2015-02-22T03:52:17.000Z
2016-08-18T18:32:49.000Z
hamper/cli.py
ecnahc515/hamper
c344f17caca40ebf830bb46682ff5477d33a4f0e
[ "MIT" ]
12
2015-01-25T22:22:25.000Z
2022-01-17T22:04:30.000Z
from fnmatch import fnmatch from twisted.internet import reactor from twisted.internet.stdio import StandardIO from twisted.protocols.basic import LineReceiver from twisted.plugin import getPlugins import sqlalchemy from sqlalchemy import orm from hamper.commander import DB, PluginLoader import hamper.config from ha...
26.609756
74
0.621907
26ff0f2ed531b20a7bab8ded1b477617b3af25e6
1,211
py
Python
calc_repu/getMovieGrade.py
CSC522-Data-mining-NCSU/reputation-hpc
532a9885107f2969715a6d5a5ee1a9acc8f93aac
[ "MIT" ]
null
null
null
calc_repu/getMovieGrade.py
CSC522-Data-mining-NCSU/reputation-hpc
532a9885107f2969715a6d5a5ee1a9acc8f93aac
[ "MIT" ]
null
null
null
calc_repu/getMovieGrade.py
CSC522-Data-mining-NCSU/reputation-hpc
532a9885107f2969715a6d5a5ee1a9acc8f93aac
[ "MIT" ]
null
null
null
import csv import pickle from WeightFinder import WeightFinder import time from mpi4py import MPI import pickle from demos import cmd comm = MPI.COMM_WORLD rank = comm.Get_rank() finder = WeightFinder() def get_movie_grade(movie_id): try: f = open('../training_set/mv_'+str(movie_id).zfill(7)+'.txt','r') except: r...
20.525424
67
0.649876
e9e3e0318c524d9c70e643ea0008dfbf775084c3
8,952
py
Python
nova/tests/unit/api/openstack/compute/test_image_size.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_image_size.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_image_size.py
bopopescu/nova-token
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
[ "Apache-2.0" ]
2
2017-07-20T17:31:34.000Z
2020-07-24T02:42:19.000Z
begin_unit comment|'# Copyright 2013 Rackspace Hosting' nl|'\n' comment|'# All Rights Reserved.' nl|'\n' comment|'#' nl|'\n' comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may' nl|'\n' comment|'# not use this file except in compliance with the License. You may obtain' nl|'\n' comme...
12.398892
88
0.587913
d1fffe52766a1dbab3d0157fa1e3e3d2aab3be6d
2,360
py
Python
2020/day08.py
groselt/AoC
c32d8bafddbe00c03d6420fc62cc5e78cbb1cd3c
[ "MIT" ]
null
null
null
2020/day08.py
groselt/AoC
c32d8bafddbe00c03d6420fc62cc5e78cbb1cd3c
[ "MIT" ]
null
null
null
2020/day08.py
groselt/AoC
c32d8bafddbe00c03d6420fc62cc5e78cbb1cd3c
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 from typing import List, NamedTuple, Optional, Set from utils import get_file_lines class Instruction(NamedTuple): operation: str param: int class Computer: def __init__(self, program: List[str]): self.instructions = self.parse(program) self.reset() @static...
30.649351
91
0.649576
34950a7cd3d485d48c7e52033cd9d266128dddfa
4,614
py
Python
tests/test_pipeline/components/feature_preprocessing/test_select_rates_classification.py
jianzhnie/AutoTabular
fb407300adf97532a26d33f7442d2a606fa30512
[ "Apache-2.0" ]
48
2021-09-06T08:09:26.000Z
2022-03-28T13:02:54.000Z
tests/test_pipeline/components/feature_preprocessing/test_select_rates_classification.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
null
null
null
tests/test_pipeline/components/feature_preprocessing/test_select_rates_classification.py
Fanxingye/Autotabular
d630c78290a52f8c73885afb16884e18135c34f6
[ "Apache-2.0" ]
7
2021-09-23T07:28:46.000Z
2021-10-02T21:15:18.000Z
import unittest import numpy as np import scipy.sparse import sklearn.preprocessing from autotabular.pipeline.components.feature_preprocessing.select_rates_classification import SelectClassificationRates from autotabular.pipeline.util import _test_preprocessing, get_dataset class SelectClassificationRatesComponentTe...
41.567568
119
0.675769
485873f66a966166d74941b4717772e0c5d2adf8
9,312
py
Python
util/dvsim/verixcdc-report-parser.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
1,375
2019-11-05T15:11:00.000Z
2022-03-28T17:50:43.000Z
util/dvsim/verixcdc-report-parser.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
7,045
2019-11-05T16:05:45.000Z
2022-03-31T23:08:08.000Z
util/dvsim/verixcdc-report-parser.py
asb/opentitan
af68ff5041b10c81e97adc075a4d042f8ac7ab20
[ "Apache-2.0" ]
428
2019-11-05T15:00:20.000Z
2022-03-28T15:34:57.000Z
#!/usr/bin/env python3 # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 r"""Parses cdc report and dump filtered messages in hjson format. """ import argparse import logging as log import re import sys import os import hjso...
37.548387
87
0.536082
a6034574bce65b9336f08e8d3cb79ad93ad23346
5,979
py
Python
cloudvolume/dask.py
perlman/cloud-volume
e3c01f69e6519f0c53d13d39e7a42bb38d63a936
[ "BSD-3-Clause" ]
1
2021-02-12T12:15:33.000Z
2021-02-12T12:15:33.000Z
cloudvolume/dask.py
perlman/cloud-volume
e3c01f69e6519f0c53d13d39e7a42bb38d63a936
[ "BSD-3-Clause" ]
null
null
null
cloudvolume/dask.py
perlman/cloud-volume
e3c01f69e6519f0c53d13d39e7a42bb38d63a936
[ "BSD-3-Clause" ]
null
null
null
"""Utilties for translating to/from dask arrays. NOTE: Using the thread-based dask scheduler is very inefficient with CloudVolume because CV is pure python and will cause substantial GIL contention between the dask worker threads. It is HIGHLY ADVISABLE to use a distributed process scheduler with on...
36.907407
94
0.645091
aa2db790fa4093be1213dbef5fff9ffa70737e3c
330
py
Python
ThreeBotPackages/zerobot/admin/actors/pools.py
threefoldtech/jumpscaleX_threebot
2841e1109abf1bee113b027a7e04bfbd25cbcb48
[ "Apache-2.0" ]
null
null
null
ThreeBotPackages/zerobot/admin/actors/pools.py
threefoldtech/jumpscaleX_threebot
2841e1109abf1bee113b027a7e04bfbd25cbcb48
[ "Apache-2.0" ]
546
2019-08-29T11:48:19.000Z
2020-12-06T07:20:45.000Z
ThreeBotPackages/zerobot/admin/actors/pools.py
threefoldtech/jumpscaleX_threebot
2841e1109abf1bee113b027a7e04bfbd25cbcb48
[ "Apache-2.0" ]
5
2019-09-26T14:03:05.000Z
2020-04-16T08:47:10.000Z
from Jumpscale import j class pools(j.baseclasses.threebot_actor): @j.baseclasses.actor_method def list_pools(self, schema_out=None, user_session=None): ret_pools = [] for pool in j.sal.zosv2.pools.list(): ret_pools.append(pool._ddict) return j.data.serializers.json.dumps(r...
30
61
0.690909
ec8520615ec50d0a8e90cf010c19c98e10f0b30c
3,984
py
Python
alipay/aop/api/request/AlipayMerchantOrderCreateandpayRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayMerchantOrderCreateandpayRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayMerchantOrderCreateandpayRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayMerchantOrderCreateandpayModel import AlipayMerchantOrderCreateandpayModel class AlipayMerchantOrderCreateandpayRequest(object...
27.475862
148
0.646084
c64ccac34170437164289971b61d3c2277663f4d
354
py
Python
lib/steps/SetEnvVar.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
lib/steps/SetEnvVar.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
lib/steps/SetEnvVar.py
lastcolour/Tacos
fe2b65250bfa74613151ae2dc6a91eb30f254844
[ "MIT" ]
null
null
null
from .Step import Step import os class SetEnvVar(Step): def __init__(self): Step.__init__(self) self._vars = {} def serialize(self, jsonNode): for key in jsonNode: self._vars[str(key)] = str(jsonNode[key]) def run(self): for key, var in self._vars.items():...
22.125
53
0.573446
585c08b0574465d82b9880d21cb365fa277febe0
509
py
Python
lambda_handlers/validators/http/http_validator.py
renovate-tests/lambda-handlers
0b14013f19b597524a8d50f7ea8813ee726c584c
[ "Apache-2.0" ]
null
null
null
lambda_handlers/validators/http/http_validator.py
renovate-tests/lambda-handlers
0b14013f19b597524a8d50f7ea8813ee726c584c
[ "Apache-2.0" ]
null
null
null
lambda_handlers/validators/http/http_validator.py
renovate-tests/lambda-handlers
0b14013f19b597524a8d50f7ea8813ee726c584c
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict from lambda_handlers.validators.validator import Validator class HttpValidator(Validator): def __init__(self, path=None, query=None, body=None, request=None, response=None): super().__init__(input_schema=request, output_schema=response) self._schemas = { ...
26.789474
86
0.654224
b4b79fa5ca7d81074c658c7ce14e51cbe93a7089
189
py
Python
Images/From_2D_to_3D/sweep.py
RubenRubens/Montys-CAD
3c59b1a8b01f66f61cce4bf8be735d63fd79bcef
[ "Apache-2.0" ]
2
2020-06-06T22:16:36.000Z
2020-08-10T11:24:25.000Z
Images/From_2D_to_3D/sweep.py
RubenRubens/SolidMonty
3c59b1a8b01f66f61cce4bf8be735d63fd79bcef
[ "Apache-2.0" ]
null
null
null
Images/From_2D_to_3D/sweep.py
RubenRubens/SolidMonty
3c59b1a8b01f66f61cce4bf8be735d63fd79bcef
[ "Apache-2.0" ]
null
null
null
from SolidMonty_FreeCAD import * A = rotate("Y", angle = 90) (circle(10)) path = spline(points = [[0, 0], [30, 50], [40, 59]], closed = False) F = sweep(A, path) export(name="sweep") (F)
23.625
68
0.608466
e1da72d5be0e3ad5c43a1630257e9ead86883011
2,095
py
Python
text/keras_detectE_invoice.py
kingemma/invoice
b381ffcd4b798434ea74cb4463eb5cff276ded3a
[ "MIT" ]
1,017
2019-08-02T04:18:35.000Z
2022-03-29T08:18:03.000Z
text/keras_detectE_invoice.py
kingemma/invoice
b381ffcd4b798434ea74cb4463eb5cff276ded3a
[ "MIT" ]
47
2019-08-08T08:36:48.000Z
2022-03-08T07:00:29.000Z
text/keras_detectE_invoice.py
kingemma/invoice
b381ffcd4b798434ea74cb4463eb5cff276ded3a
[ "MIT" ]
300
2019-08-03T03:06:30.000Z
2022-03-31T02:20:11.000Z
from config import kerasTextEModel_invoice,IMGSIZE,keras_anchors,class_names,GPU,GPUID from text.keras_yolo3 import yolo_text,box_layer,K from apphelper.image import resize_im,letterbox_image from PIL import Image import numpy as np import tensorflow as tf graph = tf.get_default_graph()##解决web.py 相关报错问题 anchors = [fl...
30.808824
87
0.622912
71dfd93d3a87810260b0717c7bd3489e6a853dd3
1,098
py
Python
src/third_party/wiredtiger/dist/java_doc.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
72
2020-06-12T06:33:41.000Z
2021-03-22T03:15:56.000Z
src/third_party/wiredtiger/dist/java_doc.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
9
2020-07-02T09:36:49.000Z
2021-03-25T23:54:00.000Z
src/third_party/wiredtiger/dist/java_doc.py
danx0r/mongo
70d4944c235bcdf7fbbc63971099563d2af72956
[ "Apache-2.0" ]
23
2017-01-22T03:35:26.000Z
2021-12-16T11:17:39.000Z
#!/usr/bin/env python # This program pulls the function names from wiredtiger.in and generates # an input file for Java SWIG that adds doxygen copydoc comments to functions. import os, re, sys import api_data from dist import compare_srcfile # Temporary file. tmp_file = '__tmp' #####################################...
24.954545
78
0.562842
794f581387e59c130c0476e0f8f180cbae813724
2,351
py
Python
patterns.py
IvanBrasilico/cli_talker
9932196e414e7875da592851a761e3f7a47550f6
[ "MIT" ]
null
null
null
patterns.py
IvanBrasilico/cli_talker
9932196e414e7875da592851a761e3f7a47550f6
[ "MIT" ]
1
2021-06-01T21:56:20.000Z
2021-06-01T21:56:20.000Z
patterns.py
IvanBrasilico/cli_talker
9932196e414e7875da592851a761e3f7a47550f6
[ "MIT" ]
null
null
null
'''Configuration of the routes, or vocabulary of the bot''' from botteryapp import ch, ih from bottery.conf.patterns import Pattern, DefaultPattern from bottery.views import pong from cli_talker.views import (flask_restless_view, help_text, say_help, tec_view) from sql_alchemy_view.views i...
30.532468
74
0.72097
da879c91a5473a23d4134151f19c4cc0a11e1d79
11,698
py
Python
acq4/devices/MicroManagerStage/mmstage.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
1
2020-06-04T17:04:53.000Z
2020-06-04T17:04:53.000Z
acq4/devices/MicroManagerStage/mmstage.py
aleonlein/acq4
4b1fcb9ad2c5e8d4595a2b9cf99d50ece0c0f555
[ "MIT" ]
24
2016-09-27T17:25:24.000Z
2017-03-02T21:00:11.000Z
acq4/devices/MicroManagerStage/mmstage.py
sensapex/acq4
9561ba73caff42c609bd02270527858433862ad8
[ "MIT" ]
4
2016-10-19T06:39:36.000Z
2019-09-30T21:06:45.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import time import numpy as np from acq4.util import Qt from ..Stage import Stage, MoveFuture, StageInterface from acq4.util.Mutex import Mutex from acq4.util.Thread import Thread from acq4.pyqtgraph import debug, ptime, SpinBox from acq4.util.micromanager i...
35.883436
141
0.565481
629621bf0b1be6f53e8d6c0c3619070bc3e8b8b1
256
py
Python
module2-sql-for-analysis/DS8_example.py
CurtCalledBurt/DS-Unit-3-Sprint-2-SQL-and-Databases
132e6355b8175667eff3fd5fc89f075086afadd3
[ "MIT" ]
null
null
null
module2-sql-for-analysis/DS8_example.py
CurtCalledBurt/DS-Unit-3-Sprint-2-SQL-and-Databases
132e6355b8175667eff3fd5fc89f075086afadd3
[ "MIT" ]
null
null
null
module2-sql-for-analysis/DS8_example.py
CurtCalledBurt/DS-Unit-3-Sprint-2-SQL-and-Databases
132e6355b8175667eff3fd5fc89f075086afadd3
[ "MIT" ]
null
null
null
def increment(x): return x + 1 def double(x): return x * 2 def run_twice(func, arg): return func(func(arg)) def rec_print(n): print(n) if n > 0: rec_print(n-1) def add(x,y): return x + y def identity(x): return x
12.190476
26
0.5625
5d76c124236344f2a9b280e1dbdecfa010b62c45
309
py
Python
atividade1/questao3.py
AbraaoHonorio/PDI
96cc0839c38b1b13989eca762f98c472ac11ed00
[ "MIT" ]
2
2018-07-05T00:46:21.000Z
2018-07-09T15:14:57.000Z
atividade1/questao3.py
AbraaoHonorio/PDI
96cc0839c38b1b13989eca762f98c472ac11ed00
[ "MIT" ]
null
null
null
atividade1/questao3.py
AbraaoHonorio/PDI
96cc0839c38b1b13989eca762f98c472ac11ed00
[ "MIT" ]
null
null
null
from util import * def questao3(originalImage): ''' Coloca a imagem em modo negativo Parametros: originalImage: Imagem a ser modificada ''' imageResult = None imageResult = applyToAllPixels(originalImage, {'fun': negative}) return imageResult def negative(b,g,r): return [255-b,255-g,255-r]
17.166667
65
0.721683
34adbb64f7dae554d1a418394748e5b4d07a87ba
2,456
py
Python
closed/Intel/code/resnet50/pytorch-cpu/Backend.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
12
2021-09-23T08:05:57.000Z
2022-03-21T03:52:11.000Z
closed/Intel/code/resnet50/pytorch-cpu/Backend.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
11
2021-09-23T20:34:06.000Z
2022-01-22T07:58:02.000Z
closed/Intel/code/resnet50/pytorch-cpu/Backend.py
ctuning/inference_results_v1.1
d9176eca28fcf6d7a05ccb97994362a76a1eb5ab
[ "Apache-2.0" ]
16
2021-09-23T20:26:38.000Z
2022-03-09T12:59:56.000Z
import logging import os import sys logging.basicConfig(level=logging.INFO) log = logging.getLogger("BACKEND") from baseBackend import baseBackend """ Resnet50 Pytorch SUT class """ import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import...
32.315789
113
0.651873
c13fd4817ab16a266af1405b3f99ff454184c3db
4,377
py
Python
src/interpret.py
kundajelab/retina-models
bd458c65f5917f5dccb87f123e9be672472bd4b6
[ "MIT" ]
null
null
null
src/interpret.py
kundajelab/retina-models
bd458c65f5917f5dccb87f123e9be672472bd4b6
[ "MIT" ]
null
null
null
src/interpret.py
kundajelab/retina-models
bd458c65f5917f5dccb87f123e9be672472bd4b6
[ "MIT" ]
null
null
null
import deepdish as dd import json import numpy as np import tensorflow as tf import pandas as pd import shap from tensorflow import keras import pyfaidx import shutil import errno import os from utils import argmanager, data_utils from utils.loss import multinomial_nll from utils.shap_utils import * # disable eager ex...
35.585366
109
0.693626
db633717e976db8c4b0800094472ffb4a1022d92
11,052
py
Python
code/pretrain_DAMSM.py
s-52/AttnGAN
66a33bf20deb419fb2e91ea15d32aaff36558b44
[ "MIT" ]
null
null
null
code/pretrain_DAMSM.py
s-52/AttnGAN
66a33bf20deb419fb2e91ea15d32aaff36558b44
[ "MIT" ]
null
null
null
code/pretrain_DAMSM.py
s-52/AttnGAN
66a33bf20deb419fb2e91ea15d32aaff36558b44
[ "MIT" ]
1
2022-02-24T20:24:40.000Z
2022-02-24T20:24:40.000Z
from __future__ import print_function from miscc.utils import mkdir_p from miscc.utils import build_super_images from miscc.losses import sent_loss, words_loss from miscc.config import cfg, cfg_from_file from datasets import TextDataset from datasets import prepare_data from model import RNN_ENCODER, CNN_ENCODER im...
37.337838
123
0.59962
4c5f6aca589388c1cbb93ddd7c99546db2d8ca6a
339
py
Python
tolqc-api/app/main/service/specimen.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/main/service/specimen.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
tolqc-api/app/main/service/specimen.py
sanger-tol/tolqc
6ef535a0eb0028c5d9270ff18d95d38c6656cbdd
[ "MIT" ]
null
null
null
# SPDX-FileCopyrightText: 2021 Genome Research Ltd. # # SPDX-License-Identifier: MIT from main.model import TolqcSpecimen from main.schema import SpecimenSchema from .base import BaseService, setup_service @setup_service class SpecimenService(BaseService): class Meta: model = TolqcSpecimen schem...
21.1875
51
0.769912
ee06d56e85a8c6140a4c00814e5fb41354d70c68
638
py
Python
commands/help.py
plainenough/slackbot
28c0b5c43f9b344aef3bf94d243ebdee82edaf72
[ "MIT" ]
null
null
null
commands/help.py
plainenough/slackbot
28c0b5c43f9b344aef3bf94d243ebdee82edaf72
[ "MIT" ]
25
2019-10-29T21:15:33.000Z
2021-01-07T04:03:28.000Z
commands/help.py
plainenough/slackbot
28c0b5c43f9b344aef3bf94d243ebdee82edaf72
[ "MIT" ]
null
null
null
"""Generate help message from docstrings.""" def alias(): """Load custom commands and the functions they map too.""" alias = dict(help=generate_help) return alias def generate_help(**kwargs): """Pull the doc string out of all of the commands.""" message = kwargs.get('message') commands = mes...
30.380952
68
0.619122
a8a7cba23305b1ecc60e31c4549427514e9ae35d
9,910
py
Python
meanshifttracking.py
himanshubnm/vision-opencv
17324a0cf12bc8203ea0740e2c536c91e701b999
[ "MIT" ]
null
null
null
meanshifttracking.py
himanshubnm/vision-opencv
17324a0cf12bc8203ea0740e2c536c91e701b999
[ "MIT" ]
null
null
null
meanshifttracking.py
himanshubnm/vision-opencv
17324a0cf12bc8203ea0740e2c536c91e701b999
[ "MIT" ]
null
null
null
import numpy as np import cv2 class MeanShiftTracker(object): # initialization of tracker def __init__(self, centroid_x, centroid_y, obj_width, obj_height): self._prev_centroid_x = centroid_x self._prev_centroid_y = centroid_y self._curr_centroid_x = centroid_x self._curr_cen...
36.300366
128
0.614329
393219935255b25dfb97ea7e1bee291a6f2bb679
1,084
py
Python
correlations/server.py
egenerat/portfolio
b356c682222255e647202b224266d6dc8ce2e0fb
[ "Apache-2.0" ]
null
null
null
correlations/server.py
egenerat/portfolio
b356c682222255e647202b224266d6dc8ce2e0fb
[ "Apache-2.0" ]
41
2017-03-18T17:57:19.000Z
2021-06-13T14:17:36.000Z
correlations/server.py
egenerat/portfolio
b356c682222255e647202b224266d6dc8ce2e0fb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from flask import Flask, jsonify, request from funds_correlations import correlations, parse_performances_from_dict import traceback app = Flask(__name__) @app.route("/correlations", methods=['POST']) def correlation_api(): try: req_json = request.get_json() valid_input = True ...
27.794872
73
0.575646
7c3c7904e73bf158c6e1f2f17881c8e02d135bf7
4,950
py
Python
tweet-new-statements.py
factopolis/factopolis
ab8305299431c41218e0a5f7211b18d5b18b6ad0
[ "CC-BY-4.0", "MIT" ]
3
2017-08-16T19:58:46.000Z
2017-09-23T17:46:47.000Z
tweet-new-statements.py
factopolis/factopolis
ab8305299431c41218e0a5f7211b18d5b18b6ad0
[ "CC-BY-4.0", "MIT" ]
2
2017-09-04T03:25:30.000Z
2017-11-02T03:10:29.000Z
tweet-new-statements.py
factopolis/factopolis
ab8305299431c41218e0a5f7211b18d5b18b6ad0
[ "CC-BY-4.0", "MIT" ]
null
null
null
#!/usr/bin/python3 # Yes, this is in desparate need of refactoring. Functionality grew without proper planning. import os, re, json, tweepy, datetime, pprint, humanize def tweet(msg, in_reply_to): if ('TWITTER_CONSUMER_KEY' in os.environ and 'TWITTER_CONSUMER_SECRET' in os.environ and 'TW...
30.9375
112
0.569091
95ad8184c61dd157cb47fb8ad0f2fd40a62aed63
1,182
py
Python
Researchforum/researchforum/controllers/signup.py
Pratikgit/Researchforum
3f86d1d959ac51ca224faba302092c23e805cfb4
[ "Apache-2.0" ]
null
null
null
Researchforum/researchforum/controllers/signup.py
Pratikgit/Researchforum
3f86d1d959ac51ca224faba302092c23e805cfb4
[ "Apache-2.0" ]
null
null
null
Researchforum/researchforum/controllers/signup.py
Pratikgit/Researchforum
3f86d1d959ac51ca224faba302092c23e805cfb4
[ "Apache-2.0" ]
null
null
null
import logging from pylons import request, response, session, tmpl_context as c, url from pylons.controllers.util import abort, redirect from researchforum.lib.base import BaseController, render from researchforum.model import * log = logging.getLogger(__name__) class SignupController(BaseController): def inde...
35.818182
94
0.646362
4ff35c862e1d3a586c93d0f6c44ff5b60779af6e
4,190
py
Python
challenge/leet/medium/q695.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
null
null
null
challenge/leet/medium/q695.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
3
2021-04-17T18:36:24.000Z
2022-03-04T20:30:09.000Z
challenge/leet/medium/q695.py
odys-z/hello
39ca67cae34eb4bc4cbd848a06b3c0d65a995954
[ "MIT" ]
null
null
null
''' 695. Max Area of Island https://leetcode.com/problems/max-area-of-island/ Input: grid = [ [_,_,1,_,_,_,_,1,_,_,_,_,_], [_,_,_,_,_,_,_,1,1,1,_,_,_], [_,1,1,_,1,_,_,_,_,_,_,_,_], [_,1,_,_,1,1,_,_,1,_,1,_,_], [_,1,_,_,1,1,_,_,1,1,1,_,_], [_,_,_,_,_,_,_,_,_,_,1,_,_], [_,_,_,_,_,_,_,1,1,1,_,_,_], [_,_,_,_,_,_,_,1,1,...
26.518987
80
0.432458
d24c979e256c96ae4f0a8c5ee108896f70af11c5
434
py
Python
gen_big_slant_up.py
sechilds/altair_survey_pyconca_2019
d4439031596f3351628e4adc5d5ad6ce12b1be70
[ "MIT" ]
null
null
null
gen_big_slant_up.py
sechilds/altair_survey_pyconca_2019
d4439031596f3351628e4adc5d5ad6ce12b1be70
[ "MIT" ]
null
null
null
gen_big_slant_up.py
sechilds/altair_survey_pyconca_2019
d4439031596f3351628e4adc5d5ad6ce12b1be70
[ "MIT" ]
null
null
null
import pandas as pd import altair as alt datasaurus = pd.read_csv('data/DataSaurusDozen.tsv', delimiter = '\t') alt.Chart(datasaurus[datasaurus.dataset == 'slant_up']).mark_point(color="#1b9e77").encode( x = 'x:Q', y = 'y:Q', size = alt.value(90), strokeWidth = alt.value(4) ).configure_axis( label...
24.111111
91
0.658986
d1fbee4e4d368569615cc48ea176df46a50180fa
1,553
py
Python
python-algorithm/leetcode/problem_40.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
5
2017-06-11T09:19:34.000Z
2019-01-16T16:58:31.000Z
python-algorithm/leetcode/problem_40.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
5
2020-03-22T13:53:54.000Z
2020-03-23T08:49:35.000Z
python-algorithm/leetcode/problem_40.py
isudox/nerd-algorithm
c1fbe153953cf3fc24395f75d102016fdf9ea0fa
[ "MIT" ]
1
2019-03-02T15:50:43.000Z
2019-03-02T15:50:43.000Z
"""40. Combination Sum II https://leetcode.com/problems/combination-sum-ii/ Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target. Each number in candidates may only be used once in the combination. Not...
24.265625
80
0.553767
4d4b1a324a7127990e8676acbe7216845303a6ae
46,350
py
Python
tensor2tensor/data_generators/generator_utils.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
12,921
2017-06-15T17:11:46.000Z
2022-03-31T15:22:11.000Z
tensor2tensor/data_generators/generator_utils.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
1,635
2017-06-18T15:29:27.000Z
2022-03-19T20:35:23.000Z
tensor2tensor/data_generators/generator_utils.py
jaseweir/tensor2tensor
2a33b152d7835af66a6d20afe7961751047e28dd
[ "Apache-2.0" ]
3,521
2017-06-15T18:25:42.000Z
2022-03-31T05:47:55.000Z
# coding=utf-8 # Copyright 2021 The Tensor2Tensor 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 applicable...
36.961722
105
0.681036
3eaee3ea49d4252618de34e08e759ef0ad2b1d0a
2,022
py
Python
icsReader.py
LoicYvinec/PoliCal
d6f81a77727c5caeed5901b750b6bb322d9f5dba
[ "BSD-3-Clause" ]
null
null
null
icsReader.py
LoicYvinec/PoliCal
d6f81a77727c5caeed5901b750b6bb322d9f5dba
[ "BSD-3-Clause" ]
null
null
null
icsReader.py
LoicYvinec/PoliCal
d6f81a77727c5caeed5901b750b6bb322d9f5dba
[ "BSD-3-Clause" ]
null
null
null
import wget import os import logging logging.basicConfig(filename='Running.log',level=logging.INFO, format='%(asctime)s:%(levelname)s:%(message)s') def convertICStoCSV(): logging.info("Empezando:") logging.infoc("Eliminando si existe") print("Empezando:") print("Eliminando si existe") filename="m...
33.7
181
0.558853
652482e633d9cce394c57398084724959a89b819
4,287
py
Python
v7/subindexes/subindexes.py
littlemo/plugins
d7a6a6af11a7722c560c2de4fe959f77eb68d5b9
[ "MIT" ]
1
2017-10-15T00:43:44.000Z
2017-10-15T00:43:44.000Z
v7/subindexes/subindexes.py
littlemo/plugins
d7a6a6af11a7722c560c2de4fe959f77eb68d5b9
[ "MIT" ]
null
null
null
v7/subindexes/subindexes.py
littlemo/plugins
d7a6a6af11a7722c560c2de4fe959f77eb68d5b9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright © 2012-2014 Blake Winton <bwinton@latte.ca>. # 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, including without limitation # the ri...
43.30303
93
0.555633
fdfbf6b683b192199efb31573b5646783525f016
4,096
py
Python
src/ontask/forms.py
ShizhuZhang/ontask_b
acbf05ff9b18dae0a41c67d1e41774e54a890c40
[ "MIT" ]
1
2020-11-08T16:47:46.000Z
2020-11-08T16:47:46.000Z
src/ontask/forms.py
ShizhuZhang/Ontask_b_zh
ca4526871f26e7153b724b1e97b922a0b52f75d6
[ "MIT" ]
null
null
null
src/ontask/forms.py
ShizhuZhang/Ontask_b_zh
ca4526871f26e7153b724b1e97b922a0b52f75d6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function from datetimewidget.widgets import DateTimeWidget from django import forms from django.template.defaultfilters import filesizeformat from django.utils.translation import ugettext_lazy as _ import ontask.ontask_prefs dateTimeOptions = { ...
36.247788
78
0.557617
65e00cc0acfbde0ffeca3fb48ea9cdcb30ba7951
2,365
py
Python
src/testToneFrequency.py
ytyaru/Python.Audio.Chord.2017081743
f9bad6c9c013c216aff586bed56ea646f26d1236
[ "CC0-1.0" ]
null
null
null
src/testToneFrequency.py
ytyaru/Python.Audio.Chord.2017081743
f9bad6c9c013c216aff586bed56ea646f26d1236
[ "CC0-1.0" ]
null
null
null
src/testToneFrequency.py
ytyaru/Python.Audio.Chord.2017081743
f9bad6c9c013c216aff586bed56ea646f26d1236
[ "CC0-1.0" ]
null
null
null
import Wave.Player import Wave.Sampler import Wave.BaseWaveMaker import Wave.WaveFile import MusicTheory.ToneFrequency if __name__ == '__main__': tf = MusicTheory.ToneFrequency.ToneFrequency() for name in ('C','D','E','F','G','A','B'): print(name, tf.ToFrequency(name)) print() for name in ('C+','D+','E...
46.372549
106
0.550529
78b3e367ddcbc5a5adfe95465f7aebd686ebf968
154
py
Python
Core/pageManager/login.py
alpinepwd/Tiamat
4d7f6d8af60b475bdbd70c3246f2d12b38c8e8e5
[ "Apache-2.0" ]
1
2016-09-22T09:38:02.000Z
2016-09-22T09:38:02.000Z
Core/pageManager/login.py
alpinepwd/Tiamat
4d7f6d8af60b475bdbd70c3246f2d12b38c8e8e5
[ "Apache-2.0" ]
null
null
null
Core/pageManager/login.py
alpinepwd/Tiamat
4d7f6d8af60b475bdbd70c3246f2d12b38c8e8e5
[ "Apache-2.0" ]
null
null
null
from PageManager import PageManager class login(PageManager): "controlador de Login" def __init__(self): super(self) print "jiji"
22
35
0.675325
660cc7cb121ed7d5dc1b89fe980add15ffce1310
2,464
py
Python
omics/stats/tSNR.py
choyichen/pybcb
60ba382be28bdbce466a9b24760fe44d421aa5ae
[ "MIT" ]
3
2017-05-11T02:13:03.000Z
2020-08-04T06:59:11.000Z
omics/stats/tSNR.py
choyichen/pybcb
60ba382be28bdbce466a9b24760fe44d421aa5ae
[ "MIT" ]
null
null
null
omics/stats/tSNR.py
choyichen/pybcb
60ba382be28bdbce466a9b24760fe44d421aa5ae
[ "MIT" ]
1
2020-07-03T06:57:51.000Z
2020-07-03T06:57:51.000Z
"""Transcriptomic SNR (tSNR) """ import numpy as np __version__ = '16.12.28' __author__ = 'Cho-Yi Chen' def tsnr(X, Y): """Transcriptomic SNR (tSNR) X: case expression matrix (genes-by-samples) Y: ctrl expression matrix (genes-by-samples) Return the tSNR (float) between X and Y. """ # See ht...
32.853333
99
0.616477
20572dfded2b4a9edb521e6e61ccc492312b29d5
658
py
Python
install/TexGen/Python/Tests/TestUtils.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
14
2021-06-17T17:17:07.000Z
2022-03-26T05:20:20.000Z
install/TexGen/Python/Tests/TestUtils.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
6
2021-11-01T20:37:39.000Z
2022-03-11T17:18:53.000Z
install/TexGen/Python/Tests/TestUtils.py
dalexa10/puma
ca02309c9f5c71e2e80ad8d64155dd6ca936c667
[ "NASA-1.3" ]
8
2021-07-20T09:24:23.000Z
2022-02-26T16:32:00.000Z
from TexGen.Core import * def GetTestTextile(): Textile = CTextile() Yarn = CYarn() Yarn.AddNode(CNode(XYZ(0, 0, 0))) Yarn.AddNode(CNode(XYZ(0, 1, 0))) Yarn.AssignInterpolation(CInterpolationBezier()) Yarn.AssignSection(CYarnSectionConstant(CSectionEllipse(1, 1))) Yarn.SetResolution(20) ...
28.608696
67
0.674772
58ba402f2f717dd728770a6009bd5df772812508
2,883
py
Python
mod_md/MDMessageCmd.py
k-komarov/c10r
3f3d394f23aba889ac2c4db9b9e1aeaaf6f44cd6
[ "MIT" ]
null
null
null
mod_md/MDMessageCmd.py
k-komarov/c10r
3f3d394f23aba889ac2c4db9b9e1aeaaf6f44cd6
[ "MIT" ]
null
null
null
mod_md/MDMessageCmd.py
k-komarov/c10r
3f3d394f23aba889ac2c4db9b9e1aeaaf6f44cd6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import os.path import mysql.connector import logging import toml import dns.resolver cwd = os.path.dirname(os.path.realpath(__file__)) config = toml.load(cwd + "/MDMessageCmd.toml") logging.basicConfig(filename=config["logger"]["file"], format='%(asctime)s [%(leve...
38.44
103
0.607353
6219edf5f8696e2a3e025f09f59c67446de336a8
831
py
Python
constants.py
Batlin/NestTweaks
0ab833d68f20be078b0e06a2658b9ba3c55e4e99
[ "MIT" ]
null
null
null
constants.py
Batlin/NestTweaks
0ab833d68f20be078b0e06a2658b9ba3c55e4e99
[ "MIT" ]
null
null
null
constants.py
Batlin/NestTweaks
0ab833d68f20be078b0e06a2658b9ba3c55e4e99
[ "MIT" ]
null
null
null
from enum import Enum import apikeys # Endpoints SPREADSHEET = 'https://script.google.com/macros/s/' + apikeys.GS_ID + '/exec' SPREADSHEET_DEV = 'https://script.google.com/macros/s/' + apikeys.GS_ID + '/dev' # Open Weather OWM_API_KEY = apikeys.OWM OWM_CITY = 'Madrid, Spain' OWM_UNITS = 'celsius' # Google Assistant ...
23.083333
80
0.731649
070274fba0af195c51a82b2219ce63701fc6ac4c
5,141
py
Python
natlas-server/app/admin/forms.py
ryanohoro/natlas
7df513fe429928ac75b7478532cccd5ca88c8b62
[ "Apache-2.0" ]
null
null
null
natlas-server/app/admin/forms.py
ryanohoro/natlas
7df513fe429928ac75b7478532cccd5ca88c8b62
[ "Apache-2.0" ]
null
null
null
natlas-server/app/admin/forms.py
ryanohoro/natlas
7df513fe429928ac75b7478532cccd5ca88c8b62
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField from wtforms import StringField, BooleanField, SubmitField, TextAreaField, PasswordField, IntegerField, SelectField from wtforms.validators import DataRequired, ValidationError, Email, Optional from app.models import User, ScopeItem, AgentScript impor...
35.212329
115
0.76736
4c2cc2c86a9659e538fa587ebc98637d041df279
3,346
py
Python
precise/model.py
mondhs/mycroft-precise
5b0cc922ab8b767c7f7adf704aa9c4652a6a1bb9
[ "Apache-2.0" ]
null
null
null
precise/model.py
mondhs/mycroft-precise
5b0cc922ab8b767c7f7adf704aa9c4652a6a1bb9
[ "Apache-2.0" ]
null
null
null
precise/model.py
mondhs/mycroft-precise
5b0cc922ab8b767c7f7adf704aa9c4652a6a1bb9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Mycroft AI 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 law or agreed to in writin...
36.769231
98
0.692767
dc22e7d6a38b1b9e224a744d78487be33fca9852
1,806
py
Python
terrascript/digitalocean/r.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/digitalocean/r.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
null
null
null
terrascript/digitalocean/r.py
GarnerCorp/python-terrascript
ec6c2d9114dcd3cb955dd46069f8ba487e320a8c
[ "BSD-2-Clause" ]
1
2018-11-15T16:23:05.000Z
2018-11-15T16:23:05.000Z
from terrascript import _resource class digitalocean_certificate(_resource): pass certificate = digitalocean_certificate class digitalocean_cdn(_resource): pass cdn = digitalocean_cdn class digitalocean_database_cluster(_resource): pass database_cluster = digitalocean_database_cluster class digitalocean_domain(_reso...
29.129032
60
0.875969
dabc85be1b414657b1778bbaa0bd34f29a6c5254
18,763
py
Python
rllib/tests/test_nested_observation_spaces.py
acmore/ray
9f0f54266064e203b0bdcc9d3fa947cb4518ebc0
[ "Apache-2.0" ]
null
null
null
rllib/tests/test_nested_observation_spaces.py
acmore/ray
9f0f54266064e203b0bdcc9d3fa947cb4518ebc0
[ "Apache-2.0" ]
1
2020-06-23T07:54:44.000Z
2020-06-23T08:04:47.000Z
rllib/tests/test_nested_observation_spaces.py
acmore/ray
9f0f54266064e203b0bdcc9d3fa947cb4518ebc0
[ "Apache-2.0" ]
null
null
null
from gym import spaces from gym.envs.registration import EnvSpec import gym import numpy as np import pickle import unittest import ray from ray.rllib.agents.a3c import A2CTrainer from ray.rllib.agents.pg import PGTrainer from ray.rllib.agents.pg.pg_tf_policy import PGTFPolicy from ray.rllib.env import MultiAgentEnv f...
34.810761
78
0.575761
756638a08de7ca34645f8c0bf3bb917c1a8d026b
24,520
py
Python
Lib/site-packages/PyQt5/examples/richtext/textedit/textedit.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Lib/site-packages/PyQt5/examples/richtext/textedit/textedit.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Lib/site-packages/PyQt5/examples/richtext/textedit/textedit.py
heylenz/python27
bee49fa9d65b8ab7d591146a5b6cd47aeb41d940
[ "bzip2-1.0.6", "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2013 Riverbank Computing Limited ## Copyright (C) 2010 Hans-Peter Jansen <hpj@urpla.net>. ## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ## All rights reserved. ## ## This file...
37.321157
89
0.612602
d24524e72eb3db446524554d15e8330f8db89fe7
2,303
py
Python
Lib/site-packages/rope/base/ast.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
463
2015-01-15T08:17:42.000Z
2022-03-28T15:10:20.000Z
Lib/site-packages/rope/base/ast.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
52
2015-01-06T02:43:59.000Z
2022-03-14T11:15:21.000Z
Lib/site-packages/rope/base/ast.py
hirorin-demon/hirorin-streamlit
03fbb6f03ec94f909d451e708a3b30b177607695
[ "0BSD" ]
249
2015-01-07T22:49:49.000Z
2022-03-18T02:32:06.000Z
from __future__ import absolute_import import ast from ast import * from rope.base import fscommands try: unicode except NameError: unicode = str def parse(source, filename='<string>'): # NOTE: the raw string should be given to `compile` function if isinstance(source, unicode): source = fsco...
29.525641
72
0.600955
ef33e591013a547be58ff2b4dad927091046608b
1,587
py
Python
django_get_started/urls.py
patricia-j/devops-aula13
893282d02c832ba8e6fbd61ca0c785761890c548
[ "MIT" ]
null
null
null
django_get_started/urls.py
patricia-j/devops-aula13
893282d02c832ba8e6fbd61ca0c785761890c548
[ "MIT" ]
12
2018-05-24T01:20:06.000Z
2018-05-24T02:26:34.000Z
django_get_started/urls.py
patricia-j/devops-aula13
893282d02c832ba8e6fbd61ca0c785761890c548
[ "MIT" ]
null
null
null
""" Definition of urls for django_get_started. """ from datetime import datetime from django.conf.urls import patterns, url from app.forms import BootstrapAuthenticationForm # Uncomment the next lines to enable the admin: # from django.conf.urls import include # from django.contrib import admin # admin.autodiscover()...
33.0625
91
0.623819
d9bdbcd81822f1c58d3d9759404a67f3596d5025
2,060
py
Python
dbdaora/hash/_tests/test_integration_service_hash_aioredis_exists.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
21
2019-10-14T14:33:33.000Z
2022-02-11T04:43:07.000Z
dbdaora/hash/_tests/test_integration_service_hash_aioredis_exists.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
null
null
null
dbdaora/hash/_tests/test_integration_service_hash_aioredis_exists.py
dutradda/sqldataclass
5c87a3818e9d736bbf5e1438edc5929a2f5acd3f
[ "MIT" ]
1
2019-09-29T23:51:44.000Z
2019-09-29T23:51:44.000Z
import itertools import asynctest import pytest from aioredis import RedisError from jsondaora import dataclasses @pytest.mark.asyncio async def test_should_exists(fake_service, serialized_fake_entity): await fake_service.repository.memory_data_source.hmset( 'fake:fake', *itertools.chain(*serialized_fake...
30.294118
84
0.773301
17bd0a522f2729e1c2b6fab3cad91eb517756dba
3,073
py
Python
tests/clustering_system/evaluator/test_SupervisedEvaluation.py
vanam/clustering
6e3d3ce7e60e31519b81547bc4afdf6ef3b0079f
[ "MIT" ]
5
2019-05-28T15:45:46.000Z
2020-10-05T17:48:27.000Z
tests/clustering_system/evaluator/test_SupervisedEvaluation.py
vanam/clustering
6e3d3ce7e60e31519b81547bc4afdf6ef3b0079f
[ "MIT" ]
null
null
null
tests/clustering_system/evaluator/test_SupervisedEvaluation.py
vanam/clustering
6e3d3ce7e60e31519b81547bc4afdf6ef3b0079f
[ "MIT" ]
2
2019-07-16T14:13:19.000Z
2020-11-23T01:53:44.000Z
import numpy as np import scipy.stats import sklearn.metrics from numpy.testing import assert_almost_equal, assert_array_almost_equal import clustering_system.evaluator.measures as cm from clustering_system.evaluator.SupervisedEvaluation import SupervisedEvaluation class TestSupervisedEvaluation: def test_evalu...
37.47561
103
0.669378
96a62a325dba27ce21e6618dec8dcf747836ad38
423
py
Python
src/similarizer.py
DavidRivasPhD/mrseadd
fd41cf4965c7e96a5e995513b039fb5e3c7c9d0b
[ "Apache-2.0" ]
null
null
null
src/similarizer.py
DavidRivasPhD/mrseadd
fd41cf4965c7e96a5e995513b039fb5e3c7c9d0b
[ "Apache-2.0" ]
null
null
null
src/similarizer.py
DavidRivasPhD/mrseadd
fd41cf4965c7e96a5e995513b039fb5e3c7c9d0b
[ "Apache-2.0" ]
null
null
null
def similarizing(query, sentences, nlp): """ Given a original_query and clean_sentences, the function scores the similarity between them """ doc_query = nlp(query) similarity_scores = {} for i in range(0, len(sentences)): doc_sentence_i = nlp(sentences[i]) similarity_i = doc_que...
32.538462
95
0.695035
767dc3e7d96e1e19e6064e94893c2d8a260da73e
6,260
py
Python
examples/flappy_birds.py
ericmux/termux2d
195571c06b6844726e34cbd5d2643a2425c5f403
[ "MIT" ]
null
null
null
examples/flappy_birds.py
ericmux/termux2d
195571c06b6844726e34cbd5d2643a2425c5f403
[ "MIT" ]
null
null
null
examples/flappy_birds.py
ericmux/termux2d
195571c06b6844726e34cbd5d2643a2425c5f403
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os sys.path.append(os.path.abspath("..")) import curses from termux2d import Canvas, line from time import sleep from thread import start_new_thread from Queue import Queue import locale from random import randint locale.setlocale(locale.LC_ALL,"") stdscr = curses.initscr() ...
29.528302
80
0.474601
baecb9b88d901fe49ea2e4df982740cd10f7253e
735
py
Python
tests/test_reweighing.py
gusrabbit/aif360-learn
b14a9b98e96dd2756faf312047e9a50ccc1559fa
[ "Apache-2.0" ]
null
null
null
tests/test_reweighing.py
gusrabbit/aif360-learn
b14a9b98e96dd2756faf312047e9a50ccc1559fa
[ "Apache-2.0" ]
null
null
null
tests/test_reweighing.py
gusrabbit/aif360-learn
b14a9b98e96dd2756faf312047e9a50ccc1559fa
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from aiflearn.algorithms.preprocessing.reweighing import Reweighing from aiflearn.datasets import AdultDataset def test_instance_weights(): ad = ...
36.75
79
0.77551
304d5f835bdd81c7d2f2ebca7e3c22f6ee2a3ca8
459
py
Python
examples/ackley.py
SimpleArt/spsa
55ff58868f9b5e515dff4b55c8d0671f0f124f3d
[ "MIT" ]
8
2022-02-19T07:28:18.000Z
2022-03-16T07:15:37.000Z
examples/ackley.py
SimpleArt/spsa
55ff58868f9b5e515dff4b55c8d0671f0f124f3d
[ "MIT" ]
null
null
null
examples/ackley.py
SimpleArt/spsa
55ff58868f9b5e515dff4b55c8d0671f0f124f3d
[ "MIT" ]
null
null
null
import numpy as np from examples._utils import run def function(x: np.ndarray) -> float: """ The Ackley function is -20 exp(-0.2 sqrt(0.5 (x^2 + y^2))) - exp(0.5 (cos(2 pi x) + cos(2 pi y))) """ return -( 20 * np.exp(-0.2 * np.sqrt(0.5 * (x**2).sum())) + np.exp(0.5 * np....
22.95
55
0.503268
197f22e8843755fbb73e438c997faf4be5d2868a
407
py
Python
fireworks/utils/utils_test.py
kellylab/Fireworks
ff027cd8d1b8ce5eec6a37d786e7de675d8c0849
[ "MIT" ]
9
2019-05-01T01:22:10.000Z
2020-12-08T15:41:13.000Z
fireworks/utils/utils_test.py
smk508/Fireworks
ff027cd8d1b8ce5eec6a37d786e7de675d8c0849
[ "MIT" ]
53
2019-01-20T17:02:38.000Z
2019-03-24T18:00:08.000Z
fireworks/utils/utils_test.py
smk508/Fireworks
ff027cd8d1b8ce5eec6a37d786e7de675d8c0849
[ "MIT" ]
4
2019-07-04T15:39:46.000Z
2021-08-17T04:59:25.000Z
from . import utils import numpy as np def test_one_hot(): hot = utils.one_hot(2, 10) assert (hot == np.array([0,0,1,0,0,0,0,0,0,0])).all() def test_subset_dict(): d1 = {'a':1, 'b':2, 'c':3, 'd': 4} d2 = utils.subset_dict(d1, ['b', 'c', 'e']) assert d2['b'] == d1['b'] assert d2['c'] == d2['c...
21.421053
57
0.518428
e20a3d9ae867a8e4b24a1cc401095f36334af586
151,598
py
Python
awlify/utils/awl_full_results.py
lpmi-13/awlify-python
e1a5826d94ceff1e586e1785fcd1967691ba2758
[ "MIT" ]
1
2019-09-14T11:38:48.000Z
2019-09-14T11:38:48.000Z
awlify/utils/awl_full_results.py
lpmi-13/awlify-python
e1a5826d94ceff1e586e1785fcd1967691ba2758
[ "MIT" ]
1
2019-02-09T14:24:02.000Z
2020-10-25T05:25:55.000Z
awlify/utils/awl_full_results.py
lpmi-13/awlify-python
e1a5826d94ceff1e586e1785fcd1967691ba2758
[ "MIT" ]
null
null
null
awl_list = {"adjacent": {"head": "adjacent", "sublist": 10}, "albeit": {"head": "albeit", "sublist": 10}, "assemble": {"head": "assemble", "sublist": 10}, "assembled": {"head": "assemble", "sublist": 10}, "assembles": {"head": "assemble", "sublist": 10}, "assemblies": {"head": "assemble", "sublist": 10}, "assembling": ...
75,799
151,597
0.589902
fb2ac49313b125c5ec20102506096a8575274ec2
305
py
Python
game.py
keerthana1502/python_practice
8c0499e014826af78f9a88730551ace3fa79686d
[ "bzip2-1.0.6" ]
null
null
null
game.py
keerthana1502/python_practice
8c0499e014826af78f9a88730551ace3fa79686d
[ "bzip2-1.0.6" ]
null
null
null
game.py
keerthana1502/python_practice
8c0499e014826af78f9a88730551ace3fa79686d
[ "bzip2-1.0.6" ]
null
null
null
a=input("left or right?") if(a=="right"): b=input("swim or wait? ") if(b=="swim"): c=input("colour = ") if(c=="yellow"): print("win") else: print("Game over") elif(b=="wait"): print("Game over") elif(a=="left"): print("Game over")
19.0625
30
0.452459
41ac45d9b86b6e40b318dd19dca22ee36e3582b7
73,824
py
Python
Lib/xml/etree/ElementTree.py
masamitsu-murase/single_binary_stackless_python
1a601683882bc0a024b1bef3e35719554e44cce1
[ "CNRI-Python-GPL-Compatible" ]
5
2018-07-02T19:10:39.000Z
2021-09-27T04:05:10.000Z
Lib/xml/etree/ElementTree.py
masamitsu-murase/single_binary_stackless_python
1a601683882bc0a024b1bef3e35719554e44cce1
[ "CNRI-Python-GPL-Compatible" ]
3
2018-06-10T06:28:06.000Z
2021-09-24T13:54:19.000Z
Lib/xml/etree/ElementTree.py
masamitsu-murase/single_binary_stackless_python
1a601683882bc0a024b1bef3e35719554e44cce1
[ "CNRI-Python-GPL-Compatible" ]
null
null
null
"""Lightweight XML support for Python. XML is an inherently hierarchical data format, and the most natural way to represent it is with a tree. This module has two classes for this purpose: 1. ElementTree represents the whole XML document as a tree and 2. Element represents a single node in this tree. In...
35.526468
96
0.57996
bdfe72787217fbeed7e0767f901365fb98bd66f1
73
py
Python
start.py
ronligt/workshop_myrr
f898014301c3bc00179b71b6326803cc32847c6b
[ "MIT" ]
null
null
null
start.py
ronligt/workshop_myrr
f898014301c3bc00179b71b6326803cc32847c6b
[ "MIT" ]
null
null
null
start.py
ronligt/workshop_myrr
f898014301c3bc00179b71b6326803cc32847c6b
[ "MIT" ]
null
null
null
#!/usr/bin/env python from workshop import workshop workshop.example()
12.166667
29
0.767123
215405000f5844fd8744253b46c0ec248a43a6d0
31,882
py
Python
pyqode/core/panels/folding.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
pyqode/core/panels/folding.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
pyqode/core/panels/folding.py
haesleinhuepf/pyqode.core
88b9bab081fd580d4de86f3d926a9f0b19146d28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module contains the marker panel """ import logging import os import sys from pyqode.core.api import TextBlockHelper, folding, TextDecoration, \ DelayJobRunner from pyqode.core.api.folding import FoldScope from pyqode.core.api.panel import Panel from qtpy import QtCore, QtWidgets, Q...
39.071078
85
0.577128
ea27b221c1d6ab1169212f62abde30df11413c7a
88
py
Python
vaskitsa/python/classifiers/__init__.py
hile/vaskitsa
acebf6cc970e9c342f6b8dc15f0c8d37b272aa5b
[ "PSF-2.0" ]
null
null
null
vaskitsa/python/classifiers/__init__.py
hile/vaskitsa
acebf6cc970e9c342f6b8dc15f0c8d37b272aa5b
[ "PSF-2.0" ]
null
null
null
vaskitsa/python/classifiers/__init__.py
hile/vaskitsa
acebf6cc970e9c342f6b8dc15f0c8d37b272aa5b
[ "PSF-2.0" ]
null
null
null
""" Python trove classifiers """ # flake8: noqa: F401 from .lookup import Classifiers
11
31
0.715909
3b5c19ef61dded7d2f804eae04e8bb6a25420b69
2,532
py
Python
ceilometer/objectstore/notifications.py
gitter-badger/ceilometer
21bde474f4836b4a933caf41baf4e20e5ff25135
[ "Apache-2.0" ]
null
null
null
ceilometer/objectstore/notifications.py
gitter-badger/ceilometer
21bde474f4836b4a933caf41baf4e20e5ff25135
[ "Apache-2.0" ]
null
null
null
ceilometer/objectstore/notifications.py
gitter-badger/ceilometer
21bde474f4836b4a933caf41baf4e20e5ff25135
[ "Apache-2.0" ]
3
2015-10-08T20:03:36.000Z
2020-02-05T10:45:50.000Z
# # Copyright 2015 Red Hat. 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 applicable law or a...
34.684932
77
0.628752
0bdfb86d43765d32c855bad56f72694632dbbce1
327
py
Python
main.py
HiggsHydra/permian-frac-exchange
1dd1e409e5389373590c7d3780a54cd9f12d1166
[ "MIT" ]
null
null
null
main.py
HiggsHydra/permian-frac-exchange
1dd1e409e5389373590c7d3780a54cd9f12d1166
[ "MIT" ]
null
null
null
main.py
HiggsHydra/permian-frac-exchange
1dd1e409e5389373590c7d3780a54cd9f12d1166
[ "MIT" ]
null
null
null
""" Entry point""" import logging import app as app import loggers logger = logging.getLogger(__name__) def main(): loggers.standard_config() try: app.run() except Exception as e: logger.exception("Process failed.") if __name__ == "__main__": main() # TODO: Check ./data folder ...
13.08
43
0.64526
c515990dfecce7c502c22d4b99eecc65a8dca123
24
py
Python
hello_world.py
angrymarcos/profiles-rest-api
54c04f03871c94a12832ec5d5850a162d74f3adf
[ "MIT" ]
null
null
null
hello_world.py
angrymarcos/profiles-rest-api
54c04f03871c94a12832ec5d5850a162d74f3adf
[ "MIT" ]
5
2021-03-19T11:25:39.000Z
2022-02-10T13:15:47.000Z
hello_world.py
angrymarcos/profiles-rest-api
54c04f03871c94a12832ec5d5850a162d74f3adf
[ "MIT" ]
null
null
null
print("hello World!!!")
12
23
0.625
9254e8ef8243e1eac39a8b2f722b7af6217535b9
12,757
py
Python
zunclient/common/apiclient/exceptions.py
wkite/python-zunclient
f94c2838d33bfe2f5d440ea642d6ce1bd0fd47de
[ "Apache-2.0" ]
null
null
null
zunclient/common/apiclient/exceptions.py
wkite/python-zunclient
f94c2838d33bfe2f5d440ea642d6ce1bd0fd47de
[ "Apache-2.0" ]
null
null
null
zunclient/common/apiclient/exceptions.py
wkite/python-zunclient
f94c2838d33bfe2f5d440ea642d6ce1bd0fd47de
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 Jacob Kaplan-Moss # Copyright 2011 Nebula, Inc. # Copyright 2013 Alessio Ababilov # Copyright 2013 OpenStack Foundation # 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 # ...
27.084926
79
0.670142
855194cc6b89604a3abfe46429e345503f2a27f1
96
py
Python
venv/lib/python3.8/site-packages/numpy/core/numerictypes.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/numpy/core/numerictypes.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/numpy/core/numerictypes.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/8e/b1/37/7b57173356f7e78e62222f530083e033283e8bc4a15917acf6fea1faa4
96
96
0.895833
2f73d0ca868873168cb38f38457a2ea4422df4b4
2,454
py
Python
src/lessons/watermark_lesson.py
vicktech/Face-Recognition
5122cd73f664000ec6611b4d72aca1f4c57939cd
[ "Apache-2.0" ]
null
null
null
src/lessons/watermark_lesson.py
vicktech/Face-Recognition
5122cd73f664000ec6611b4d72aca1f4c57939cd
[ "Apache-2.0" ]
null
null
null
src/lessons/watermark_lesson.py
vicktech/Face-Recognition
5122cd73f664000ec6611b4d72aca1f4c57939cd
[ "Apache-2.0" ]
1
2020-06-11T21:55:59.000Z
2020-06-11T21:55:59.000Z
import numpy as np import cv2 from utils import CFEVideoConf, image_resize cap = cv2.VideoCapture(0) save_path = 'saved-media/watermark.mp4' frames_per_seconds = 24 config = CFEVideoConf(cap, filepath=save_path, res='720p') out = cv2.VideoWriter(save_path, config.video_type, frames_per_seconds, config.dims) img_pat...
32.72
97
0.656072
05a7fcdca2213ee07978dcb27fd46fd6a32f0cdb
3,130
py
Python
dmhyorg.py
simonkq1/DMHY_qBittorrent_search_plugin
7c6c1c230e7d3ee5a7c80f987224c8c41cb28024
[ "MIT" ]
null
null
null
dmhyorg.py
simonkq1/DMHY_qBittorrent_search_plugin
7c6c1c230e7d3ee5a7c80f987224c8c41cb28024
[ "MIT" ]
null
null
null
dmhyorg.py
simonkq1/DMHY_qBittorrent_search_plugin
7c6c1c230e7d3ee5a7c80f987224c8c41cb28024
[ "MIT" ]
null
null
null
#VERSION: 1.02 #AUTHORS: xyau (xyauhideto@gmail.com) # MIT License # # Copyright (c) 2018 xyau # # 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, including without limit...
40.649351
209
0.608626
a2a362cc2efb66f56fc41c410a44b81153be2736
1,538
py
Python
phrase_extract.py
neerajvashistha/blogAggregation
e73eb530ea946a0e278f22cf7b031b56b7ab264d
[ "MIT" ]
null
null
null
phrase_extract.py
neerajvashistha/blogAggregation
e73eb530ea946a0e278f22cf7b031b56b7ab264d
[ "MIT" ]
null
null
null
phrase_extract.py
neerajvashistha/blogAggregation
e73eb530ea946a0e278f22cf7b031b56b7ab264d
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function import six import sys from modules import rake import operator import io # from modules import spellcheck # from spellchecker import SpellChecker from nltk.corpus import stopwords stopword_list = stopwords.words('english') stopword_list.extend...
34.954545
95
0.728218
de4ce1ca5c7463fdf2f0c5385aaab8ba3ffd8512
8,989
py
Python
src/poetry/masonry/builders/editable.py
nikmolnar/poetry
ea335b569502cd03647a9df9d6a6aad71acde93f
[ "MIT" ]
null
null
null
src/poetry/masonry/builders/editable.py
nikmolnar/poetry
ea335b569502cd03647a9df9d6a6aad71acde93f
[ "MIT" ]
null
null
null
src/poetry/masonry/builders/editable.py
nikmolnar/poetry
ea335b569502cd03647a9df9d6a6aad71acde93f
[ "MIT" ]
null
null
null
from __future__ import annotations import hashlib import os import shutil from base64 import urlsafe_b64encode from pathlib import Path from typing import TYPE_CHECKING from poetry.core.masonry.builders.builder import Builder from poetry.core.masonry.builders.sdist import SdistBuilder from poetry.core.masonry.utils....
33.920755
87
0.557014
e18d6b482fd319c58448829fbf9b905f4275a4e2
3,773
py
Python
proj_flask/web_app.py
markwkiehl/flask_proj1
d065ca1b3f567800b5aca6e27379368e0e3346e9
[ "MIT", "BSD-3-Clause" ]
null
null
null
proj_flask/web_app.py
markwkiehl/flask_proj1
d065ca1b3f567800b5aca6e27379368e0e3346e9
[ "MIT", "BSD-3-Clause" ]
null
null
null
proj_flask/web_app.py
markwkiehl/flask_proj1
d065ca1b3f567800b5aca6e27379368e0e3346e9
[ "MIT", "BSD-3-Clause" ]
null
null
null
#web_app.py from flask import jsonify, request, render_template, redirect, url_for from proj_flask import app # define a navigation bar #pip install Flask-Navigation #https://flask-navigation.readthedocs.io/en/latest/ from flask_navigation import Navigation nav = Navigation() nav.init_app(app) nav.Bar('top', [ n...
24.986755
113
0.61463
a89e356e80b92e676fc8dcea12766fbda812d8f4
15,270
py
Python
baselines/bigcn/model/Twitter/BiGCN_Twitter-ORG-Attn-0331.py
JihoChoi/dynamic-gcn-deprecated-TBU
ff315206811b757f2f61f0776917e6a7d43c9379
[ "MIT" ]
1
2022-02-24T09:17:31.000Z
2022-02-24T09:17:31.000Z
baselines/bigcn/model/Twitter/BiGCN_Twitter-ORG-Attn-0331.py
JihoChoi/dynamic-gcn-deprecated-TBU
ff315206811b757f2f61f0776917e6a7d43c9379
[ "MIT" ]
null
null
null
baselines/bigcn/model/Twitter/BiGCN_Twitter-ORG-Attn-0331.py
JihoChoi/dynamic-gcn-deprecated-TBU
ff315206811b757f2f61f0776917e6a7d43c9379
[ "MIT" ]
null
null
null
import sys,os sys.path.append(os.getcwd()) # from Process.process import * from Process.process import * import torch as th from torch_scatter import scatter_mean import torch.nn.functional as F import numpy as np from tools.earlystopping import EarlyStopping from torch_geometric.data import DataLoader from tqdm import...
44.132948
164
0.602685
927f4207e2f063dd3ac4b358411fb003df78fa14
20,018
py
Python
disarm/binary/experiment_launcher_singlelayer.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
disarm/binary/experiment_launcher_singlelayer.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
disarm/binary/experiment_launcher_singlelayer.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
36.264493
80
0.689729
41ac730759846752db8e713332d94474e5861bee
3,451
py
Python
examples/submission/calculation_tests/test_submit_fleur_mpi.py
Tseplyaev/aiida-fleur
5de36d8b235e4b4edd908e7a0cb594112a461eb5
[ "MIT" ]
null
null
null
examples/submission/calculation_tests/test_submit_fleur_mpi.py
Tseplyaev/aiida-fleur
5de36d8b235e4b4edd908e7a0cb594112a461eb5
[ "MIT" ]
null
null
null
examples/submission/calculation_tests/test_submit_fleur_mpi.py
Tseplyaev/aiida-fleur
5de36d8b235e4b4edd908e7a0cb594112a461eb5
[ "MIT" ]
null
null
null
#!/usr/bin/env runaiida # -*- coding: utf-8 -*- __copyright__ = (u"Copyright (c), 2016, Forschungszentrum Jülich GmbH, " "IAS-1/PGI-1, Germany. All rights reserved.") __license__ = "MIT license, see LICENSE.txt file" __version__ = "0.27" __contributors__ = "Jens Broeder" from aiida import load_dbenv,...
31.09009
97
0.701246
3a9f95fd53587dc34876913e802f50141b0e2ded
15,755
py
Python
myven/lib/python3.8/site-packages/ansible/modules/cloud/amazon/ec2_vpc_dhcp_option.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
1
2021-04-02T08:08:39.000Z
2021-04-02T08:08:39.000Z
myven/lib/python3.8/site-packages/ansible/modules/cloud/amazon/ec2_vpc_dhcp_option.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
null
null
null
myven/lib/python3.8/site-packages/ansible/modules/cloud/amazon/ec2_vpc_dhcp_option.py
baltham/dne-dna-code
4a13309a790a670d2f07e635c9264a0c29976c6a
[ "MIT" ]
1
2020-05-03T01:13:16.000Z
2020-05-03T01:13:16.000Z
#!/usr/bin/python # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['stableinterf...
38.1477
155
0.663916
a6e282d54f4d271d6693c8193c613f5582f7e1cb
88
py
Python
app_sys/apps.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
app_sys/apps.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
app_sys/apps.py
sivarki/hjarnuc
4acc9437af0f0fdc44d68dd0d6923e1039a4911b
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class AppSysConfig(AppConfig): name = 'app_sys'
14.666667
33
0.75
a7f990dc05022a06f8d40fd2988dab796307c572
548
py
Python
pypy/module/token/test/test_token.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
381
2018-08-18T03:37:22.000Z
2022-02-06T23:57:36.000Z
pypy/module/token/test/test_token.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
16
2018-09-22T18:12:47.000Z
2022-02-22T20:03:59.000Z
pypy/module/token/test/test_token.py
nanjekyejoannah/pypy
e80079fe13c29eda7b2a6b4cd4557051f975a2d9
[ "Apache-2.0", "OpenSSL" ]
55
2015-08-16T02:41:30.000Z
2022-03-20T20:33:35.000Z
class AppTestToken: def setup_class(cls): cls.w_token = cls.space.appexec([], """(): import token return token""") def test_isterminal(self): assert self.token.ISTERMINAL(self.token.ENDMARKER) assert not self.token.ISTERMINAL(300) def test_isnonterminal(self): asse...
28.842105
60
0.671533
c27745178567440d72f336463f2c1cc7ab50e1c8
3,520
py
Python
cacheops/conf.py
ymguerra/django-cacheops
962fdf53b4b1f3a38320164f2f769809612cec59
[ "BSD-3-Clause" ]
1,369
2015-01-02T19:15:23.000Z
2022-03-30T12:31:46.000Z
cacheops/conf.py
ymguerra/django-cacheops
962fdf53b4b1f3a38320164f2f769809612cec59
[ "BSD-3-Clause" ]
285
2015-01-05T02:50:04.000Z
2022-03-29T08:32:56.000Z
cacheops/conf.py
ymguerra/django-cacheops
962fdf53b4b1f3a38320164f2f769809612cec59
[ "BSD-3-Clause" ]
178
2015-01-31T09:51:23.000Z
2022-03-31T15:25:06.000Z
from importlib import import_module from funcy import memoize, merge from django.conf import settings as base_settings from django.core.exceptions import ImproperlyConfigured from django.core.signals import setting_changed ALL_OPS = {'get', 'fetch', 'count', 'aggregate', 'exists'} class Defaults: CACHEOPS_ENAB...
31.428571
100
0.641761