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
bce184e301b2a2454689f53c630fba1c6046cd36
18,709
py
Python
src/oci/log_analytics/models/log_analytics_association.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/log_analytics/models/log_analytics_association.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/log_analytics/models/log_analytics_association.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
31.443697
245
0.65685
18,169
0.971137
0
0
18,199
0.97274
0
0
12,844
0.686515
bce1c979a2eb7695c7ea999525e47a17d52983b8
68,069
py
Python
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
3
2021-07-28T11:28:25.000Z
2021-07-28T11:56:58.000Z
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
null
null
null
symblic_game/NEW_GAME.py
zishanqin/Symbolic-transfer
b553f188ad3f6c6492fcff556ac6f597e56cf43e
[ "MIT" ]
1
2021-07-28T11:40:45.000Z
2021-07-28T11:40:45.000Z
'Author: Aimore Resende Riquetti Dutra' '''email: [email protected]''' # -------------------------------------------------------------------------------------------------- # # This code can run 4 different models of Reinforcement Learning: # Q-Learning (QL), DQN, SRL (DSRL), SRL+CS(DSRL_object_near) and some ot...
41.734519
231
0.491707
3,642
0.053472
0
0
0
0
0
0
17,771
0.260912
bce207bdb62870e146b1e56a1b168c691c0515ac
4,273
py
Python
utils/scene_bounding_box.py
davidemarelli/sfm_flow
7a96d8309cc01b8499347ba0cae882923d82bbcc
[ "MIT" ]
8
2020-10-27T12:52:17.000Z
2022-03-30T04:15:37.000Z
utils/scene_bounding_box.py
ElsevierSoftwareX/SOFTX_2020_51
b240a113c91405fac60444a6e56e87e3cf17a27b
[ "MIT" ]
1
2020-11-09T01:56:04.000Z
2020-11-24T15:58:26.000Z
utils/scene_bounding_box.py
davidemarelli/sfm_flow
7a96d8309cc01b8499347ba0cae882923d82bbcc
[ "MIT" ]
2
2021-12-02T10:04:39.000Z
2022-03-28T07:54:07.000Z
import logging from typing import Tuple import bpy from mathutils import Vector from .object import get_objs logger = logging.getLogger(__name__) class SceneBoundingBox(): """Scene bounding box, build a bounding box that includes all objects except the excluded ones.""" ##################################...
39.934579
113
0.388018
4,120
0.964194
0
0
499
0.11678
0
0
1,926
0.450737
bce25f2b08abacab5318cf6e45474c91216d772e
38,887
py
Python
tensor2tensor/trax/rlax/ppo.py
funtion/tensor2tensor
339295a276c4bfc93894c474979d0620d14b9710
[ "Apache-2.0" ]
1
2020-09-22T02:07:16.000Z
2020-09-22T02:07:16.000Z
tensor2tensor/trax/rlax/ppo.py
joeyism/tensor2tensor
2f0edae221a9ec2a415dbf7fcc3ff25b8777d830
[ "Apache-2.0" ]
null
null
null
tensor2tensor/trax/rlax/ppo.py
joeyism/tensor2tensor
2f0edae221a9ec2a415dbf7fcc3ff25b8777d830
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 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...
35.255666
81
0.649806
0
0
0
0
7,594
0.195284
0
0
14,443
0.371409
bce5b76758741bd43e051c43114fa45c1ec64384
9,421
py
Python
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
models/cal.py
SudoRmFr/The-Nature-Conservancy-Fisheries-Monitoring
059f0063c1493c19b4f45fa27d13adaeb6b2b2d7
[ "MIT" ]
null
null
null
""" WS-DAN models Hu et al., "See Better Before Looking Closer: Weakly Supervised Data Augmentation Network for Fine-Grained Visual Classification", arXiv:1901.09891 """ import logging import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import models.resnet as resnet from models.incep...
39.751055
135
0.604713
6,209
0.65906
0
0
0
0
0
0
1,279
0.135761
bce6db15719682d4f24dcfd6984365aab4377658
1,526
py
Python
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
null
null
null
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
null
null
null
tests/walls/analytic/plates.py
noabauma/Mirheo
bf7979bfbbf402d33c26ac5dc879f880e78e7017
[ "MIT" ]
1
2021-07-14T13:24:05.000Z
2021-07-14T13:24:05.000Z
#!/usr/bin/env python import mirheo as mir dt = 0.001 ranks = (1, 1, 1) domain = (8, 16, 8) force = (1.0, 0, 0) density = 4 u = mir.Mirheo(ranks, domain, dt, debug_level=3, log_filename='log', no_splash=True) pv = mir.ParticleVectors.ParticleVector('pv', mass = 1) ic = mir.InitialConditions.Uniform(number_densit...
27.745455
138
0.692005
0
0
0
0
0
0
0
0
295
0.193316
bce8b5c80fccdda525f4313d1b8dac7df83862d2
3,765
py
Python
scraper-code/myanimelist/base.py
XueAlfred/MALAnalysis
630d578b30f7540769774e1e4ee072d9775bf4bf
[ "MIT" ]
15
2015-01-24T10:52:42.000Z
2021-08-09T10:23:58.000Z
scraper-code/myanimelist/base.py
XueAlfred/MALAnalysis
630d578b30f7540769774e1e4ee072d9775bf4bf
[ "MIT" ]
10
2015-01-24T10:51:18.000Z
2018-09-05T00:17:03.000Z
scraper-code/myanimelist/base.py
XueAlfred/MALAnalysis
630d578b30f7540769774e1e4ee072d9775bf4bf
[ "MIT" ]
18
2015-01-24T11:29:38.000Z
2021-12-04T02:41:09.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import abc import bs4 import functools import utilities class Error(Exception): """Base exception class that takes a message to display upon raising. """ def __init__(self, message=None): """Creates an instance of Error. :type message: str :param message: A...
27.683824
127
0.662151
3,076
0.816999
0
0
311
0.082603
0
0
1,481
0.39336
bce99600c76ca2d8cb9cc68164960e5e44460216
624
py
Python
p2/core/http.py
BeryJu/p2
80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27
[ "MIT" ]
null
null
null
p2/core/http.py
BeryJu/p2
80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27
[ "MIT" ]
null
null
null
p2/core/http.py
BeryJu/p2
80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27
[ "MIT" ]
null
null
null
"""p2 core http responses""" from wsgiref.util import FileWrapper from django.http import StreamingHttpResponse from p2.core.constants import ATTR_BLOB_MIME, ATTR_BLOB_SIZE_BYTES from p2.core.models import Blob class BlobResponse(StreamingHttpResponse): """Directly return blob's content. Optionally return as at...
36.705882
96
0.758013
408
0.653846
0
0
0
0
0
0
162
0.259615
bcea70bd02cca28f65bc7151eb0b0e69448cc1e4
7,566
py
Python
lattedb/project/formfac/migrations/0009_auto_20200528_0907.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
1
2019-12-11T02:33:23.000Z
2019-12-11T02:33:23.000Z
lattedb/project/formfac/migrations/0009_auto_20200528_0907.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
10
2020-01-29T17:06:01.000Z
2021-05-31T14:41:19.000Z
lattedb/project/formfac/migrations/0009_auto_20200528_0907.py
callat-qcd/lattedb
75c06748f3d59332a84ec1b5794c215c5974a46f
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.6 on 2020-05-28 09:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('project_formfac', '0008_...
64.666667
239
0.690193
7,407
0.978985
0
0
0
0
0
0
2,641
0.349062
bceaba57987d2038b2b3f984d0fa700547f6902c
12,224
py
Python
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
SIO_Code/SIO_coherence.py
mmstoll/Ocean569_Code
228cb719f3e82f187f704f343d3b3590a38236d7
[ "MIT" ]
null
null
null
""" Data: Temperature and Salinity time series from SIO Scripps Pier Salinity: measured in PSU at the surface (~0.5m) and at depth (~5m) Temp: measured in degrees C at the surface (~0.5m) and at depth (~5m) - Timestamp included beginning in 1990 """ # imports import sys,os import pandas as pd import numpy as...
47.015385
156
0.724967
0
0
0
0
0
0
0
0
5,673
0.464087
bceb90c866742318115d3897625ab3cd17dad9ae
1,782
py
Python
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
7
2019-03-13T17:22:50.000Z
2022-01-09T09:03:16.000Z
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
1
2019-08-01T23:42:09.000Z
2019-08-02T16:14:31.000Z
abfs/group_data_split.py
rcdilorenzo/abfs
a897d00a4589a9412a9b9e737f8db91df008fc26
[ "MIT" ]
2
2020-09-12T06:33:16.000Z
2021-01-01T01:05:48.000Z
from collections import namedtuple as Struct from sklearn.model_selection import GroupShuffleSplit, ShuffleSplit DataSplitConfig = Struct('DataSplitConfig', ['validation_size', 'test_size', 'random_seed']) DEFAULT_SPLIT_CONFIG = DataSplitConfig(0.2, 0.2, 1337) class GroupDataSplit(): def __init__(self, df, key, ...
30.724138
92
0.640292
1,517
0.851291
0
0
710
0.398429
0
0
176
0.098765
bcef12fc47d4a9fcc176c51b16eef241913a4acb
2,989
py
Python
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1,190
2020-07-10T01:16:01.000Z
2022-03-31T09:48:38.000Z
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
702
2020-07-13T13:31:33.000Z
2022-03-31T06:48:04.000Z
mmcls/models/utils/se_layer.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
502
2020-07-10T02:40:55.000Z
2022-03-31T02:07:09.000Z
# Copyright (c) OpenMMLab. All rights reserved. import mmcv import torch.nn as nn from mmcv.cnn import ConvModule from mmcv.runner import BaseModule from .make_divisible import make_divisible class SELayer(BaseModule): """Squeeze-and-Excitation Module. Args: channels (int): The input (and output) ch...
39.853333
77
0.603546
2,793
0.934426
0
0
0
0
0
0
1,405
0.470057
bcef9b7b7442550783a878ff705f2b12e8b4982b
605
py
Python
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
null
null
null
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
7
2021-04-08T21:26:44.000Z
2022-03-12T00:40:52.000Z
instagram/admin.py
James19stack/instagram-copy_cat
996a8678cec84a05e97d803356194cd112ee53e6
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Images,Comments,Profile # Register your models here. class CommentInline(admin.TabularInline): model=Comments extra=3 class ImageInline(admin.ModelAdmin): fieldsets=[ (None,{'fields':['image']}), (None,{'fields':['image_name']}), ...
24.2
49
0.676033
319
0.527273
0
0
0
0
0
0
145
0.239669
bcefbd3c4fdc15d991e7f75b480521ed8994a120
2,234
py
Python
mandelbruh/util.py
pereradrian/mandelbruh
fb68c5f2af84d51097e73f3a248e3a1b95fbbf47
[ "MIT" ]
null
null
null
mandelbruh/util.py
pereradrian/mandelbruh
fb68c5f2af84d51097e73f3a248e3a1b95fbbf47
[ "MIT" ]
null
null
null
mandelbruh/util.py
pereradrian/mandelbruh
fb68c5f2af84d51097e73f3a248e3a1b95fbbf47
[ "MIT" ]
null
null
null
import numpy as np def normalize(x): return x / np.linalg.norm(x) def norm_sq(v): return np.dot(v,v) def norm(v): return np.linalg.norm(v) def get_sub_keys(v): if type(v) is not tuple and type(v) is not list: return [] return [k for k in v if type(k) is str] def to_vec3(v): if isinstance(v, (float, int)): ...
21.68932
88
0.625783
0
0
0
0
0
0
0
0
127
0.056849
bcf0d2ce383dabf5df66eb0e8657dcde75189cda
8,894
py
Python
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
129
2017-11-14T07:20:33.000Z
2021-06-18T07:07:18.000Z
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
10
2018-04-18T08:01:09.000Z
2018-08-17T02:57:33.000Z
core/recognizer.py
awen1988/yry
b65ccd7062d60f605fc978a87e060d0015cf1d4c
[ "Apache-2.0" ]
35
2017-11-14T07:17:00.000Z
2021-01-21T08:10:07.000Z
""" recognize face landmark """ import json import os import requests import numpy as np FACE_POINTS = list(range(0, 83)) JAW_POINTS = list(range(0, 19)) LEFT_EYE_POINTS = list(range(19, 29)) LEFT_BROW_POINTS = list(range(29, 37)) MOUTH_POINTS = list(range(37, 55)) NOSE_POINTS = list(range(55, 65)) RIGHT_EYE_POINTS =...
47.308511
103
0.619744
0
0
0
0
0
0
0
0
4,608
0.518102
bcf263d3ef948ac8eb8afa3a601107434d608075
1,646
py
Python
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
magvar.py
rafidmorshedi/mag-dec-api
5daff929be8cad902f8db331090c0ed77f7bdef9
[ "MIT" ]
null
null
null
import requests import time from bs4 import BeautifulSoup import re def decdeg2dms(dd): negative = dd < 0 dd = abs(dd) minutes,seconds = divmod(dd*3600,60) degrees,minutes = divmod(minutes,60) if negative: if degrees > 0: degrees = -degrees elif minutes > 0: ...
29.392857
76
0.59113
0
0
0
0
0
0
0
0
614
0.373026
bcf313d0b0b9c2b0b509d979b3d7f59db6845dd5
81,110
py
Python
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/datacatalog/v1beta1/datacatalog_v1beta1_messages.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/datacatalog/v1beta1/datacatalog_v1beta1_messages.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
4
2020-07-21T12:51:46.000Z
2022-01-22T10:29:25.000Z
google-cloud-sdk/lib/googlecloudsdk/third_party/apis/datacatalog/v1beta1/datacatalog_v1beta1_messages.py
bopopescu/Social-Lite
ee05d6a7431c36ff582c8d6b58bb20a8c5f550bf
[ "Apache-2.0" ]
1
2020-07-25T18:17:57.000Z
2020-07-25T18:17:57.000Z
"""Generated message classes for datacatalog version v1beta1. A fully managed and highly scalable data discovery and metadata management service. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding ...
42.644585
150
0.753051
80,206
0.988855
0
0
2,206
0.027198
0
0
61,025
0.752373
bcf316f9ca83440854d986b21a72745912b71d9f
656
py
Python
materials/migrations/0072_auto_20190422_1708.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
7
2019-09-14T07:24:09.000Z
2021-06-15T16:15:05.000Z
materials/migrations/0072_auto_20190422_1708.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
14
2019-12-05T01:49:19.000Z
2021-06-23T18:34:51.000Z
materials/migrations/0072_auto_20190422_1708.py
mgovoni-devel/MatD3
5b68d147f886bce427f92bb560159e62cec2d4e7
[ "BSD-2-Clause-FreeBSD" ]
2
2019-11-06T21:16:57.000Z
2019-11-30T10:51:44.000Z
# Generated by Django 2.1.7 on 2019-04-22 21:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('materials', '0071_auto_20190416_1557'), ] operations = [ migrations.RemoveField( model_name='atomicpositions', name='idinfo_...
22.62069
49
0.565549
571
0.870427
0
0
0
0
0
0
189
0.28811
bcf492dcec78d6b358e2430eb0bbca995c069560
5,054
py
Python
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
1
2018-11-18T05:43:05.000Z
2018-11-18T05:43:05.000Z
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
null
null
null
Deep-Learning/Crowd-Count/src/data_preprocess.py
sadbb/CVCode
c7c8b527af786d8f113122231e6296987b242b59
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # ------------------------ # written by Songjian Chen # 2018-10 # ------------------------ import os import skimage.io from skimage.color import rgb2gray import skimage.transform from scipy.io import loadmat import numpy as np import cv2 import math import warnings import random import torch imp...
38.287879
109
0.623467
0
0
0
0
0
0
0
0
1,045
0.206767
bcf55731b896385e43f5d67d9f858074f1791555
38
py
Python
for1.py
satyamraj123/set-of-python-programs
c9a20b37cddc555704799e5ff277488b7eff58a9
[ "Apache-2.0" ]
null
null
null
for1.py
satyamraj123/set-of-python-programs
c9a20b37cddc555704799e5ff277488b7eff58a9
[ "Apache-2.0" ]
null
null
null
for1.py
satyamraj123/set-of-python-programs
c9a20b37cddc555704799e5ff277488b7eff58a9
[ "Apache-2.0" ]
null
null
null
fruit='banana' x=len(fruit) print(x)
12.666667
15
0.684211
0
0
0
0
0
0
0
0
8
0.210526
bcf5a205651a80f9d34336bef6e346a1933e40ae
689
py
Python
Django_Intershala/recruiter/migrations/0004_auto_20210305_1551.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
7
2021-03-08T17:09:39.000Z
2021-12-30T09:44:44.000Z
Django_Intershala/recruiter/migrations/0004_auto_20210305_1551.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
null
null
null
Django_Intershala/recruiter/migrations/0004_auto_20210305_1551.py
samir321-pixel/Django_Intershala
77aaa24a34873dab4c3302727d5f43986a99809e
[ "MIT" ]
2
2021-03-03T11:35:05.000Z
2021-03-22T17:00:16.000Z
# Generated by Django 3.1.7 on 2021-03-05 10:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('recruiter', '0003_auto_20210304_2132'), ] operations = [ migrations.RemoveField( model_name='recruiter', name='middl...
24.607143
62
0.576197
596
0.865022
0
0
0
0
0
0
152
0.22061
bcf633a886ab43d9c3c7c35185345d3f776c81e3
4,899
py
Python
src/promnesia/sources/telegram.py
halhenke/promnesia
03f46b7e0740790ef091e6f48d0ac2e6bf05bcb7
[ "MIT" ]
1,327
2019-11-02T20:10:38.000Z
2022-03-29T16:58:36.000Z
src/promnesia/sources/telegram.py
halhenke/promnesia
03f46b7e0740790ef091e6f48d0ac2e6bf05bcb7
[ "MIT" ]
157
2019-09-06T11:16:40.000Z
2022-03-27T20:01:52.000Z
src/promnesia/sources/telegram.py
halhenke/promnesia
03f46b7e0740790ef091e6f48d0ac2e6bf05bcb7
[ "MIT" ]
60
2020-06-08T22:12:24.000Z
2022-03-22T16:57:22.000Z
''' Uses [[https://github.com/fabianonline/telegram_backup#readme][telegram_backup]] database for messages data ''' from pathlib import Path from textwrap import dedent from typing import Optional, Union, TypeVar from urllib.parse import unquote # TODO mm, make it easier to rememember to use... from ..common import P...
37.684615
154
0.560931
0
0
3,957
0.807716
0
0
0
0
2,939
0.599918
bcf6d0a350e5ace0a39c3f35ff8dbbc6f050f1f4
6,407
py
Python
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
shellmacros/istr.py
duaneellissd/shellmacros
33b5cd1a8794e35a9540f78dca066b8dfc289c97
[ "BSD-2-Clause" ]
null
null
null
''' Created on Dec 27, 2019 @author: duane ''' DOLLAR = ord('$') LBRACE = ord('{') RBRACE = ord('}') LPAREN = ord('(') RPAREN = ord(')') class IStrFindResult(object): OK = 0 NOTFOUND = 1 SYNTAX = 2 def __init__(self): self.result = IStrFindResult.SYNTAX self.lhs = 0 self.rh...
27.856522
81
0.517715
4,372
0.682379
0
0
0
0
0
0
2,256
0.352115
bcf76125149120b7d959b455bacb0c98cf4095f0
7,712
py
Python
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
4
2019-07-18T18:16:31.000Z
2020-02-28T08:39:58.000Z
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
null
null
null
cli.py
checktheroads/deenis
2581e2fcbb08a9c85590bd54e109f24cc87b664f
[ "WTFPL" ]
null
null
null
#!/usr/bin/env python3 """ CLI for Accessing Deenis """ # Standard Imports import sys from pathlib import Path # Module Imports import click # Path Fixes working_dir = Path(__file__).resolve().parent sys.path.append(str(working_dir)) # Project Imports from deenis import Deenis @click.group( help=( "Deen...
36.72381
86
0.490794
0
0
0
0
7,384
0.956477
0
0
2,421
0.313601
bcf7f47be4d0d789e4869009ef9f2f68c5ab3b33
5,383
py
Python
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
main_cl.py
spiolynn/pybo
186495de315eb8ec47a996de959574f9864da7c4
[ "MIT" ]
null
null
null
# coding: utf-8 from bigone import BigOneDog from common import gen_logger import logging import time import json def strategy_eth_big_bnc_eth(dog): """ 正向:买BIG/ETH -> 卖BIG/BNC -> 买ETH/BNC 反向:卖ETH/BNC -> 买BIG/BNC -> 卖BIG/ETH :param dog: implemention of BigOneDog :return: 正向收益率,反向收益率 """ ...
35.886667
112
0.546907
0
0
0
0
0
0
0
0
2,653
0.458441
bcf86b7e6462408e17d610983a6cb23985d20fe4
1,191
py
Python
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
6
2019-11-15T08:42:29.000Z
2021-03-04T11:58:39.000Z
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
null
null
null
run_experiments.py
gahaalt/cifar-vs-tensorflow2
547d131382438ef76e315dde06a6870737f1fbad
[ "MIT" ]
3
2020-11-25T03:44:41.000Z
2021-03-08T04:45:56.000Z
import os import yaml import logging import importlib os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' logging.getLogger('tensorflow').disabled = True from cifar_training_tools import cifar_training, cifar_error_test def print_dict(d, tabs=0): tab = '\t' for key in d: if type(d[key]) == dict: pri...
27.697674
79
0.628044
0
0
0
0
0
0
0
0
318
0.267003
bcf8d925c5a3910be4a945e6cce5d1278db5fcb4
179
py
Python
json2yaml.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
null
null
null
json2yaml.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
1
2016-01-31T12:54:06.000Z
2016-02-29T13:45:46.000Z
json2yaml.py
cristicalin/tools
b8fe4efb1143a575d102d3a8e368052a4ecdceae
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import yaml import json if __name__ == '__main__': content = json.load(sys.stdin) print yaml.dump(content, indent=2, default_flow_style=False)
16.272727
62
0.73743
0
0
0
0
0
0
0
0
27
0.150838
bcf9bd066aefdc4f6abca126693e2677662eb927
1,542
py
Python
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
1
2018-07-02T13:54:49.000Z
2018-07-02T13:54:49.000Z
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
null
null
null
histdata/mt5db/script_DownloadAndStoreToMongodb.py
UpSea/midProjects
ed6086e74f68b1b89f725abe0b270e67cf8993a8
[ "MIT" ]
3
2016-05-28T15:13:02.000Z
2021-04-10T06:04:25.000Z
# -*- coding: utf-8 -*- import os,sys from PyQt4 import QtGui,QtCore dataRoot = os.path.abspath(os.path.join(os.path.dirname(__file__),os.pardir,os.pardir,'histdata')) sys.path.append(dataRoot) import dataCenter as dataCenter from data.mongodb.DataSourceMongodb import Mongodb import datetime as dt ...
37.609756
133
0.527237
0
0
0
0
0
0
0
0
648
0.403487
bcf9e42ce187d88ea3d733bded3e343188bcd463
10,196
py
Python
daproli/transformer.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
daproli/transformer.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
daproli/transformer.py
ermshaua/daproli
c1f7aeec431d9c60ae06eeac23455c1a03bc82cf
[ "BSD-3-Clause" ]
null
null
null
from joblib import Parallel, delayed from tqdm import tqdm from .processing import map, filter, split, expand, combine, join from .manipulation import windowed, flatten class BaseTransformer: ''' The BaseTransformer defines a generic data transformation pattern that can be implemented with a number of da...
36.028269
127
0.640643
9,990
0.979796
0
0
0
0
0
0
4,750
0.465869
bcfa0b019701139c1bd20ee0f0d8361e7deda90e
90
py
Python
Ad-Hoc/2454.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Ad-Hoc/2454.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
Ad-Hoc/2454.py
LorranSutter/URI-Online-Judge
aef885b9a7caa83484cf172e29eea8ec92fc3627
[ "MIT" ]
null
null
null
P, R = input().split() if P == '0': print('C') elif R == '0': print('B') else: print('A')
18
25
0.488889
0
0
0
0
0
0
0
0
15
0.166667
bcfa7e8108972dea4c27619df4c1be7b06458b6e
3,813
py
Python
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
2
2020-02-18T09:41:43.000Z
2020-02-20T11:03:03.000Z
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
null
null
null
main.py
brunotoshio/castella
ad418bd1beb4953687a4ad7be586b12631c25992
[ "MIT" ]
null
null
null
import pymongo import yaml import sched import time import json from castella import TweetCrawler class Castella(object): def __init__(self): # Get connection parameters with open("settings.yml", "r") as stream: try: settings = yaml.safe_load(stream)["settings"] ...
37.019417
150
0.540782
3,629
0.951744
0
0
0
0
0
0
1,053
0.276161
bcfabdd28c428dd3bd0fa4eb4f234286130b7db0
1,275
py
Python
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
monroid/openvino
8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6
[ "Apache-2.0" ]
2,406
2020-04-22T15:47:54.000Z
2022-03-31T10:27:37.000Z
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4,948
2020-04-22T15:12:39.000Z
2022-03-31T18:45:42.000Z
ngraph/test/frontend/paddlepaddle/test_models/gen_scripts/generate_slice.py
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
991
2020-04-23T18:21:09.000Z
2022-03-31T18:40:57.000Z
# # slice paddle model generator # import numpy as np from save_model import saveModel import paddle as pdpd import sys data_type = 'float32' def slice(name : str, x, axes : list, start : list, end : list): pdpd.enable_static() with pdpd.static.program_guard(pdpd.static.Program(), pdpd.static.Program()): ...
32.692308
116
0.622745
0
0
0
0
0
0
0
0
146
0.11451
bcfb7330e40f9b79f2ab184f143d401951828548
2,513
py
Python
tacker/sol_refactored/common/vnf_instance_utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
116
2015-10-18T02:57:08.000Z
2022-03-15T04:09:18.000Z
tacker/sol_refactored/common/vnf_instance_utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
6
2016-11-07T22:15:54.000Z
2021-05-09T06:13:08.000Z
tacker/sol_refactored/common/vnf_instance_utils.py
h1r0mu/tacker
8c69dda51fcfe215c4878a86b82018d2b96e5561
[ "Apache-2.0" ]
166
2015-10-20T15:31:52.000Z
2021-11-12T08:39:49.000Z
# Copyright (C) 2021 Nippon Telegraph and Telephone Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICE...
32.217949
78
0.68842
0
0
0
0
0
0
0
0
1,039
0.41345
bcfca1189da0e63d3e685ea19031e90196e49d8d
719
py
Python
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
testfixtures/compat.py
cjw296/testfixtures
1bf1e6fe1e111210d6d7fbcd00feb564095ffd02
[ "MIT" ]
null
null
null
# compatibility module for different python versions import sys if sys.version_info[:2] > (3, 0): PY2 = False PY3 = True Bytes = bytes Unicode = str basestring = str class_type_name = 'class' ClassType = type exception_module = 'builtins' new_class = type self_name = '__self_...
18.435897
52
0.635605
0
0
0
0
0
0
0
0
106
0.147427
bcfd55447233f3a98240a98d95e5f9301c8b38ec
3,898
py
Python
old_py2/tests/models_tests/notifications/test_match_score.py
ofekashery/the-blue-alliance
df0e47d054161fe742ac6198a6684247d0713279
[ "MIT" ]
266
2015-01-04T00:10:48.000Z
2022-03-28T18:42:05.000Z
tests/models_tests/notifications/test_match_score.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
2,673
2015-01-01T20:14:33.000Z
2022-03-31T18:17:16.000Z
tests/models_tests/notifications/test_match_score.py
gregmarra/the-blue-alliance
5bedaf5c80b4623984760d3da3289640639112f9
[ "MIT" ]
230
2015-01-04T00:10:48.000Z
2022-03-26T18:12:04.000Z
import re import unittest2 from google.appengine.ext import ndb from google.appengine.ext import testbed from consts.notification_type import NotificationType from helpers.event.event_test_creator import EventTestCreator from models.team import Team from models.notifications.match_score import MatchScoreNotification...
41.913978
94
0.69882
3,574
0.91688
0
0
0
0
0
0
496
0.127245
bcfdc746f65446c3a274947a1481597ff88c7469
5,406
py
Python
util/submission/templates.py
jeanlucf22/mgmol
4e79bc32c14c8a47ae18ad0659ea740719c8b77f
[ "BSD-3-Clause-LBNL", "FSFAP" ]
25
2018-12-29T03:33:01.000Z
2021-05-08T12:52:27.000Z
util/submission/templates.py
jeanlucf22/mgmol
4e79bc32c14c8a47ae18ad0659ea740719c8b77f
[ "BSD-3-Clause-LBNL", "FSFAP" ]
121
2018-12-19T02:38:21.000Z
2021-12-20T16:29:24.000Z
util/submission/templates.py
jeanlucf22/mgmol
4e79bc32c14c8a47ae18ad0659ea740719c8b77f
[ "BSD-3-Clause-LBNL", "FSFAP" ]
15
2019-02-17T05:28:43.000Z
2022-02-28T05:24:11.000Z
md_template_d144 = """verbosity=0 xcFunctional=PBE FDtype=4th [Mesh] nx=160 ny=80 nz=80 [Domain] ox=0. oy=0. oz=0. lx=42.4813 ly=21.2406 lz=21.2406 [Potentials] pseudopotential=pseudo.D_tm_pbe [Poisson] solver=@ max_steps_initial=@50 max_steps=@50 reset=@ bcx=periodic bcy=periodic bcz=periodic [Run] type=MD [MD] type=@...
17.216561
119
0.663707
0
0
0
0
0
0
0
0
4,584
0.847947
bcfde8681fdc58448a7018049cb36bbab73499b0
21,700
py
Python
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
Compliant_control/Force Tracking/archive/VIC_Huang1992_(main 09.03).py
martihmy/Compliant_control
485f627fa83d59f414f41bd57c5d37528ef5f1ec
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python import copy from copy import deepcopy import rospy import threading import quaternion import numpy as np from geometry_msgs.msg import Point from visualization_msgs.msg import * from franka_interface import ArmInterface from panda_robot import PandaArm import matplotlib.pyplot as plt from scipy.s...
36.842105
267
0.638157
0
0
0
0
0
0
0
0
7,528
0.346912
bcfe9ac7b39f229df7d1b4504478244ea3835c1b
483
py
Python
tests/migrations/0010_modeltest_datetime_field1.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
tests/migrations/0010_modeltest_datetime_field1.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
tests/migrations/0010_modeltest_datetime_field1.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
# Generated by Django 2.2.9 on 2020-01-28 14:50 import django.utils.timezone from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("tests", "0009_auto_20200113_1239"), ] operations = [ migrations.AddField( model_name="modeltest", ...
23
74
0.63354
361
0.747412
0
0
0
0
0
0
107
0.221532
4c016da0c81742ef879e9615198cd22dc666a5c6
6,998
py
Python
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
4
2019-09-23T17:12:42.000Z
2022-02-01T02:38:40.000Z
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
2
2019-09-20T12:56:21.000Z
2019-09-24T23:08:26.000Z
pycmap/common.py
mdashkezari/pycmap
5b526404d005ec220ab0911cd2f3c05263f9eda3
[ "MIT" ]
1
2019-12-18T20:47:20.000Z
2019-12-18T20:47:20.000Z
""" Author: Mohammad Dehghani Ashkezari <[email protected]> Date: 2019-06-28 Function: Host a collection of shared multi-purpose helper functions. """ import os import sys from tqdm import tqdm from colorama import Fore, Back, Style, init import numpy as np import pandas as pd import webbrowser import I...
33.32381
131
0.572021
0
0
0
0
0
0
0
0
2,304
0.329237
4c02744bf60501dd6a24f21c67c4971193de0e1a
26,204
py
Python
appengine/monorail/api/v3/api_proto/projects_pb2.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
appengine/monorail/api/v3/api_proto/projects_pb2.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
4
2022-03-17T18:58:21.000Z
2022-03-17T18:58:22.000Z
appengine/monorail/api/v3/api_proto/projects_pb2.py
fknittel/git-retry-build
4d57dd6e8b7567daeb24b55f66bc5becd3d459f3
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: api/v3/api_proto/projects.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection f...
43.240924
2,750
0.781942
0
0
0
0
0
0
0
0
7,762
0.296214
4c03d0743c0121e9d0de50ceaa47b8661683af6f
2,207
py
Python
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
tests/test_device.py
michaelwoods/home-assistant-cli
340643af943f36283621f39ac39a690b1fccc045
[ "Apache-2.0" ]
null
null
null
"""Testing Device operations.""" import json import unittest.mock as mock from click.testing import CliRunner import homeassistant_cli.cli as cli def test_device_list(default_devices) -> None: """Test Device List.""" with mock.patch( 'homeassistant_cli.remote.get_devices', return_value=default_devic...
29.824324
76
0.557771
0
0
0
0
0
0
0
0
530
0.240145
4c03f5083b7da646254c6bd784cf88ab749969d1
4,350
py
Python
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
6
2020-08-10T13:09:03.000Z
2021-11-20T02:37:46.000Z
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
3
2021-02-16T06:20:23.000Z
2022-02-24T21:43:41.000Z
widgets/tree_item.py
tarsa129/j3d-animation-editor
3f0691bd7dcece6e2055a0b5af0510608f28f2ca
[ "MIT" ]
2
2021-02-16T05:02:04.000Z
2021-12-17T16:11:10.000Z
from PyQt5.QtWidgets import QAction, QTreeWidget, QTreeWidgetItem, QFileDialog from PyQt5.QtGui import QIcon from PyQt5.QtCore import Qt import animations.general_animation as j3d from widgets.yaz0 import compress, compress_slow, compress_fast from io import BytesIO class tree_item(QTreeWidgetItem): def __init__(...
37.5
116
0.55931
4,081
0.938161
0
0
0
0
0
0
254
0.058391
4c040273405e24f9a3249bb42b05984c6988f41a
3,445
py
Python
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
Wheels.py
edhosken/WheelsSong
cb988c8510a1095eeec3a2399b0fc0ba24bfa648
[ "MIT" ]
null
null
null
#Create the pre-defined song values and empty variables...Correct names not used so each starting letter would be unique numbers = (1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 ,11 ,12 ,13 ,14 ,15 ,16 ,17 ,18 ) letters = ['a ','b ','c ','d ','e ','f ','g ','h ','i ','j ','k ','l ','m ','n ','o ','p ','q ','r '] roman = ['I ', 'II ...
37.445652
204
0.54688
0
0
0
0
0
0
0
0
1,663
0.482309
4c0417fc2a324560f940489498afd9c4d64ac7c7
15,792
py
Python
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
tests/test_config.py
dfroger/conda
c0f99ff46b217d081501e66f4dcd7bcdb5d9c6aa
[ "BSD-3-Clause" ]
null
null
null
# (c) 2012-2014 Continuum Analytics, Inc. / http://continuum.io # All Rights Reserved # # conda is distributed under the terms of the BSD 3-clause license. # Consult LICENSE.txt or http://opensource.org/licenses/BSD-3-Clause. import os from os.path import dirname, join, exists import unittest import pytest import con...
30.31094
111
0.597138
3,304
0.20922
0
0
8,778
0.555851
0
0
6,506
0.411981
4c045d0953c279b203d260f5d6f3f9a0b7bdf019
3,579
py
Python
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
1
2021-03-19T22:42:34.000Z
2021-03-19T22:42:34.000Z
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
null
null
null
malaya/transformers/babble.py
ahmed3991/malaya
d90be6d5b2a1393a3f8b8b1ffa8ae676cdaa083c
[ "MIT" ]
null
null
null
# Bert has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Model, # by Alex Wang, Kyunghyun Cho, NeuralGen 2019 # https://colab.research.google.com/drive/1MxKZGtQ9SSBjTK5ArsZ5LKhkztzg52RV # https://arxiv.org/abs/1902.04094 import tensorflow as tf import tensorflow_probability as tfp import numpy as ...
28.632
84
0.626991
0
0
0
0
0
0
0
0
288
0.080469
4c045e92df54148ce6ef4110afe95ac625400e40
652
py
Python
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
coding patterns/two pointers/sortedarr_square.py
mkoryor/Python
837ec4c03130dc4cb919fb5f1eeb4d31206790e4
[ "Unlicense" ]
null
null
null
""" [E] Given a sorted array, create a new array containing squares of all the number of the input array in the sorted order. Input: [-2, -1, 0, 2, 3] Output: [0, 1, 4, 4, 9] """ # Time: O(N) Space: O(n) def make_squares(arr): n = len(arr) squares = [0 for x in range(n)] highestSquareIdx = n - 1 left, r...
19.757576
75
0.619632
0
0
0
0
0
0
0
0
206
0.315951
4c060ddce60243c22acf2298bfd181a17b757f40
1,917
py
Python
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
5
2020-05-20T12:41:31.000Z
2022-03-18T17:35:26.000Z
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
null
null
null
modules/evaluate/evaluate_step.py
Azure/aml-object-classification-pipeline
f94e4327ebfb5534b52c5c70e82832a86c64a2d1
[ "MIT" ]
5
2020-06-03T12:19:20.000Z
2021-12-30T02:58:06.000Z
import os from azureml.pipeline.steps import PythonScriptStep from azureml.core.runconfig import RunConfiguration from azureml.core.conda_dependencies import CondaDependencies from azureml.pipeline.core import PipelineData from azureml.pipeline.core import PipelineParameter from azureml.pipeline.steps import EstimatorS...
34.232143
87
0.708399
0
0
0
0
0
0
0
0
681
0.355243
4c0955be4956893e543176a5a678b0a7caa5514d
4,806
py
Python
configs/mobilenet_cfbi.py
yoxu515/CFBI
0bab1e3c9fc3e3ba0629f716d60221e8f8d9d586
[ "BSD-3-Clause" ]
312
2020-03-15T03:51:52.000Z
2022-03-23T07:33:39.000Z
configs/mobilenet_cfbi.py
geekJZY/CFBI
90a0cd6a3e7961f47f266c7620e8dc281dc43ac8
[ "BSD-3-Clause" ]
55
2020-06-27T06:39:27.000Z
2022-03-24T19:02:15.000Z
configs/mobilenet_cfbi.py
geekJZY/CFBI
90a0cd6a3e7961f47f266c7620e8dc281dc43ac8
[ "BSD-3-Clause" ]
41
2020-07-28T00:52:04.000Z
2022-03-25T08:49:47.000Z
import torch import argparse import os import sys import cv2 import time class Configuration(): def __init__(self): self.EXP_NAME = 'mobilenetv2_cfbi' self.DIR_ROOT = './' self.DIR_DATA = os.path.join(self.DIR_ROOT, 'datasets') self.DIR_DAVIS = os.path.join(self.DIR_DATA, 'DAVIS'...
36.687023
123
0.645651
4,705
0.978985
0
0
0
0
0
0
384
0.0799
4c09b0745eee677f40540659a3c584b6e7535d0a
968
py
Python
js/matrixjs/matrix_compile.py
kennytilton/ConnectJS
a16121052839b6f447718dccb008761d92094885
[ "MIT" ]
7
2017-07-31T20:28:33.000Z
2020-11-23T13:18:20.000Z
js/matrixjs/matrix_compile.py
kennytilton/ConnectJS
a16121052839b6f447718dccb008761d92094885
[ "MIT" ]
null
null
null
js/matrixjs/matrix_compile.py
kennytilton/ConnectJS
a16121052839b6f447718dccb008761d92094885
[ "MIT" ]
1
2020-02-26T06:09:33.000Z
2020-02-26T06:09:33.000Z
#!/usr/bin/python2.4 import httplib, urllib, sys # Define the parameters for the POST request and encode them in # a URL-safe format. params = urllib.urlencode([ #('js_code', sys.argv[1]), ('code_url', 'https://raw.githubusercontent.com/kennytilton/MatrixJS/master/js/matrixjs/js/Matrix/Cells.js'), ('code...
38.72
113
0.72314
0
0
0
0
0
0
0
0
675
0.697314
4c09c2107e354abe29a0559333bd163e132e44d0
4,551
py
Python
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
tensorflow/python/util/tf_should_use_test.py
npow/tensorflow
99ae68bba52bb6338af06f37bb104128d7af6fb4
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
33.463235
80
0.702703
3,096
0.68029
277
0.060866
652
0.143265
0
0
1,246
0.273786
4c0a433f8f2a1c5fe05d98092959a53a97b1beea
8,767
bzl
Python
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
16,989
2015-09-01T19:57:15.000Z
2022-03-31T23:54:00.000Z
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
12,562
2015-09-01T09:06:01.000Z
2022-03-31T22:26:20.000Z
tools/jdk/local_java_repository.bzl
loongarch64/bazel
44c30aceec076a0c25f506508704df0b9aeb6578
[ "Apache-2.0" ]
3,707
2015-09-02T19:20:01.000Z
2022-03-31T17:06:14.000Z
# Copyright 2020 The Bazel 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 la...
37.626609
130
0.666705
0
0
0
0
0
0
0
0
4,553
0.519334
4c0ab106ed9ecd5a4593bfc5cb160cb433ae9bfc
2,563
py
Python
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
1
2015-02-10T23:26:39.000Z
2015-02-10T23:26:39.000Z
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/fixtures/resources/v0_1.py
SEL-Columbia/commcare-hq
992ee34a679c37f063f86200e6df5a197d5e3ff6
[ "BSD-3-Clause" ]
null
null
null
from couchdbkit import ResourceNotFound from tastypie import fields as tp_f from corehq.apps.api.resources import JsonResource from corehq.apps.api.resources.v0_1 import ( CustomResourceMeta, RequirePermissionAuthentication, ) from corehq.apps.api.util import get_object_or_not_exist from corehq.apps.fixtures.mo...
39.430769
79
0.673039
1,959
0.764339
0
0
0
0
0
0
231
0.090129
4c0ab34e213a6cac6f714e8bdb911bff09620f44
24,467
py
Python
tests/test_domain.py
broadinstitute/cert_manager_api
3a9c3445ff32ecd29ab47e7a049c47155b72614a
[ "BSD-3-Clause" ]
null
null
null
tests/test_domain.py
broadinstitute/cert_manager_api
3a9c3445ff32ecd29ab47e7a049c47155b72614a
[ "BSD-3-Clause" ]
null
null
null
tests/test_domain.py
broadinstitute/cert_manager_api
3a9c3445ff32ecd29ab47e7a049c47155b72614a
[ "BSD-3-Clause" ]
1
2022-03-17T16:33:46.000Z
2022-03-17T16:33:46.000Z
# -*- coding: utf-8 -*- """Define the cert_manager.domain.Domain unit tests.""" # Don't warn about things that happen as that is part of unit testing # pylint: disable=protected-access # pylint: disable=no-member import json from requests.exceptions import HTTPError from testtools import TestCase import responses f...
32.666222
107
0.647484
23,997
0.98079
0
0
21,646
0.884702
0
0
8,484
0.346753
4c0acd1ef9075a9d08118479182c8461e04d6e01
3,844
py
Python
texts.py
ProtKsen/pgame
c4455c6c07eaf275f9fcfa661cd6933ee7b1ff92
[ "MIT" ]
2
2021-04-14T09:49:27.000Z
2022-03-08T17:26:49.000Z
texts.py
ProtKsen/pgame
c4455c6c07eaf275f9fcfa661cd6933ee7b1ff92
[ "MIT" ]
null
null
null
texts.py
ProtKsen/pgame
c4455c6c07eaf275f9fcfa661cd6933ee7b1ff92
[ "MIT" ]
2
2021-01-11T12:09:26.000Z
2021-04-14T09:49:45.000Z
"""Text parts.""" SEPARATOR = '----------------------------------' CONT_GAME = 'enter для продолжения игры' GREETING = 'Добро пожаловать в игру ''Сундук сокровищ''!\n' \ 'Попробуй себя в роли капитана корабля, собери ' \ 'команду и достань все сокровища!' NAME_QUESTION = 'Как тебя зовут?' CHOO...
48.05
90
0.533299
0
0
0
0
0
0
0
0
4,469
0.794065
4c0b4ff66b7c9992658d93e432fdd2bd5452694f
3,587
py
Python
api/migrations/0001_initial.py
alerin345/Instagram-React
25dfbcbff2a2d050e4f2804a74cd7c901cd2cb66
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
alerin345/Instagram-React
25dfbcbff2a2d050e4f2804a74cd7c901cd2cb66
[ "MIT" ]
null
null
null
api/migrations/0001_initial.py
alerin345/Instagram-React
25dfbcbff2a2d050e4f2804a74cd7c901cd2cb66
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-07 00:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
48.472973
170
0.611096
3,399
0.947589
0
0
0
0
0
0
425
0.118483
4c0c9d4712283b7b6b90ddca4309f49cea6694d9
737
py
Python
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
21
2021-03-30T19:39:46.000Z
2022-03-30T22:27:39.000Z
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
12
2021-03-30T20:52:15.000Z
2022-02-23T09:20:42.000Z
fastapi_router_controller/lib/controller_loader.py
KiraPC/fastapi-router-controller
e105701ebce2e03a0e00ac182c10941daf1b7e22
[ "MIT" ]
6
2021-04-03T19:17:55.000Z
2021-12-20T10:20:57.000Z
import os import importlib class ControllerLoader: """ The ControllerLoader class. """ @staticmethod def load(directory, package): """ It is an utility to load automatically all the python module presents on a given directory """ for module in os.listdir(di...
29.48
79
0.561737
707
0.959294
0
0
630
0.854817
0
0
200
0.27137
4c0d5b44bfd54d1398052b98c3fc9dbc04be5c4f
601
py
Python
app/mod_ecomm/controllers.py
VikrantReddy/Instagram2Shop
8d9c3f39d277fafb56d10a87a1b62a6df8a74237
[ "MIT" ]
null
null
null
app/mod_ecomm/controllers.py
VikrantReddy/Instagram2Shop
8d9c3f39d277fafb56d10a87a1b62a6df8a74237
[ "MIT" ]
null
null
null
app/mod_ecomm/controllers.py
VikrantReddy/Instagram2Shop
8d9c3f39d277fafb56d10a87a1b62a6df8a74237
[ "MIT" ]
null
null
null
from flask import Blueprint, Flask, send_from_directory from werkzeug.security import check_password_hash, generate_password_hash from app import db from app.mod_auth.forms import LoginForm from app.mod_auth.models import User mod_ecomm = Blueprint('products', __name__, url_prefix='/products', ...
33.388889
74
0.71381
0
0
0
0
229
0.381032
0
0
66
0.109817
4c0dc6446f67b743dcdbd74576706d0d6a1843b4
118
py
Python
dagr_selenium/crawl_watchlist.py
phillmac/dagr_selenium
b7417a878fe4c171625a40e746113ae2c0222335
[ "MIT" ]
null
null
null
dagr_selenium/crawl_watchlist.py
phillmac/dagr_selenium
b7417a878fe4c171625a40e746113ae2c0222335
[ "MIT" ]
1
2021-12-14T06:05:26.000Z
2021-12-14T06:05:26.000Z
dagr_selenium/crawl_watchlist.py
phillmac/dagr_selenium
b7417a878fe4c171625a40e746113ae2c0222335
[ "MIT" ]
null
null
null
from .functions import monitor_watchlist_action, manager with manager.get_dagr(): monitor_watchlist_action()
23.6
57
0.788136
0
0
0
0
0
0
0
0
0
0
4c0e902c9bd14492f727e042bd245ed10c04c202
2,739
py
Python
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
2
2020-12-30T07:46:12.000Z
2022-02-01T16:37:34.000Z
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
7
2021-04-14T16:17:29.000Z
2022-01-25T11:48:18.000Z
zenslackchat/eventsview.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
1
2021-06-06T09:46:47.000Z
2021-06-06T09:46:47.000Z
import pprint import logging from django.conf import settings from rest_framework import status from rest_framework.views import APIView from rest_framework.response import Response from zenslackchat.message import handler from zenslackchat.models import SlackApp from zenslackchat.models import ZendeskApp class Eve...
38.041667
79
0.649507
2,427
0.88609
0
0
0
0
0
0
1,208
0.441037
4c0ea6f1c1da094761872bcebae0cfc6089b3d54
16,882
py
Python
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
2
2021-09-16T06:31:45.000Z
2022-03-09T19:59:55.000Z
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
null
null
null
sdv/docker/sdvstate/internal/validator/airship/compute_check.py
opnfv/cirv-sdv
31fb310d3fd1c9c1f12cfe0c654870e24f5efab6
[ "Apache-2.0" ]
2
2021-05-11T14:41:01.000Z
2021-05-14T05:59:38.000Z
# Copyright 2020 University Of Delhi. # # 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 wr...
25.197015
91
0.65093
0
0
0
0
0
0
0
0
6,435
0.381175
4c0f174360fe29201e22d16e102aa2c61bad20f2
262
py
Python
production/pygsl-0.9.5/testing/__init__.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
production/pygsl-0.9.5/testing/__init__.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/testing/__init__.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" Here you find either new implemented modules or alternate implementations of already modules. This directory is intended to have a second implementation beside the main implementation to have a discussion which implementation to favor on the long run. """
37.428571
78
0.80916
0
0
0
0
0
0
0
0
261
0.996183
4c10bad25f060a9091150e60b188f22ceaae17b0
14,801
py
Python
PythonServer/UnitTestCasesForWebSocket.py
Cyberlightning/2D-3DCapture
e5fdcec4f25358fc1964068180e4e774f45daa8a
[ "Apache-2.0" ]
2
2015-11-04T10:21:48.000Z
2016-03-07T15:14:35.000Z
2D-3D-Capture/PythonServer/UnitTestCasesForWebSocket.py
Cyberlightning/Cyber-WeX
11dc560b7a30eb31c1dfa18196f6a0760648f9a7
[ "Apache-2.0" ]
null
null
null
2D-3D-Capture/PythonServer/UnitTestCasesForWebSocket.py
Cyberlightning/Cyber-WeX
11dc560b7a30eb31c1dfa18196f6a0760648f9a7
[ "Apache-2.0" ]
null
null
null
''' Created on Mar 6, 2014 @author: tharanga ''' import unittest from time import sleep import EventService as es from EventService import WebSocketServer as ws from EventService import EventManager as em import socket from base64 import b64encode import struct import MySQLdb import json import EventService import fl...
57.368217
386
0.646375
12,128
0.819404
0
0
0
0
0
0
6,118
0.41335
4c1112a8d3df95d531441fb2f11172b25c1ca8ae
1,945
py
Python
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
1
2021-03-18T16:20:46.000Z
2021-03-18T16:20:46.000Z
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
2
2019-06-04T21:50:23.000Z
2019-06-14T13:20:50.000Z
src/tests/client_side/test_main.py
JulianSobott/OpenDrive
0593c994c3bccccc4351557c42d13f3535b6b6c1
[ "Apache-2.0" ]
null
null
null
import os import threading import time import unittest from OpenDrive.client_side import file_changes_json as c_json from OpenDrive.client_side import interface from OpenDrive.client_side import main from OpenDrive.client_side import paths as client_paths from OpenDrive.server_side import paths as server_paths from te...
42.282609
108
0.748586
1,408
0.723907
0
0
938
0.482262
0
0
194
0.099743
4c131d63691e04e79320d304f39d4fe881bda148
1,850
py
Python
site-packages/skimage/io/tests/test_io.py
oz90210/Pyto
59f185149b71e57e5debeb1c9a61a28739e81720
[ "MIT" ]
null
null
null
site-packages/skimage/io/tests/test_io.py
oz90210/Pyto
59f185149b71e57e5debeb1c9a61a28739e81720
[ "MIT" ]
1
2020-04-25T20:36:07.000Z
2020-04-25T20:36:07.000Z
site-packages/skimage/io/tests/test_io.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
null
null
null
import os import numpy as np from skimage import io, data_dir from skimage._shared import testing from skimage._shared.testing import assert_array_equal one_by_one_jpeg = ( b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01' b'\x00\x01\x00\x00\xff\xdb\x00C\x00\x03\x02\x02\x02\x02' b'\x02\x03\x02\x02...
33.636364
70
0.677838
0
0
0
0
0
0
0
0
971
0.524865
4c1514125da0b6d26946b5990ca8e3d69b019fd3
1,369
py
Python
tests/core/feature_extraction/test_galaxyProcessor.py
EmilioCC/gti770-student-framework
3cd72da8fe78c7ecfc26c9e688cbe1b7deee353a
[ "MIT" ]
null
null
null
tests/core/feature_extraction/test_galaxyProcessor.py
EmilioCC/gti770-student-framework
3cd72da8fe78c7ecfc26c9e688cbe1b7deee353a
[ "MIT" ]
null
null
null
tests/core/feature_extraction/test_galaxyProcessor.py
EmilioCC/gti770-student-framework
3cd72da8fe78c7ecfc26c9e688cbe1b7deee353a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import numpy as np from unittest import TestCase from core.feature_extraction.galaxy.galaxy_processor import GalaxyProcessor from commons.helpers.dataset.strategies.galaxy_dataset.label_strategy import GalaxyDataSetLabelStrategy from commons.helpers.dataset.conte...
42.78125
103
0.731921
1,030
0.752374
0
0
0
0
0
0
362
0.264427
4c1540d22f910c13d547019d54ee005a23d41b8e
559
py
Python
country/management/commands/populate_countries.py
okchaty/django-country
740bc25956dc1b87f44486538a62037e0bd0ac94
[ "MIT" ]
1
2020-04-02T16:50:38.000Z
2020-04-02T16:50:38.000Z
country/management/commands/populate_countries.py
okchaty/django-country
740bc25956dc1b87f44486538a62037e0bd0ac94
[ "MIT" ]
4
2020-03-30T15:39:55.000Z
2020-04-10T15:04:28.000Z
country/management/commands/populate_countries.py
okchaty/django-country
740bc25956dc1b87f44486538a62037e0bd0ac94
[ "MIT" ]
null
null
null
from django.conf import settings from django.core.management import call_command from django.core.management.base import BaseCommand from os import path class Command(BaseCommand): help = "Populates data" def handle(self, *args, **options): fixture_path = path.join(path.dirname( path.dirn...
27.95
56
0.615385
403
0.72093
0
0
0
0
0
0
46
0.08229
4c155f18a1b1670b63f094d3de08857496d9f8be
1,630
py
Python
gmso/formats/formats_registry.py
chrisiacovella/gmso
c78e2425ccb98ea952f024a569346d36045f6918
[ "MIT" ]
20
2020-02-28T21:47:54.000Z
2022-02-14T20:13:56.000Z
gmso/formats/formats_registry.py
chrisiacovella/gmso
c78e2425ccb98ea952f024a569346d36045f6918
[ "MIT" ]
364
2020-03-02T16:11:57.000Z
2022-03-29T00:57:00.000Z
gmso/formats/formats_registry.py
chrisiacovella/gmso
c78e2425ccb98ea952f024a569346d36045f6918
[ "MIT" ]
28
2020-02-28T21:12:30.000Z
2022-01-31T21:02:30.000Z
"""Registry utilities to handle formats for gmso Topology.""" class UnsupportedFileFormatError(Exception): """Exception to be raised whenever the file loading or saving is not supported.""" class Registry: """A registry to incorporate a callable with a file extension.""" def __init__(self): sel...
28.596491
86
0.655828
1,497
0.918405
0
0
0
0
0
0
543
0.333129
4c1606fa8a8ca96d6fb7ac7c7412b894e0bb3a10
417
py
Python
formatter.py
Staist/Python-Text-Formatter
6ae865d45301906eaa133551301dc785602f5b38
[ "MIT" ]
null
null
null
formatter.py
Staist/Python-Text-Formatter
6ae865d45301906eaa133551301dc785602f5b38
[ "MIT" ]
null
null
null
formatter.py
Staist/Python-Text-Formatter
6ae865d45301906eaa133551301dc785602f5b38
[ "MIT" ]
null
null
null
dosyaadi = input("Enter file name: ") dosyaadi = str(dosyaadi + ".txt") with open(dosyaadi, 'r') as file : dosyaicerigi = file.read() silinecek = str(input("Enter the text that you wish to delete: ")) dosyaicerigi = dosyaicerigi.replace(silinecek, '') with open(dosyaadi, 'w') as file: file.write(dosyai...
26.0625
67
0.647482
0
0
0
0
0
0
0
0
104
0.2494
4c168858057ebcae4ef4e91a7860a8034fcefa15
6,106
py
Python
covid19/classification/helpers.py
salvacarrion/mltests
e4ac9711c1c80171f302edc88011fbe06e754490
[ "MIT" ]
null
null
null
covid19/classification/helpers.py
salvacarrion/mltests
e4ac9711c1c80171f302edc88011fbe06e754490
[ "MIT" ]
1
2022-01-01T06:09:26.000Z
2022-01-01T06:09:26.000Z
covid19/classification/helpers.py
salvacarrion/mltests
e4ac9711c1c80171f302edc88011fbe06e754490
[ "MIT" ]
null
null
null
import tensorflow as tf @tf.function def BinaryAccuracy_Infiltrates(y_true, y_pred, i=0): return tf.keras.metrics.binary_accuracy(y_true[:, i], y_pred[:, i]) @tf.function def BinaryAccuracy_Pneumonia(y_true, y_pred, i=1): return tf.keras.metrics.binary_accuracy(y_true[:, i], y_pred[:, i]) @tf.function def...
35.5
104
0.664265
1,051
0.172126
0
0
537
0.087946
0
0
1,130
0.185064
4c16d8f05cc4bb4747f1b27b93145e440fc653d6
3,528
py
Python
null/twitter/twmedia-dl.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
null/twitter/twmedia-dl.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
null/twitter/twmedia-dl.py
mikoim/funstuff
3c391c76784a4bb37983c1a251773bfa61182ce1
[ "MIT" ]
null
null
null
import re import json import time import sys import httplib2 from twitter import * import magic class TwitterMediaDL: http = httplib2.Http(".cache") baseUrl = "https://twitter.com" consumer_key = "" consumer_secret = "" access_token_key = "" access_token_secret = "" t = Twitter(auth=OAu...
30.947368
133
0.552721
2,970
0.841837
0
0
277
0.078515
0
0
653
0.185091
4c16fb50407c0d81665fb35d2265d078805475a6
6,185
py
Python
tensorflow/contrib/metrics/__init__.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
384
2017-02-21T18:38:04.000Z
2022-02-22T07:30:25.000Z
tensorflow/contrib/metrics/__init__.py
ChenAugustus/tensorflow
5828e285209ff8c3d1bef2e4bd7c55ca611080d5
[ "Apache-2.0" ]
15
2017-03-01T20:18:43.000Z
2020-05-07T10:33:51.000Z
udacity-car/lib/python2.7/site-packages/tensorflow/contrib/metrics/__init__.py
808brick/CarND-Capstone
f9e536b4a9d96322d7e971073602c8969dbd9369
[ "MIT" ]
81
2017-02-21T19:31:19.000Z
2022-02-22T07:30:24.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
51.97479
104
0.864834
0
0
0
0
0
0
0
0
2,156
0.348585
4c189de34ca4832b1a00970032415cde76a25896
9,133
py
Python
girder/models/group.py
scottwittenburg/girder
a5062badc97bf2a87a385648f2ff3f9ff1990a75
[ "Apache-2.0" ]
null
null
null
girder/models/group.py
scottwittenburg/girder
a5062badc97bf2a87a385648f2ff3f9ff1990a75
[ "Apache-2.0" ]
null
null
null
girder/models/group.py
scottwittenburg/girder
a5062badc97bf2a87a385648f2ff3f9ff1990a75
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2013 Kitware 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 cop...
34.858779
79
0.581518
8,185
0.896201
785
0.085952
0
0
0
0
5,016
0.549217
4c193e499f0f1632e4dcf16c607003de7e5c3eaa
14,091
py
Python
docker/docker-puppet.py
mail2nsrajesh/tripleo-heat-templates
368b3eadda577f9914d181893df2df96367e8fad
[ "Apache-2.0" ]
null
null
null
docker/docker-puppet.py
mail2nsrajesh/tripleo-heat-templates
368b3eadda577f9914d181893df2df96367e8fad
[ "Apache-2.0" ]
null
null
null
docker/docker-puppet.py
mail2nsrajesh/tripleo-heat-templates
368b3eadda577f9914d181893df2df96367e8fad
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # 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 ...
39.581461
139
0.613299
0
0
0
0
0
0
0
0
6,330
0.449223
4c1a065c357d38d64659fb6993766afa52a31235
9,999
py
Python
main.py
acitv/plugin.video.aci
c836096c90affd80949e51cd24517709a63eff52
[ "MIT" ]
null
null
null
main.py
acitv/plugin.video.aci
c836096c90affd80949e51cd24517709a63eff52
[ "MIT" ]
null
null
null
main.py
acitv/plugin.video.aci
c836096c90affd80949e51cd24517709a63eff52
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import urllib import urlparse # import xbmc import xbmcgui import xbmcplugin import aci # Get the plugin url in plugin:// notation. _url = sys.argv[0] # Get the plugin handle as an integer number. _handle = int(sys.argv[1]) # Get an instance of ACI. ATV = aci.ACI() ATV.load_aci()...
38.019011
116
0.633863
0
0
0
0
0
0
0
0
6,264
0.626463
4c1ab77adfecf5628021417f2b5bb34c29a975d3
17,151
py
Python
coremltools/converters/mil/frontend/tensorflow/converter.py
VadimLevin/coremltools
66c17b0fa040a0d8088d33590ab5c355478a9e5c
[ "BSD-3-Clause" ]
3
2018-10-02T17:23:01.000Z
2020-08-15T04:47:07.000Z
coremltools/converters/mil/frontend/tensorflow/converter.py
holzschu/coremltools
5ece9069a1487d5083f00f56afe07832d88e3dfa
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/frontend/tensorflow/converter.py
holzschu/coremltools
5ece9069a1487d5083f00f56afe07832d88e3dfa
[ "BSD-3-Clause" ]
1
2021-05-07T15:38:20.000Z
2021-05-07T15:38:20.000Z
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import logging from coremltools.converters.mil.input_types import ( InputType, TensorType, ...
41.527845
123
0.58329
15,924
0.928459
0
0
932
0.054341
0
0
5,585
0.325637
4c1b595f4c6b8f77081c78b4858260e00facf459
4,420
py
Python
pylinkcheck.py
clayball/pylinkcheck
085e5562525bebc77b8ebfd3b0fb676b01f4be68
[ "MIT" ]
null
null
null
pylinkcheck.py
clayball/pylinkcheck
085e5562525bebc77b8ebfd3b0fb676b01f4be68
[ "MIT" ]
null
null
null
pylinkcheck.py
clayball/pylinkcheck
085e5562525bebc77b8ebfd3b0fb676b01f4be68
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2016 Clay Wells # # A Python-based link checker. # # Usage: pylinkcheck.py -r https://www.example.com # # By default, we can spider and check all of the links found at the URL's # domain. For example, a check of https://foo.example.com will only check # links with the base URL ...
29.466667
78
0.671946
0
0
0
0
0
0
0
0
2,711
0.613348
4c1d42a55dc8480f71e72b9866ed7b027a303687
34,975
py
Python
moto/dynamodb2/parsing/expressions.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
1
2021-12-12T04:23:06.000Z
2021-12-12T04:23:06.000Z
moto/dynamodb2/parsing/expressions.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
17
2020-08-28T12:53:56.000Z
2020-11-10T01:04:46.000Z
moto/dynamodb2/parsing/expressions.py
orenmazor/moto
4778377e8ecaf729d26602a2c5202b72c1438503
[ "Apache-2.0" ]
1
2021-07-06T22:44:47.000Z
2021-07-06T22:44:47.000Z
import logging from abc import abstractmethod import abc import six from collections import deque from moto.dynamodb2.parsing.ast_nodes import ( UpdateExpression, UpdateExpressionSetClause, UpdateExpressionSetActions, UpdateExpressionSetAction, UpdateExpressionRemoveActions, UpdateExpressionRem...
33.597502
120
0.651237
33,832
0.96732
0
0
13,070
0.373695
0
0
11,617
0.332152
4c1e3b72b32866f599c7e926ceb63efd29d9c600
5,332
py
Python
dftbplus_step/tk_optimization.py
molssi-seamm/dftbplus_step
e5b9c7462d92c25fc6f27db5e4324b05bb42e224
[ "BSD-3-Clause" ]
1
2022-01-24T05:14:03.000Z
2022-01-24T05:14:03.000Z
dftbplus_step/tk_optimization.py
molssi-seamm/dftbplus_step
e5b9c7462d92c25fc6f27db5e4324b05bb42e224
[ "BSD-3-Clause" ]
10
2020-12-16T21:36:37.000Z
2022-03-17T01:53:54.000Z
dftbplus_step/tk_optimization.py
molssi-seamm/dftbplus_step
e5b9c7462d92c25fc6f27db5e4324b05bb42e224
[ "BSD-3-Clause" ]
1
2022-01-14T15:26:49.000Z
2022-01-14T15:26:49.000Z
# -*- coding: utf-8 -*- """The graphical part of a DFTB+ Optimization node""" import logging import tkinter as tk import tkinter.ttk as ttk import dftbplus_step logger = logging.getLogger(__name__) class TkOptimization(dftbplus_step.TkEnergy): def __init__( self, tk_flowchart=None, nod...
32.120482
100
0.515941
5,127
0.961553
0
0
0
0
0
0
2,284
0.428357
4c1e5197c84f6ae0e879e45cf958dcfad6b26bdf
7,000
py
Python
console.py
aplneto/redes_projeto
450ef8ac61e46bc38ff34142d07eda3d726ce326
[ "MIT" ]
1
2019-04-04T13:10:01.000Z
2019-04-04T13:10:01.000Z
console.py
aplneto/redes_projeto
450ef8ac61e46bc38ff34142d07eda3d726ce326
[ "MIT" ]
null
null
null
console.py
aplneto/redes_projeto
450ef8ac61e46bc38ff34142d07eda3d726ce326
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Módulo de configuração dos consoles """ from Crypto.PublicKey import RSA import socket import os import base64 class Console(object): """Superclasse Console Classe base para os terminais de cliente e servidor. Attributes: ...
32.110092
80
0.532143
6,879
0.974501
2,164
0.306559
833
0.118005
0
0
4,437
0.628559
4c1e5c9719ab7645023165c5beb655aadf6e00c7
4,988
py
Python
sandbox/settings.py
OmenApps/marion
f501674cafbd91f0bbad7454e4dcf3527cf4445e
[ "MIT" ]
null
null
null
sandbox/settings.py
OmenApps/marion
f501674cafbd91f0bbad7454e4dcf3527cf4445e
[ "MIT" ]
null
null
null
sandbox/settings.py
OmenApps/marion
f501674cafbd91f0bbad7454e4dcf3527cf4445e
[ "MIT" ]
null
null
null
""" Django settings for marion project. """ from pathlib import Path from tempfile import mkdtemp from configurations import Configuration, values BASE_DIR = Path(__file__).parent.resolve() DATA_DIR = Path("/data") # pylint: disable=no-init class Base(Configuration): """ This is the base configuration ever...
30.230303
88
0.635525
4,735
0.949278
0
0
0
0
0
0
2,854
0.572173
4c1fe311f29bf7609a66d633ca361b9c555f8538
3,512
py
Python
skywalking/client/grpc.py
cooolr/skywalking-python
42176ff4b732000f2a75eac1affee2a681379df7
[ "Apache-2.0" ]
null
null
null
skywalking/client/grpc.py
cooolr/skywalking-python
42176ff4b732000f2a75eac1affee2a681379df7
[ "Apache-2.0" ]
null
null
null
skywalking/client/grpc.py
cooolr/skywalking-python
42176ff4b732000f2a75eac1affee2a681379df7
[ "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...
39.909091
110
0.768508
1,818
0.517654
0
0
0
0
0
0
820
0.233485
4c215b75166895f7437c7eb221fac00ff09ebb82
2,032
py
Python
coingate/migrations/0004_auto_20200207_1959.py
glitzybunny/coingate_sandbox_payment
f5686964cdd6b7d65f9f37957da4b2cda6a02f63
[ "MIT" ]
2
2020-08-31T17:53:06.000Z
2020-08-31T18:33:05.000Z
coingate/migrations/0004_auto_20200207_1959.py
glitzybunny/coingate_sandbox_payment
f5686964cdd6b7d65f9f37957da4b2cda6a02f63
[ "MIT" ]
5
2021-03-30T12:48:17.000Z
2021-09-22T18:32:14.000Z
coingate/migrations/0004_auto_20200207_1959.py
glitzybunny/coingate_sandbox_payment
f5686964cdd6b7d65f9f37957da4b2cda6a02f63
[ "MIT" ]
1
2020-11-04T04:42:58.000Z
2020-11-04T04:42:58.000Z
# Generated by Django 3.0.3 on 2020-02-07 19:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('coingate', '0003_auto_20200207_1513'), ] operations = [ migrations.RemoveField( model_name='payment', name='token', ...
38.339623
326
0.561024
1,939
0.954232
0
0
0
0
0
0
573
0.281988
4c219c1f42bd3a942209df9b52e42549c3b34e00
309
py
Python
space_trace/__init__.py
SpaceTeam/space-event-trace
ec00d6895e0bdc2a046ec2d45143d6f8d47ace6f
[ "MIT" ]
2
2022-01-04T00:34:27.000Z
2022-01-04T00:51:14.000Z
space_trace/__init__.py
SpaceTeam/space-event-trace
ec00d6895e0bdc2a046ec2d45143d6f8d47ace6f
[ "MIT" ]
null
null
null
space_trace/__init__.py
SpaceTeam/space-event-trace
ec00d6895e0bdc2a046ec2d45143d6f8d47ace6f
[ "MIT" ]
null
null
null
import toml from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__, instance_relative_config=True) app.config.from_file("config.toml", load=toml.load) db = SQLAlchemy(app) @app.before_first_request def create_table(): db.create_all() from space_trace import views, cli
18.176471
52
0.789644
0
0
0
0
65
0.210356
0
0
13
0.042071
4c228e2ac32c2ad15f711401f0894056b88a3776
1,388
py
Python
ng/distributions/Distribution.py
forons/noise-generator
033906165adaf6e620c03bf0b91f19b6d9890cf0
[ "MIT" ]
null
null
null
ng/distributions/Distribution.py
forons/noise-generator
033906165adaf6e620c03bf0b91f19b6d9890cf0
[ "MIT" ]
null
null
null
ng/distributions/Distribution.py
forons/noise-generator
033906165adaf6e620c03bf0b91f19b6d9890cf0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import logging from enum import Enum from .NormalDist import NormalDist from .UniformDist import UniformDist class Distribution(Enum): UNIFORM = 0 GAUSSIAN = 1 POISSON = 2 @staticmethod def determine_distribution(distribution, distribution_params): ...
42.060606
92
0.659942
1,229
0.885447
0
0
1,149
0.82781
0
0
143
0.103026
4c22a7a412610e81fee1ef9b39c31356e4fa70c7
258
py
Python
test/rename.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
3
2018-08-30T09:43:20.000Z
2019-12-03T04:53:43.000Z
test/rename.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
test/rename.py
Riteme/test
b511d6616a25f4ae8c3861e2029789b8ee4dcb8d
[ "BSD-Source-Code" ]
null
null
null
import os import sys filename = sys.argv[1] from_id = int(sys.argv[2]) to_id = int(sys.argv[2]) for i in range(from_id, to_id + 1): sys.system("mv {0}.in{1} {0}{1}.in".format(filename, i)) sys.system("mv {0}.out{1} {0}{1}.out".format(filename, i))
23.454545
62
0.624031
0
0
0
0
0
0
0
0
50
0.193798
4c237eab0c099d5c3321cd95e513399431effe30
668
py
Python
TransitPass/urls.py
Savior-19/Savior19
b80c05a19ebadf73c3d88656b7c34b761cb02f3c
[ "MIT" ]
null
null
null
TransitPass/urls.py
Savior-19/Savior19
b80c05a19ebadf73c3d88656b7c34b761cb02f3c
[ "MIT" ]
null
null
null
TransitPass/urls.py
Savior-19/Savior19
b80c05a19ebadf73c3d88656b7c34b761cb02f3c
[ "MIT" ]
4
2020-05-27T10:02:31.000Z
2021-07-11T08:14:20.000Z
from django.urls import path from . import views urlpatterns = [ path('apply/', views.FillPassApplication, name='transit-pass-application-form'), path('application-details/<int:appln_id>', views.DisplayApplicationToken, name='application-details'), path('view-application-list/', views.DisplayApplication...
39.294118
117
0.754491
0
0
0
0
0
0
0
0
302
0.452096
4c23f93517014abc612473feea3755466fd55cec
683
py
Python
dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py
kozo2/dash-docs
5140cfd1fda439233e8b95e2443332a32a2453f5
[ "MIT" ]
1
2021-04-11T03:08:43.000Z
2021-04-11T03:08:43.000Z
dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py
kozo2/dash-docs
5140cfd1fda439233e8b95e2443332a32a2453f5
[ "MIT" ]
null
null
null
dash_docs/chapters/dash_core_components/Textarea/examples/textarea_basic.py
kozo2/dash-docs
5140cfd1fda439233e8b95e2443332a32a2453f5
[ "MIT" ]
null
null
null
import dash from dash.dependencies import Input, Output import dash_html_components as html import dash_core_components as dcc app = dash.Dash(__name__) app.layout = html.Div([ dcc.Textarea( id='textarea-example', value='Textarea content initialized\nwith multiple lines of text', style={'w...
26.269231
76
0.682284
0
0
0
0
184
0.2694
0
0
239
0.349927
4c2449756d626addb11627279707eb2913ce92ba
490
py
Python
tests/test_wrapped_driver.py
balexander85/wrapped_driver
2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1
[ "MIT" ]
null
null
null
tests/test_wrapped_driver.py
balexander85/wrapped_driver
2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1
[ "MIT" ]
null
null
null
tests/test_wrapped_driver.py
balexander85/wrapped_driver
2b5d5f13a8cbf52a3ed5fc4b21bf9ea282d3b7a1
[ "MIT" ]
null
null
null
import pytest from selenium.common.exceptions import WebDriverException from wrapped_driver import WrappedDriver def test_empty_chromedriver_path(): """Assert error is raised if no chromedriver path is used""" with pytest.raises(WebDriverException): WrappedDriver(executable_path="", headless=True) ...
28.823529
64
0.763265
0
0
0
0
0
0
0
0
122
0.24898
4c244af15987164d1a6b58af8468dc053923ce6d
470
py
Python
eth/vm/forks/petersburg/blocks.py
ggs134/py-evm
5ad87356181b03c14a2452131f50fe8762127c84
[ "MIT" ]
1,641
2017-11-24T04:24:22.000Z
2022-03-31T14:59:30.000Z
eth/vm/forks/petersburg/blocks.py
ggs134/py-evm
5ad87356181b03c14a2452131f50fe8762127c84
[ "MIT" ]
1,347
2017-11-23T10:37:36.000Z
2022-03-20T16:31:44.000Z
eth/vm/forks/petersburg/blocks.py
ggs134/py-evm
5ad87356181b03c14a2452131f50fe8762127c84
[ "MIT" ]
567
2017-11-22T18:03:27.000Z
2022-03-28T17:49:08.000Z
from rlp.sedes import ( CountableList, ) from eth.rlp.headers import ( BlockHeader, ) from eth.vm.forks.byzantium.blocks import ( ByzantiumBlock, ) from .transactions import ( PetersburgTransaction, ) class PetersburgBlock(ByzantiumBlock): transaction_builder = PetersburgTransaction fields = ...
20.434783
61
0.697872
249
0.529787
0
0
0
0
0
0
30
0.06383
4c249535bfee369b506769f07912c622ac79fe51
5,107
py
Python
tests/runner.py
crnbaker/MONAI
a4b1144efdc27b197410033ae08bd587c8a1634a
[ "Apache-2.0" ]
1
2020-12-03T21:28:09.000Z
2020-12-03T21:28:09.000Z
tests/runner.py
crnbaker/MONAI
a4b1144efdc27b197410033ae08bd587c8a1634a
[ "Apache-2.0" ]
null
null
null
tests/runner.py
crnbaker/MONAI
a4b1144efdc27b197410033ae08bd587c8a1634a
[ "Apache-2.0" ]
1
2020-06-11T13:03:02.000Z
2020-06-11T13:03:02.000Z
# Copyright 2020 MONAI Consortium # 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, s...
35.22069
118
0.662033
956
0.187194
0
0
0
0
0
0
2,068
0.404934
4c25af4aec5e8d2b72efcbe5e7b1a661e7cc9946
963
py
Python
venv/Lib/site-packages/pandas/core/array_algos/transforms.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/array_algos/transforms.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/array_algos/transforms.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
""" transforms.py is for shape-preserving functions. """ import numpy as np def shift(values: np.ndarray, periods: int, axis: int, fill_value) -> np.ndarray: new_values = values if periods == 0 or values.size == 0: return new_values.copy() # make sure array sent to np.roll is c_con...
24.692308
82
0.599169
0
0
0
0
0
0
0
0
133
0.13811
4c2609dfb8072ffe05951ef05454ba700de01952
789
py
Python
students/models/group.py
Stanislav-Rybonka/studentsdb
efb1440db4ec640868342a5f74cd48784268781f
[ "MIT" ]
1
2020-03-02T20:55:04.000Z
2020-03-02T20:55:04.000Z
students/models/group.py
Stanislav-Rybonka/studentsdb
efb1440db4ec640868342a5f74cd48784268781f
[ "MIT" ]
6
2020-06-05T17:18:41.000Z
2022-03-11T23:14:47.000Z
students/models/group.py
Stanislav-Rybonka/studentsdb
efb1440db4ec640868342a5f74cd48784268781f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils.translation import ugettext as _ class Group(models.Model): """ Group model """ title = models.CharField(max_length=256, blank=False, verbose_name=_('Name')) leader = models.OneToOneField( 'Student', v...
29.222222
94
0.64512
665
0.842839
0
0
0
0
0
0
101
0.12801
4c263e5689af5df6e8fbc9a6cee80e41efe505e2
2,319
py
Python
frontegg/baseConfig/identity_mixin.py
pinikeizman/python-sdk
f8b2188bdf160408adf0068f2e3bd3cd4b0b4655
[ "MIT" ]
null
null
null
frontegg/baseConfig/identity_mixin.py
pinikeizman/python-sdk
f8b2188bdf160408adf0068f2e3bd3cd4b0b4655
[ "MIT" ]
null
null
null
frontegg/baseConfig/identity_mixin.py
pinikeizman/python-sdk
f8b2188bdf160408adf0068f2e3bd3cd4b0b4655
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod from frontegg.helpers.frontegg_urls import frontegg_urls import typing import jwt import requests from frontegg.helpers.logger import logger from jwt import InvalidTokenError class IdentityClientMixin(metaclass=ABCMeta): __publicKey = None @property @abstractmethod...
32.661972
108
0.639069
2,101
0.905994
0
0
265
0.114273
0
0
335
0.144459
4c26b67f1983ed6d013acb44413f671a2be21260
7,534
py
Python
splunk_sdk/action/v1beta2/gen_action_service_api.py
ianlee4/splunk-cloud-sdk-python
d2870cd1e506d3844869d17becdcdf9d8d60a9a1
[ "ECL-2.0", "Apache-2.0" ]
12
2019-08-01T06:16:17.000Z
2021-04-16T20:00:02.000Z
splunk_sdk/action/v1beta2/gen_action_service_api.py
ianlee4/splunk-cloud-sdk-python
d2870cd1e506d3844869d17becdcdf9d8d60a9a1
[ "ECL-2.0", "Apache-2.0" ]
5
2020-09-27T12:03:24.000Z
2021-08-06T18:01:32.000Z
splunk_sdk/action/v1beta2/gen_action_service_api.py
ianlee4/splunk-cloud-sdk-python
d2870cd1e506d3844869d17becdcdf9d8d60a9a1
[ "ECL-2.0", "Apache-2.0" ]
4
2019-08-20T17:49:27.000Z
2022-03-27T16:39:10.000Z
# coding: utf-8 # Copyright © 2021 Splunk, 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 agre...
37.1133
177
0.668835
5,838
0.774784
0
0
0
0
0
0
2,414
0.320372
4c26e9b14a57dad62c0722a56d9cd088844722fb
97
py
Python
src/brewlog/home/__init__.py
zgoda/brewlog
13a930b328f81d01a2be9aca07d3b14703b80faa
[ "BSD-3-Clause" ]
3
2019-03-11T04:30:06.000Z
2020-01-26T03:21:52.000Z
src/brewlog/home/__init__.py
zgoda/brewlog
13a930b328f81d01a2be9aca07d3b14703b80faa
[ "BSD-3-Clause" ]
23
2019-02-06T20:37:37.000Z
2020-06-01T07:08:35.000Z
src/brewlog/home/__init__.py
zgoda/brewlog
13a930b328f81d01a2be9aca07d3b14703b80faa
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint home_bp = Blueprint('home', __name__) from . import views # noqa
13.857143
37
0.731959
0
0
0
0
0
0
0
0
12
0.123711
4c2897e16dece2ba4ecd2dbef042a4f90f011294
786
py
Python
main.py
TheRavehorn/DownloadExecuteReport-Virus
9df26706e504d1df33e07c09fa56baa28d89f435
[ "MIT" ]
null
null
null
main.py
TheRavehorn/DownloadExecuteReport-Virus
9df26706e504d1df33e07c09fa56baa28d89f435
[ "MIT" ]
null
null
null
main.py
TheRavehorn/DownloadExecuteReport-Virus
9df26706e504d1df33e07c09fa56baa28d89f435
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import requests import subprocess import smtplib import re import os import tempfile def download(url): get_response = requests.get(url) file_name = url.split("/")[-1] with open(file_name, "wb") as f: f.write(get_response.content) def send_mail(email, password, message): ...
24.5625
97
0.720102
0
0
0
0
0
0
0
0
200
0.254453
4c2951c766fe0cde976ee8004540518c1924599a
113
py
Python
SmartAPI/rdf/LinkedList.py
Kreastr/SmartAPI-HEILA
97dbe9e6e27267c60a4f94f60692d5f391e2ef7f
[ "BSD-2-Clause" ]
null
null
null
SmartAPI/rdf/LinkedList.py
Kreastr/SmartAPI-HEILA
97dbe9e6e27267c60a4f94f60692d5f391e2ef7f
[ "BSD-2-Clause" ]
null
null
null
SmartAPI/rdf/LinkedList.py
Kreastr/SmartAPI-HEILA
97dbe9e6e27267c60a4f94f60692d5f391e2ef7f
[ "BSD-2-Clause" ]
null
null
null
from SmartAPI.rdf.List import List class LinkedList(List): def __init__(self): List.__init__(self)
16.142857
34
0.699115
76
0.672566
0
0
0
0
0
0
0
0
4c2a0b02facefb7ade979ad8ea41989718dd6e87
13,974
py
Python
frog/views/gallery.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
3
2021-10-03T23:11:24.000Z
2021-10-04T12:14:56.000Z
frog/views/gallery.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
7
2019-10-15T20:51:36.000Z
2020-02-27T18:25:26.000Z
frog/views/gallery.py
dreamhaven/Frog
66e50610d5059aa371e0a50b65ceddd4813b2bc1
[ "MIT" ]
1
2020-09-30T11:23:55.000Z
2020-09-30T11:23:55.000Z
################################################################################################## # Copyright (c) 2012 Brett Dixon # # 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 r...
30.312364
98
0.592672
0
0
0
0
3,809
0.272578
0
0
3,635
0.260126
4c2be9c37717776782c0be6604333fcf9bf8eb67
2,232
py
Python
pirates/speedchat/PSpeedChatQuestMenu.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/speedchat/PSpeedChatQuestMenu.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/speedchat/PSpeedChatQuestMenu.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.speedchat.PSpeedChatQuestMenu from otp.speedchat.SCMenu import SCMenu from otp.speedchat.SCTerminal import * from otp.speedchat....
39.857143
106
0.670699
1,650
0.739247
0
0
0
0
0
0
344
0.154122
4c2cd54fa6ab0d6c947d651db03fbbb610a1bf1d
5,309
py
Python
spotifyembed/spotifyembed.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
spotifyembed/spotifyembed.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
spotifyembed/spotifyembed.py
R3XET/coffee-cogs
e7658213449ec140edaaf322514eaafb575f99bd
[ "MIT" ]
null
null
null
# from redbot.core import Config from redbot.core import Config, commands, checks import asyncio import aiohttp import discord from discord import Webhook, AsyncWebhookAdapter import re class Spotifyembed(commands.Cog): """Automatically send a reply to Spotify links with a link to the embed preview. Convenient for...
41.155039
197
0.595592
5,125
0.964615
0
0
4,605
0.866742
4,343
0.817429
1,086
0.204404