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
577c1794e9fcb7bdccc6a2a9158ce5b0867f7053
4,230
py
Python
notebook/pandas_agg.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
174
2018-05-30T21:14:50.000Z
2022-03-25T07:59:37.000Z
notebook/pandas_agg.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
5
2019-08-10T03:22:02.000Z
2021-07-12T20:31:17.000Z
notebook/pandas_agg.py
vhn0912/python-snippets
80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038
[ "MIT" ]
53
2018-04-27T05:26:35.000Z
2022-03-25T07:59:37.000Z
import pandas as pd import numpy as np print(pd.__version__) # 1.0.0 print(pd.DataFrame.agg is pd.DataFrame.aggregate) # True df = pd.DataFrame({'A': [0, 1, 2], 'B': [3, 4, 5]}) print(df) # A B # 0 0 3 # 1 1 4 # 2 2 5 print(df.agg(['sum', 'mean', 'min', 'max'])) # A B # sum 3.0 12.0 # mean ...
18.883929
77
0.513002
0
0
0
0
0
0
0
0
2,762
0.652955
577c3969fe84dd6102e296297a763c6f7d167111
4,016
py
Python
boonai/model.py
Scapogo/boonai
ebc889cdc7a67e613c512f694ed8050e78b9b4e8
[ "MIT" ]
null
null
null
boonai/model.py
Scapogo/boonai
ebc889cdc7a67e613c512f694ed8050e78b9b4e8
[ "MIT" ]
null
null
null
boonai/model.py
Scapogo/boonai
ebc889cdc7a67e613c512f694ed8050e78b9b4e8
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from flask_user import UserMixin from itsdangerous import (TimedJSONWebSignatureSerializer as Serializer, BadSignature, SignatureExpired) db = SQLAlchemy() class User(db.Model, UserMixin): __tablename__ = 'user' id = db.Column(db.Integer, prima...
35.539823
89
0.677042
3,768
0.938247
0
0
361
0.08989
0
0
433
0.107819
577d66ecbe1bdf71f6e1d9db706fc825c2daa640
6,324
py
Python
botfw/bitflyer/api_web.py
Snufkin0866/btc_bot_framework
164db3924ec2126e71cfac4be96acc65fb47d1d6
[ "MIT" ]
3
2020-10-17T14:08:57.000Z
2021-07-08T03:30:52.000Z
botfw/bitflyer/api_web.py
Snufkin0866/btc_bot_framework
164db3924ec2126e71cfac4be96acc65fb47d1d6
[ "MIT" ]
null
null
null
botfw/bitflyer/api_web.py
Snufkin0866/btc_bot_framework
164db3924ec2126e71cfac4be96acc65fb47d1d6
[ "MIT" ]
2
2021-01-07T15:12:38.000Z
2021-04-01T19:11:50.000Z
import json from urllib.parse import urlencode import requests from bs4 import BeautifulSoup from .api import BitflyerApi class BitflyerApiWithWebOrder(BitflyerApi): def __init__(self, ccxt, login_id, password, account_id, device_id=None, device_token=None): super().__init__(ccxt) ...
31.778894
79
0.542062
6,194
0.979443
0
0
0
0
0
0
1,345
0.212682
577f6cf385c7b053dbf2eea92626a248674a8677
2,969
py
Python
codes/train.py
PowerLZY/malware_classification_bdci
42058b076a06174d629cc759a1d0e81224baeb06
[ "MIT" ]
8
2022-02-14T07:10:14.000Z
2022-03-23T05:18:43.000Z
codes/train.py
PowerLZY/malware_classification_bdci
42058b076a06174d629cc759a1d0e81224baeb06
[ "MIT" ]
null
null
null
codes/train.py
PowerLZY/malware_classification_bdci
42058b076a06174d629cc759a1d0e81224baeb06
[ "MIT" ]
1
2022-02-17T06:21:23.000Z
2022-02-17T06:21:23.000Z
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : train.py @Contact : 3289218653@qq.com @License : (C)Copyright 2021-2022 PowerLZY @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2021-10-04 15:03 PowerLZY&yuan_mes ...
33.359551
144
0.633883
0
0
0
0
0
0
0
0
1,057
0.345087
5782896b4d6e5c85e7c0c81d31dbd8cff1438078
453
py
Python
crawlMp/enums.py
domarm-comat/crawlMp
32b66573f351a2f28fcb7ce8627f8605975f76eb
[ "MIT" ]
1
2021-12-03T15:14:36.000Z
2021-12-03T15:14:36.000Z
crawlMp/enums.py
domarm-comat/crawlMp
32b66573f351a2f28fcb7ce8627f8605975f76eb
[ "MIT" ]
2
2021-12-03T16:10:14.000Z
2021-12-03T18:09:33.000Z
crawlMp/enums.py
domarm-comat/crawlMp
32b66573f351a2f28fcb7ce8627f8605975f76eb
[ "MIT" ]
null
null
null
from enum import Enum from typing import Tuple, Type, Optional class Mode(Enum): SIMPLE = "s" EXTENDED = "e" def __str__(self) -> str: return self.value class Header(Enum): PATH = "Path" NAME = "Name" SIZE = "Size" MODIFIED = "Modified" ACCESSED = "Accessed" INPUT = "Inp...
16.777778
47
0.602649
334
0.737307
0
0
0
0
0
0
59
0.130243
5782a0f511913dc91413d535eac081c7bb757a0f
6,190
py
Python
protocols.py
MartinKist/p2p
046c6258f936789aff73b884235b9b202e7e7f7a
[ "MIT" ]
2
2021-06-29T11:32:59.000Z
2021-06-30T09:11:24.000Z
protocols.py
MartinKist/p2p
046c6258f936789aff73b884235b9b202e7e7f7a
[ "MIT" ]
null
null
null
protocols.py
MartinKist/p2p
046c6258f936789aff73b884235b9b202e7e7f7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # (c) 2021 Martin Kistler from abc import ABC, abstractmethod from enum import Enum from os import linesep from twisted.internet import reactor from twisted.internet.error import ConnectionDone from twisted.internet.protocol import Factory, Protocol from twisted.logger import Logger from twiste...
30.79602
121
0.664297
5,639
0.910985
0
0
1,208
0.195153
0
0
796
0.128595
5782dd6002965788cc0b91a4b76d21a40b2045ce
279
py
Python
airflow-materials/demo/mnt/dags/pipeline/process.py
reginold/airflow-handson
2ac150955f3191f2acaa88643484bb0a7e4f10ea
[ "Apache-2.0" ]
null
null
null
airflow-materials/demo/mnt/dags/pipeline/process.py
reginold/airflow-handson
2ac150955f3191f2acaa88643484bb0a7e4f10ea
[ "Apache-2.0" ]
null
null
null
airflow-materials/demo/mnt/dags/pipeline/process.py
reginold/airflow-handson
2ac150955f3191f2acaa88643484bb0a7e4f10ea
[ "Apache-2.0" ]
null
null
null
def second_task(**context): print("This is ----------- task 2") return "hoge======" def third_task(**context): output = context["task_instance"].xcom_pull(task_ids="python_task_2") print("This is ----------- task 3") return "This is the result : " + output
27.9
73
0.594982
0
0
0
0
0
0
0
0
121
0.433692
578339eb7a9855dc70e1449145cbddebafa88983
1,803
py
Python
002-python-oop/code/021_oop_class_builtin_attributes.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
002-python-oop/code/021_oop_class_builtin_attributes.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
002-python-oop/code/021_oop_class_builtin_attributes.py
CHemaxi/python
6544ea79be447bcd39488e7366685966bebd9964
[ "MIT" ]
null
null
null
""" MARKDOWN --- YamlDesc: CONTENT-ARTICLE Title: python builtin class attributes MetaDescription: python object oriented programming class builtin attributes __doc__, __name__, __module__, __bases__ example code, tutorials MetaKeywords: python object oriented programming class builtin attributes __doc__, __name__, __m...
30.05
141
0.709373
464
0.257349
0
0
0
0
0
0
1,452
0.805324
57844212fa28ebcdefb93bfed459606ee05dd39b
2,950
py
Python
Prototype_2/web/blueprints/index.py
amal66/Kawm
3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133
[ "MIT" ]
null
null
null
Prototype_2/web/blueprints/index.py
amal66/Kawm
3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133
[ "MIT" ]
null
null
null
Prototype_2/web/blueprints/index.py
amal66/Kawm
3bf442ea1f4b572f4ec840e0ee6ec7d96ae23133
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template,redirect,url_for,request,flash,make_response from flask import current_app as app from flask_login import ( LoginManager, current_user, login_required, login_user, logout_user, UserMixin, ) from ..models import User, db from ..security import hash_str...
43.382353
124
0.557288
0
0
0
0
2,439
0.82678
0
0
489
0.165763
57855a5d43bc96be7a4767d1b460ba7bd929c017
2,072
py
Python
sensor/GY521_MPU6050.py
Smart4L/embedded-server
cf10ebb1ccc3002b45c20315ec521eaf1a9e7f10
[ "MIT" ]
null
null
null
sensor/GY521_MPU6050.py
Smart4L/embedded-server
cf10ebb1ccc3002b45c20315ec521eaf1a9e7f10
[ "MIT" ]
null
null
null
sensor/GY521_MPU6050.py
Smart4L/embedded-server
cf10ebb1ccc3002b45c20315ec521eaf1a9e7f10
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time from math import atan2, degrees import board import busio import adafruit_mpu6050 class GY521_MPU6050(): def __init__(self, id=None, address=0x68) -> None: self.id_sensor = id self.i2c = busio.I2C(board.SCL, board.SDA) self.mpu = adafruit_mpu60...
28
153
0.64527
1,744
0.841699
0
0
0
0
0
0
392
0.189189
5785a172941ebdf8c77fe0b87766c3f3223d087b
1,832
py
Python
sumo/tools/projects/TaxiFCD_Krieg/src/taxiQuantity/TaxisPerEdge.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tools/projects/TaxiFCD_Krieg/src/taxiQuantity/TaxisPerEdge.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tools/projects/TaxiFCD_Krieg/src/taxiQuantity/TaxisPerEdge.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
#!/usr/bin/env python # -*- coding: Latin-1 -*- """ @file TaxisPerEdge.py @author Sascha Krieg @author Daniel Krajzewicz @author Michael Behrisch @date 2008-04-08 @version $Id$ Counts for every edge in the given FCD-file the number of Taxis which used this edge. After that this information can be visualized w...
26.941176
95
0.674672
0
0
0
0
0
0
0
0
1,059
0.578057
5785e6a036807a5d9394d69f5f7eaf543965d731
879
py
Python
Tree/maxDepth.py
konantian/LeetCode
f97609cfe139159bc000cac5b39a1d0c28517d24
[ "MIT" ]
2
2018-06-02T03:57:20.000Z
2018-10-20T22:15:17.000Z
Tree/maxDepth.py
konantian/leetcode
f97609cfe139159bc000cac5b39a1d0c28517d24
[ "MIT" ]
null
null
null
Tree/maxDepth.py
konantian/leetcode
f97609cfe139159bc000cac5b39a1d0c28517d24
[ "MIT" ]
1
2019-01-31T05:17:19.000Z
2019-01-31T05:17:19.000Z
''' Source : https://leetcode.com/problems/maximum-depth-of-binary-tree/ Author : Yuan Wang Date : 2018-07-21 /********************************************************************************** *Given a binary tree, find its maximum depth. * *The maximum depth is the number of nodes along the longest path from the ...
21.975
84
0.544937
0
0
0
0
0
0
0
0
660
0.750853
57872eecc46c7a0d72ec8a778e7292de65dabc9e
6,358
py
Python
cli/mmt/mmtcli.py
Centaurioun/modernmt
4dec42090088fdecf2d75c3e1ed9d41e603a7de1
[ "Apache-2.0" ]
154
2019-04-18T04:46:45.000Z
2022-03-23T21:21:50.000Z
cli/mmt/mmtcli.py
Centaurioun/modernmt
4dec42090088fdecf2d75c3e1ed9d41e603a7de1
[ "Apache-2.0" ]
406
2016-01-08T22:42:59.000Z
2019-01-31T17:07:39.000Z
cli/mmt/mmtcli.py
Centaurioun/modernmt
4dec42090088fdecf2d75c3e1ed9d41e603a7de1
[ "Apache-2.0" ]
38
2016-05-29T16:50:40.000Z
2018-12-15T02:53:42.000Z
import os import re from cli.mmt import MMT_HOME_DIR, MMT_LIB_DIR, MMT_BIN_DIR, MMT_JAR, MMT_PLUGINS_JARS from cli.utils import osutils def __get_java_version(): try: stdout, stderr = osutils.shell_exec(['java', '-version']) java_output = stdout + '\n' + stderr for line in java_output.sp...
37.845238
120
0.617332
0
0
0
0
0
0
0
0
1,610
0.253224
57883f6ad7f708a53fa8b719d4d89b28c98e01a8
2,497
py
Python
DocumentClassicifation.py
ValentineNauli/My_MachineLearning
3c32253e5f1ef43dc94de14da47e4e456d5bfb3f
[ "Apache-2.0" ]
1
2020-10-20T02:33:50.000Z
2020-10-20T02:33:50.000Z
DocumentClassicifation.py
ValentineNauli/My_MachineLearning
3c32253e5f1ef43dc94de14da47e4e456d5bfb3f
[ "Apache-2.0" ]
null
null
null
DocumentClassicifation.py
ValentineNauli/My_MachineLearning
3c32253e5f1ef43dc94de14da47e4e456d5bfb3f
[ "Apache-2.0" ]
null
null
null
#AUTHOR : HAMORA HADI """ You have been given a stack of documents that have already been processed and some that have not. Your task is to classify these documents into one of eight categories: [1,2,3,...8]. You look at the specifications on what a document must contain and are baffled by the jargon. However...
31.607595
133
0.635162
0
0
0
0
0
0
0
0
1,188
0.475771
57885b1f14f79ac4171cf51a11ef29a2c3dc1503
4,232
py
Python
utils/make_temporal_subsets.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
null
null
null
utils/make_temporal_subsets.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
14
2021-11-26T14:43:25.000Z
2022-03-22T00:39:17.000Z
utils/make_temporal_subsets.py
davidhwyllie/findNeighbour4
d42e10711e59e93ebf0e798fbb1598929f662c9c
[ "MIT" ]
null
null
null
""" generates lists of SARS-CoV-2 samples which occurred before a particular date Also generates a dictionary of reference compressed sequences And a subset of these Together, these can be passed to a ram_persistence object which can be used instead of an fn3persistence object to test the performance of PCA, or for o...
36.8
127
0.756144
0
0
0
0
0
0
0
0
1,987
0.469518
5788ff69ca8306377b664e4a0c3f2b102ca5c7c0
7,476
py
Python
kiauhoku/dartmouth.py
zclaytor/kiauhoku
5b3357dc2093577f97f80cc829c1ca785e4fae63
[ "MIT" ]
12
2019-10-12T03:10:17.000Z
2021-05-05T04:18:49.000Z
kiauhoku/dartmouth.py
zclaytor/kiauhoku
5b3357dc2093577f97f80cc829c1ca785e4fae63
[ "MIT" ]
1
2022-02-07T10:55:11.000Z
2022-02-26T00:27:31.000Z
kiauhoku/dartmouth.py
zclaytor/kiauhoku
5b3357dc2093577f97f80cc829c1ca785e4fae63
[ "MIT" ]
1
2019-10-18T21:50:32.000Z
2019-10-18T21:50:32.000Z
import os import re import pickle import numpy as np import pandas as pd from tqdm import tqdm # Assign labels used in eep conversion eep_params = dict( age = 'Age (yrs)', hydrogen_lum = 'L_H', lum = 'Log L', logg = 'Log g', log_teff = 'Log T', core_hydrogen_frac = 'X_core', # must be added ...
32.224138
80
0.651284
0
0
0
0
0
0
0
0
3,525
0.471509
57891dccfc7a6660f1ab82ce9811e218955d5cf9
685
py
Python
geoscript/geom/io/wkt.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
geoscript/geom/io/wkt.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
geoscript/geom/io/wkt.py
jericks/geoscript-py
8dc600343f42dd87b1981023522a1a8cf56006a9
[ "MIT" ]
null
null
null
from com.vividsolutions.jts.io import WKTReader, WKTWriter from geoscript.util import deprecated def readWKT(wkt): """ Constructs a geometry from Well Known Text. *wkt* is the Well Known Text string representing the geometry as described by http://en.wikipedia.org/wiki/Well-known_text. >>> readWKT('POINT (1...
20.757576
125
0.683212
0
0
0
0
80
0.116788
0
0
425
0.620438
578b06c44ad4120f5203622c4930a21961e766fa
1,053
py
Python
config/settings/production.py
maxelite1520/multi-vendor-e-commerce
98dfe5533a7f7ce33ef8e43ecb8669614d7298c5
[ "MIT" ]
null
null
null
config/settings/production.py
maxelite1520/multi-vendor-e-commerce
98dfe5533a7f7ce33ef8e43ecb8669614d7298c5
[ "MIT" ]
1
2021-09-01T15:21:10.000Z
2021-09-01T15:21:10.000Z
config/settings/production.py
maxelite1520/multi-vendor-e-commerce
98dfe5533a7f7ce33ef8e43ecb8669614d7298c5
[ "MIT" ]
null
null
null
import os import dj_database_url import dotenv from .base import BASE_DIR env = BASE_DIR / '.env' dotenv.read_dotenv(env) # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False ALLOWED_HOSTS = ["multiple-vendor-e-commerce.herokuapp.com"] # Database # https://docs.djangoproject.com/en/3....
19.5
65
0.750237
0
0
0
0
0
0
0
0
513
0.487179
578c743bedee8f67d9035661125837e42bfc1a81
638
py
Python
webapp/starter/tracker/views.py
jersobh/docker-covidoff
a0d62f6f7c2bae5f1e6a567abdcbf59a90a5e03f
[ "MIT" ]
null
null
null
webapp/starter/tracker/views.py
jersobh/docker-covidoff
a0d62f6f7c2bae5f1e6a567abdcbf59a90a5e03f
[ "MIT" ]
6
2020-03-19T20:13:44.000Z
2021-06-10T18:42:30.000Z
webapp/starter/tracker/views.py
jersobh/docker-covidoff
a0d62f6f7c2bae5f1e6a567abdcbf59a90a5e03f
[ "MIT" ]
null
null
null
from django.views import View from django.http import JsonResponse from tracker.models import Match from tracker.forms import MatchForm import json class MatchView(View): def put(self, request): try: body = request.body.decode('utf-8') body = json.loads(body) except json.decoder.JSONDecodeError as ex: ...
21.266667
61
0.713166
487
0.763323
0
0
0
0
0
0
50
0.07837
57927aebea275b8a5baaf7a2a83d8d6768dd7f0a
2,400
py
Python
precise/covariance/ledoitwolf.py
iklasky/precise
dd0b772b0c15ce1e47e076a027bb1b26239ed16d
[ "MIT" ]
null
null
null
precise/covariance/ledoitwolf.py
iklasky/precise
dd0b772b0c15ce1e47e076a027bb1b26239ed16d
[ "MIT" ]
null
null
null
precise/covariance/ledoitwolf.py
iklasky/precise
dd0b772b0c15ce1e47e076a027bb1b26239ed16d
[ "MIT" ]
null
null
null
from precise.covariance.movingaverage import ema_scov from precise.covariance.matrixfunctions import grand_mean, grand_shrink from sklearn.covariance._shrunk_covariance import ledoit_wolf_shrinkage import numpy as np # Experimental estimator inspired by Ledoit-Wolf # Keeps a buffer of last n_buffer observations # Tra...
25.806452
83
0.544167
0
0
0
0
0
0
0
0
715
0.297917
57931e36703d83bfbb031c2fa680eb23f332ac35
704
py
Python
setup.py
ProrokWielki/Text2CArray
db1fdd54dcbd3ab3d728e35ebfca6a05ac230e04
[ "MIT" ]
null
null
null
setup.py
ProrokWielki/Text2CArray
db1fdd54dcbd3ab3d728e35ebfca6a05ac230e04
[ "MIT" ]
null
null
null
setup.py
ProrokWielki/Text2CArray
db1fdd54dcbd3ab3d728e35ebfca6a05ac230e04
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md') as f: long_description = f.read() setup(name='Text2CArray', version='0.1.0', description='Script for generating C arrays from text.', long_description=long_description, long_description_content_type='text/markdown', # This i...
29.333333
73
0.640625
0
0
0
0
0
0
0
0
244
0.346591
57944f7748440824b510084999250896fd1e4190
32
py
Python
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
92
2020-01-22T22:15:29.000Z
2022-03-31T05:19:16.000Z
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
604
2020-01-25T17:13:27.000Z
2022-03-31T18:58:24.000Z
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
39
2020-02-06T00:38:06.000Z
2022-03-15T06:14:19.000Z
VARIABLE_1 = 10 VARIABLE_2 = 20
10.666667
15
0.75
0
0
0
0
0
0
0
0
0
0
57963d19d43781ea87b371e11a9dd7e27acce2dd
7,708
py
Python
src/markovRecipe.py
schollz/parseingredient
4953eb986375304e6eaab04e26d14b3450f62b90
[ "MIT" ]
1
2020-07-10T12:52:43.000Z
2020-07-10T12:52:43.000Z
src/markovRecipe.py
schollz/parseingredient
4953eb986375304e6eaab04e26d14b3450f62b90
[ "MIT" ]
null
null
null
src/markovRecipe.py
schollz/parseingredient
4953eb986375304e6eaab04e26d14b3450f62b90
[ "MIT" ]
1
2021-10-05T05:24:57.000Z
2021-10-05T05:24:57.000Z
import json import os.path import operator import time from multiprocessing import Pool import markovify from tqdm import tqdm removeWords = ['c', 'tsp', 'qt', 'lb', 'pkg', 'oz', 'med', 'tbsp', 'sm'] removeWords2 = [" recipes "," recipe "," mashed "," fat ",' c. ',' c ','grams','gram','chopped','tbsps','tbsp','cups',...
34.720721
170
0.61741
0
0
0
0
0
0
0
0
3,052
0.395952
57978560a0242c56700cc234e8aab484133ef169
11,740
py
Python
nanome/api/structure/complex.py
nanome-ai/nanome
7777a782168fe4e68f58c42f01cff9e66f3675aa
[ "MIT" ]
1
2020-04-10T09:47:54.000Z
2020-04-10T09:47:54.000Z
nanome/api/structure/complex.py
nanome-ai/nanome
7777a782168fe4e68f58c42f01cff9e66f3675aa
[ "MIT" ]
10
2019-05-30T18:29:10.000Z
2020-02-15T02:16:42.000Z
nanome/api/structure/complex.py
nanome-ai/nanome
7777a782168fe4e68f58c42f01cff9e66f3675aa
[ "MIT" ]
2
2020-02-04T02:56:21.000Z
2020-04-25T20:05:16.000Z
from nanome._internal._structure._complex import _Complex from nanome._internal import _PluginInstance from nanome._internal._network import PluginNetwork from nanome._internal._network._commands._callbacks import _Messages from nanome.util import Matrix, Logs from .io import ComplexIO from . import Base class Comple...
25.139186
83
0.593782
11,371
0.968569
949
0.080835
7,210
0.61414
0
0
1,991
0.169591
579790343ca70d2a664becf8ebf185a247791ae7
1,862
py
Python
neighbourhood/models.py
Mutembeijoe/hood_yetu
5759bbf95a8dd0c7a62987773b71a1a7531ae074
[ "MIT" ]
null
null
null
neighbourhood/models.py
Mutembeijoe/hood_yetu
5759bbf95a8dd0c7a62987773b71a1a7531ae074
[ "MIT" ]
9
2020-02-12T03:06:29.000Z
2022-03-12T00:11:25.000Z
neighbourhood/models.py
Mutembeijoe/hood_yetu
5759bbf95a8dd0c7a62987773b71a1a7531ae074
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.postgres.fields import ArrayField from django.urls import reverse # Create your models here. class Neighbourhood(models.Model): image = models.ImageField(upload_to='neighbourhood_avatars', default='dummy_neighbourhood.jpg') name = models.CharField(max_length=2...
33.854545
107
0.697637
1,715
0.921053
0
0
260
0.139635
0
0
214
0.11493
5797c3e4c498f61ba0845553c24009ac9d25e7f2
1,932
py
Python
WEEKS/CD_Sata-Structures/_MISC/misc-examples/text_buffer.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/text_buffer.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
WEEKS/CD_Sata-Structures/_MISC/misc-examples/text_buffer.py
webdevhub42/Lambda
b04b84fb5b82fe7c8b12680149e25ae0d27a0960
[ "MIT" ]
null
null
null
from doubly_linked_list import DoublyLinkedList class TextBuffer: def __init__(self): self.storage = DoublyLinkedList() # return a string to the print function def __str__(self): # build a string s = "" current_node = self.storage.head while current_node: ...
28.411765
81
0.664079
1,624
0.84058
0
0
0
0
0
0
529
0.27381
579b07f7e2fa1f7d53a1230b84e41be5a5006de9
14,911
py
Python
TWLight/users/models.py
Chinmay-Gurjar/TWLight
94ff6e1bf0a8dd851e569c592608871de2ad3089
[ "MIT" ]
null
null
null
TWLight/users/models.py
Chinmay-Gurjar/TWLight
94ff6e1bf0a8dd851e569c592608871de2ad3089
[ "MIT" ]
null
null
null
TWLight/users/models.py
Chinmay-Gurjar/TWLight
94ff6e1bf0a8dd851e569c592608871de2ad3089
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This file holds user profile information. (The base User model is part of Django; profiles extend that with locally useful information.) TWLight has three user types: * editors * coordinators * site administrators. _Editors_ are Wikipedia editors who are applying for TWL resource acce...
40.409214
228
0.652002
12,971
0.869895
0
0
1,663
0.111528
0
0
8,461
0.567433
579b5a9f70fd946f42041ba6173bffac11a64dcb
14,694
py
Python
src/reddit_baselines.py
mengelhard/cft
aaf24d4f59b581ef5ef1af17e3e23c5a7ee8245a
[ "MIT" ]
2
2021-03-14T11:46:51.000Z
2022-03-30T05:39:55.000Z
src/reddit_baselines.py
mengelhard/cft
aaf24d4f59b581ef5ef1af17e3e23c5a7ee8245a
[ "MIT" ]
9
2020-03-24T18:16:46.000Z
2022-02-10T00:39:49.000Z
src/reddit_baselines.py
mengelhard/cft
aaf24d4f59b581ef5ef1af17e3e23c5a7ee8245a
[ "MIT" ]
1
2021-04-23T04:55:16.000Z
2021-04-23T04:55:16.000Z
import numpy as np import pandas as pd import tensorflow as tf import itertools import datetime import os from sklearn.metrics import roc_auc_score from model import mlp, lognormal_nlogpdf, lognormal_nlogsurvival from model_reddit import load_batch from train_reddit import get_files from train_mimic import rae_over_s...
24.49
99
0.689261
10,603
0.721587
0
0
0
0
0
0
1,129
0.076834
579bb2d5e8a709b1e23fdd92467609fdeb1606bf
1,272
py
Python
os_client_config/constructors.py
dtroyer/os-client-config
f0ce20703d2cb8dbf899b9768c3cbbd14ee60594
[ "Apache-2.0" ]
36
2015-04-17T12:05:54.000Z
2019-10-15T20:44:34.000Z
os_client_config/constructors.py
dtroyer/os-client-config
f0ce20703d2cb8dbf899b9768c3cbbd14ee60594
[ "Apache-2.0" ]
null
null
null
os_client_config/constructors.py
dtroyer/os-client-config
f0ce20703d2cb8dbf899b9768c3cbbd14ee60594
[ "Apache-2.0" ]
16
2015-05-11T22:59:51.000Z
2020-12-07T16:42:37.000Z
# Copyright (c) 2014 Hewlett-Packard Development Company, L.P. # # 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...
34.378378
75
0.731132
0
0
0
0
0
0
0
0
619
0.486635
579c287002d5865b908cece88e2dc77b99abf245
4,392
py
Python
src/the_tale/the_tale/linguistics/migrations/0009_remove_quotes_from_diary.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
85
2017-11-21T12:22:02.000Z
2022-03-27T23:07:17.000Z
src/the_tale/the_tale/linguistics/migrations/0009_remove_quotes_from_diary.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
545
2017-11-04T14:15:04.000Z
2022-03-27T14:19:27.000Z
src/the_tale/the_tale/linguistics/migrations/0009_remove_quotes_from_diary.py
al-arz/the-tale
542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5
[ "BSD-3-Clause" ]
45
2017-11-11T12:36:30.000Z
2022-02-25T06:10:44.000Z
# -*- coding: utf-8 -*- import json from django.db import models, migrations DIARY_KEYS = (0, 3, 4, 17, 20001, 20002, 20003, 40000, 40001, 40002, 40003, 40004, ...
21.742574
78
0.344035
212
0.048237
0
0
0
0
0
0
166
0.03777
579d327dd8fa1b155ce5d0aa4edd1cd1932f3add
1,764
py
Python
scripts/supp_fig_C_calc.py
dhbrookes/FitnessSparsity
ccaf35a4dbdbf175e5a6f6dcfd7c368b640f84f2
[ "MIT" ]
3
2021-09-20T04:51:55.000Z
2022-02-02T13:37:31.000Z
scripts/supp_fig_C_calc.py
dhbrookes/FitnessSparsity
ccaf35a4dbdbf175e5a6f6dcfd7c368b640f84f2
[ "MIT" ]
null
null
null
scripts/supp_fig_C_calc.py
dhbrookes/FitnessSparsity
ccaf35a4dbdbf175e5a6f6dcfd7c368b640f84f2
[ "MIT" ]
null
null
null
import sys sys.path.append("../src") import numpy as np import matplotlib.pyplot as plt import seaborn as sns import C_calculation plt.style.use(['seaborn-deep', '../paper.mplstyle']) """ This script produces Figure S3, which displays a detailed summary of the calculations used to determine a suitable value for C. ...
29.898305
104
0.584467
0
0
0
0
0
0
0
0
408
0.231293
579e371e955563dc8f4d6412367c0fd0a22213bb
167
py
Python
Exercicios Python/exlista01.py
oswaldo-spadari/Python-Exec
3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e
[ "MIT" ]
null
null
null
Exercicios Python/exlista01.py
oswaldo-spadari/Python-Exec
3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e
[ "MIT" ]
null
null
null
Exercicios Python/exlista01.py
oswaldo-spadari/Python-Exec
3c3a237ed7c30af43f23a3619f6c6b92f6fcb12e
[ "MIT" ]
null
null
null
#Faça um Programa que leia um vetor de 5 números inteiros e mostre-os. lista=[] for i in range(1, 6): lista.append(int(input('Digite um número: '))) print(lista)
23.857143
70
0.694611
0
0
0
0
0
0
0
0
93
0.547059
579ed39e3894484e564f4d2f67bafed408849d23
169
py
Python
seno/wallet/trading/trade_status.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
11,902
2019-12-05T00:14:29.000Z
2022-03-31T23:25:37.000Z
seno/wallet/trading/trade_status.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
5,246
2019-12-05T04:00:03.000Z
2022-03-31T21:33:30.000Z
seno/wallet/trading/trade_status.py
emilson0407/seno-blockchain
fa73fc06639faaacbb82504a6c8698c3bcab57c0
[ "Apache-2.0" ]
2,149
2019-12-05T11:12:53.000Z
2022-03-31T06:08:34.000Z
from enum import Enum class TradeStatus(Enum): PENDING_ACCEPT = 0 PENDING_CONFIRM = 1 PENDING_CANCEL = 2 CANCELED = 3 CONFIRMED = 4 FAILED = 5
15.363636
24
0.650888
144
0.852071
0
0
0
0
0
0
0
0
579ee3e03e2bc4abaee046e7d30389e76953898b
522
py
Python
sbpy/spectroscopy/vega/sources.py
mkelley/sbpy
40ff9a99f9b606fbf819e3b134f2b2d3b972c681
[ "BSD-3-Clause" ]
3
2018-10-25T01:55:31.000Z
2020-03-31T16:11:08.000Z
sbpy/spectroscopy/vega/sources.py
mkelley/sbpy
40ff9a99f9b606fbf819e3b134f2b2d3b972c681
[ "BSD-3-Clause" ]
null
null
null
sbpy/spectroscopy/vega/sources.py
mkelley/sbpy
40ff9a99f9b606fbf819e3b134f2b2d3b972c681
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ ======================== SBPy Vega Sources Module ======================== Descriptions of source Vega spectra. """ # Parameters passed to Vega.from_file. 'filename' is a URL. After # adding spectra here update __init__.py docstring and # docs/sbpy...
21.75
66
0.637931
0
0
0
0
0
0
0
0
453
0.867816
579ef7f1b1338f3ddf37ec13a2ddb9beab318d6c
3,455
py
Python
api_server.py
ChristianKreuzberger/computer.vision.101
627db9414fd274905b79548cbe6462d96d9cea86
[ "MIT" ]
null
null
null
api_server.py
ChristianKreuzberger/computer.vision.101
627db9414fd274905b79548cbe6462d96d9cea86
[ "MIT" ]
null
null
null
api_server.py
ChristianKreuzberger/computer.vision.101
627db9414fd274905b79548cbe6462d96d9cea86
[ "MIT" ]
1
2018-09-17T09:06:52.000Z
2018-09-17T09:06:52.000Z
import os os.environ["KERAS_BACKEND"] = "tensorflow" import numpy as np import keras from keras.applications import imagenet_utils from keras.models import Sequential from keras.layers import Dense, Dropout, Activation, Flatten from keras.layers import Conv2D, MaxPooling2D from keras.preprocessing import image from k...
25.592593
103
0.661071
0
0
0
0
1,366
0.395369
0
0
938
0.271491
57a027d5dd9201731891da0c2235f4c706336af9
506
py
Python
Lesson2_Functions/8-return.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
Lesson2_Functions/8-return.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
Lesson2_Functions/8-return.py
StyvenSoft/degree-python
644953608948f341f5a20ceb9a02976a128b472b
[ "MIT" ]
null
null
null
def divide_by_four(input_number): return input_number/4 result = divide_by_four(16) # result now holds 4 print("16 divided by 4 is " + str(result) + "!") result2 = divide_by_four(result) print(str(result) + " divided by 4 is " + str(result2) + "!") def calculate_age(current_year, birth_year): age = current_yea...
26.631579
81
0.70751
0
0
0
0
0
0
0
0
112
0.221344
57a3a8a709c11a11c55c20bbf889cce49b9d06df
223
py
Python
adjutant-plugin/mfa_views/models.py
catalyst-cloud/adjutant-mfa
d9e99dd006a895ca33b840e7d92bc5107ec4ba8d
[ "Apache-2.0" ]
2
2018-02-15T12:56:05.000Z
2018-03-10T09:45:08.000Z
adjutant-plugin/mfa_views/models.py
catalyst-cloud/adjutant-mfa
d9e99dd006a895ca33b840e7d92bc5107ec4ba8d
[ "Apache-2.0" ]
1
2018-05-24T23:08:17.000Z
2018-05-24T23:08:17.000Z
adjutant-plugin/mfa_views/models.py
catalyst-cloud/adjutant-mfa
d9e99dd006a895ca33b840e7d92bc5107ec4ba8d
[ "Apache-2.0" ]
3
2018-02-09T03:27:43.000Z
2018-07-02T10:45:35.000Z
from adjutant.api.v1.models import register_taskview_class from mfa_views import views register_taskview_class(r'^openstack/edit-mfa/?$', views.EditMFA) register_taskview_class(r'^openstack/users/?$', views.UserListMFA)
27.875
66
0.816143
0
0
0
0
0
0
0
0
47
0.210762
57a3afc4218ffc2e5632ac9b4b9ef00acfd02961
3,194
py
Python
src/toast/tod/applygain.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
src/toast/tod/applygain.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
src/toast/tod/applygain.py
ziotom78/toast
66aef04c833a28f0928a0bbc221da45882aae475
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2015-2019 by the parties listed in the AUTHORS file. # All rights reserved. Use of this source code is governed by # a BSD-style license that can be found in the LICENSE file. import numpy as np from astropy.io import fits from ..op import Operator from ..timing import function_timer from .tod_mat...
27.067797
85
0.567001
1,383
0.432999
0
0
763
0.238885
0
0
1,225
0.383532
57a48b0dacbc22f4bad998cd06e891c64fb838c5
7,652
py
Python
jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py
nikdavnik/jans
5e9abc74cca766a066512eab2aca6563ce480bff
[ "Apache-2.0" ]
18
2022-01-13T13:45:13.000Z
2022-03-30T04:41:18.000Z
jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py
nikdavnik/jans
5e9abc74cca766a066512eab2aca6563ce480bff
[ "Apache-2.0" ]
604
2022-01-13T12:32:50.000Z
2022-03-31T20:27:36.000Z
jans-linux-setup/jans_setup/static/extension/person_authentication/GoogleExternalAuthenticator.py
nikdavnik/jans
5e9abc74cca766a066512eab2aca6563ce480bff
[ "Apache-2.0" ]
8
2022-01-28T00:23:25.000Z
2022-03-16T05:12:12.000Z
# Janssen Project software is available under the Apache 2.0 License (2004). See http://www.apache.org/licenses/ for full text. # Copyright (c) 2020, Janssen Project # # Author: Madhumita Subramaniam # from io.jans.service.cdi.util import CdiUtil from io.jans.as.server.security import Identity from io.jans.model.custo...
39.854167
167
0.673811
6,405
0.837036
0
0
0
0
0
0
1,622
0.211971
57a668358180b4bf197bc0f22a79ebe450b7df08
384
py
Python
app/abbr/models.py
Tjorriemorrie/abbr
a4a3017a6694eacf6c11e95e76cec6d260750438
[ "Apache-2.0" ]
null
null
null
app/abbr/models.py
Tjorriemorrie/abbr
a4a3017a6694eacf6c11e95e76cec6d260750438
[ "Apache-2.0" ]
null
null
null
app/abbr/models.py
Tjorriemorrie/abbr
a4a3017a6694eacf6c11e95e76cec6d260750438
[ "Apache-2.0" ]
null
null
null
from django.db import models # classification value objects CHOICES_CLASSIFICATION = [ (0, 'unrelated'), (1, 'simple'), (2, 'complex'), (3, 'substring'), ] class Abbreviation(models.Model): long_form = models.TextField(blank=False) abbreviation = models.CharField(max_length=100, blank=False) classification =...
22.588235
80
0.75
219
0.570313
0
0
0
0
0
0
69
0.179688
57a71c30a72ab6617b2351c0866f4abcd021aacb
1,709
py
Python
example/sign up.py
Roblox-Thot/captchaCodeMakerV2
0d9e1a85b75e0c71f9c8b35d8330f704b1464685
[ "Apache-2.0" ]
7
2021-12-10T16:37:15.000Z
2022-03-07T09:29:36.000Z
example/sign up.py
Roblox-Thot/captchaCodeMakerV2
0d9e1a85b75e0c71f9c8b35d8330f704b1464685
[ "Apache-2.0" ]
null
null
null
example/sign up.py
Roblox-Thot/captchaCodeMakerV2
0d9e1a85b75e0c71f9c8b35d8330f704b1464685
[ "Apache-2.0" ]
9
2022-01-15T15:32:58.000Z
2022-03-08T21:28:38.000Z
# This code could be improved but its just a example on how to use the code from the site import requests, base64, random, string token = input("Put code here:\n") headers = { 'authority': 'auth.roblox.com', 'dnt': '1', 'x-csrf-token': requests.post("https://auth.roblox.com/v2/login").headers["x-csrf-tok...
30.517857
135
0.664716
0
0
0
0
0
0
0
0
1,011
0.591574
57a76c0acd0cd0c7f74ee94b222ad2aad279c1a0
160
py
Python
users/roles.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
users/roles.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
users/roles.py
Zimodra/yamdb_final
b6bb7e5b92a09604b441e9111bd52ecb459ffaba
[ "MIT" ]
null
null
null
from django.db import models class Roles(models.TextChoices): USER = 'user', 'User' MODERATOR = 'moderator', 'Moderator' ADMIN = 'admin', 'Admin'
20
40
0.65625
128
0.8
0
0
0
0
0
0
48
0.3
57a8299c7547a4ed17891ac37b6772a5f338d29e
6,161
py
Python
blyaml/validators.py
Brainlabs-Digital/Brainlabs-YAML-Generator
6b22540cdbc29611dbe97facc71c51b0060528a9
[ "MIT" ]
null
null
null
blyaml/validators.py
Brainlabs-Digital/Brainlabs-YAML-Generator
6b22540cdbc29611dbe97facc71c51b0060528a9
[ "MIT" ]
8
2019-10-24T10:08:21.000Z
2021-11-29T11:39:51.000Z
blyaml/validators.py
Brainlabs-Digital/Brainlabs-YAML-Generator
6b22540cdbc29611dbe97facc71c51b0060528a9
[ "MIT" ]
3
2019-10-17T15:17:02.000Z
2020-09-24T18:10:24.000Z
import re from datetime import datetime from PyInquirer import Validator, ValidationError from prompt_toolkit.document import Document # This file contains functions used for validation and Validator classes that use them. # Validators are used by questions. def non_empty(document: Document) -> bool: if not doc...
34.038674
356
0.637072
2,639
0.42834
0
0
0
0
0
0
1,871
0.303684
57a89bca360c730024572cf8e5039971a5a20578
7,113
py
Python
src/git_profile_command/__init__.py
NiklasRosenstein/git-profile
89696f2b6aee457a33674fdf930ba34e89f6239c
[ "MIT" ]
null
null
null
src/git_profile_command/__init__.py
NiklasRosenstein/git-profile
89696f2b6aee457a33674fdf930ba34e89f6239c
[ "MIT" ]
2
2019-07-15T11:29:47.000Z
2021-11-26T04:01:14.000Z
src/git_profile_command/__init__.py
NiklasRosenstein/git-profile
89696f2b6aee457a33674fdf930ba34e89f6239c
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2019 Niklas Rosenstein # # 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 rights # to use, copy,...
34.197115
98
0.696752
2,148
0.301982
0
0
1,567
0.220301
0
0
1,902
0.267398
57a8e223905afe0cac15558594f1c75596817567
15,208
py
Python
src/test/rebaseline-p.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/rebaseline-p.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/rebaseline-p.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import filecmp import os import sys import shutil import subprocess import time import unittest if (sys.version_info > (3, 0)): import urllib.request, urllib.parse, urllib.error else: import urllib from optparse import OptionParser from PyQt4 import QtCore,QtGui parser = OptionParser() parser.add_option("-r",...
35.783529
81
0.647554
10,122
0.665571
0
0
0
0
0
0
4,020
0.264335
57a8e82c5a3eff8f6921f918c1e1cb15a9856eea
2,174
py
Python
src/pigs/bot.py
rcobanov/Examination2
15540554e1c9020320607a79cdf33c17045bd947
[ "MIT" ]
null
null
null
src/pigs/bot.py
rcobanov/Examination2
15540554e1c9020320607a79cdf33c17045bd947
[ "MIT" ]
null
null
null
src/pigs/bot.py
rcobanov/Examination2
15540554e1c9020320607a79cdf33c17045bd947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Here is the class that controls the bot. It also contains various value manipulation, and one function that lets the bot play one round, from first roll until hold. The intelligence is basically how many rolls the bot is going to do on one round. The easier level on t...
32.939394
78
0.614995
1,684
0.773897
0
0
0
0
0
0
871
0.400276
57a918303b705c991a3420d0d04d3d2d8b68608b
2,068
py
Python
enochecker3/logging.py
Sinitax/enochecker3
2c43177aa66e04ff6e9cde96354bd373fb81d743
[ "MIT" ]
null
null
null
enochecker3/logging.py
Sinitax/enochecker3
2c43177aa66e04ff6e9cde96354bd373fb81d743
[ "MIT" ]
6
2021-07-02T09:57:38.000Z
2021-07-23T12:42:07.000Z
enochecker3/logging.py
Sinitax/enochecker3
2c43177aa66e04ff6e9cde96354bd373fb81d743
[ "MIT" ]
1
2021-07-01T16:16:29.000Z
2021-07-01T16:16:29.000Z
import datetime import logging from typing import Optional from .types import CheckerTaskMessage, EnoLogMessage LOGGING_PREFIX = "##ENOLOGMESSAGE " class ELKFormatter(logging.Formatter): def format(self, record: logging.LogRecord) -> str: if type(record.args) is tuple and len(record.args) > 0: ...
37.6
83
0.619439
1,915
0.926015
0
0
0
0
0
0
243
0.117505
57a95284d7934e75842077f077664e4ddceff207
3,191
py
Python
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
pferrel/incubator-predictionio
4b2fb7c1b6a1cd1027a4c03e6ae1af223c8e634c
[ "Apache-2.0" ]
2
2017-03-10T03:03:14.000Z
2017-07-03T02:38:42.000Z
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
michaelzzh/LF_PredictionIO
98bfd4d75efaab7633697f12e31e791660dbd61a
[ "Apache-2.0" ]
null
null
null
examples/experimental/scala-parallel-recommendation-entitymap/data/import_eventserver.py
michaelzzh/LF_PredictionIO
98bfd4d75efaab7633697f12e31e791660dbd61a
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
29.546296
74
0.651833
0
0
0
0
0
0
0
0
1,374
0.430586
57a9b2141377677285fd56333b0647b258ef25b3
1,240
py
Python
lib/ReadCsv.py
cxd/wave_weather_data_python
3b50137f6f8b185dd5f5672feb9645e179bc1490
[ "MIT" ]
null
null
null
lib/ReadCsv.py
cxd/wave_weather_data_python
3b50137f6f8b185dd5f5672feb9645e179bc1490
[ "MIT" ]
null
null
null
lib/ReadCsv.py
cxd/wave_weather_data_python
3b50137f6f8b185dd5f5672feb9645e179bc1490
[ "MIT" ]
null
null
null
import os as os from pandas import pandas as p from pandas.compat import StringIO, BytesIO class ReadCsv: def __init__(self, base_dir): self.base_dir = base_dir @staticmethod def all_files(base_path): all_files = [] for file in os.scandir(base_path): if file.is_file()...
31
90
0.596774
1,146
0.924194
0
0
209
0.168548
0
0
4
0.003226
57aa9b57ce3b4678b56fb8cf872403039e20b2b9
1,364
py
Python
01.py
dataquanty/ArtWorkWaves
0cc5c47bf4a0c9669a0721c313d96beb046c3134
[ "MIT" ]
null
null
null
01.py
dataquanty/ArtWorkWaves
0cc5c47bf4a0c9669a0721c313d96beb046c3134
[ "MIT" ]
null
null
null
01.py
dataquanty/ArtWorkWaves
0cc5c47bf4a0c9669a0721c313d96beb046c3134
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Apr 30 15:28:09 2018 @author: dataquanty """ import numpy as np from math import sqrt, pi, acos,cos from matplotlib import pyplot as plt from scipy.misc import imsave from bisect import bisect_left h , w = 1000, 1000 img = np.ones((h,w)) center = (...
21.650794
58
0.519062
0
0
0
0
0
0
0
0
417
0.305718
57adf597c9133c7c09f33507918c2763c2027900
1,083
py
Python
docs/conf.py
jrosser/mitogen
898c06f1b9f1417b9f7c18465bee78eda7df2ec0
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
jrosser/mitogen
898c06f1b9f1417b9f7c18465bee78eda7df2ec0
[ "BSD-3-Clause" ]
null
null
null
docs/conf.py
jrosser/mitogen
898c06f1b9f1417b9f7c18465bee78eda7df2ec0
[ "BSD-3-Clause" ]
null
null
null
import os import sys sys.path.append('..') import mitogen VERSION = '%s.%s.%s' % mitogen.__version__ author = u'David Wilson' copyright = u'2018, David Wilson' exclude_patterns = ['_build'] extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinxcontrib.programoutput'] html_show_sourcelink = False html_s...
27.075
143
0.720222
0
0
0
0
0
0
0
0
532
0.491228
57af48c7c6ce730f18de8225a93c02bfa45f922d
1,741
py
Python
src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
3
2022-02-09T07:04:37.000Z
2022-03-11T02:46:35.000Z
src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
4
2022-01-28T22:28:08.000Z
2022-02-11T21:47:15.000Z
src/pkg/caendr/caendr/models/sql/wormbase_gene_summary.py
AndersenLab/CAENDR
ce4cdb74db736db8226ffc90988959b71b0d5ff5
[ "MIT" ]
1
2022-01-11T03:39:02.000Z
2022-01-11T03:39:02.000Z
from caendr.services.cloud.postgresql import db from caendr.models.sql.dict_serializable import DictSerializable from sqlalchemy import func, or_ from sqlalchemy.ext.hybrid import hybrid_property class WormbaseGeneSummary(DictSerializable, db.Model): """ This is a condensed version of the WormbaseGene model; ...
37.847826
90
0.711086
1,543
0.886272
0
0
451
0.259047
0
0
516
0.296381
57b0f06734d5293b4bc104ab02dc176064141a7e
4,137
py
Python
gunmel/models.py
zhenkai/xgunicorn
33fc122fdc9435ba0b6562186d3c86d983eb992a
[ "Apache-2.0" ]
null
null
null
gunmel/models.py
zhenkai/xgunicorn
33fc122fdc9435ba0b6562186d3c86d983eb992a
[ "Apache-2.0" ]
null
null
null
gunmel/models.py
zhenkai/xgunicorn
33fc122fdc9435ba0b6562186d3c86d983eb992a
[ "Apache-2.0" ]
1
2020-03-03T04:04:56.000Z
2020-03-03T04:04:56.000Z
from django.core.exceptions import ValidationError from django.db import models from django.forms.models import model_to_dict from decimal import Decimal # Create your models here. class ProductManager(models.Manager): def top_drops(self, n): return self.get_queryset().order_by('-price_drop')[:n] de...
36.9375
126
0.664491
3,937
0.951656
0
0
0
0
0
0
487
0.117718
57b46ec2e0dade46c77d1fce41a387fa6b810a5f
1,890
py
Python
xos/api/utility/toscaapi.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
xos/api/utility/toscaapi.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
xos/api/utility/toscaapi.py
iecedge/xos
566617f676fedcb2602266191c755d191b37018a
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-present Open Networking Foundation # # 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 agr...
30.983607
86
0.679894
798
0.422222
0
0
188
0.099471
0
0
801
0.42381
57b55370970495146667677f66fe08fa5907770e
952
py
Python
tests/test_plugins/test_wiki.py
follower46/ashaw-notes
036f213f032ff7a58cbcfe8c303e9553ec6b3106
[ "MIT" ]
4
2017-08-15T13:29:06.000Z
2019-04-24T01:31:25.000Z
tests/test_plugins/test_wiki.py
follower46/ashaw-notes
036f213f032ff7a58cbcfe8c303e9553ec6b3106
[ "MIT" ]
51
2017-08-13T03:58:41.000Z
2018-01-29T21:21:57.000Z
tests/test_plugins/test_wiki.py
follower46/ashaw-notes
036f213f032ff7a58cbcfe8c303e9553ec6b3106
[ "MIT" ]
5
2017-08-15T01:46:33.000Z
2019-01-07T21:43:24.000Z
""" Testing Wiki Module """ import unittest from ddt import ddt, data, unpack from ashaw_notes.plugins.wiki import Plugin @ddt class PluginTests(unittest.TestCase): """Unit Testing Plugin""" @unpack @data( (1373500800, 'today: derp note', 'today: derp note'), (137350080...
28.848485
98
0.609244
821
0.862395
0
0
826
0.867647
0
0
428
0.44958
57b6388ade74fa7db2072594bfcd80032ccdd8ef
5,956
py
Python
cppcheck_junit.py
PfannenHans/cppcheck-junit
8f29ac91ea50c11d90a4a3c012aedb7687d835fb
[ "MIT" ]
8
2016-03-19T12:32:11.000Z
2021-12-06T18:36:10.000Z
cppcheck_junit.py
PfannenHans/cppcheck-junit
8f29ac91ea50c11d90a4a3c012aedb7687d835fb
[ "MIT" ]
16
2016-04-11T13:36:22.000Z
2022-03-30T11:41:35.000Z
cppcheck_junit.py
PfannenHans/cppcheck-junit
8f29ac91ea50c11d90a4a3c012aedb7687d835fb
[ "MIT" ]
8
2015-11-20T16:27:07.000Z
2022-03-28T12:46:17.000Z
#!/usr/bin/env python3 """Converts Cppcheck XML version 2 output to JUnit XML format.""" import argparse import collections from datetime import datetime import os from socket import gethostname import sys from typing import Dict, List from xml.etree import ElementTree from exitstatus import ExitStatus class Cppch...
32.021505
98
0.633647
643
0.107958
0
0
0
0
0
0
1,892
0.317663
57b7e56d2bb65164490572ca122f372afa976572
2,440
py
Python
apps/core/tests/conftest.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
1
2019-12-12T15:38:42.000Z
2019-12-12T15:38:42.000Z
apps/core/tests/conftest.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
apps/core/tests/conftest.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
import pytest from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from core.models import Identity from organizations.models import Organization @pytest.fixture def valid_identity(): id_string = 'valid@user.test' user = get_user_model()...
25.154639
88
0.702459
0
0
1,534
0.628174
1,950
0.798526
0
0
338
0.138411
57b8a501dc93a41633bfea6eb1b0e55e7388ace2
4,041
py
Python
tests/test_descriptor.py
OlivierBeq/ProDEC
b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe
[ "MIT" ]
null
null
null
tests/test_descriptor.py
OlivierBeq/ProDEC
b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe
[ "MIT" ]
null
null
null
tests/test_descriptor.py
OlivierBeq/ProDEC
b3723bc54a5a7ab4eedf2ab9a23a210e935b05fe
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for Descriptor.""" import unittest import numpy as np import orjson from prodec import Descriptor from prodec.utils import std_amino_acids from tests.constants import * class TestDescriptor(unittest.TestCase): """Tests for Descriptor.""" def setUp(self): """Cr...
42.536842
105
0.59218
3,833
0.948528
0
0
0
0
0
0
343
0.08488
57ba16515c786535378110b8430cbadfa8476104
310
py
Python
mmdet/apis/__init__.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
36
2019-06-17T02:00:36.000Z
2022-03-10T07:54:07.000Z
mmdet/apis/__init__.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
6
2020-03-17T03:53:53.000Z
2022-03-30T07:57:40.000Z
mmdet/apis/__init__.py
ar90n/ttfnet
99dbfa888f90c8161c2c1666b2d17cdb144dbc30
[ "Apache-2.0" ]
4
2019-06-17T02:00:35.000Z
2021-09-22T14:44:29.000Z
from .env import get_root_logger, init_dist, set_random_seed from .inference import inference_detector, init_detector, show_result from .train import train_detector __all__ = [ 'init_dist', 'get_root_logger', 'set_random_seed', 'train_detector', 'init_detector', 'inference_detector', 'show_result' ]
34.444444
72
0.787097
0
0
0
0
0
0
0
0
109
0.351613
57ba713a68ba9ecdd9ab3196a36b1f0bcef50142
1,544
py
Python
tree.py
joshedler/ct2ad
39dfce6191c8993a43a0ebb12e5d0847c3e63e4c
[ "MIT" ]
null
null
null
tree.py
joshedler/ct2ad
39dfce6191c8993a43a0ebb12e5d0847c3e63e4c
[ "MIT" ]
null
null
null
tree.py
joshedler/ct2ad
39dfce6191c8993a43a0ebb12e5d0847c3e63e4c
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 ''' Examine a CherryTree SQLite database and print out the tree in proper heirarchical form and sequence. ''' import argparse import colorama from colorama import Fore, Back, Style import sqlite3 from ct2ad import * def print_xc_node(xc_node, level): ''' Print the node information to...
24.507937
159
0.723446
0
0
0
0
0
0
0
0
565
0.365933
57bb5336b2ed0566151bd0a0cc733ef2af64f5fa
2,559
py
Python
sparse_entertainment.py
synergetics/nest_expermiments
39c50fe7d4713b9d0a8e4618a829d94b4fe7456c
[ "MIT" ]
null
null
null
sparse_entertainment.py
synergetics/nest_expermiments
39c50fe7d4713b9d0a8e4618a829d94b4fe7456c
[ "MIT" ]
null
null
null
sparse_entertainment.py
synergetics/nest_expermiments
39c50fe7d4713b9d0a8e4618a829d94b4fe7456c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys sys.path.append('/opt/lib/python2.7/site-packages/') import math import numpy as np import pylab import nest import nest.raster_plot import nest.voltage_trace import nest.topology as tp import ggplot t_sim = 500 populations = [1, 100] no_recurrent = True neuron_model = 'iaf_psc_e...
20.804878
82
0.657288
0
0
0
0
0
0
0
0
906
0.354045
57bd452b6b5ced5e7d55432fe628cd4930c57a5d
21,008
py
Python
management/views.py
EsraelDawit-a/Drims-Fse-Project
a68d842e947450bc27711a6acab89ec8e3ba3b03
[ "MIT" ]
null
null
null
management/views.py
EsraelDawit-a/Drims-Fse-Project
a68d842e947450bc27711a6acab89ec8e3ba3b03
[ "MIT" ]
null
null
null
management/views.py
EsraelDawit-a/Drims-Fse-Project
a68d842e947450bc27711a6acab89ec8e3ba3b03
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect,get_object_or_404 from .forms import * from django.contrib import messages from django.contrib.auth.decorators import login_required from .models import * from django.views.generic import DetailView,DeleteView from django.urls import reverse_lazy from test2.notification impo...
34.839138
169
0.623048
0
0
0
0
19,694
0.937452
0
0
6,186
0.294459
57bd96ec29c38dc1f3e044540afbb8ecbffccd50
106
py
Python
dogpile/__init__.py
dhellmann/dogpile.cache
03cbee8b9a812a78a37fe1d54edafe848f696737
[ "MIT" ]
null
null
null
dogpile/__init__.py
dhellmann/dogpile.cache
03cbee8b9a812a78a37fe1d54edafe848f696737
[ "MIT" ]
null
null
null
dogpile/__init__.py
dhellmann/dogpile.cache
03cbee8b9a812a78a37fe1d54edafe848f696737
[ "MIT" ]
null
null
null
__version__ = '0.9.3' from .lock import Lock # noqa from .lock import NeedRegenerationException # noqa
21.2
51
0.745283
0
0
0
0
0
0
0
0
19
0.179245
57bde5b7260543357976e429b49a59520729133b
1,550
py
Python
pyssian/tests/test_chemistryutils.py
maserasgroup-repo/pyssian
b80b216e24391db807a09518a237f94fa894a648
[ "MIT" ]
15
2021-07-07T16:25:26.000Z
2022-03-19T11:58:23.000Z
pyssian/tests/test_chemistryutils.py
maserasgroup-repo/pyssian
b80b216e24391db807a09518a237f94fa894a648
[ "MIT" ]
9
2021-07-28T22:09:07.000Z
2022-01-17T08:03:15.000Z
pyssian/tests/test_chemistryutils.py
maserasgroup-repo/pyssian
b80b216e24391db807a09518a237f94fa894a648
[ "MIT" ]
null
null
null
from pyssian.chemistryutils import is_basis,is_method import unittest class ChemistryUtilsTest(unittest.TestCase): def setUp(self): self.Valid_Basis = '6-311+g(d,p) 6-31g* cc-pVTZ D95V* LanL2DZ SDD28 Def2SVP UGBS2P2++'.split() self.Fake_Basis = '6-311g+(d,p) 6-31*g ccpVTZ D96V* LanL2TZ SDD Def2SP U...
46.969697
102
0.674839
1,478
0.953548
0
0
0
0
0
0
460
0.296774
57bf94c1f54bb6b9683e423a8cf8f0e42b9b2cad
4,415
py
Python
custom_components/life360/life360.py
nicholas-sly/life360
5e537b0764ba06a9cfdde7e83fc0a742909df1d9
[ "MIT" ]
null
null
null
custom_components/life360/life360.py
nicholas-sly/life360
5e537b0764ba06a9cfdde7e83fc0a742909df1d9
[ "MIT" ]
null
null
null
custom_components/life360/life360.py
nicholas-sly/life360
5e537b0764ba06a9cfdde7e83fc0a742909df1d9
[ "MIT" ]
null
null
null
# This is what requests does. try: import simplejson as json except ImportError: import json import logging import requests from .exceptions import * _PROTOCOL = 'https://' _BASE_URL = '{}api.life360.com/v3/'.format(_PROTOCOL) _TOKEN_URL = _BASE_URL + 'oauth2/token.json' _CIRCLES_URL = _BASE_URL + 'circles.j...
37.735043
77
0.604757
3,754
0.850283
0
0
0
0
0
0
956
0.216535
57c14c8998061fad84c8b010eef9803262de092d
328
py
Python
pandas_selectable/tests/conftest.py
jseabold/pandas-select
0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1
[ "BSD-3-Clause" ]
28
2020-09-08T04:38:01.000Z
2022-02-05T21:47:52.000Z
pandas_selectable/tests/conftest.py
jseabold/pandas-select
0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1
[ "BSD-3-Clause" ]
8
2020-09-04T21:29:57.000Z
2021-11-17T16:44:42.000Z
pandas_selectable/tests/conftest.py
jseabold/pandas-select
0dc5fac465db8348bf3d1cc69d9f7c4fe28896e1
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import pytest @pytest.fixture def dta(): return pd.DataFrame.from_dict( { 'A': np.arange(1, 16), 'B': pd.date_range('2020-01-01', periods=15), 'C': ['A', 'B', 'C'] * 5, 'D': pd.Categorical(['A', 'B', 'C'] * 5), ...
20.5
57
0.466463
0
0
0
0
272
0.829268
0
0
42
0.128049
57c2c77af5f13ed7cf14e66f21d8a57ff936dd88
2,976
py
Python
xsoccer/analysis/management/commands/analysis4.py
awyrough/xsoccer
5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d
[ "MIT" ]
null
null
null
xsoccer/analysis/management/commands/analysis4.py
awyrough/xsoccer
5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d
[ "MIT" ]
null
null
null
xsoccer/analysis/management/commands/analysis4.py
awyrough/xsoccer
5f3d5f73ede21f6ba3baa0089a821b0a8d151b8d
[ "MIT" ]
null
null
null
""" Objectives: - Which players pass together the most? - What types of position combintations are most frequent in pass-sequences? """ """ Sample Run Script: python manage.py analysis3 --team_uuid="t1326" --print_to_csv python manage.py analysis4 --team_uuid="t1326" --start_date="2016-07-01" python ...
30.367347
102
0.685148
1,947
0.654234
0
0
0
0
0
0
1,182
0.397177
57c4c8bc27d5ede3ee5ab749d40ffd70c1be34a7
1,474
py
Python
api/classes/portfolio.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
api/classes/portfolio.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
api/classes/portfolio.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
from .stock import Stock class Portfolio: def __init__(self, assets): self.stocks = [] self.__populate_stocks(assets) def get_stock(self, stock_name): for stock in self.stocks: if stock.name == stock_name: return stock return None def get_prof...
28.901961
77
0.627544
1,447
0.981682
0
0
0
0
0
0
10
0.006784
57c64dbce81aa32c7cfedf4dddca84cc3b07269f
4,694
py
Python
examples/ConsumptionSaving/example_ConsMedModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_ConsMedModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
examples/ConsumptionSaving/example_ConsMedModel.py
HsinYiHung/HARK_HY
086c46af5bd037fe1ced6906c6ea917ed58b134f
[ "Apache-2.0" ]
null
null
null
# %% from HARK.utilities import CRRAutility_inv from time import time import matplotlib.pyplot as plt import numpy as np from HARK.ConsumptionSaving.ConsMedModel import MedShockConsumerType # %% mystr = lambda number: "{:.4f}".format(number) # %% do_simulation = True # %% [markdown] # This module defines consumption...
36.671875
333
0.679165
0
0
0
0
0
0
0
0
2,125
0.452706
57c8b90994148c8460b99ab3bc8d5a19736e8281
25,325
py
Python
cogs/general.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
cogs/general.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
cogs/general.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import asyncio import aiohttp import random from datetime import datetime, timedelta import math import json # ##################################################################################### # math parser used by $calc class MathParser: def __init_...
48.701923
226
0.536387
24,989
0.984672
0
0
14,858
0.585468
15,556
0.612972
4,861
0.191544
57ca6b765a520ecf380512aee08b9a30756ae5fb
1,481
py
Python
2019-2020/MATH_1301_Python/Zork/barriers.py
TSoGiants/Foundations
4546c9ee7be802e4c48ab8b1bab60869ea89e6a6
[ "Unlicense" ]
null
null
null
2019-2020/MATH_1301_Python/Zork/barriers.py
TSoGiants/Foundations
4546c9ee7be802e4c48ab8b1bab60869ea89e6a6
[ "Unlicense" ]
null
null
null
2019-2020/MATH_1301_Python/Zork/barriers.py
TSoGiants/Foundations
4546c9ee7be802e4c48ab8b1bab60869ea89e6a6
[ "Unlicense" ]
null
null
null
##################### ### Base classes. ### ##################### class barrier: synonyms = ["wall"] m_description = "There is a barrier in the way." def __init__(self, passable=False): self.passable = passable def __str__(self): return self.m_description def ...
25.101695
56
0.519919
1,311
0.885213
0
0
0
0
0
0
395
0.266712
57cc2589e042bfe3b9f204e55c44c76092d692cc
1,171
py
Python
etc/n_CR/Vmc_lo/load_Vsw.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
null
null
null
etc/n_CR/Vmc_lo/load_Vsw.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
null
null
null
etc/n_CR/Vmc_lo/load_Vsw.py
jimsrc/seatos
e775dba1a2a96ff44b837cf8d85101ccfef302b1
[ "MIT" ]
1
2018-10-02T17:51:57.000Z
2018-10-02T17:51:57.000Z
#!/usr/bin/env ipython import numpy as np #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ class gral(): def __init__(self): self.name = '' sh, mc = gral(), gral() cr = gral() cr.sh, cr.mc = gral(), gral() vlo, vhi = 550.0, 3000.0 #550., 3000. #100.0, 450.0 #...
32.527778
92
0.562767
60
0.051238
0
0
0
0
0
0
392
0.334757
57cc2ecd156c278de2ca18c760107a89d6f9b534
3,090
py
Python
tools/radar_img_per_sim.py
mgaggero/tdm-tools
525dc643c2fe90e29c6cdde6568174ab396893b6
[ "Apache-2.0" ]
null
null
null
tools/radar_img_per_sim.py
mgaggero/tdm-tools
525dc643c2fe90e29c6cdde6568174ab396893b6
[ "Apache-2.0" ]
5
2018-11-28T11:02:58.000Z
2019-02-07T09:55:26.000Z
tools/radar_img_per_sim.py
mgaggero/tdm-tools
525dc643c2fe90e29c6cdde6568174ab396893b6
[ "Apache-2.0" ]
5
2018-10-23T08:07:53.000Z
2019-08-07T07:08:20.000Z
# Copyright 2018-2019 CRS4 # # 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 writing, softwa...
31.85567
78
0.630097
0
0
0
0
0
0
0
0
952
0.308091
57ccea073806c8789604eca66fcde66c4dcb3d14
2,598
py
Python
server/base/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
634
2015-10-30T00:55:40.000Z
2022-03-31T02:59:00.000Z
server/base/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
145
2015-11-06T00:17:33.000Z
2022-03-16T13:30:31.000Z
server/base/views.py
arubdesu/zentral
ac0fe663f6e1c27f9a9f55a7500a87e6ac7d9190
[ "Apache-2.0" ]
103
2015-11-07T07:08:49.000Z
2022-03-18T17:34:36.000Z
import logging from django.apps import apps from django.contrib.auth.mixins import LoginRequiredMixin from django.http import Http404, HttpResponse, JsonResponse from django.views.generic import TemplateView, View from zentral.core.stores import frontend_store logger = logging.getLogger("server.base.views") class H...
36.083333
115
0.560046
2,278
0.876828
0
0
0
0
0
0
350
0.134719
57ccef5f4b39231aa2dfe0a1c954a8f2a2181361
176,775
py
Python
map.py
zihoffman7/online-world-explorer-game
9bf1d47491bf6175ec330e4e88eeb5e349c84a4a
[ "Apache-2.0" ]
null
null
null
map.py
zihoffman7/online-world-explorer-game
9bf1d47491bf6175ec330e4e88eeb5e349c84a4a
[ "Apache-2.0" ]
null
null
null
map.py
zihoffman7/online-world-explorer-game
9bf1d47491bf6175ec330e4e88eeb5e349c84a4a
[ "Apache-2.0" ]
null
null
null
g1 = "#5d9e6d" g2 = "#549464" g3 = "#498758" g4 = "#3d784b" b1 = "#5f7ab8" b2 = "#5a70a3" b3 = "#4d67a3" r4 = "#262626" w1 = "#f0f0f0" w2 = "#d9d9d9" w3 = "#e6e6e6" r1 = "#707070" r2 = "#595959" r3 = "#404040" r4 = "#262626" l1 = "#d95757" l2 = "#d99457" l3 = "#d97857" v1 = "#664f47" v2 = "#4a3d39" v3 = "#382f2c" v4 = ...
169.649712
364
0.316719
0
0
0
0
0
0
0
0
27,392
0.154954
57cd044d651756a4e1a9d230a6483c3f90d186bf
172,689
py
Python
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
useless_facts = ["Most American car horns honk in the key of F.", "The name Wendy was made up for the book 'Peter Pan.'", "Barbie's full name is Barbara Millicent Roberts.", "Every time you lick a stamp, you consume 1/10 of a calorie.", "The average person falls asleep in seven minutes.", "Studies s...
307.823529
104,781
0.736665
0
0
0
0
0
0
0
0
163,141
0.944316
57cd64fc8fb4418f591748f78bcb5ab458e9e1df
1,502
py
Python
libqtile/widget/she.py
CharString/qtile
7dc1448fa866d4c3a2a5c2738c5cf3fcd10b0631
[ "MIT" ]
1
2015-03-02T21:18:17.000Z
2015-03-02T21:18:17.000Z
libqtile/widget/she.py
WnP/qtile
7b3b21d602320df3a43155814e112c850f660fa9
[ "MIT" ]
null
null
null
libqtile/widget/she.py
WnP/qtile
7b3b21d602320df3a43155814e112c850f660fa9
[ "MIT" ]
null
null
null
from libqtile.widget import base from libqtile import bar, hook __all__ = ['She'] class She(base._TextBox): ''' Widget to display the Super Hybrid Engine status. can display either the mode or CPU speed on eeepc computers.''' defaults = [ ('device', '/sys/devices/platform/eeepc/cpufv', 'sys path...
31.291667
77
0.561252
1,416
0.942743
0
0
0
0
0
0
407
0.270972
57cf0026e0267dca377d75719db241beafb88f18
1,490
py
Python
bench/bench_queue.py
coleifer/ukt
9440b17046f8e301f85d5c385a84fa4e7cc8ebcf
[ "MIT" ]
10
2019-07-16T15:04:33.000Z
2021-02-11T03:49:09.000Z
bench/bench_queue.py
coleifer/ukt
9440b17046f8e301f85d5c385a84fa4e7cc8ebcf
[ "MIT" ]
null
null
null
bench/bench_queue.py
coleifer/ukt
9440b17046f8e301f85d5c385a84fa4e7cc8ebcf
[ "MIT" ]
1
2021-02-07T15:22:09.000Z
2021-02-07T15:22:09.000Z
#!/usr/bin/env python from contextlib import contextmanager import os import sys import time srcdir = os.path.dirname(os.path.dirname(__file__)) sys.path.insert(0, srcdir) from ukt import * script = os.path.join(srcdir, 'scripts/kt.lua') server = EmbeddedServer(database='%', server_args=['-scr', script], ...
19.605263
69
0.613423
0
0
159
0.106711
175
0.11745
0
0
153
0.102685
57cf71e94609fd85e48613dd288c7fef9e5aa2fe
2,260
py
Python
nicos_ess/labs/chop_embla/setups/skf_chopper.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_ess/labs/chop_embla/setups/skf_chopper.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_ess/labs/chop_embla/setups/skf_chopper.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
description = 'Some kind of SKF chopper' pv_root = 'LabS-Embla:Chop-Drv-0601:' devices = dict( skf_drive_temp=device('nicos.devices.epics.pva.EpicsReadable', description='Drive temperature', readpv='{}DrvTmp_Stat'.format(pv_root), monitor=True, ), skf_motor_temp=device('nicos.devic...
33.731343
69
0.611504
0
0
0
0
0
0
0
0
879
0.388938
57cf7c7be10d8c27847604d37eb3c00a440f9f34
1,111
py
Python
autotf/selector/base_selector.py
zwt233/autotf
8223606047a4e0e2795cf7befee8c6f7a44a6ec4
[ "BSD-3-Clause" ]
1
2021-04-15T15:56:10.000Z
2021-04-15T15:56:10.000Z
autotf/selector/base_selector.py
zwt233/autotf
8223606047a4e0e2795cf7befee8c6f7a44a6ec4
[ "BSD-3-Clause" ]
null
null
null
autotf/selector/base_selector.py
zwt233/autotf
8223606047a4e0e2795cf7befee8c6f7a44a6ec4
[ "BSD-3-Clause" ]
null
null
null
class BaseSelector: def __init__(self): pass def select_model(self, X, y, total_time, learners=None, metric=None, save_directory=None): """ Find the best model with its hyperparameters from the autotf's...
22.673469
81
0.50405
1,111
1
0
0
0
0
0
0
662
0.59586
57cfdc5a603f9e7b2137dd0276b55ce9493be7c5
16
py
Python
external/netdef_models/netdef_slim/evolutions/__init__.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
null
null
null
external/netdef_models/netdef_slim/evolutions/__init__.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
null
null
null
external/netdef_models/netdef_slim/evolutions/__init__.py
zhuhu00/MOTSFusion_modify
190224a7c3fbded69fedf9645a0ebbf08227fb6d
[ "MIT" ]
null
null
null
nothing = None
5.333333
14
0.6875
0
0
0
0
0
0
0
0
0
0
57cfe9cbd14de3c1d66f6b0d1a90693c4bb4239e
1,623
py
Python
chapter_08/05_alphabetic_tel_number.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
2
2021-04-07T03:26:37.000Z
2021-07-26T07:38:49.000Z
chapter_08/05_alphabetic_tel_number.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
chapter_08/05_alphabetic_tel_number.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
# # 5. Алфавитный переводчик номера телефона. Многие компании используют телефонные # # номера наподобие 555-GET-FOOD, чтобы клиентам было легче запоминать эти номера. # # На стандартном телефоне буквам алфавита поставлены в соответствие числа следующим # # образом: А,В и С=2 ; D,Е и F=З. phone_num = input('nnn-XXX-XXX...
33.122449
85
0.479359
0
0
0
0
0
0
0
0
833
0.451246
57d09074769759b5c763c51e278ea561e4492dc7
450
py
Python
admin/urls.py
ttdys108/django-demo
9a1c18b4bf7d92f1b122222d1777424fac2aba2d
[ "Apache-2.0" ]
null
null
null
admin/urls.py
ttdys108/django-demo
9a1c18b4bf7d92f1b122222d1777424fac2aba2d
[ "Apache-2.0" ]
null
null
null
admin/urls.py
ttdys108/django-demo
9a1c18b4bf7d92f1b122222d1777424fac2aba2d
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import index, users, weather app_name = 'admin' urlpatterns = [ path('', index.index, name='index'), path('users/', users.index, name='users.index'), path('users/add', users.add, name='users.add'), path('users/update', users.update, name='users.update'), pat...
37.5
70
0.668889
0
0
0
0
0
0
0
0
149
0.331111
57d29c7cf6b8de616c1ca548e36d5b66ed5cfd04
3,360
py
Python
Disco.py
daniel-s-ingram/disco
f6edfa0d09c5cf822e93b554bb6aea63525441a7
[ "MIT" ]
null
null
null
Disco.py
daniel-s-ingram/disco
f6edfa0d09c5cf822e93b554bb6aea63525441a7
[ "MIT" ]
null
null
null
Disco.py
daniel-s-ingram/disco
f6edfa0d09c5cf822e93b554bb6aea63525441a7
[ "MIT" ]
null
null
null
import sys import requests from statistics import mean, stdev from bs4 import BeautifulSoup import matplotlib.pyplot as plt class Disco(): def __init__(self, artist): self.website_url = "https://en.wikipedia.org" disco_soup = self.get_disco_soup(artist) album_urls = self.get_album_urls(dis...
38.62069
126
0.62381
3,082
0.917262
0
0
0
0
0
0
483
0.14375
57d2bee9c3f83e95b3a975a6474c1974993fb8ef
15,013
py
Python
src/tools/dev/scripts/hooks/ciabot_svn.py
eddieTest/visit
ae7bf6f5f16b01cf6b672d34e2d293fa7170616b
[ "BSD-3-Clause" ]
null
null
null
src/tools/dev/scripts/hooks/ciabot_svn.py
eddieTest/visit
ae7bf6f5f16b01cf6b672d34e2d293fa7170616b
[ "BSD-3-Clause" ]
null
null
null
src/tools/dev/scripts/hooks/ciabot_svn.py
eddieTest/visit
ae7bf6f5f16b01cf6b672d34e2d293fa7170616b
[ "BSD-3-Clause" ]
1
2020-03-18T23:17:43.000Z
2020-03-18T23:17:43.000Z
#!/usr/bin/env python # # This is a CIA client script for Subversion repositories, written in python. # It generates commit messages using CIA's XML format, and can deliver them # using either XML-RPC or email. See below for usage and cuztomization # information. # # ----------------------------------------------------...
37.626566
98
0.605142
9,336
0.621861
0
0
0
0
0
0
8,702
0.579631
57d2ea3f2d5e155d3c26ab3d8579888941aaacdc
493
py
Python
lists_04/insertion_at_a_specified_position_in_a_list.py
njoroge33/py_learn
6ad55f37789045bc5c03f3dd668cf1ea497f4e84
[ "MIT" ]
null
null
null
lists_04/insertion_at_a_specified_position_in_a_list.py
njoroge33/py_learn
6ad55f37789045bc5c03f3dd668cf1ea497f4e84
[ "MIT" ]
2
2019-04-15T06:29:55.000Z
2019-04-19T17:34:32.000Z
lists_04/insertion_at_a_specified_position_in_a_list.py
njoroge33/py_learn
6ad55f37789045bc5c03f3dd668cf1ea497f4e84
[ "MIT" ]
1
2019-11-19T04:51:18.000Z
2019-11-19T04:51:18.000Z
# Given a list x of length n, a number to be inserted into the list and a position where to insert the number # return the new list # e.g given [2, 3, 6, 7], num=8 and position=2, return [2, 3, 8, 6, 7] # for more info on this quiz, go to this url: http://www.programmr.com/insertion-specified-position-array-0 def ins...
35.214286
109
0.673428
0
0
0
0
0
0
0
0
317
0.643002
57d3a9d76e06f373164b6aa991f8a00afed0d016
530
py
Python
carton/tests/urls.py
knyazz/py3-django-enriched-carton
27d97388d8153f29a3c629cdcd3e734ad09dc52e
[ "MIT" ]
null
null
null
carton/tests/urls.py
knyazz/py3-django-enriched-carton
27d97388d8153f29a3c629cdcd3e734ad09dc52e
[ "MIT" ]
null
null
null
carton/tests/urls.py
knyazz/py3-django-enriched-carton
27d97388d8153f29a3c629cdcd3e734ad09dc52e
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import ( add, clear, remove, remove_single, set_quantity, show ) urlpatterns = [ url(r'^show/$', show, name='carton-tests-show'), url(r'^add/$', add, name='carton-tests-add'), url(r'^remove/$', remove, name='carton-tests-remove'), u...
25.238095
79
0.632075
0
0
0
0
0
0
0
0
212
0.4
57d50f67e3d06852292f8ffe636f692eff8d51a1
4,798
py
Python
spectrumanalyzer.py
cwolfe007/LEDSoundResponsiveSuit
86c03e80a7b689e418629e4d11674299d0cad64b
[ "MIT" ]
null
null
null
spectrumanalyzer.py
cwolfe007/LEDSoundResponsiveSuit
86c03e80a7b689e418629e4d11674299d0cad64b
[ "MIT" ]
1
2019-05-05T03:13:11.000Z
2019-05-05T03:13:11.000Z
spectrumanalyzer.py
cwolfe007/LEDSoundRepsponsiveSuit
86c03e80a7b689e418629e4d11674299d0cad64b
[ "MIT" ]
null
null
null
# Spectrum Analyzer Code Author: Caleb Wolfe import time import Adafruit_GPIO.SPI as SPI import Adafruit_MCP3008 import numpy as np class SpectrumAnalyzer: def __init__(self,smprate=44100,senistivity=100.0,samplesize=1024): self.__samplerate =smprate self....
35.279412
316
0.563568
4,079
0.850146
0
0
0
0
0
0
884
0.184243
57d556f00239b349c7bc417ac464a9d2c21e51b0
7,992
py
Python
hs_core/discovery_form.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/discovery_form.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/discovery_form.py
tommac7/hydroshare
87c4543a55f98103d2614bf4c47f7904c3f9c029
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
from haystack.forms import FacetedSearchForm from haystack.query import SQ from django import forms from hs_core.discovery_parser import ParseSQ, MatchingBracketsNotFoundError, \ FieldNotRecognizedError, InequalityNotAllowedError, MalformedDateError FACETS_TO_SHOW = ['creator', 'contributor', 'owner', 'content_typ...
43.434783
98
0.56031
7,638
0.955706
0
0
0
0
0
0
1,276
0.15966
57d6f9635f5e00346ee661f725027deab67f7b92
26,096
py
Python
streamlit_prophet/lib/exposition/visualize.py
carolinedlu/darkpool-snowvation
c795a95288e5d58c60aee69afacbb93374fe0900
[ "MIT" ]
36
2021-09-16T12:34:13.000Z
2021-12-11T20:51:58.000Z
streamlit_prophet/lib/exposition/visualize.py
carolinedlu/darkpool-snowvation
c795a95288e5d58c60aee69afacbb93374fe0900
[ "MIT" ]
7
2022-01-22T03:53:37.000Z
2022-02-12T17:41:23.000Z
streamlit_prophet/lib/exposition/visualize.py
carolinedlu/darkpool-snowvation
c795a95288e5d58c60aee69afacbb93374fe0900
[ "MIT" ]
20
2021-12-16T00:56:32.000Z
2022-03-20T00:52:08.000Z
from typing import Any, Dict, List import datetime import pandas as pd import plotly.express as px import plotly.figure_factory as ff import plotly.graph_objects as go import streamlit as st from fbprophet import Prophet from fbprophet.plot import plot_plotly from plotly.subplots import make_subplots from streamlit_p...
35.312585
110
0.606338
0
0
0
0
0
0
0
0
10,640
0.407725
57d8dced3bb1517e1acbcb80d5b0ad588a00e015
9,343
py
Python
tracking/admin.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
tracking/admin.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
tracking/admin.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
from datetime import date, datetime, timedelta from django.conf import settings from django.conf.urls import url from django.contrib.admin import register, ModelAdmin from django.http import HttpResponse import pytz import xlsxwriter from .models import Computer, Mobile, EC2Instance, FreshdeskTicket, LicensingRule @r...
30.433225
136
0.494809
8,897
0.952264
0
0
9,010
0.964358
0
0
2,624
0.280852
57d96e1c007274d36d8529dbd1130a23bc0cd5c7
3,093
py
Python
accounts/tests/test_views.py
jhonatanlteodoro/ecommerce-django
931c70bba7658cdb982e5294e02c2b90d02b8c82
[ "MIT" ]
1
2020-01-07T20:50:48.000Z
2020-01-07T20:50:48.000Z
accounts/tests/test_views.py
jhonatanlteodoro/ecommerce-django
931c70bba7658cdb982e5294e02c2b90d02b8c82
[ "MIT" ]
null
null
null
accounts/tests/test_views.py
jhonatanlteodoro/ecommerce-django
931c70bba7658cdb982e5294e02c2b90d02b8c82
[ "MIT" ]
null
null
null
from django.test import Client from django.test import TestCase from django.urls import reverse from django.contrib.auth import get_user_model from model_mommy import mommy from django.conf import settings User = get_user_model() class RegisterViewTestCase(TestCase): def setUp(self): self.client = Client(...
34.366667
84
0.648885
2,857
0.922506
0
0
0
0
0
0
610
0.196965
57daf6cc7d59c78379540bcf163d574b373cca46
3,360
py
Python
modules/data_generator.py
radiradev/finetuned-cvn
67ae5d659b6c78f670acac126e2411498048e548
[ "MIT" ]
1
2020-09-17T09:23:27.000Z
2020-09-17T09:23:27.000Z
modules/data_generator.py
radiradev/finetuned-cvn
67ae5d659b6c78f670acac126e2411498048e548
[ "MIT" ]
null
null
null
modules/data_generator.py
radiradev/finetuned-cvn
67ae5d659b6c78f670acac126e2411498048e548
[ "MIT" ]
1
2021-01-25T13:17:17.000Z
2021-01-25T13:17:17.000Z
""" DUNE CVN generator module. """ __version__ = '1.0' __author__ = 'Saul Alonso-Monsalve, Leigh Howard Whitehead' __email__ = "saul.alonso.monsalve@cern.ch, leigh.howard.whitehead@cern.ch" import numpy as np import zlib class DataGenerator(object): ''' Generate data for tf.keras. ''' def __init__(self, ...
32.941176
104
0.574702
3,136
0.933333
844
0.25119
0
0
0
0
1,405
0.418155
57dcfbeaa86e0a7c3e91ecfd4e63ebdf3ea2ed9b
2,139
py
Python
car_classifier/utils.py
SaraLatif99/car-classification
27b017e9cba66935c0f715d5584cfd7fe7bd4653
[ "MIT" ]
2
2020-03-21T19:26:39.000Z
2021-06-14T18:45:10.000Z
car_classifier/utils.py
SaraLatif99/car-classification
27b017e9cba66935c0f715d5584cfd7fe7bd4653
[ "MIT" ]
null
null
null
car_classifier/utils.py
SaraLatif99/car-classification
27b017e9cba66935c0f715d5584cfd7fe7bd4653
[ "MIT" ]
5
2020-02-26T13:35:23.000Z
2022-03-11T20:05:34.000Z
import numpy as np import matplotlib.pyplot as plt import tensorflow as tf def show_batch(ds: tf.data.Dataset, classes: list, rescale: bool = False, size: tuple = (10, 10), title: str = None): """ Function to show a batch of images including labels f...
27.779221
94
0.580645
0
0
0
0
0
0
0
0
779
0.364189
57dd47aedd8a524e75ea171983002bdec3519055
8,078
py
Python
mc_states/grains/makina_grains.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
18
2015-02-22T12:53:50.000Z
2019-03-15T16:45:10.000Z
mc_states/grains/makina_grains.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
20
2015-01-20T22:35:02.000Z
2017-11-06T11:17:34.000Z
doc/sphinx/mc_states/grains/makina_grains.py
makinacorpus/makina-states
8ae1ccd1a0b614a7f308229c07e1493b06f5883a
[ "BSD-3-Clause" ]
5
2015-01-13T04:23:09.000Z
2019-01-03T17:00:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Makina custom grains ===================== makina.upstart true if using upstart makina.lxc true if inside an lxc container makina.docker true if inside a docker container makina.devhost_num devhost num if any ''' import os import copy import subprocess...
26.837209
68
0.522035
0
0
0
0
0
0
0
0
2,612
0.323347
57ddb4b5d3ed3ad05cafa6472e006c6f0d350af7
1,390
py
Python
scripts/devops_tasks/trust_proxy_cert.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
scripts/devops_tasks/trust_proxy_cert.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
scripts/devops_tasks/trust_proxy_cert.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
import requests import os EXISTING_ROOT_PEM = requests.certs.where() root_dir = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", "..")) LOCAL_DEV_CERT = os.path.abspath(os.path.join(root_dir, 'eng', 'common', 'testproxy', 'dotnet-devcert.crt')) COMBINED_FILENAME = os.path.basename(LOCAL_DEV_CERT).s...
34.75
108
0.697122
0
0
0
0
0
0
0
0
297
0.213669
57dfafb9e8933dbd5e630eaa629e5d73f23115df
1,866
py
Python
tests/onegov/wtfs/test_fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/wtfs/test_fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/wtfs/test_fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cgi import FieldStorage from datetime import date from io import BytesIO from onegov.core.utils import Bunch from onegov.form import Form from onegov.wtfs.fields import HintField from onegov.wtfs.fields import MunicipalityDataUploadField class PostData(dict): def getlist(self, key): v = self[key] ...
29.15625
76
0.663987
153
0.081774
0
0
0
0
0
0
297
0.158739
57e0f15da3397b04339d70c34758b935f92d1d00
3,339
py
Python
lattice_gauge_theory/cluster.py
saforem2/lattice_gauge_theory
600ce4d7d520c5b54a49b6c13086e577704b38ec
[ "MIT" ]
4
2019-01-04T04:59:35.000Z
2021-08-24T16:38:16.000Z
lattice_gauge_theory/cluster.py
saforem2/lattice_gauge_theory
600ce4d7d520c5b54a49b6c13086e577704b38ec
[ "MIT" ]
null
null
null
lattice_gauge_theory/cluster.py
saforem2/lattice_gauge_theory
600ce4d7d520c5b54a49b6c13086e577704b38ec
[ "MIT" ]
2
2018-12-13T10:49:36.000Z
2020-11-17T15:42:35.000Z
class Cluster(object): """ Object for grouping sets of sites. """ def __init__(self, sites): """ Initialize a cluster instance. Args: sites (list(Site)): The list of sites that make up the cluster. Returns: None """ self.sites = set(site...
29.289474
79
0.542677
3,335
0.998802
0
0
0
0
0
0
1,345
0.402815
57e57da0d0ba47a4766076fdde40ebae4111f44b
2,156
py
Python
airflow_server/dags/cbs.py
ephraimberkovitch/anyway-etl
e5b4b8c18ef9899c8edbdbc8bfecc933b56c892b
[ "MIT" ]
null
null
null
airflow_server/dags/cbs.py
ephraimberkovitch/anyway-etl
e5b4b8c18ef9899c8edbdbc8bfecc933b56c892b
[ "MIT" ]
15
2021-08-22T11:53:47.000Z
2022-02-21T17:09:53.000Z
airflow_server/dags/cbs.py
ephraimberkovitch/anyway-etl
e5b4b8c18ef9899c8edbdbc8bfecc933b56c892b
[ "MIT" ]
5
2021-07-20T22:19:35.000Z
2022-02-22T09:44:25.000Z
from airflow import DAG from airflow.utils.dates import days_ago from anyway_etl_airflow.operators.cli_bash_operator import CliBashOperator dag_kwargs = dict( default_args={ 'owner': 'airflow', }, schedule_interval='@weekly', catchup=False, start_date=days_ago(2), ) with DAG('cbs', **da...
39.2
126
0.612709
0
0
0
0
0
0
0
0
1,166
0.540816
57e9214f569a136ae9aadc59ca630b01df45985d
1,069
py
Python
automation/devops_automation_infra/utils/s3.py
AnyVisionltd/devops-automation-infra
7d6e75dc96ffa53d07e1dbd2c4ddb0fcdcf92cd1
[ "MIT" ]
2
2021-03-10T14:52:24.000Z
2021-03-10T18:50:20.000Z
automation/devops_automation_infra/utils/s3.py
solganik/devops-automation-infra
2ef2ac80a52d2f2abd037ad24cbf7f98b0c50bc6
[ "MIT" ]
4
2021-03-14T11:30:11.000Z
2022-01-30T16:01:41.000Z
automation/devops_automation_infra/utils/s3.py
solganik/devops-automation-infra
2ef2ac80a52d2f2abd037ad24cbf7f98b0c50bc6
[ "MIT" ]
5
2021-03-10T14:52:14.000Z
2021-11-17T16:00:18.000Z
import os import boto3 from automation_infra.utils import concurrently from functools import partial def clear_bucket(boto3_client, bucket_name): boto3_client.delete_bucket(Bucket=bucket_name) def clear_all_buckets(boto3_client): bucket_names = [bucket['Name'] for bucket in boto3_client.list_buckets()['Buck...
39.592593
114
0.77362
0
0
0
0
0
0
0
0
81
0.075772