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
c862cc8467bd7e489f5a6229b8441ad05ef1b1a6
20,515
py
Python
django_comments_xtd/tests/models.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/tests/models.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
django_comments_xtd/tests/models.py
lyoniionly/django-comments-xtd
bc62a7359b9b460185e0fe4a7a1958bc9ef5599c
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from django.db import models from django.db.models import permalink from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.test import TestCase as DjangoTestCase from django_comments_xtd.models import (XtdComment, ...
46.625
80
0.497295
14,541
0.708798
0
0
283
0.013795
0
0
4,044
0.197124
c862ff0586dafe12df4bfd251af96f7087dbad08
900
py
Python
app/api/v1/routes.py
kwanj-k/storemanager-API
e51511545a717341a7b1eb100eb3eab625a8b011
[ "MIT" ]
1
2019-05-08T08:39:08.000Z
2019-05-08T08:39:08.000Z
app/api/v1/routes.py
kwanj-k/storemanager-API
e51511545a717341a7b1eb100eb3eab625a8b011
[ "MIT" ]
2
2019-10-21T17:56:01.000Z
2019-10-29T07:36:39.000Z
app/api/v1/routes.py
kwanj-k/storemanager-API
e51511545a717341a7b1eb100eb3eab625a8b011
[ "MIT" ]
null
null
null
""" This file contains all the version one routes """ # Third party imports from flask import Blueprint, request from flask_restplus import Api, Resource, fields # Local application imports from .views.products_views import v1 as pro_routes from .views.sales_views import v1 as sales_routes from .views.stores_views i...
26.470588
67
0.73
0
0
0
0
0
0
0
0
256
0.284444
c8643e92fdc3cc522b5000bf37f329ece9e89e82
5,605
py
Python
tests/test_region_aggregation.py
IAMconsortium/nomenclature
15973d86d91e38424fe30719d44a1f23526c6eea
[ "Apache-2.0" ]
9
2021-06-10T15:11:23.000Z
2022-02-02T16:22:01.000Z
tests/test_region_aggregation.py
IAMconsortium/nomenclature
15973d86d91e38424fe30719d44a1f23526c6eea
[ "Apache-2.0" ]
83
2021-06-22T09:04:29.000Z
2022-03-21T16:29:54.000Z
tests/test_region_aggregation.py
IAMconsortium/nomenclature
15973d86d91e38424fe30719d44a1f23526c6eea
[ "Apache-2.0" ]
3
2021-06-17T10:44:48.000Z
2021-09-16T15:30:03.000Z
from pathlib import Path import jsonschema import pydantic import pytest from nomenclature.processor.region import ( ModelMappingCollisionError, RegionAggregationMapping, RegionProcessor, ) from conftest import TEST_DATA_DIR TEST_FOLDER_REGION_MAPPING = TEST_DATA_DIR / "region_aggregation" def test_map...
33.562874
88
0.615165
0
0
0
0
2,935
0.52364
0
0
2,138
0.381445
c8645ddbacbee9365d7d4fed6a9839538bcee96a
828
py
Python
bin/util/ckan-datasets-in-group.py
timrdf/csv2rdf4lod-automation-prod
d7e096fda18aea6236b6245b1e4a221101611640
[ "Apache-2.0" ]
56
2015-01-15T13:11:28.000Z
2021-11-16T14:50:48.000Z
bin/util/ckan-datasets-in-group.py
timrdf/csv2rdf4lod-automation-prod
d7e096fda18aea6236b6245b1e4a221101611640
[ "Apache-2.0" ]
10
2015-02-17T19:19:39.000Z
2021-12-10T21:04:37.000Z
bin/util/ckan-datasets-in-group.py
timrdf/csv2rdf4lod-automation-prod
d7e096fda18aea6236b6245b1e4a221101611640
[ "Apache-2.0" ]
13
2015-08-25T18:48:35.000Z
2021-12-13T15:28:16.000Z
#!/usr/bin/env python # #3> <> prov:specializationOf <https://github.com/timrdf/csv2rdf4lod-automation/blob/master/bin/util/ckan-datasets-in-group.py>; #3> prov:wasDerivedFrom <https://raw.github.com/timrdf/DataFAQs/master/packages/faqt.python/faqt/faqt.py>, #3> <https://github.com/timrdf/...
41.4
127
0.729469
0
0
0
0
0
0
0
0
564
0.681159
c86486b7aff3805a872796537a88993f82f85be5
191
py
Python
CaloOnlineTools/EcalTools/python/ecalExclusiveTrigFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
CaloOnlineTools/EcalTools/python/ecalExclusiveTrigFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
CaloOnlineTools/EcalTools/python/ecalExclusiveTrigFilter_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms ecalExclusiveTrigFilter = cms.EDFilter("EcalExclusiveTrigFilter", # Global trigger tag l1GlobalReadoutRecord = cms.string("gtDigis") )
21.222222
65
0.759162
0
0
0
0
0
0
0
0
54
0.282723
c8657a8c0a88d1cd1bd12e0d16b56dc5546e1b6c
2,300
py
Python
render_object.py
VanGy-code/3D-House-Blender
8a9d91b1f3cc3988c0dcd7079223f2e541f9ec71
[ "MIT" ]
null
null
null
render_object.py
VanGy-code/3D-House-Blender
8a9d91b1f3cc3988c0dcd7079223f2e541f9ec71
[ "MIT" ]
null
null
null
render_object.py
VanGy-code/3D-House-Blender
8a9d91b1f3cc3988c0dcd7079223f2e541f9ec71
[ "MIT" ]
1
2021-11-22T00:50:45.000Z
2021-11-22T00:50:45.000Z
import bpy import os import json import numpy as np from decimal import Decimal from mathutils import Vector, Matrix import argparse import numpy as np import sys sys.path.append(os.path.dirname(__file__)) sys.path.append(os.path.dirname(__file__)+'/tools') from tools.utils import * from tools.blender_interface import...
41.818182
112
0.694348
0
0
0
0
0
0
0
0
366
0.15913
c866107dba038466832105575d5f0486fb0c0c27
1,281
py
Python
resources/tests/test_users.py
pacofvf/agency_performance_model
1692d7e11ac3141715845d2a4ecf416563539f89
[ "MIT" ]
2
2018-01-10T05:51:31.000Z
2018-01-18T21:25:45.000Z
resources/tests/test_users.py
pacofvf/pivot_table_api
1692d7e11ac3141715845d2a4ecf416563539f89
[ "MIT" ]
null
null
null
resources/tests/test_users.py
pacofvf/pivot_table_api
1692d7e11ac3141715845d2a4ecf416563539f89
[ "MIT" ]
null
null
null
#!/usr/bin/python import unittest import json import base64 from mock import patch import api class UserTests(unittest.TestCase): def setUp(self): api.app.testing = True self.app = api.app.test_client() def test_user_creation(self): with patch('models.db.session'): respons...
33.710526
103
0.565183
1,135
0.886027
0
0
0
0
0
0
233
0.181889
c86659332f0223beeafc6e01030a75e258e463d5
2,717
py
Python
mapel/elections/features/clustering.py
kaszperro/mapel
d4e6486ee97f5d5a5a737c581ba3f9f874ebcef3
[ "MIT" ]
null
null
null
mapel/elections/features/clustering.py
kaszperro/mapel
d4e6486ee97f5d5a5a737c581ba3f9f874ebcef3
[ "MIT" ]
null
null
null
mapel/elections/features/clustering.py
kaszperro/mapel
d4e6486ee97f5d5a5a737c581ba3f9f874ebcef3
[ "MIT" ]
null
null
null
import numpy as np def clustering_v1(experiment, num_clusters=20): from scipy.cluster.hierarchy import dendrogram, linkage, fcluster import scipy.spatial.distance as ssd # skip the paths SKIP = ['UNID', 'ANID', 'STID', 'ANUN', 'STUN', 'STAN', 'Mallows', 'Urn', 'I...
33.54321
79
0.606183
0
0
0
0
0
0
0
0
1,197
0.440559
c86693ef8ab98f83a2f7c7800edbe9c593122043
561
py
Python
day15-1.py
kenleung5e28/advent-of-code-2021
f6de211f0d4f3bafa19572bf28e3407f0fab6d58
[ "MIT" ]
null
null
null
day15-1.py
kenleung5e28/advent-of-code-2021
f6de211f0d4f3bafa19572bf28e3407f0fab6d58
[ "MIT" ]
null
null
null
day15-1.py
kenleung5e28/advent-of-code-2021
f6de211f0d4f3bafa19572bf28e3407f0fab6d58
[ "MIT" ]
null
null
null
import math grid = [] with open('input-day15.txt') as file: for line in file: line = line.rstrip() grid.append([int(s) for s in line]) n = len(grid) costs = [[math.inf] * n for _ in range(n)] costs[0][0] = 0 queue = [(0, 0)] while len(queue) > 0: x1, y1 = queue.pop(0) for dx, dy in [(1, 0), (0, 1), (-1,...
24.391304
51
0.504456
0
0
0
0
0
0
0
0
17
0.030303
c8669721869b7d885f2345a687dcb60a71f978c7
2,930
py
Python
OSMTagFinder/thesaurus/relatedterm.py
geometalab/OSMTagFinder
9ffe854a2bebbd7f96facd7e236434e761fee884
[ "MIT" ]
20
2015-01-18T19:57:40.000Z
2020-06-15T22:06:42.000Z
OSMTagFinder/thesaurus/relatedterm.py
geometalab/OSMTagFinder
9ffe854a2bebbd7f96facd7e236434e761fee884
[ "MIT" ]
4
2015-01-18T22:16:15.000Z
2021-03-31T18:32:22.000Z
OSMTagFinder/thesaurus/relatedterm.py
geometalab/OSMTagFinder
9ffe854a2bebbd7f96facd7e236434e761fee884
[ "MIT" ]
2
2019-01-16T15:43:41.000Z
2020-06-15T22:03:31.000Z
# -*- coding: utf-8 -*- ''' Created on 16.11.2014 @author: Simon Gwerder ''' from utilities.configloader import ConfigLoader from rdfgraph import RDFGraph class RelatedTerm: rdfGraph = RDFGraph() cl = ConfigLoader() termSchemeName = cl.getThesaurusString('TERM_SCHEME_NAME') termSchemeTitle = cl.g...
34.880952
146
0.713652
2,766
0.944027
0
0
0
0
0
0
221
0.075427
c86731656ffa6ef2b38ba405b2722abcba4b7c94
1,217
py
Python
Algorithms/Sorting and Searching/sorting/merge sort/merge-sort-return-list.py
bulentsiyah/Python-Basics-Algorithms-Data-Structures-Object-Oriented-Programming-Job-Interview-Questions
3a67bdac1525495e6874c5bde61882848f60381d
[ "MIT" ]
14
2021-01-23T11:28:16.000Z
2021-12-07T16:08:23.000Z
Algorithms/Sorting and Searching/sorting/merge sort/merge-sort-return-list.py
bulentsiyah/Python-Basics-Algorithms-Data-Structures-Object-Oriented-Programming-Job-Interview-Questions
3a67bdac1525495e6874c5bde61882848f60381d
[ "MIT" ]
null
null
null
Algorithms/Sorting and Searching/sorting/merge sort/merge-sort-return-list.py
bulentsiyah/Python-Basics-Algorithms-Data-Structures-Object-Oriented-Programming-Job-Interview-Questions
3a67bdac1525495e6874c5bde61882848f60381d
[ "MIT" ]
2
2021-02-03T12:28:19.000Z
2021-09-14T09:50:08.000Z
arr: list = [54,26,93,17,77,31,44,55,20] def merge_sort(arr: list): result: list = helper(arr, 0, len(arr) - 1) for i in range(len(arr)): arr[i] = result[i] def helper(arr: list, start: int, end: int) -> list: if start > end: return [] elif start == end: return [arr[start...
24.836735
61
0.474117
0
0
0
0
0
0
0
0
0
0
c867bd2b7a6b9e73aa95e644913f2d2ac179784c
3,406
py
Python
cve-manager/cve_manager/handler/task_handler/callback/cve_scan.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
cve-manager/cve_manager/handler/task_handler/callback/cve_scan.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
cve-manager/cve_manager/handler/task_handler/callback/cve_scan.py
seandong37tt4qu/jeszhengq
32b3737ab45e89e8c5b71cdce871cefd2c938fa8
[ "MulanPSL-1.0" ]
null
null
null
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2021-2022. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
40.547619
98
0.625954
2,425
0.711979
0
0
0
0
0
0
1,493
0.438344
c867e56be1f71eb568a6e918ed29a6d7c65c450d
58
py
Python
mean-var-std/main.py
PedroEduardoSS/Data-Analisys-projects
f06c2d7091a9a61509525019f2f0375e21698f6a
[ "MIT" ]
null
null
null
mean-var-std/main.py
PedroEduardoSS/Data-Analisys-projects
f06c2d7091a9a61509525019f2f0375e21698f6a
[ "MIT" ]
null
null
null
mean-var-std/main.py
PedroEduardoSS/Data-Analisys-projects
f06c2d7091a9a61509525019f2f0375e21698f6a
[ "MIT" ]
null
null
null
from mean_var_std import * calculate([0,1,2,3,4,5,6,7,8])
19.333333
30
0.689655
0
0
0
0
0
0
0
0
0
0
c86aa619ebc8f014032a97d24de5e8f90b466d18
2,416
py
Python
tests/result/test_gatling.py
LaudateCorpus1/perfsize
710d6a5ae0918002e736f3aba8cd5cacb2b11326
[ "Apache-2.0" ]
5
2021-08-02T22:44:32.000Z
2022-01-07T20:53:48.000Z
tests/result/test_gatling.py
intuit/perfsize
710d6a5ae0918002e736f3aba8cd5cacb2b11326
[ "Apache-2.0" ]
1
2022-02-24T08:05:51.000Z
2022-02-24T08:05:51.000Z
tests/result/test_gatling.py
LaudateCorpus1/perfsize
710d6a5ae0918002e736f3aba8cd5cacb2b11326
[ "Apache-2.0" ]
1
2022-02-24T08:05:41.000Z
2022-02-24T08:05:41.000Z
from datetime import datetime from decimal import Decimal from perfsize.perfsize import ( lt, lte, gt, gte, eq, neq, Condition, Result, Run, Config, Plan, StepManager, EnvironmentManager, LoadManager, ResultManager, Reporter, Workflow, ) from perfsize....
33.09589
77
0.591474
1,716
0.710265
0
0
0
0
0
0
675
0.279387
c86bfc31df7a20be6ab83d39b12b217359bfd5df
3,904
py
Python
__main__.py
GbaCretin/dmf2mlm
8a0d3d219aecb9aa14a66537e2deb02651bdfe7d
[ "MIT" ]
2
2021-06-13T15:55:55.000Z
2021-09-14T08:21:53.000Z
__main__.py
GbaCretin/dmf2mlm
8a0d3d219aecb9aa14a66537e2deb02651bdfe7d
[ "MIT" ]
6
2022-03-22T10:02:35.000Z
2022-03-31T19:28:13.000Z
__main__.py
GbaCretin/dmf2mlm
8a0d3d219aecb9aa14a66537e2deb02651bdfe7d
[ "MIT" ]
null
null
null
from src import dmf,mzs,utils,sfx from pathlib import Path import argparse def print_info(mlm_sdata): if len(mlm_sdata.songs) <= 0: return for i in range(len(mlm_sdata.songs[0].channels)): channel = mlm_sdata.songs[0].channels[i] print("\n================[ {0:01X} ]================".format(i)) if channel == N...
30.984127
144
0.649846
0
0
0
0
0
0
0
0
911
0.23335
c06e2030a941664f4cc84a738c586a21db2c9695
1,169
py
Python
python/8.Making-a-POST-Request.py
17nikhil/codecademy
58fbd652691c9df8139544965ebb0e9748142538
[ "Apache-2.0" ]
null
null
null
python/8.Making-a-POST-Request.py
17nikhil/codecademy
58fbd652691c9df8139544965ebb0e9748142538
[ "Apache-2.0" ]
null
null
null
python/8.Making-a-POST-Request.py
17nikhil/codecademy
58fbd652691c9df8139544965ebb0e9748142538
[ "Apache-2.0" ]
1
2018-10-03T14:36:31.000Z
2018-10-03T14:36:31.000Z
# Using the Requests library, you can make a POST request by using the requests.post() method. You aren't just GETting data with a POST - you can pass your own data into the request as well, like so: # # requests.post("http://placekitten.com/", data="myDataToPost") # We're going to make the same request as the one show...
53.136364
271
0.726262
0
0
0
0
0
0
0
0
1,081
0.924722
c06f05eaa2d985c3d75a5edbcfcca422b525cddf
2,630
py
Python
python/zephyr/models/__init__.py
r-pad/zephyr
c8f45e207c11bfc2b21df169db65a7df892d2848
[ "MIT" ]
18
2021-05-27T04:40:38.000Z
2022-02-08T19:46:31.000Z
python/zephyr/models/__init__.py
r-pad/zephyr
c8f45e207c11bfc2b21df169db65a7df892d2848
[ "MIT" ]
null
null
null
python/zephyr/models/__init__.py
r-pad/zephyr
c8f45e207c11bfc2b21df169db65a7df892d2848
[ "MIT" ]
2
2021-11-07T12:42:00.000Z
2022-03-01T12:51:54.000Z
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import time from functools import partial from .linear import MLP, LogReg from .pointnet import PointNet from .pointnet2 import PointNet2SSG from .pointnet3 import PointNet3SSG from .dgcnn import DGCNN # from .masked_co...
43.114754
107
0.646388
0
0
0
0
0
0
0
0
369
0.140304
c070571b2741261b60b7d7b775818838f5089fed
1,938
py
Python
golpy/main.py
dkuska/golpy
a7bc73693090c252fa5ac587fe0d6c77472d9e9c
[ "MIT" ]
1
2021-01-06T09:19:19.000Z
2021-01-06T09:19:19.000Z
golpy/main.py
dkuska/golpy
a7bc73693090c252fa5ac587fe0d6c77472d9e9c
[ "MIT" ]
null
null
null
golpy/main.py
dkuska/golpy
a7bc73693090c252fa5ac587fe0d6c77472d9e9c
[ "MIT" ]
null
null
null
import golpy.controller.controller as controller import golpy.view.view as view import golpy.model.gamemodel as model import golpy.eventmanager.eventmanager as eventm import golpy.config as config import log.log as log import argparse def pass_args(): """ Takes Argument from the command line and returns an Argum...
46.142857
134
0.697626
0
0
0
0
0
0
0
0
569
0.293602
c07059d11303ea7e0150379f0e66db3230da9433
2,899
py
Python
tests/orca_unit_testing/test_series_str.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
20
2019-12-02T11:49:12.000Z
2021-12-24T19:34:32.000Z
tests/orca_unit_testing/test_series_str.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
null
null
null
tests/orca_unit_testing/test_series_str.py
jiajiaxu123/Orca
e86189e70c1d0387816bb98b8047a6232fbda9df
[ "Apache-2.0" ]
5
2019-12-02T12:16:22.000Z
2021-10-22T02:27:47.000Z
import unittest import orca from setup.settings import * from pandas.util.testing import * class SeriesStrTest(unittest.TestCase): def setUp(self): self.PRECISION = 5 @classmethod def setUpClass(cls): # connect to a DolphinDB server orca.connect(HOST, PORT, "admin", "123456") @p...
43.924242
118
0.675405
2,805
0.967575
0
0
488
0.168334
0
0
283
0.09762
c0712a7efbb3bde035967d1fd7d0d7a42cb89f4b
278
py
Python
inputs/in4.py
mabbaszade/transportation-problem
64ab4db7f836513c388073b5e2e9c64d7c439fde
[ "MIT" ]
null
null
null
inputs/in4.py
mabbaszade/transportation-problem
64ab4db7f836513c388073b5e2e9c64d7c439fde
[ "MIT" ]
null
null
null
inputs/in4.py
mabbaszade/transportation-problem
64ab4db7f836513c388073b5e2e9c64d7c439fde
[ "MIT" ]
null
null
null
ITERATION_NUM = 10 MAX_POPULATION = 500 CROSSOVER_RATE = 1 MUTATION_RATE = 1 supplies = { 'S1': 20, 'S2': 15, 'S3': 40 } demands = { 'D1': 20, 'D2': 30, 'D3': 25 } cost = [[2, 3, 1], [5, 4, 8], [5, 6, 8] ]
12.636364
21
0.406475
0
0
0
0
0
0
0
0
24
0.086331
c0712de2126b7958548be086996c8304d5bf2f45
89
py
Python
Project/Connect/apps.py
AashishKhanal69/PeakyBlinders_ADC7_PartII
a4474c02be4ee8f8405b51df2f1d215e56ac192d
[ "bzip2-1.0.6" ]
null
null
null
Project/Connect/apps.py
AashishKhanal69/PeakyBlinders_ADC7_PartII
a4474c02be4ee8f8405b51df2f1d215e56ac192d
[ "bzip2-1.0.6" ]
null
null
null
Project/Connect/apps.py
AashishKhanal69/PeakyBlinders_ADC7_PartII
a4474c02be4ee8f8405b51df2f1d215e56ac192d
[ "bzip2-1.0.6" ]
null
null
null
from django.apps import AppConfig class ConnectConfig(AppConfig): name = 'Connect'
14.833333
33
0.752809
52
0.58427
0
0
0
0
0
0
9
0.101124
c072ef7683ac75d9de6d4b4eb8e1ab74898e3920
914
py
Python
spatial/edge.py
jbschwartz/spatial
04dc619ae024ebb4f516cd6483f835421c7d84b1
[ "MIT" ]
1
2022-01-02T22:03:09.000Z
2022-01-02T22:03:09.000Z
spatial/edge.py
jbschwartz/spatial
04dc619ae024ebb4f516cd6483f835421c7d84b1
[ "MIT" ]
null
null
null
spatial/edge.py
jbschwartz/spatial
04dc619ae024ebb4f516cd6483f835421c7d84b1
[ "MIT" ]
null
null
null
from functools import cached_property from .vector3 import Vector3 class Edge: """An edge created by two points.""" def __init__(self, start: Vector3, end: Vector3) -> None: self.start = start self.end = end def __eq__(self, other: object) -> bool: """Return True if this edge is...
26.114286
67
0.591904
843
0.922319
0
0
272
0.297593
0
0
174
0.190372
c07358522633a4b5223edee437652e807e46cb27
1,054
py
Python
timer.py
ryanleesmith/race-timer
3a058e3689c9435751b06909d5b7a14db618d2da
[ "MIT" ]
null
null
null
timer.py
ryanleesmith/race-timer
3a058e3689c9435751b06909d5b7a14db618d2da
[ "MIT" ]
null
null
null
timer.py
ryanleesmith/race-timer
3a058e3689c9435751b06909d5b7a14db618d2da
[ "MIT" ]
null
null
null
from gps import * import math import time import json import threading gpsd = None poller = None class Poller(threading.Thread): def __init__(self): threading.Thread.__init__(self) global gpsd gpsd = gps(mode=WATCH_ENABLE|WATCH_NEWSTYLE) self.current_value = None self.run...
23.422222
80
0.555028
335
0.317837
617
0.585389
0
0
0
0
112
0.106262
c073994563fd9d56aecce3609828c1cbf0a8170a
31,133
py
Python
vkwave/bots/addons/easy/easy_handlers.py
amishakov/vkwave
377d470fc4b84b64516fffcabc6d682bf86b5d7f
[ "MIT" ]
null
null
null
vkwave/bots/addons/easy/easy_handlers.py
amishakov/vkwave
377d470fc4b84b64516fffcabc6d682bf86b5d7f
[ "MIT" ]
null
null
null
vkwave/bots/addons/easy/easy_handlers.py
amishakov/vkwave
377d470fc4b84b64516fffcabc6d682bf86b5d7f
[ "MIT" ]
null
null
null
import json import random import warnings from typing import Any, Callable, Dict, List, Union, Type, Optional, NoReturn from pydantic import PrivateAttr from vkwave.bots import BotEvent, BotType, EventTypeFilter, UserEvent from vkwave.bots.core import BaseFilter from vkwave.bots.core.dispatching.filters.builtin impor...
37.195938
335
0.615039
29,848
0.901181
0
0
2,587
0.078108
24,244
0.731983
9,269
0.279853
c074c692de4483f97d3f233f58a66ad3a9239b2d
1,337
py
Python
src/scs_core/osio/data/message_body.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
3
2019-03-12T01:59:58.000Z
2020-09-12T07:27:42.000Z
src/scs_core/osio/data/message_body.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
1
2018-04-20T07:58:38.000Z
2021-03-27T08:52:45.000Z
src/scs_core/osio/data/message_body.py
seoss/scs_core
0d4323c5697a39eb44a887f179ba5dca3716c1d2
[ "MIT" ]
4
2017-09-29T13:08:43.000Z
2019-10-09T09:13:58.000Z
""" Created on 7 Nov 2016 @author: Bruno Beloff (bruno.beloff@southcoastscience.com) example: 25 June 2016 17:44:28 BST: {"datum":{"conc":92,"dens":184},"measured-at":"2016-06-25T17:41:01+01:00"} """ from collections import OrderedDict from scs_core.data.json import JSONable # ------------------------------------...
25.711538
118
0.324607
934
0.698579
0
0
56
0.041885
0
0
872
0.652206
c078fecfd19302ee3b513baaaa01bf856eb712e7
24,154
py
Python
pysnmp/CISCO-FC-PM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/CISCO-FC-PM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/CISCO-FC-PM-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module CISCO-FC-PM-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-FC-PM-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:40:52 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27...
137.238636
3,967
0.770928
0
0
0
0
0
0
0
0
5,014
0.207585
c078ff18aa77981230542dee77a093f9d2cdb667
13,841
py
Python
layer_manager/models.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
null
null
null
layer_manager/models.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
4
2022-03-29T20:52:31.000Z
2022-03-29T20:52:31.000Z
layer_manager/models.py
lueho/BRIT
1eae630c4da6f072aa4e2139bc406db4f4756391
[ "MIT" ]
null
null
null
import django.contrib.gis.db.models as gis_models from django.apps import apps from django.db import models, connection from django.urls import reverse from distributions.models import TemporalDistribution, Timestep from inventories.models import Scenario, InventoryAlgorithm from materials.models import SampleSeries, ...
40.589443
134
0.627556
13,282
0.959613
0
0
1,468
0.106062
0
0
3,263
0.235749
c07be394b73091661999efe65e37d5d6f073209b
4,205
py
Python
src/evaluation/regression.py
lyonva/Nue
90680de00b0c76f6bfdbed71b785671e7c3a3f54
[ "Apache-2.0" ]
null
null
null
src/evaluation/regression.py
lyonva/Nue
90680de00b0c76f6bfdbed71b785671e7c3a3f54
[ "Apache-2.0" ]
null
null
null
src/evaluation/regression.py
lyonva/Nue
90680de00b0c76f6bfdbed71b785671e7c3a3f54
[ "Apache-2.0" ]
null
null
null
from evaluation import MetricScorer from .formulas import mar, sa, sd, sdar, effect_size, mmre, mdmre, pred25, pred40 from baseline import MARP0 class MAR(MetricScorer): def setConstants(self): self.name = "mar" self.problem = "regression" self.greater_is_better = False self.lo...
31.616541
81
0.617122
4,039
0.960523
0
0
0
0
0
0
538
0.127943
c07ca44e33380193eabc6f8bec1ebe24f8d013c9
8,212
py
Python
bin/CAD/Abaqus/AbaqusGeometry.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/CAD/Abaqus/AbaqusGeometry.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
bin/CAD/Abaqus/AbaqusGeometry.py
lefevre-fraser/openmeta-mms
08f3115e76498df1f8d70641d71f5c52cab4ce5f
[ "MIT" ]
null
null
null
""" AbaqusGeometry.py For use with Abaqus 6.13-1 (Python 2.6.2). Created by Ozgur Yapar <oyapar@isis.vanderbilt.edu> Robert Boyles <rboyles@isis.vanderbilt.edu> - Includes modules which take care of geometrical operations in the part and assembly level. """ import re import mat...
53.673203
121
0.565392
0
0
0
0
0
0
0
0
3,163
0.385168
c07dacc643d713f89a754dcc9e2a89ae590b2576
2,143
py
Python
analysis/11-compress-jacobians.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
analysis/11-compress-jacobians.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
analysis/11-compress-jacobians.py
lmjohns3/cube-experiment
ab6d1a9df95efebc369d184ab1c748d73d5c3313
[ "MIT" ]
null
null
null
import climate import glob import gzip import io import lmj.cubes import logging import numpy as np import os import pandas as pd import pickle import theanets def compress(source, k, activation, **kwargs): fns = sorted(glob.glob(os.path.join(source, '*', '*_jac.csv.gz'))) logging.info('%s: found %d jacobians...
30.614286
76
0.591227
0
0
0
0
512
0.238917
0
0
422
0.19692
c07f103a6a6e92a6245209f932b8d90c064fd018
21,369
py
Python
commerce/views.py
zlkca/ehetuan-api
da84cd4429bd33e8fe191327ec267bf105f41453
[ "MIT" ]
1
2020-05-27T18:17:01.000Z
2020-05-27T18:17:01.000Z
commerce/views.py
zlkca/ehetuan-api
da84cd4429bd33e8fe191327ec267bf105f41453
[ "MIT" ]
6
2020-06-05T18:14:56.000Z
2021-09-07T23:53:08.000Z
commerce/views.py
zlkca/ehetuan-api
da84cd4429bd33e8fe191327ec267bf105f41453
[ "MIT" ]
null
null
null
import json import os import logging from datetime import datetime from django.db.models import Q,Count from django.http import JsonResponse from django.views.generic import View from django.views.decorators.csrf import csrf_exempt from django.utils.decorators import method_decorator from django.conf import settings fr...
36.15736
126
0.530675
16,697
0.780781
0
0
17,033
0.796493
0
0
3,989
0.186533
c07fe33cae576add35e02a5f464a4a05467459e8
5,666
py
Python
api/views.py
huatxu/erasmusbackend
d8f86ee857a292a133106e75e9c920b905b5b10d
[ "MIT" ]
null
null
null
api/views.py
huatxu/erasmusbackend
d8f86ee857a292a133106e75e9c920b905b5b10d
[ "MIT" ]
null
null
null
api/views.py
huatxu/erasmusbackend
d8f86ee857a292a133106e75e9c920b905b5b10d
[ "MIT" ]
null
null
null
from django.shortcuts import render from api.models import Comida, Cerveza, Titulo, TipoComida from django.http import Http404 from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import serializers import csv import os class CervezaSerializer(serializers.ModelSer...
39.901408
300
0.55683
1,858
0.327632
0
0
0
0
0
0
1,292
0.227826
c081b2d11a5b435dcb1b7be483e436c803475836
232
gyp
Python
binding.gyp
sony/node-win-usbdev
bcdbd277419f1e34b1778390ec1624ccce63068d
[ "Apache-2.0" ]
3
2017-06-28T12:00:36.000Z
2021-11-08T12:34:26.000Z
binding.gyp
sony/node-win-usbdev
bcdbd277419f1e34b1778390ec1624ccce63068d
[ "Apache-2.0" ]
1
2018-02-16T04:32:55.000Z
2018-02-16T04:32:55.000Z
binding.gyp
sony/node-win-usbdev
bcdbd277419f1e34b1778390ec1624ccce63068d
[ "Apache-2.0" ]
3
2017-07-31T23:19:07.000Z
2022-03-25T17:02:51.000Z
{ "targets": [ { "target_name": "usb_dev", "sources": [ "usb_dev.cc" ], "include_dirs" : [ "<!(node -e \"require('nan')\")" ], "libraries": [ "-lsetupapi" ] } ] }
15.466667
42
0.37069
0
0
0
0
0
0
0
0
121
0.517094
c083ad9611b00848cfe7baab07a7e05df20d4b0d
1,011
py
Python
insert_table.py
Cassiel60/python
3f451e398a8705a5859d347d5fcdcfd9a5671e1c
[ "MIT" ]
null
null
null
insert_table.py
Cassiel60/python
3f451e398a8705a5859d347d5fcdcfd9a5671e1c
[ "MIT" ]
null
null
null
insert_table.py
Cassiel60/python
3f451e398a8705a5859d347d5fcdcfd9a5671e1c
[ "MIT" ]
1
2019-12-19T00:34:02.000Z
2019-12-19T00:34:02.000Z
''' table AD contains RS,ADID;table Parkinson contains RS,PDID;table variant contains ADID, PDID insert table variant one way: below two way: by merge ''' import sys ,re import pandas as pd varfil1=r'C:\Users\BAIOMED07\Desktop\AD_Database_20170629.xls' varfil2=r'C:\Users\BAIOMED07\Desktop\parkinson_TOTAL.xls' varfil...
25.275
87
0.723046
0
0
0
0
0
0
0
0
492
0.486647
c08a254cca4494b2d1aa73495456b23d2cb83ea5
390
py
Python
1_Ejemplo_practico_ECG/utils.py
IEEE-UPIBI/Comunicacion-Serial-Python-Arduino
806916a5d47e8d29933e1402296e2ca6d5d5a79e
[ "MIT" ]
null
null
null
1_Ejemplo_practico_ECG/utils.py
IEEE-UPIBI/Comunicacion-Serial-Python-Arduino
806916a5d47e8d29933e1402296e2ca6d5d5a79e
[ "MIT" ]
1
2021-04-23T23:20:42.000Z
2021-04-23T23:20:42.000Z
2_Ejemplo_practico_SensorMPU6050/utils.py
IEEE-UPIBI/Comunicacion-Serial-Python-Arduino
806916a5d47e8d29933e1402296e2ca6d5d5a79e
[ "MIT" ]
null
null
null
import serial import time ### FUNCTIONS #### #### SERIAL COMMUNICATION #### def arduino_communication(COM="COM5",BAUDRATE=9600,TIMEOUT=1): """ Initalizes connection with Arduino Board """ try: arduino = serial.Serial(COM, BAUDRATE , timeout=TIMEOUT) time.sleep(2) except: ...
16.956522
64
0.628205
0
0
0
0
0
0
0
0
136
0.348718
c08b025b2f074208a6371fa035f6cf38f392405a
3,595
py
Python
trav_lib/visualize.py
thwhitfield/trav_lib
46185f5545d958eba1538c769a98d07908dd0d19
[ "MIT" ]
null
null
null
trav_lib/visualize.py
thwhitfield/trav_lib
46185f5545d958eba1538c769a98d07908dd0d19
[ "MIT" ]
null
null
null
trav_lib/visualize.py
thwhitfield/trav_lib
46185f5545d958eba1538c769a98d07908dd0d19
[ "MIT" ]
null
null
null
"""Classes and functions used for data visualization""" import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt def plot_correlation_matrix_heat_map(df,label,qty_fields=10): df = pd.concat([df[label],df.drop(label,axis=1)],axis=1) correlation_matrix = df.corr() index =...
35.594059
97
0.662309
0
0
0
0
0
0
0
0
1,704
0.473992
c08cb3b6fdb628373adc1c5e8da4f386b0294fba
1,828
py
Python
test/test_configeditor.py
ta-assistant/Admin-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
1
2021-07-22T15:43:02.000Z
2021-07-22T15:43:02.000Z
test/test_configeditor.py
ta-assistant/Admin-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
28
2021-05-15T08:18:21.000Z
2021-08-02T06:12:30.000Z
test/test_configeditor.py
ta-assistant/TA-CLI
1c03ede0e09d8ddc270646937aa7af463c55f1f5
[ "MIT" ]
null
null
null
import unittest import os, sys, inspect, json currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0, parentdir) from lib.file_management.configeditor import ConfigEditor from lib.file_management.file_management_lib import DirMana...
25.041096
86
0.561816
1,450
0.793217
0
0
0
0
0
0
371
0.202954
c08e3ff69724d52b478b9cfd81ca7910c42f6c6e
7,390
py
Python
chemreg/compound/migrations/0001_vega_sprint.py
Chemical-Curation/chemcurator
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
1
2020-10-05T18:02:24.000Z
2020-10-05T18:02:24.000Z
chemreg/compound/migrations/0001_vega_sprint.py
Chemical-Curation/chemcurator_django
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
207
2020-01-30T19:17:44.000Z
2021-02-24T19:45:29.000Z
chemreg/compound/migrations/0001_vega_sprint.py
Chemical-Curation/chemcurator_django
bcd7fab84e407f06502e6873c38820724d4e54e7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-11-18 06:06 import chemreg.common.utils import chemreg.common.validators import chemreg.compound.models import chemreg.compound.utils from django.conf import settings from django.db import migrations, models import django.db.models.deletion def fwd_create_illdefined_querystructure...
38.092784
85
0.472666
6,449
0.872666
0
0
0
0
0
0
1,070
0.14479
c08e8f408c1440f68bb49f4c21e145acaad7cc8e
3,466
py
Python
TwitterCode/crawler.py
aghriss/CS5502_project
68403f38ef26067360cb22404cdabe0d0543097a
[ "MIT" ]
null
null
null
TwitterCode/crawler.py
aghriss/CS5502_project
68403f38ef26067360cb22404cdabe0d0543097a
[ "MIT" ]
null
null
null
TwitterCode/crawler.py
aghriss/CS5502_project
68403f38ef26067360cb22404cdabe0d0543097a
[ "MIT" ]
null
null
null
''' Twitter Crawler to get tweets and user data ''' import tweepy import json import os import time def get_counts_quantile(tweets): counts = [] for t in tweets: counts.append() def save_tweet(result): """Function to save tweepy result status""" pass def save_user(result_set): """Functi...
32.698113
103
0.611656
2,995
0.864108
0
0
0
0
0
0
554
0.159838
c08e9da0f8073946d9eb1f38656fc0912b347134
2,206
py
Python
instruments/swap.py
neoyung/IrLib
942793c49a477c9f5747410be74daf868391f289
[ "MIT" ]
1
2021-10-04T03:15:50.000Z
2021-10-04T03:15:50.000Z
instruments/swap.py
neoyung/IrLib
942793c49a477c9f5747410be74daf868391f289
[ "MIT" ]
null
null
null
instruments/swap.py
neoyung/IrLib
942793c49a477c9f5747410be74daf868391f289
[ "MIT" ]
null
null
null
from irLib.instruments.instrument import instrument from irLib.helpers.schedule import period from irLib.instruments.legs import fixLeg, floatLeg class swap(instrument): def __init__(self, tradeDate, spotLag=period(0, 'day'), position='long', *legs): super().__init__(tradeDate, spotLag, position) ...
41.622642
145
0.655938
2,054
0.931097
0
0
0
0
0
0
124
0.05621
c08f4ab3e25ce0f369e7d00947095aeb1fb9b437
21,083
py
Python
skhubness/neighbors/lsh.py
VarIr/scikit-hubness
6eaeedda2c4b52bb7bf2553b3c5b04a076287ae3
[ "BSD-3-Clause" ]
33
2019-08-05T12:29:19.000Z
2022-03-08T18:48:28.000Z
skhubness/neighbors/lsh.py
AndreasPhilippi/scikit-hubness
6eaeedda2c4b52bb7bf2553b3c5b04a076287ae3
[ "BSD-3-Clause" ]
84
2019-07-12T09:05:42.000Z
2022-03-31T08:50:15.000Z
skhubness/neighbors/lsh.py
AndreasPhilippi/scikit-hubness
6eaeedda2c4b52bb7bf2553b3c5b04a076287ae3
[ "BSD-3-Clause" ]
9
2019-09-26T11:03:04.000Z
2021-07-01T08:43:11.000Z
# -*- coding: utf-8 -*- # SPDX-License-Identifier: BSD-3-Clause # PEP 563: Postponed Evaluation of Annotations from __future__ import annotations from functools import partial import multiprocessing as mp from typing import Tuple, Union import warnings import numpy as np from sklearn.base import BaseEstimator from s...
39.481273
120
0.54774
20,221
0.959114
0
0
0
0
0
0
7,549
0.358061
c09039628dfca0497559485ef917b2eee5612ab1
11,859
py
Python
virtualreality/calibration/manual_color_mask_calibration.py
sahasam/hobo_vr
0cf5824c91719055156ec23cf8dda2d921be948a
[ "MIT" ]
null
null
null
virtualreality/calibration/manual_color_mask_calibration.py
sahasam/hobo_vr
0cf5824c91719055156ec23cf8dda2d921be948a
[ "MIT" ]
null
null
null
virtualreality/calibration/manual_color_mask_calibration.py
sahasam/hobo_vr
0cf5824c91719055156ec23cf8dda2d921be948a
[ "MIT" ]
null
null
null
""" pyvr calibrate. Usage: pyvr calibrate [options] Options: -h, --help -c, --camera <camera> Source of the camera to use for calibration [default: 0] -r, --resolution <res> Input resolution in width and height [default: -1x-1] -n, --n_masks <n_masks> Number of masks to calibrate [de...
35.827795
114
0.646935
1,688
0.142339
0
0
446
0.037609
0
0
2,651
0.223543
c091621b5f0a091f64683171c4c8e2bb52a88c66
155
py
Python
lambda_handlers/validators/__init__.py
renovate-tests/lambda-handlers
0b14013f19b597524a8d50f7ea8813ee726c584c
[ "Apache-2.0" ]
null
null
null
lambda_handlers/validators/__init__.py
renovate-tests/lambda-handlers
0b14013f19b597524a8d50f7ea8813ee726c584c
[ "Apache-2.0" ]
null
null
null
lambda_handlers/validators/__init__.py
renovate-tests/lambda-handlers
0b14013f19b597524a8d50f7ea8813ee726c584c
[ "Apache-2.0" ]
null
null
null
from .jsonschema_validator import JSONSchemaValidator as jsonschema # noqa from .marshmallow_validator import MarshmallowValidator as marshmallow # noqa
51.666667
78
0.858065
0
0
0
0
0
0
0
0
12
0.077419
c091c64c9f6b764d68bafb5d1ad27be880d8e240
227
py
Python
xonsh/aliases/dir.py
yjpark/dotfiles
ae9ad72eb2e2a4d3da4c600d24782720229d1a4b
[ "MIT" ]
7
2015-12-18T04:33:01.000Z
2019-09-17T06:09:51.000Z
xonsh/aliases/dir.py
yjpark/dotfiles
ae9ad72eb2e2a4d3da4c600d24782720229d1a4b
[ "MIT" ]
1
2016-05-12T15:32:47.000Z
2016-05-12T15:32:47.000Z
xonsh/aliases/dir.py
yjpark/dotfiles
ae9ad72eb2e2a4d3da4c600d24782720229d1a4b
[ "MIT" ]
4
2016-11-29T04:06:19.000Z
2019-12-26T14:32:46.000Z
aliases['cd-'] = 'cd -' aliases['cl'] = 'cd (ls -1Ft | head -1)' aliases['..'] = 'cd ..' aliases['...'] = 'cd ../..' aliases['....'] = 'cd ../../..' aliases['.....'] = 'cd ../../../..' aliases['......'] = 'cd ../../../../..'
22.7
40
0.339207
0
0
0
0
0
0
0
0
134
0.590308
c09416ca42570e30634d8a60a3175bf1c430d092
1,894
py
Python
database.py
tzoch/dropbox-bot
2bf36e2d4146bf8c00169362f9767ed059643787
[ "MIT" ]
3
2016-03-08T04:43:22.000Z
2020-08-25T20:07:28.000Z
database.py
tzoch/dropbox-bot
2bf36e2d4146bf8c00169362f9767ed059643787
[ "MIT" ]
null
null
null
database.py
tzoch/dropbox-bot
2bf36e2d4146bf8c00169362f9767ed059643787
[ "MIT" ]
null
null
null
#! /usr/bin/python ''' Class to handle database connections and queries for Dropbox Mirror Bot ''' import sqlite3 class Database(object): def __init__(self, database=":memory:"): self._database = database c = self.cursor() query = '''CREATE TABLE IF NOT EXISTS dropbox_submissions ( ...
30.063492
70
0.577614
1,776
0.937698
0
0
169
0.089229
0
0
796
0.420275
c09416d25e79ddab37c35127443d972589822576
796
py
Python
tests/starter/test_starter_admin_email.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
17
2015-02-10T07:10:29.000Z
2021-05-14T22:24:45.000Z
tests/starter/test_starter_admin_email.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
459
2015-03-31T18:24:23.000Z
2022-03-30T19:44:40.000Z
tests/starter/test_starter_admin_email.py
elifesciences/elife-bot
d3a102c8030e4b7ec83cbd45e5f839dba4f9ffd9
[ "MIT" ]
9
2015-04-18T16:57:31.000Z
2020-10-30T11:49:13.000Z
import unittest from mock import patch from starter.starter_AdminEmail import starter_AdminEmail from tests.activity.classes_mock import FakeLogger from tests.classes_mock import FakeLayer1 import tests.settings_mock as settings_mock class TestStarterAdminEmail(unittest.TestCase): def setUp(self): self.fa...
34.608696
81
0.761307
559
0.702261
0
0
357
0.448492
0
0
48
0.060302
c09430f692b1d375bbff6b77320ac21d3531ed34
15,963
py
Python
tests/commit/math/test__tensors.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
tests/commit/math/test__tensors.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
tests/commit/math/test__tensors.py
eliasdjo/PhiFlow
dc88dca696d25a5ea5793aa48fae390469f0d829
[ "MIT" ]
null
null
null
from unittest import TestCase import numpy as np import phi from phi import math from phi.math import channel, batch from phi.math._shape import CHANNEL_DIM, BATCH_DIM, shape_stack, spatial from phi.math._tensors import TensorStack, CollapsedTensor, wrap, tensor, cached from phi.math.backend import Backend BACKENDS ...
40.930769
178
0.58811
15,616
0.978262
0
0
0
0
0
0
879
0.055065
c094fb0ecd2841945312d32ccd2105e21bce1b3b
1,202
py
Python
index/admin.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
1
2019-06-29T15:24:24.000Z
2019-06-29T15:24:24.000Z
index/admin.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2020-01-12T17:47:33.000Z
2020-01-12T17:47:45.000Z
index/admin.py
KolibriSolutions/BepMarketplace
c47d252fd744cde6b927e37c34d7a103c6162be5
[ "BSD-3-Clause" ]
2
2019-06-29T15:24:26.000Z
2020-01-08T15:15:03.000Z
# Bep Marketplace ELE # Copyright (c) 2016-2021 Kolibri Solutions # License: See LICENSE file or https://github.com/KolibriSolutions/BepMarketplace/blob/master/LICENSE # from django.contrib import admin from django.shortcuts import reverse from django.utils.html import format_html from .models import Track, Broadca...
33.388889
102
0.757903
568
0.472546
0
0
0
0
0
0
368
0.306156
c0955acbb8e9da3cf689449a7886da397be4ac74
9,025
py
Python
stacks/firecares_web.py
FireCARES/firecares-ansible
f650798a7a343626402f6d46782651a2f7a5f086
[ "MIT" ]
1
2017-02-12T13:38:57.000Z
2017-02-12T13:38:57.000Z
stacks/firecares_web.py
FireCARES/firecares-ansible
f650798a7a343626402f6d46782651a2f7a5f086
[ "MIT" ]
16
2015-10-21T13:00:54.000Z
2021-09-23T23:21:07.000Z
stacks/firecares_web.py
FireCARES/firecares-ansible
f650798a7a343626402f6d46782651a2f7a5f086
[ "MIT" ]
4
2015-08-19T00:52:54.000Z
2017-02-13T08:14:10.000Z
from datetime import datetime from pytz import timezone from troposphere import Ref, Template, Parameter, GetAZs, Output, Join, GetAtt, autoscaling, ec2, elasticloadbalancing as elb t = Template() t.add_description("Create FireCARES Webserver Load Balancer, Auto-Scaling group and Celery beat VM") base_ami = "ami-7646...
29.493464
125
0.582493
0
0
0
0
0
0
0
0
3,445
0.381717
c095ea2cd17b98f861280b8dd90e12ab34027235
513
py
Python
solutions/unitReview/gcd.py
mrparkonline/python3_while
3b24be84d16230e2b923276dca4c943f4c5ad26d
[ "MIT" ]
null
null
null
solutions/unitReview/gcd.py
mrparkonline/python3_while
3b24be84d16230e2b923276dca4c943f4c5ad26d
[ "MIT" ]
null
null
null
solutions/unitReview/gcd.py
mrparkonline/python3_while
3b24be84d16230e2b923276dca4c943f4c5ad26d
[ "MIT" ]
null
null
null
# GCD Program from math import gcd # input num1 = int(input('Enter a number: ')) num2 = int(input('Enter another number: ')) # processing & output divisor = 1 upper_limit = min(num1, num2) gcd_answer = 0 #print(num1, 'and', num2, 'share these factors:') print('GCD of', num1, 'and', num2, 'is:') while divisor <= up...
22.304348
51
0.651072
0
0
0
0
0
0
0
0
187
0.364522
c096a0804783d5b361fcbd0253a74c4dbbc3423f
447
py
Python
topk/gen_count.py
ririripley/recipes
04267c68a7424326b4aa8dd14b1a879b59ab887c
[ "BSD-3-Clause" ]
1,418
2015-01-07T09:40:09.000Z
2022-03-29T08:37:02.000Z
topk/gen_count.py
algoideas/recipes
77bc5cb180e49edb31983938386ef23f752e2d2f
[ "BSD-3-Clause" ]
22
2015-02-17T17:31:18.000Z
2022-02-08T07:00:29.000Z
topk/gen_count.py
algoideas/recipes
77bc5cb180e49edb31983938386ef23f752e2d2f
[ "BSD-3-Clause" ]
854
2015-01-03T11:56:10.000Z
2022-03-31T08:50:28.000Z
#!/usr/bin/python import random word_len = 5 alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' output = open('word_count', 'w') words = set() N = 1000*1000 for x in xrange(N): arr = [random.choice(alphabet) for i in range(word_len)] words.add(''.join(arr)) print len(words) for word...
20.318182
75
0.686801
0
0
0
0
0
0
0
0
106
0.237136
c09740c69f29292cd8143f6167d141bb98d730a6
728
py
Python
notification/views.py
ChristopherOloo/KilimoQAPortal
c905a42282bbce70b5477862185ad332185307ce
[ "MIT" ]
67
2022-01-05T18:59:23.000Z
2022-03-18T13:13:39.000Z
notification/views.py
ChristopherOloo/KilimoQAPortal
c905a42282bbce70b5477862185ad332185307ce
[ "MIT" ]
3
2022-01-10T10:03:23.000Z
2022-03-11T16:58:38.000Z
notification/views.py
ChristopherOloo/KilimoQAPortal
c905a42282bbce70b5477862185ad332185307ce
[ "MIT" ]
4
2022-01-08T17:39:19.000Z
2022-02-28T07:40:16.000Z
from django.shortcuts import render from .models import PrivRepNotification,Notification from django.http import JsonResponse, HttpResponseRedirect, HttpResponse def read_All_Notifications(request): notifics = Notification.objects.filter(noti_receiver=request.user).order_by('-date_created') for objs in noti...
26.962963
96
0.747253
0
0
0
0
0
0
0
0
103
0.141484
c0984d7ef444e29454bfa97d1cc9a76bb27bd524
1,243
py
Python
sortedListToBST.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
sortedListToBST.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
sortedListToBST.py
pflun/learningAlgorithms
3101e989488dfc8a56f1bf256a1c03a837fe7d97
[ "MIT" ]
null
null
null
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None # Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): ...
21.067797
55
0.584875
905
0.728077
0
0
0
0
0
0
72
0.057924
c099053af9b9ff299e9a4615defe7551e4d4dfdc
1,105
py
Python
train.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
train.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
train.py
divyanshrm/Polyth-Net-Classification-of-Polythene-Bags-Using-Deep-Dearning
f52c0887cb12cf1322a37d1042917be5d679c725
[ "MIT" ]
null
null
null
import tensorflow as tf import tensorflow.keras as k import numpy as np from load_and_augment import load_and_augment_data from modelconfig import modelconfig from compile_model import compile_model_adam import compile_model if __name__=='__main__': path=r'/content/drive/My Drive/data' testing_path=r'/c...
42.5
143
0.729412
0
0
0
0
0
0
0
0
163
0.147511
c09b58cc8746669f100104bd829d92eb5454df67
1,548
py
Python
fb2_get_list.py
kawaiigamer/python-tools
68fd75299657811fef36339732c80539ccad386e
[ "Unlicense" ]
null
null
null
fb2_get_list.py
kawaiigamer/python-tools
68fd75299657811fef36339732c80539ccad386e
[ "Unlicense" ]
null
null
null
fb2_get_list.py
kawaiigamer/python-tools
68fd75299657811fef36339732c80539ccad386e
[ "Unlicense" ]
null
null
null
import os import glob import codecs from typing import List def dirs(root_dit: str) -> List[str]: return next(os.walk(root_dit))[1] def select_directory_from_list(directories: List[str]) -> str: for i in range(0, len(directories)): print("(%d) %s" % (i, directories[i])) while True: try:...
29.207547
75
0.554264
0
0
0
0
0
0
0
0
258
0.166667
c09c7f0c8e41ed1996a2664259286c39cad5f12c
2,403
py
Python
simplecaptcha/fields.py
Kromey/django-simplecaptcha
ad462f8742be19b1e87103f097853d41e21d0e0a
[ "MIT" ]
5
2015-11-12T06:31:08.000Z
2017-03-09T06:45:46.000Z
simplecaptcha/fields.py
Kromey/django-simplecaptcha
ad462f8742be19b1e87103f097853d41e21d0e0a
[ "MIT" ]
null
null
null
simplecaptcha/fields.py
Kromey/django-simplecaptcha
ad462f8742be19b1e87103f097853d41e21d0e0a
[ "MIT" ]
null
null
null
import time from django import forms from django.core.exceptions import ValidationError from .widgets import CaptchaWidget from .settings import DURATION class CaptchaField(forms.MultiValueField): """A field that contains and validates a simple catcha question WARNING: If you use this field directly in y...
35.338235
90
0.650853
2,241
0.932584
0
0
275
0.11444
0
0
1,275
0.530587
c09e72d5be2ef0cef0c360e31efc8610a74ed555
4,940
py
Python
skills_taxonomy_v2/analysis/sentence_classifier/notebooks/Skills Classifier 1.0 - Doccano Baseline Classifier.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
3
2021-11-21T17:21:12.000Z
2021-12-10T21:19:57.000Z
skills_taxonomy_v2/analysis/sentence_classifier/notebooks/Skills Classifier 1.0 - Doccano Baseline Classifier.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
16
2021-10-06T11:20:35.000Z
2022-02-02T11:44:28.000Z
skills_taxonomy_v2/analysis/sentence_classifier/notebooks/Skills Classifier 1.0 - Doccano Baseline Classifier.py
india-kerle/skills-taxonomy-v2
a71366dfea3c35580dbafddba9470f83795805ae
[ "MIT" ]
1
2021-10-04T12:27:20.000Z
2021-10-04T12:27:20.000Z
# --- # jupyter: # jupytext: # cell_metadata_filter: -all # comment_magics: true # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.11.3 # kernelspec: # display_name: Python 3 (ipykernel) # ...
26.417112
130
0.696964
0
0
0
0
0
0
0
0
1,458
0.295142
c0a105c9215ae6c27a0f573e79372161fa79223f
3,054
py
Python
exhibitor/migrations/0001_initial.py
Make-Munich/SaBoT
cabc7e2f5e0f7166d94d2ef683f75d8d3be02834
[ "MIT" ]
19
2016-04-09T10:13:26.000Z
2020-06-21T23:14:16.000Z
exhibitor/migrations/0001_initial.py
Make-Munich/SaBoT
cabc7e2f5e0f7166d94d2ef683f75d8d3be02834
[ "MIT" ]
13
2017-01-14T20:42:45.000Z
2019-08-10T22:48:44.000Z
exhibitor/migrations/0001_initial.py
Make-Munich/SaBoT
cabc7e2f5e0f7166d94d2ef683f75d8d3be02834
[ "MIT" ]
9
2016-04-09T12:52:48.000Z
2018-08-16T19:08:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-11 13:45 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migratio...
57.622642
216
0.655206
2,830
0.926654
0
0
0
0
0
0
834
0.273084
c0a1254294cd0330d5440776840a312ac8bb2711
1,455
py
Python
pyatlas/tests/programatic_apikey_pytests.py
jasonmimick/pyatlas
4b0198d0c6f87691175d79629b2689f02e58ec8b
[ "Apache-2.0" ]
null
null
null
pyatlas/tests/programatic_apikey_pytests.py
jasonmimick/pyatlas
4b0198d0c6f87691175d79629b2689f02e58ec8b
[ "Apache-2.0" ]
null
null
null
pyatlas/tests/programatic_apikey_pytests.py
jasonmimick/pyatlas
4b0198d0c6f87691175d79629b2689f02e58ec8b
[ "Apache-2.0" ]
null
null
null
import pytest import pprint import string import random import os from pyatlas import AtlasClient #from testutils import * @pytest.fixture def public_key(): return "NGKMIHEO" @pytest.fixture def private_key(): return "66bcc7de-b0de-4d8d-9695-ef97637c6895" @pytest.fixture def client(public_key, private_key): r...
25.982143
103
0.707904
0
0
0
0
577
0.396564
0
0
429
0.294845
c0a2cc928103a456829c10c8f15fb433031cebc9
6,036
py
Python
etils/epath/abstract_path.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
13
2021-12-14T19:18:53.000Z
2022-03-30T17:09:20.000Z
etils/epath/abstract_path.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
2
2022-01-07T01:34:33.000Z
2022-01-12T01:35:33.000Z
etils/epath/abstract_path.py
google/etils
ff4c222cd6ce2f416d66a3cd64b39125f5ad25de
[ "Apache-2.0" ]
1
2022-01-04T14:34:30.000Z
2022-01-04T14:34:30.000Z
# Copyright 2022 The etils 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 law or agreed to in wr...
28.338028
98
0.650431
4,949
0.819914
0
0
1,902
0.315109
0
0
2,594
0.429755
c0a387ecd74cdd18e1dae76a145f773dea75a7b7
262
py
Python
src/syntax/statements/__init__.py
andaviaco/tronido
08a1619a0e8c10f35ed6710eb6e1f72dc5b87421
[ "MIT" ]
null
null
null
src/syntax/statements/__init__.py
andaviaco/tronido
08a1619a0e8c10f35ed6710eb6e1f72dc5b87421
[ "MIT" ]
null
null
null
src/syntax/statements/__init__.py
andaviaco/tronido
08a1619a0e8c10f35ed6710eb6e1f72dc5b87421
[ "MIT" ]
null
null
null
from .ifstat import IfStat from .returnstat import ReturnStat from .whilestat import WhileStat from .breakstat import BreakStat from .switchstat import SwitchStat from .casestat import CaseStat from .forstat import ForStat from .continuestat import ContinueStat
29.111111
38
0.847328
0
0
0
0
0
0
0
0
0
0
c0a3c20650d9f2b0b50513762c0375912b29d194
2,594
py
Python
tests/test_action_guest_process_start.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
null
null
null
tests/test_action_guest_process_start.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
2
2019-03-25T18:03:02.000Z
2019-03-26T13:13:59.000Z
tests/test_action_guest_process_start.py
lingfish/stackstorm-vsphere
49199f5ebdc05b70b7504962e104642b0c30ba30
[ "Apache-2.0" ]
1
2021-03-05T10:12:21.000Z
2021-03-05T10:12:21.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
43.233333
74
0.658443
1,663
0.641095
0
0
1,539
0.593292
0
0
1,057
0.407479
c0a3f676d422bbdd29b5d1ae6fd198e164330819
4,192
py
Python
src/soda/mutator.py
UCLA-VAST/soda
1b3994ded643d82ebc2fce7b1eb1d13c70800897
[ "MIT" ]
9
2020-05-09T19:52:46.000Z
2021-09-15T13:45:27.000Z
src/soda/mutator.py
UCLA-VAST/soda
1b3994ded643d82ebc2fce7b1eb1d13c70800897
[ "MIT" ]
1
2021-07-26T08:51:49.000Z
2021-07-26T08:51:49.000Z
src/soda/mutator.py
UCLA-VAST/soda
1b3994ded643d82ebc2fce7b1eb1d13c70800897
[ "MIT" ]
1
2020-10-28T03:06:44.000Z
2020-10-28T03:06:44.000Z
from typing import ( Iterable, Mapping, MutableMapping, Optional, Tuple, TypeVar, Union, ) import collections import logging import operator import types from haoda import ir from soda import tensor import soda.visitor _logger = logging.getLogger().getChild(__name__) def shift(obj, offs...
32.246154
80
0.669132
0
0
0
0
0
0
0
0
1,741
0.415315
c0a4975e4ff94754e10e515af8e9f52525f2cf81
485
py
Python
tests/skillmap_parser_test.py
niyue/skillmap
ca1011d5f822134ad1d7c5f7f243da30a0731170
[ "MIT" ]
69
2022-02-27T13:05:20.000Z
2022-03-31T23:12:48.000Z
tests/skillmap_parser_test.py
chandrab/skillmap
6d07dc5392b0fd66d310db8cb85051cf9e0e93df
[ "MIT" ]
1
2022-02-27T22:44:36.000Z
2022-03-02T01:15:52.000Z
tests/skillmap_parser_test.py
chandrab/skillmap
6d07dc5392b0fd66d310db8cb85051cf9e0e93df
[ "MIT" ]
2
2022-02-27T23:37:15.000Z
2022-03-14T12:32:22.000Z
from skillmap.skillmap_parser import SkillMapParser def test_parse_toml(): parser = SkillMapParser() skill_map = parser.parse('tests/url_shortener.toml') assert skill_map assert skill_map['skillmap']['name'] == "url shortener" assert skill_map['groups']['webui']['name'] == "web ui" assert skil...
40.416667
93
0.682474
0
0
0
0
0
0
0
0
196
0.404124
c0a71acf6116e8faa1f0455b3919ee53b2e3be9c
2,923
py
Python
htdocs/plotting/auto/scripts/p66.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
1
2019-10-07T17:01:24.000Z
2019-10-07T17:01:24.000Z
htdocs/plotting/auto/scripts/p66.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
null
null
null
htdocs/plotting/auto/scripts/p66.py
jamayfieldjr/iem
275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a
[ "MIT" ]
null
null
null
"""Consec days""" import calendar from pandas.io.sql import read_sql from pyiem.plot.use_agg import plt from pyiem.util import get_autoplot_context, get_dbconn PDICT = {'above': 'Temperature At or Above (AOA) Threshold', 'below': 'Temperature Below Threshold'} PDICT2 = {'high': 'High Temperature', ...
34.388235
75
0.584673
0
0
0
0
0
0
0
0
1,234
0.422169
c0a82c8edb06be2ad657e3733a1e2ee863cd955f
32
py
Python
resolwe/rest/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
27
2015-12-07T18:29:12.000Z
2022-03-16T08:01:47.000Z
resolwe/rest/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
681
2015-12-01T11:52:24.000Z
2022-03-21T07:43:37.000Z
resolwe/rest/__init__.py
plojyon/resolwe
1bee6f0860fdd087534adf1680e9350d79ab97cf
[ "Apache-2.0" ]
28
2015-12-01T08:32:57.000Z
2021-12-14T00:04:16.000Z
"""Resolwe REST API helpers."""
16
31
0.65625
0
0
0
0
0
0
0
0
31
0.96875
c0a873492ea0286949973b05633bb259a0fc0b1d
422
py
Python
requests/requests-custom_authentication.py
all3g/pieces
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
34
2016-10-31T02:05:24.000Z
2018-11-08T14:33:13.000Z
requests/requests-custom_authentication.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
2
2017-05-11T03:00:31.000Z
2017-11-01T23:37:37.000Z
requests/requests-custom_authentication.py
join-us/python-programming
bc378fd22ddc700891fe7f34ab0d5b341141e434
[ "CNRI-Python" ]
21
2016-08-19T09:05:45.000Z
2018-11-08T14:33:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from requests.auth import AuthBase class PizzaAuth(AuthBase): """Attaches HTTP Pizza Authentication to the given Request object.""" def __init__(self, username): # setup any auth-related data here. self.username = username def __call__(self, r): ...
24.823529
73
0.64455
341
0.808057
0
0
0
0
0
0
184
0.436019
c0a93dc0b3c06bf5e6cdc0aa43def476e965448d
866
py
Python
csv_test.py
mii012345/deep-learning
660785157446583eefeefa9d5dc25927aab6a9e4
[ "MIT" ]
3
2017-06-04T06:59:38.000Z
2017-06-05T14:01:48.000Z
csv_test.py
mii012345/deep-learning
660785157446583eefeefa9d5dc25927aab6a9e4
[ "MIT" ]
null
null
null
csv_test.py
mii012345/deep-learning
660785157446583eefeefa9d5dc25927aab6a9e4
[ "MIT" ]
null
null
null
import csv import numpy as np import pickle with open('data (2).csv','r') as f: csv = csv.reader(f) csvlist = [] for i in csv: csvlist.append(i) #6行目から mas = [] for i in range(364): i+=6 a = 0 b = 0 c = 0 date = csvlist[i][0] weather = csvlist[i][1] ...
24.055556
207
0.489607
0
0
0
0
0
0
0
0
149
0.170481
c0ab2b2d4a6d03d592483deeff8d92956a06c0e7
287
py
Python
src/test_main.py
HenrikPilz/BMEcatConverter
28c6840fc70a3f04e3eae5fc7be32c7bc779c1da
[ "BSD-3-Clause" ]
1
2021-03-14T08:20:51.000Z
2021-03-14T08:20:51.000Z
src/test_main.py
HenrikPilz/BMEcatConverter
28c6840fc70a3f04e3eae5fc7be32c7bc779c1da
[ "BSD-3-Clause" ]
1
2021-11-29T09:56:18.000Z
2021-12-01T22:01:13.000Z
src/test_main.py
HenrikPilz/BMEcatConverter
28c6840fc70a3f04e3eae5fc7be32c7bc779c1da
[ "BSD-3-Clause" ]
2
2021-08-30T08:14:34.000Z
2021-09-28T15:10:23.000Z
import os import test import unittest def tests(): if not os.path.exists("../test_output"): os.makedirs(os.path.join(os.path.dirname(__file__), "../test_output"), exist_ok=True) unittest.main(test) # if __name__ == '__main__': # Datenmodultests tests()
19.133333
94
0.648084
0
0
0
0
0
0
0
0
79
0.275261
c0ab90f34a7bc1c416809bd67bdc787e6a30c4a3
99
py
Python
problem/01000~09999/02857/2857.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-19T16:37:44.000Z
2019-04-19T16:37:44.000Z
problem/01000~09999/02857/2857.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
1
2019-04-20T11:42:44.000Z
2019-04-20T11:42:44.000Z
problem/01000~09999/02857/2857.py3.py
njw1204/BOJ-AC
1de41685725ae4657a7ff94e413febd97a888567
[ "MIT" ]
3
2019-04-19T16:37:47.000Z
2021-10-25T00:45:00.000Z
a=1 for i in range(5): if 'FBI' in input(): print(i+1,end=' ') a=0 if a: print('HE GOT AWAY!')
16.5
27
0.555556
0
0
0
0
0
0
0
0
22
0.222222
c0abaf869bbe93d0c4be20bb53db1ca7697f6d3d
1,971
py
Python
ntm/ntm.py
clemkoa/ntm
723d4ebea63f8f9439fd1c56f36e3cb680c8a277
[ "MIT" ]
41
2020-05-19T05:48:04.000Z
2021-11-24T11:31:08.000Z
ntm/ntm.py
clemkoa/ntm
723d4ebea63f8f9439fd1c56f36e3cb680c8a277
[ "MIT" ]
3
2021-06-07T09:00:59.000Z
2021-12-30T17:21:07.000Z
ntm/ntm.py
clemkoa/ntm
723d4ebea63f8f9439fd1c56f36e3cb680c8a277
[ "MIT" ]
4
2020-12-31T17:39:42.000Z
2021-12-29T14:11:43.000Z
import torch from torch import nn import torch.nn.functional as F from ntm.controller import Controller from ntm.memory import Memory from ntm.head import ReadHead, WriteHead class NTM(nn.Module): def __init__(self, vector_length, hidden_size, memory_size, lstm_controller=True): super(NTM, self).__init__(...
50.538462
118
0.742263
1,793
0.909691
0
0
0
0
0
0
13
0.006596
c0af4a37c3b086f10b2224f1101fb1be4a7fdce1
3,468
py
Python
facebook_business/adobjects/adkeywordstats.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adkeywordstats.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
null
null
null
facebook_business/adobjects/adkeywordstats.py
enricapq/facebook-python-business-sdk
49c569ac5cf812b1bcb533520c35896b0436fa4c
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
35.387755
79
0.684544
1,878
0.541522
0
0
176
0.05075
0
0
1,992
0.574394
c0b3ae1a797739b59abdda1942df55aaa68ec172
1,198
py
Python
DQM/TrackingMonitorSource/python/StandaloneTrackMonitor_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
DQM/TrackingMonitorSource/python/StandaloneTrackMonitor_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
DQM/TrackingMonitorSource/python/StandaloneTrackMonitor_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer standaloneTrackMonitor = DQMEDAnalyzer('StandaloneTrackMonitor', moduleName = cms.untracked.string("StandaloneTrackMonitor"), folderName = cms.untracked.string("highPurityTracks"), vertexTag ...
59.9
104
0.687813
0
0
0
0
0
0
0
0
202
0.168614
c0b40331943eedccfdcfa2dfe402031536f745fe
7,266
py
Python
tests/test_spatialvector.py
jungr-ait/spatialmath-python
140d499e733ed9775762df90d36e4b2c4c2fc6eb
[ "MIT" ]
183
2020-04-24T02:49:36.000Z
2022-03-31T16:13:38.000Z
tests/test_spatialvector.py
jungr-ait/spatialmath-python
140d499e733ed9775762df90d36e4b2c4c2fc6eb
[ "MIT" ]
29
2020-05-21T04:13:33.000Z
2022-02-15T12:46:17.000Z
tests/test_spatialvector.py
jungr-ait/spatialmath-python
140d499e733ed9775762df90d36e4b2c4c2fc6eb
[ "MIT" ]
39
2020-05-06T11:22:55.000Z
2022-03-21T14:15:16.000Z
import unittest import numpy.testing as nt import numpy as np from spatialmath.spatialvector import * class TestSpatialVector(unittest.TestCase): def test_list_powers(self): x = SpatialVelocity.Empty() self.assertEqual(len(x), 0) x.append(SpatialVelocity([1, 2, 3, 4, 5, 6])) self...
32.58296
90
0.579136
7,019
0.966006
0
0
0
0
0
0
370
0.050922
c0b679addf1f8188d5d6b4db7a0f798d7c5b295a
3,048
py
Python
python/meta-regex.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
null
null
null
python/meta-regex.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
null
null
null
python/meta-regex.py
tbedford/code-snippets
9afe36c2726829f14fa5ec11acb8214bed704938
[ "MIT" ]
1
2018-10-09T02:03:12.000Z
2018-10-09T02:03:12.000Z
# \s Returns a match where the string contains a white space character # \S Returns a match where the string DOES NOT contain a white space character import re s1 = ''' --- slug: python-non-greedy-regexes title: Python non-greedy regexes summary: How to make Python regexes a little less greedy using the `?` modifier....
26.973451
392
0.686024
0
0
0
0
0
0
0
0
2,913
0.955709
c0b773458653a85f2fb1e0a33ea41844604c6b4f
3,006
py
Python
xdl-algorithm-solution/DIN_WITH_MOGUJIE_DATA/script/train.py
xiaobaoding/x-deeplearning
1280043aba15ff57ac5e973bcce2489c698380d2
[ "Apache-2.0" ]
null
null
null
xdl-algorithm-solution/DIN_WITH_MOGUJIE_DATA/script/train.py
xiaobaoding/x-deeplearning
1280043aba15ff57ac5e973bcce2489c698380d2
[ "Apache-2.0" ]
null
null
null
xdl-algorithm-solution/DIN_WITH_MOGUJIE_DATA/script/train.py
xiaobaoding/x-deeplearning
1280043aba15ff57ac5e973bcce2489c698380d2
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 # Copyright (C) 2016-2018 Alibaba Group Holding Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
30.06
112
0.663007
0
0
0
0
0
0
0
0
1,348
0.448436
c0b94e63b8ef518a54d1b8787a0fbfafc3083387
53
py
Python
script/__init__.py
KaoruNishikawa/nanten_tools
f5af30a40e8d558ae247c8e864fdea5edc0f5fb7
[ "MIT" ]
null
null
null
script/__init__.py
KaoruNishikawa/nanten_tools
f5af30a40e8d558ae247c8e864fdea5edc0f5fb7
[ "MIT" ]
null
null
null
script/__init__.py
KaoruNishikawa/nanten_tools
f5af30a40e8d558ae247c8e864fdea5edc0f5fb7
[ "MIT" ]
null
null
null
__version__ = "0.1.0" __author__ = "Kaoru Nishikawa"
17.666667
30
0.716981
0
0
0
0
0
0
0
0
24
0.45283
c0ba497faffdf2c98170646061c1181fdbd7ee74
1,542
py
Python
feature_extract/config.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
null
null
null
feature_extract/config.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
2
2016-12-09T21:16:28.000Z
2016-12-09T21:29:10.000Z
feature_extract/config.py
bradysalz/MinVAD
4d4a396b381bbb4714b434f60e09fb2fa7d3c474
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 21 18:51:11 2016 @author: brady """ #################### TRAINING #################### # POS DIRS TRAIN_CLEAN = r'C:\Users\brady\GitHub\MinVAD\data\train\positive\clean' TRAIN_0DB = r'C:\Users\brady\GitHub\MinVAD\data\train\positive\0db' TRAIN_5DB = r'C:\Users\brady\GitHu...
41.675676
106
0.732815
0
0
0
0
0
0
0
0
1,162
0.753567
c0ba62a6a723e9a0a8608f8d14f5550d2b17eba4
6,735
py
Python
kuka_arm/scripts/IK_server.py
congthanh184/RoboND-Kinematics-Project
4c14ad5a9461fa5cdf465a04f8f11ff296b00760
[ "MIT" ]
null
null
null
kuka_arm/scripts/IK_server.py
congthanh184/RoboND-Kinematics-Project
4c14ad5a9461fa5cdf465a04f8f11ff296b00760
[ "MIT" ]
null
null
null
kuka_arm/scripts/IK_server.py
congthanh184/RoboND-Kinematics-Project
4c14ad5a9461fa5cdf465a04f8f11ff296b00760
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2017 Udacity Inc. # # This file is part of Robotic Arm: Pick and Place project for Udacity # Robotics nano-degree program # # All Rights Reserved. # Author: Harsh Pandya # import modules import rospy import tf from kuka_arm.srv import * from trajectory_msgs.msg import JointTraje...
35.634921
119
0.621678
3,850
0.571641
0
0
0
0
0
0
1,416
0.210245
c0bafd320c0a8a62b60bbf8a3554bd41b71dc5db
12,205
py
Python
bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
null
null
null
bin/ADFRsuite/lib/python2.7/site-packages/radical/utils/profile.py
AngelRuizMoreno/Jupyter_Dock_devel
6d23bc174d5294d1e9909a0a1f9da0713042339e
[ "MIT" ]
1
2021-11-04T21:48:14.000Z
2021-11-04T21:48:14.000Z
import os import csv import glob import time import threading from .misc import name2env as ru_name2env from .misc import get_hostname as ru_get_hostname from .misc import get_hostip as ru_get_hostip from .read_json import read_json as ru_read_json # ---------------------------------...
28.990499
84
0.498484
5,151
0.42204
0
0
62
0.00508
0
0
5,162
0.422941
c0bb7b8a74c23f921be8c3f93658d3fa62727ccc
5,214
py
Python
input_fn.py
ilyakhov/pytorch-word2vec
bb9b0ed408a12e3652d2d897330292b7b93c7997
[ "MIT" ]
12
2019-05-22T13:08:42.000Z
2021-07-11T07:12:37.000Z
input_fn.py
ilyakhov/pytorch-word2vec
bb9b0ed408a12e3652d2d897330292b7b93c7997
[ "MIT" ]
null
null
null
input_fn.py
ilyakhov/pytorch-word2vec
bb9b0ed408a12e3652d2d897330292b7b93c7997
[ "MIT" ]
1
2021-02-20T09:04:19.000Z
2021-02-20T09:04:19.000Z
import numpy as np import torch from torch.utils.data import Dataset class CBOWDataSet(Dataset): def __init__(self, corpus, pipeline='hier_softmax', nodes_index=None, turns_index=None, vocab_size=None, neg_samples=None, ...
36.71831
77
0.575374
5,145
0.98601
0
0
0
0
0
0
1,518
0.290916
c0bc31b78e193431b864fc09c2a40bbe17627b76
301
py
Python
1 ano/logica-de-programacao/condicionais/peso-animais-maior-menor.py
Biguelini/Atividades-Tecnico-em-Informatica
468e9ac05a666143d8752d053854ecc22bcc8b79
[ "MIT" ]
4
2021-04-27T01:00:32.000Z
2021-09-24T16:25:48.000Z
1 ano/logica-de-programacao/condicionais/peso-animais-maior-menor.py
Biguelini/Atividades-Tecnico-em-Informatica
468e9ac05a666143d8752d053854ecc22bcc8b79
[ "MIT" ]
null
null
null
1 ano/logica-de-programacao/condicionais/peso-animais-maior-menor.py
Biguelini/Atividades-Tecnico-em-Informatica
468e9ac05a666143d8752d053854ecc22bcc8b79
[ "MIT" ]
1
2021-05-12T18:28:06.000Z
2021-05-12T18:28:06.000Z
peso1 = float(input('Digite o peso do primeiro animal... ')) peso2 = float(input('Digite o peso do segundo animal... ')) if peso1 > peso2: print('O primeiro animal é mais pesado') elif peso1 < peso2: print('O segundo animal é mais pesado') else: print('Os dois animais têm o mesmo peso')
30.1
60
0.681063
0
0
0
0
0
0
0
0
177
0.582237
c0bd2f1bb8af7bb26fd427d057716fce6e53b345
607
py
Python
uniform_distribution.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
uniform_distribution.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
uniform_distribution.py
khinthandarkyaw98/Python_Practice
9b431129c79315a57dae81048a22bf85c4b5132c
[ "MIT" ]
null
null
null
# uniform_distribution # used to describe the probability where every event has equal chances of # occuring """ E.g. Generation of random numbers. It has three parameters. a - lower bound - default 0.0 b - upper bound - default 1.0 size = The shape of the returned array """ # 2x3 uniform distribution...
20.233333
75
0.70346
0
0
0
0
0
0
0
0
383
0.630972
c0c0cf39ce27029feb9aa7a105da2d19af17d25d
1,563
py
Python
delivery/services/external_program_service.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
null
null
null
delivery/services/external_program_service.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
18
2016-11-10T14:32:54.000Z
2019-10-14T07:07:54.000Z
delivery/services/external_program_service.py
mariya/arteria-delivery
ec2fd79cfc6047a44dd251183b971535e9afd0dc
[ "MIT" ]
6
2016-10-18T12:16:46.000Z
2019-09-11T11:38:17.000Z
from tornado.process import Subprocess from tornado import gen from subprocess import PIPE from delivery.models.execution import ExecutionResult, Execution class ExternalProgramService(object): """ A service for running external programs """ @staticmethod def run(cmd): """ Run...
29.490566
82
0.621881
1,399
0.895074
470
0.300704
1,284
0.821497
0
0
608
0.388996
c0c468474802f951d70f92ebb743554a56f1d46b
1,577
py
Python
Estructuras de control/ejercicio12.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
Estructuras de control/ejercicio12.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
Estructuras de control/ejercicio12.py
mariapdm/talleres_de_algoritmos
fc9ad8f8ad2c3cb4f4ae0a7fad2e36824bba2afb
[ "MIT" ]
null
null
null
""" Datos de entrada nota_examen_ matematicas-->nem-->float nota_ta1_matematicas-->ntm--> nota_ta2_matematicas-->nttm--> nota_ta3_matematicas-->ntttm--> nota_examen_fisica-->nef-->float nota_ta1_fisica-->ntf-->float nota_ta2_fisica-->nttf-->float nota_examen_quimica-->neq-->float nota_ta1_quimica-->ntq-->float nota_ta2...
38.463415
70
0.726062
0
0
0
0
0
0
0
0
1,191
0.748586
c0c491c66e363814a85776c34ddeffc5e419a0b3
9,667
py
Python
xraydb/materials.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
xraydb/materials.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
xraydb/materials.py
chemmatcars/XModFit
7d1298448d1908d78797fd67ce0a00ecfaf17629
[ "MIT" ]
null
null
null
import os import numpy as np from collections import namedtuple from .chemparser import chemparse from .xray import mu_elam, atomic_mass from .utils import get_homedir _materials = None Material = namedtuple('Material', ('formula', 'density', 'name', 'categories')) def get_user_materialsfile(): """return name fo...
31.90429
91
0.58529
0
0
0
0
0
0
0
0
4,664
0.482466
c0c62d4eee91d75a65403ff152657c9c03089c57
1,069
py
Python
client.py
simondlevy/sockets
f49dd677b6508859f01c9c54101b38e802d6370e
[ "MIT" ]
null
null
null
client.py
simondlevy/sockets
f49dd677b6508859f01c9c54101b38e802d6370e
[ "MIT" ]
null
null
null
client.py
simondlevy/sockets
f49dd677b6508859f01c9c54101b38e802d6370e
[ "MIT" ]
1
2018-06-12T03:32:26.000Z
2018-06-12T03:32:26.000Z
#!/usr/bin/env python3 ''' Server script for simple client/server example Copyright (C) Simon D. Levy 2021 MIT License ''' from threading import Thread from time import sleep import socket from struct import unpack from header import ADDR, PORT def comms(data): ''' Communications thread ''' # Conn...
18.431034
65
0.613658
0
0
0
0
0
0
0
0
418
0.39102
c0c65039eac0d1c182008b9f53dbb8727df88022
151
py
Python
home/views.py
kerol/kerolgaodotcom
7993bb5f40dd1f6b3ebdef4d90728cd77651c026
[ "BSD-3-Clause" ]
1
2016-03-02T02:49:00.000Z
2016-03-02T02:49:00.000Z
home/views.py
kerol/kerolgaodotcom
7993bb5f40dd1f6b3ebdef4d90728cd77651c026
[ "BSD-3-Clause" ]
null
null
null
home/views.py
kerol/kerolgaodotcom
7993bb5f40dd1f6b3ebdef4d90728cd77651c026
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf8 -*- from django.shortcuts import render # Create your views here. def index(request): return render(request, 'about.html')
15.1
40
0.682119
0
0
0
0
0
0
0
0
60
0.397351
c0c6c96cefa40fab2593e89ee811e26649ffff4f
15,126
py
Python
old/compute_T.py
azhan137/cylinder_t_matrix
73a496c07dbbb02896b2baf727d452765da9aac3
[ "MIT" ]
1
2022-03-18T11:52:36.000Z
2022-03-18T11:52:36.000Z
old/compute_T.py
AmosEgel/cylinder_t_matrix
78f6607993af5babdda384969c45cf3ac6461257
[ "MIT" ]
null
null
null
old/compute_T.py
AmosEgel/cylinder_t_matrix
78f6607993af5babdda384969c45cf3ac6461257
[ "MIT" ]
1
2020-12-07T13:11:00.000Z
2020-12-07T13:11:00.000Z
import numpy as np from numpy.polynomial import legendre from smuthi import spherical_functions as sf import bessel_functions as bf ##Codebase for computing the T-matrix and its derivative with respect to height and radius for a cylindrical scatterer # with circular cross-section in spherical coordinates. # # inputs: ...
52.703833
248
0.628719
0
0
0
0
0
0
0
0
3,519
0.232646
c0c7d98ec94365b9cf9f0e166a19f7b2371bc3ed
982
py
Python
run_tests.py
aquarioos/dvik-print
b897936168dab51c9e0f9fd84993065428896be4
[ "MIT" ]
1
2018-09-19T22:27:32.000Z
2018-09-19T22:27:32.000Z
run_tests.py
aquarioos/dvik-print
b897936168dab51c9e0f9fd84993065428896be4
[ "MIT" ]
null
null
null
run_tests.py
aquarioos/dvik-print
b897936168dab51c9e0f9fd84993065428896be4
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- from __future__ import division, absolute_import, print_function import os import sys import datetime as dt import dvik_print as dvp if __name__ == '__main__': print(sys.version) O = { 'lista': ['el1', 'el2', 1, 2, 3, 4, None, False], 'zbiór': {1, 2, 1, 2, 'a', 'a', 'b...
26.540541
98
0.566191
0
0
0
0
0
0
0
0
338
0.340726
c0c85207554af0054a2d3560e6e8d9cb080608eb
6,200
py
Python
nwb_conversion_tools/datainterfaces/ecephys/basesortingextractorinterface.py
miketrumpis/nwb-conversion-tools
4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1
[ "BSD-3-Clause" ]
null
null
null
nwb_conversion_tools/datainterfaces/ecephys/basesortingextractorinterface.py
miketrumpis/nwb-conversion-tools
4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1
[ "BSD-3-Clause" ]
null
null
null
nwb_conversion_tools/datainterfaces/ecephys/basesortingextractorinterface.py
miketrumpis/nwb-conversion-tools
4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1
[ "BSD-3-Clause" ]
null
null
null
"""Authors: Cody Baker and Ben Dichter.""" from abc import ABC from pathlib import Path import spikeextractors as se import numpy as np from pynwb import NWBFile, NWBHDF5IO from pynwb.ecephys import SpikeEventSeries from jsonschema import validate from ...basedatainterface import BaseDataInterface from ...utils.json_sc...
42.465753
119
0.647581
5,501
0.887258
0
0
0
0
0
0
2,634
0.424839
c0c8cb69c19ab4dd40d043117a7822abefc679ef
1,711
py
Python
buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
buildscripts/resmokelib/testing/testcases/cpp_libfuzzer_test.py
benety/mongo
203430ac9559f82ca01e3cbb3b0e09149fec0835
[ "Apache-2.0" ]
null
null
null
"""The libfuzzertest.TestCase for C++ libfuzzer tests.""" import datetime import os from buildscripts.resmokelib import core from buildscripts.resmokelib import utils from buildscripts.resmokelib.testing.fixtures import interface as fixture_interface from buildscripts.resmokelib.testing.testcases import interface c...
38.022222
100
0.707189
1,391
0.812975
0
0
0
0
0
0
504
0.294565
c0c904cad48edbd6699de73edf6362e41250b47a
509
py
Python
app/exceptions.py
syedwaseemjan/RiskManager
c788daf533b125740ccd1fb09acebe023ca286b7
[ "MIT" ]
null
null
null
app/exceptions.py
syedwaseemjan/RiskManager
c788daf533b125740ccd1fb09acebe023ca286b7
[ "MIT" ]
null
null
null
app/exceptions.py
syedwaseemjan/RiskManager
c788daf533b125740ccd1fb09acebe023ca286b7
[ "MIT" ]
null
null
null
class RiskManagerError(Exception): """Base application error class.""" def __init__(self, msg): self.msg = msg class RiskDoesNotExist(RiskManagerError): def __init__(self): super(RiskDoesNotExist, self).__init__( "No risk record found for the provided ID. Are you sure you hav...
25.45
99
0.681729
502
0.986248
0
0
0
0
0
0
172
0.337917
c0c9967167f2ebbfb12ea4280bc6aa6f0ee2cebd
1,278
py
Python
data_curation/genome_annotations/preprocess_SEA.py
talkowski-lab/rCNV2
fcc1142d8c13b58d18a37fe129e9bb4d7bd6641d
[ "MIT" ]
7
2021-01-28T15:46:46.000Z
2022-02-07T06:50:40.000Z
data_curation/genome_annotations/preprocess_SEA.py
talkowski-lab/rCNV2
fcc1142d8c13b58d18a37fe129e9bb4d7bd6641d
[ "MIT" ]
1
2021-03-02T01:33:53.000Z
2021-03-02T01:33:53.000Z
data_curation/genome_annotations/preprocess_SEA.py
talkowski-lab/rCNV2
fcc1142d8c13b58d18a37fe129e9bb4d7bd6641d
[ "MIT" ]
3
2021-02-21T19:49:12.000Z
2021-12-22T15:56:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2020 Ryan L. Collins <rlcollins@g.harvard.edu> # and the Talkowski Laboratory # Distributed under terms of the MIT license. """ Parse simple SEA super-enhancer BED by cell types """ import argparse import csv import subprocess def main(): """ ...
26.081633
89
0.622066
0
0
0
0
0
0
0
0
439
0.343505
c0cba6784c6a4d07543a90ca7bc4b5a773c81fe7
2,461
py
Python
src/transforms/imageCropDivide/dev/generate_nodenk.py
MrLixm/Foundry_Nuke
078115043b6a4c09bdcf1b5031e995ef296bd604
[ "Apache-2.0" ]
null
null
null
src/transforms/imageCropDivide/dev/generate_nodenk.py
MrLixm/Foundry_Nuke
078115043b6a4c09bdcf1b5031e995ef296bd604
[ "Apache-2.0" ]
null
null
null
src/transforms/imageCropDivide/dev/generate_nodenk.py
MrLixm/Foundry_Nuke
078115043b6a4c09bdcf1b5031e995ef296bd604
[ "Apache-2.0" ]
null
null
null
""" python>3 """ import os.path import re from pathlib import Path VERSION = 7 BASE = r""" set cut_paste_input [stack 0] version 12.2 v5 push $cut_paste_input Group { name imageCropDivide tile_color 0x5c3d84ff note_font_size 25 note_font_color 0xffffffff selected true xpos 411 ypos -125 addUserKnob {20 User} ...
25.905263
213
0.683056
0
0
0
0
0
0
0
0
1,439
0.584722
c0cd5d7d340b27b3217620ef4b12a1391841820b
2,294
py
Python
workflow/tests/test_experiment_qc.py
JAMKuttan/chipseq_analysis
f8e4853bfdb4de8540026ae0b23235d72a1114ad
[ "MIT" ]
null
null
null
workflow/tests/test_experiment_qc.py
JAMKuttan/chipseq_analysis
f8e4853bfdb4de8540026ae0b23235d72a1114ad
[ "MIT" ]
null
null
null
workflow/tests/test_experiment_qc.py
JAMKuttan/chipseq_analysis
f8e4853bfdb4de8540026ae0b23235d72a1114ad
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import pytest import os import pandas as pd from io import StringIO import experiment_qc test_output_path = os.path.dirname(os.path.abspath(__file__)) + \ '/../output/experimentQC/' DESIGN_STRING = """sample_id\texperiment_id\tbiosample\tfactor\ttreatment\treplicate\tcontrol_id...
30.586667
107
0.773322
0
0
0
0
1,748
0.761988
0
0
629
0.274194
c0d13bb4fa90665ac270a6c1d4953230e7cffcc2
371
py
Python
sensors/routing.py
edisondotme/motoPi
18ddd46d97a4db0918fd2c3cc1ffc60600158124
[ "MIT" ]
2
2021-05-10T22:04:36.000Z
2022-01-10T03:23:04.000Z
sensors/routing.py
edisondotme/motoPi
18ddd46d97a4db0918fd2c3cc1ffc60600158124
[ "MIT" ]
1
2017-02-13T08:18:49.000Z
2017-02-14T07:11:18.000Z
sensors/routing.py
edisondotme/motoPi
18ddd46d97a4db0918fd2c3cc1ffc60600158124
[ "MIT" ]
1
2021-05-10T22:04:57.000Z
2021-05-10T22:04:57.000Z
from channels.routing import route from .consumers import ws_message, ws_connect, ws_disconnect # TODO: Edit this to make proper use of channels.routing.route() or not channel_routing = { # route("websocket.receive", ws_message, path=r"^/chat/"), "websocket.connect": ws_connect, "websocket.receive": ws_mes...
30.916667
72
0.74124
0
0
0
0
0
0
0
0
191
0.514825
c0d1e420d8a5ef2c04e4e14f531037003c9ed4f0
3,626
py
Python
native_client_sdk/src/build_tools/tests/test_generate_make.py
junmin-zhu/chromium-rivertrail
eb1a57aca71fe68d96e48af8998dcfbe45171ee1
[ "BSD-3-Clause" ]
5
2018-03-10T13:08:42.000Z
2021-07-26T15:02:11.000Z
native_client_sdk/src/build_tools/tests/test_generate_make.py
quisquous/chromium
b25660e05cddc9d0c3053b3514f07037acc69a10
[ "BSD-3-Clause" ]
1
2015-07-21T08:02:01.000Z
2015-07-21T08:02:01.000Z
native_client_sdk/src/build_tools/tests/test_generate_make.py
jianglong0156/chromium.src
d496dfeebb0f282468827654c2b3769b3378c087
[ "BSD-3-Clause" ]
6
2016-11-14T10:13:35.000Z
2021-01-23T15:29:53.000Z
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import datetime import os import posixpath import subprocess import sys import unittest SCRIPT_DIR = os.path.dirname(o...
29.008
79
0.671539
2,667
0.735521
0
0
0
0
0
0
941
0.259515
c0d2686a32c098e3878691628a43110629043f78
1,089
py
Python
main.py
YasunoriMATSUOKA/photo-hunt
e3ca9e8f42c8a6c6b02c9fdcee9ea44a30d18f66
[ "MIT" ]
null
null
null
main.py
YasunoriMATSUOKA/photo-hunt
e3ca9e8f42c8a6c6b02c9fdcee9ea44a30d18f66
[ "MIT" ]
null
null
null
main.py
YasunoriMATSUOKA/photo-hunt
e3ca9e8f42c8a6c6b02c9fdcee9ea44a30d18f66
[ "MIT" ]
null
null
null
from PhotoHunt import PhotoHunt # Todo: 各URLあたり1~2個の未検出、誤検出等の課題はあるが、概ね意図通り動作する状態となった url_list = [ "https://www.saizeriya.co.jp/entertainment/images/1710/body.png", "https://www.saizeriya.co.jp/entertainment/images/1801/body.png", "https://www.saizeriya.co.jp/entertainment/images/1804/body.png", "https:...
47.347826
69
0.733701
0
0
0
0
0
0
0
0
962
0.824336
c0d317f2e8f8665da9e599f1dc02201ed251fea1
568
py
Python
Curso_em_Video_py3/ex069.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
1
2021-05-11T12:39:43.000Z
2021-05-11T12:39:43.000Z
Curso_em_Video_py3/ex069.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
null
null
null
Curso_em_Video_py3/ex069.py
Rodrigo98Matos/Projetos_py
6428e2c09d28fd8a717743f4434bc788e7d7d3cc
[ "MIT" ]
null
null
null
a = b = c = 0 while True: flag = '' i = -1 s = '' while i < 0: i = int(input('idade:\t')) while s != 'M' and s != 'F': s = str(input('Sexo [M] [F]:\t')).strip().upper()[0] if i > 18: a += 1 if s == 'M': b += 1 elif i < 20: c += 1 while flag != ...
27.047619
100
0.452465
0
0
0
0
0
0
0
0
188
0.330404