hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
acfeba09fc329f8bebf73e417bce0ef193bcade7
20,991
py
Python
readthedocs/proxito/views/serve.py
eric-wieser/readthedocs.org
fb01c6d9d78272e3f4fd146697e8760c04e4fbb6
[ "MIT" ]
null
null
null
readthedocs/proxito/views/serve.py
eric-wieser/readthedocs.org
fb01c6d9d78272e3f4fd146697e8760c04e4fbb6
[ "MIT" ]
6
2021-06-09T19:38:56.000Z
2022-03-12T00:56:56.000Z
readthedocs/proxito/views/serve.py
mondeja/readthedocs.org
fb01c6d9d78272e3f4fd146697e8760c04e4fbb6
[ "MIT" ]
null
null
null
"""Views for doc serving.""" import itertools import logging from urllib.parse import urlparse from django.conf import settings from django.core.files.storage import get_storage_class from django.http import Http404, HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.urls import resolv...
39.162313
137
0.601972
acfeba2254b69edf2d5f2681dd483c2d15b43323
2,636
py
Python
python/GenomeWorkflows/upload_genomes_folder.py
FabricGenomics/omicia_api_examples
b761d40744032720bdf1a4f59877e16b8b1dfcf0
[ "MIT" ]
2
2017-06-13T13:59:17.000Z
2021-12-17T18:52:08.000Z
python/GenomeWorkflows/upload_genomes_folder.py
FabricGenomics/omicia_api_examples
b761d40744032720bdf1a4f59877e16b8b1dfcf0
[ "MIT" ]
1
2017-11-22T00:20:19.000Z
2017-11-22T00:41:05.000Z
python/GenomeWorkflows/upload_genomes_folder.py
FabricGenomics/omicia_api_examples
b761d40744032720bdf1a4f59877e16b8b1dfcf0
[ "MIT" ]
3
2020-03-05T18:41:36.000Z
2021-01-14T08:31:30.000Z
"""Upload multiple genomes to an existing project from a folder. """ import argparse import os import requests from requests.auth import HTTPBasicAuth import sys import simplejson as json # Load environment variables for request authentication parameters if "FABRIC_API_PASSWORD" not in os.environ: sys.exit("FABRIC...
35.146667
103
0.683612
acfeba8c6e1987b3c94c706e1e761a7ccccb4078
2,674
py
Python
simsimpy/subset.py
nishbo/simsimpy
54882ba7cd989f9c51ebd8ed06d4138b05d89ee0
[ "Apache-2.0" ]
3
2018-07-25T15:31:51.000Z
2018-07-26T20:55:09.000Z
simsimpy/subset.py
nishbo/simsimpy
54882ba7cd989f9c51ebd8ed06d4138b05d89ee0
[ "Apache-2.0" ]
null
null
null
simsimpy/subset.py
nishbo/simsimpy
54882ba7cd989f9c51ebd8ed06d4138b05d89ee0
[ "Apache-2.0" ]
null
null
null
from math import floor, ceil # from __future__ import print_function class SubsetStorage(object): """Stores portion of input data, to save space. Does an injection of data of input size into a list of buf size. Supports __getitem__, __setitem__, __len__, __contains__, __delitem__, __str__ magic, appe...
23.663717
77
0.550112
acfebb68b95bce8efcb5451057d560908170a03c
787
py
Python
bin/pythonista.py
carls-app/weekly-movie-tools
e6aacbf7488918b103a7476a59f22e61be25884d
[ "MIT" ]
1
2020-01-17T07:48:45.000Z
2020-01-17T07:48:45.000Z
bin/pythonista.py
carls-app/weekly-movie-tools
e6aacbf7488918b103a7476a59f22e61be25884d
[ "MIT" ]
3
2018-02-26T21:27:35.000Z
2021-09-07T23:30:37.000Z
bin/pythonista.py
carls-app/weekly-movie-tools
e6aacbf7488918b103a7476a59f22e61be25884d
[ "MIT" ]
1
2018-02-26T22:05:10.000Z
2018-02-26T22:05:10.000Z
#!/usr/bin/env python3 import sys import dialogs from datetime import date, timedelta from lib import get_movie def main(): today = date.today() friday = today + timedelta((4 - today.weekday()) % 7) args = dialogs.form_dialog(title="Movie", fields=[ { 'type': 'text', 'key...
19.675
64
0.503177
acfebc0cb76f9f11c7c88df5107bc42b2638c884
1,805
py
Python
test_utilities/src/d1_test/mock_api/tests/test_catch_all.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
15
2016-10-28T13:56:52.000Z
2022-01-31T19:07:49.000Z
test_utilities/src/d1_test/mock_api/tests/test_catch_all.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
56
2017-03-16T03:52:32.000Z
2022-03-12T01:05:28.000Z
test_utilities/src/d1_test/mock_api/tests/test_catch_all.py
DataONEorg/d1_python
dfab267c3adea913ab0e0073ed9dc1ee50b5b8eb
[ "Apache-2.0" ]
11
2016-05-31T16:22:02.000Z
2020-10-05T14:37:10.000Z
# This work was created by participants in the DataONE project, and is # jointly copyrighted by participating institutions in DataONE. For # more information on DataONE, see our web site at http://dataone.org. # # Copyright 2009-2019 DataONE # # Licensed under the Apache License, Version 2.0 (the "License"); # you ma...
41.022727
88
0.753463
acfebc95a82dd6b8beee78bcb5c25818d2d93416
6,731
py
Python
layernorm/layer_norm_layers.py
awesome-archive/nn_playground
798418b0ce09d2ec66d45cf436a1d95494e01ef7
[ "MIT" ]
445
2016-12-28T13:11:25.000Z
2022-03-14T03:05:34.000Z
layernorm/layer_norm_layers.py
Edresson/nn_playground
460b8bb7823047292189f91de3201a7a3d2677a9
[ "MIT" ]
21
2017-01-11T09:01:02.000Z
2022-02-16T06:35:03.000Z
layernorm/layer_norm_layers.py
Edresson/nn_playground
460b8bb7823047292189f91de3201a7a3d2677a9
[ "MIT" ]
174
2016-12-29T06:08:46.000Z
2022-02-24T04:29:22.000Z
from keras.engine import Layer, InputSpec from keras.layers import LSTM, GRU from keras import initializers, regularizers from keras import backend as K import numpy as np def to_list(x): if type(x) not in [list, tuple]: return [x] else: return list(x) def LN(x, gamma, beta, epsilon=1e-6, a...
41.549383
87
0.522805
acfebe2f63060b6505d32c4dc6920f1e5effe402
864
py
Python
news-notifier/news.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
news-notifier/news.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
news-notifier/news.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
1
2019-05-29T09:54:14.000Z
2019-05-29T09:54:14.000Z
""" -*- coding: utf-8 -*- ======================== Python Desktop News Notifier ======================== """ import feedparser import notify2 import time import os def Parsefeed(): f = feedparser.parse("https://www.thehindubusinessline.com/feeder/default.rss") # f = feedparser.parse("https://www.coindesk.co...
21.6
88
0.571759
acfebe3683f6c65f0c5ea17d2902e383b907b16a
6,092
py
Python
saleor/graphql/core/utils/__init__.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2022-03-22T02:54:38.000Z
2022-03-22T02:54:38.000Z
saleor/graphql/core/utils/__init__.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
86
2021-11-01T04:51:55.000Z
2022-03-30T16:30:16.000Z
saleor/graphql/core/utils/__init__.py
victor-abz/saleor
f8e2b49703d995d4304d5a690dbe9c83631419d0
[ "CC-BY-4.0" ]
1
2021-12-28T18:02:49.000Z
2021-12-28T18:02:49.000Z
import binascii import os import secrets from typing import TYPE_CHECKING, Type, Union from uuid import UUID import graphene from django.core.exceptions import ValidationError from django.core.files.uploadedfile import SimpleUploadedFile from graphene import ObjectType from graphql.error import GraphQLError from PIL i...
31.729167
87
0.657584
acfebe91af6e9fd4bcc2950ff95a64d538fedf93
150
py
Python
clientLogic/__init__.py
JoelEager/pyTanks.Player
a35a653e9df2416c63204aba87a95f33e6815b63
[ "MIT" ]
2
2017-03-09T15:32:55.000Z
2017-09-04T11:25:41.000Z
clientLogic/__init__.py
JoelEager/pyTanks.Player
a35a653e9df2416c63204aba87a95f33e6815b63
[ "MIT" ]
null
null
null
clientLogic/__init__.py
JoelEager/pyTanks.Player
a35a653e9df2416c63204aba87a95f33e6815b63
[ "MIT" ]
4
2017-05-16T15:10:09.000Z
2017-07-06T15:24:50.000Z
""" Contains all the logic for running the player client (websocket io, game clock, gameState data extrapolation, player commands API, and so on) """
37.5
117
0.76
acfebe95cdaebb9c774b7f3027cbccfd999321bd
3,938
py
Python
keystone/tests/unit/auth/test_controllers.py
Afkupuz/4jaewoo
fc69258feac7858f5af99d2feab39c86ceb70203
[ "Apache-2.0" ]
1
2019-05-08T06:09:35.000Z
2019-05-08T06:09:35.000Z
keystone/tests/unit/auth/test_controllers.py
Afkupuz/4jaewoo
fc69258feac7858f5af99d2feab39c86ceb70203
[ "Apache-2.0" ]
4
2018-08-22T14:51:02.000Z
2018-10-17T14:04:26.000Z
keystone/tests/unit/auth/test_controllers.py
Afkupuz/4jaewoo
fc69258feac7858f5af99d2feab39c86ceb70203
[ "Apache-2.0" ]
5
2018-08-03T17:19:34.000Z
2019-01-11T15:54:42.000Z
# Copyright 2015 IBM Corp. # 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, so...
37.150943
79
0.706704
acfebeb50fe77e64e6d96b6d3cd9aa326a98e9c1
21,683
py
Python
pytorch3d/io/obj_io.py
anuragranj/pytorch3d
cdaac5f9c592234e89afbcb7eab88ceb3b4ce816
[ "BSD-3-Clause" ]
1
2020-09-06T15:03:10.000Z
2020-09-06T15:03:10.000Z
pytorch3d/io/obj_io.py
anuragranj/pytorch3d
cdaac5f9c592234e89afbcb7eab88ceb3b4ce816
[ "BSD-3-Clause" ]
null
null
null
pytorch3d/io/obj_io.py
anuragranj/pytorch3d
cdaac5f9c592234e89afbcb7eab88ceb3b4ce816
[ "BSD-3-Clause" ]
1
2020-05-25T07:19:08.000Z
2020-05-25T07:19:08.000Z
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. """This module implements utility functions for loading and saving meshes.""" import os import warnings from collections import namedtuple from typing import Optional import numpy as np import torch from pytorch3d.io.mtl_io import load_mtl, make...
38.445035
95
0.593414
acfebf21056da813c421f8eaaea92e412bb99789
2,149
py
Python
IOC/IOC.py
Sunzhifeng/pypractice
04f3ce8a1771bb25584464d034bf2687e8060ded
[ "Apache-2.0" ]
null
null
null
IOC/IOC.py
Sunzhifeng/pypractice
04f3ce8a1771bb25584464d034bf2687e8060ded
[ "Apache-2.0" ]
null
null
null
IOC/IOC.py
Sunzhifeng/pypractice
04f3ce8a1771bb25584464d034bf2687e8060ded
[ "Apache-2.0" ]
null
null
null
class FeatureBroker: """ Feature Borker """ def __init__(self, allowReplace=False): self.providers = {} self.allowReplace = allowReplace def provide(self, feature, provider, *args, **kwargs): if not self.allowReplace: assert not self.providers.has_key(feature), 'Dupl...
26.8625
95
0.604002
acfec0018490d5c43e46fce92e4baece6014af35
708
py
Python
store/migrations/0007_productgallery.py
sabbirhossain540/Gadget-hub
3b16cd61f8d224ef921bfe1056572c569bf80695
[ "MIT" ]
1
2022-01-12T11:41:37.000Z
2022-01-12T11:41:37.000Z
store/migrations/0007_productgallery.py
sabbirhossain540/Gadget-hub
3b16cd61f8d224ef921bfe1056572c569bf80695
[ "MIT" ]
null
null
null
store/migrations/0007_productgallery.py
sabbirhossain540/Gadget-hub
3b16cd61f8d224ef921bfe1056572c569bf80695
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2022-01-15 15:40 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('store', '0006_auto_20220115_1728'), ] operations = [ migrations.CreateModel( name='ProductGallery...
30.782609
126
0.622881
acfec0ff418123175e6150380a9287e14ac9678a
471
py
Python
src/core/migrations/0021_auto_20210217_0939.py
metabolism-of-cities/metabolism-of-cities-platform
6213de146b1bc7b7c2802531fdcda1e328c32c64
[ "MIT" ]
4
2020-10-14T15:35:07.000Z
2022-01-13T15:31:16.000Z
src/core/migrations/0021_auto_20210217_0939.py
metabolism-of-cities/metabolism-of-cities-platform
6213de146b1bc7b7c2802531fdcda1e328c32c64
[ "MIT" ]
null
null
null
src/core/migrations/0021_auto_20210217_0939.py
metabolism-of-cities/metabolism-of-cities-platform
6213de146b1bc7b7c2802531fdcda1e328c32c64
[ "MIT" ]
2
2021-01-07T14:39:05.000Z
2022-01-18T12:31:50.000Z
# Generated by Django 3.1.2 on 2021-02-17 09:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0020_auto_20210215_1240'), ] operations = [ migrations.AlterField( model_name='materialdemand', name='end_da...
24.789474
128
0.62845
acfec1d12c69488a50c40d349637af603e6c8a65
1,715
py
Python
python/v2.6/download_file.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
null
null
null
python/v2.6/download_file.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
null
null
null
python/v2.6/download_file.py
byagihas/googleads-dfa-reporting-samples
b525662330e0e2ca863458a4e530eccf868ac7eb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2015 Google Inc. 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 b...
29.067797
78
0.742857
acfec22542ff816821b152d2a9380ac4e53231df
4,556
py
Python
src/models/train_model.py
jerryan999/character-recognition
26af66eff8d6b1d9a485335293e52a92792314b3
[ "MIT" ]
null
null
null
src/models/train_model.py
jerryan999/character-recognition
26af66eff8d6b1d9a485335293e52a92792314b3
[ "MIT" ]
null
null
null
src/models/train_model.py
jerryan999/character-recognition
26af66eff8d6b1d9a485335293e52a92792314b3
[ "MIT" ]
null
null
null
# encoding: utf-8 import numpy as np #from keras.callbacks import callbacks, ModelCheckpoint from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D from keras.callbacks import ReduceLROnPlateau from keras.optimizers import RMSprop from keras.preprocessing.image import Im...
35.317829
98
0.68108
acfec23bf66e4455f46bb3c4d8c7a28689491e8a
20,342
py
Python
lte/gateway/python/magma/pipelined/app/enforcement_stats.py
gurrapualt/magma
13e05788fa6c40293a58b6e03cfb394bb79fa98f
[ "BSD-3-Clause" ]
null
null
null
lte/gateway/python/magma/pipelined/app/enforcement_stats.py
gurrapualt/magma
13e05788fa6c40293a58b6e03cfb394bb79fa98f
[ "BSD-3-Clause" ]
34
2021-05-17T21:37:04.000Z
2022-03-22T11:29:22.000Z
lte/gateway/python/magma/pipelined/app/enforcement_stats.py
gurrapualt/magma
13e05788fa6c40293a58b6e03cfb394bb79fa98f
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2020 The Magma Authors. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES O...
37.600739
80
0.619703
acfec2ce63b61257adf036e6feb4fbd14478cc66
287
py
Python
Programs/completed/codons_done.py
AlanAloha/Learning_MCB185
5f88bd05a816da9a7c2430fbcb777ad49c314aee
[ "MIT" ]
null
null
null
Programs/completed/codons_done.py
AlanAloha/Learning_MCB185
5f88bd05a816da9a7c2430fbcb777ad49c314aee
[ "MIT" ]
null
null
null
Programs/completed/codons_done.py
AlanAloha/Learning_MCB185
5f88bd05a816da9a7c2430fbcb777ad49c314aee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Print out all the codons for the sequence below in reading frame 1 # Use a 'for' loop dna = 'ATAGCGAATATCTCTCATGAGAGGGAA' # your code goes here for i in range(0,len(dna)-2,3): print(dna[i:i+3]) """ python3 codons.py ATA GCG AAT ATC TCT CAT GAG AGG GAA """
11.958333
68
0.696864
acfec52bb408806344b8bf40684d96d794c780cd
2,840
py
Python
character/migrations/0014_bond_featuresandtraits_flaw_ideal_nametextcharacterfield_personalitytrait.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
character/migrations/0014_bond_featuresandtraits_flaw_ideal_nametextcharacterfield_personalitytrait.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
character/migrations/0014_bond_featuresandtraits_flaw_ideal_nametextcharacterfield_personalitytrait.py
scottBowles/dnd
a1ef333f1a865d51b5426dc4b3493e8437584565
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-08-18 00:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('character', '0013_auto_20210818_0049'), ] operations = [ migrations.CreateModel( name='NameText...
45.806452
225
0.628169
acfec5477e23ff4d5fd3ad3e2abdeb459f864e7c
1,197
py
Python
court_scraper/platforms/odyssey/pages/portal.py
ericjohannes/court-scraper
0ff73683d3facc2178d7bcbda67ab62ee35d62e4
[ "0BSD" ]
30
2020-09-08T23:59:34.000Z
2022-03-24T03:02:47.000Z
court_scraper/platforms/odyssey/pages/portal.py
ericjohannes/court-scraper
0ff73683d3facc2178d7bcbda67ab62ee35d62e4
[ "0BSD" ]
111
2020-09-16T23:42:40.000Z
2022-02-19T01:25:55.000Z
court_scraper/platforms/odyssey/pages/portal.py
ericjohannes/court-scraper
0ff73683d3facc2178d7bcbda67ab62ee35d62e4
[ "0BSD" ]
9
2020-10-05T13:19:03.000Z
2021-12-11T12:12:13.000Z
from selenium.webdriver.common.by import By from court_scraper.base.selenium_helpers import SeleniumHelpers class PortalPageLocators: PORTAL_BUTTONS = (By.CSS_SELECTOR, '.portlet-buttons') IMAGES = (By.TAG_NAME, 'img') class PortalPage(SeleniumHelpers): locators = PortalPageLocators @property ...
27.837209
68
0.638262
acfec5bc7e4efcee44459b8671da818414664344
4,079
py
Python
settings.py
wekko/bove
8f89e00f7367bc6e86783e3c3fea50b800df57c9
[ "MIT" ]
null
null
null
settings.py
wekko/bove
8f89e00f7367bc6e86783e3c3fea50b800df57c9
[ "MIT" ]
null
null
null
settings.py
wekko/bove
8f89e00f7367bc6e86783e3c3fea50b800df57c9
[ "MIT" ]
null
null
null
class BaseSettings: # Заполнять ниже `BotSettings` USERS = () PROXIES = () CONF_CODE = "" SCOPE = 140489887 APP_ID = 5982451 CAPTCHA_KEY = "" CAPTCHA_SERVER = "rucaptcha" READ_OUT = False PLUGINS = () DEBUG = False # Importing all the plugins to allow including to PLUGINS...
33.991667
113
0.640353
acfec5e59c71ba492e028fd57ec80483fa1ff1df
3,758
py
Python
elvis/modeling/models/cnn_bert/cnn_bert.py
seo-95/elvis
a89c759acdf6ce64c7e6863aeb68dc0ba3293fed
[ "Apache-2.0" ]
1
2021-08-01T13:55:27.000Z
2021-08-01T13:55:27.000Z
elvis/modeling/models/cnn_bert/cnn_bert.py
seo-95/elvis
a89c759acdf6ce64c7e6863aeb68dc0ba3293fed
[ "Apache-2.0" ]
null
null
null
elvis/modeling/models/cnn_bert/cnn_bert.py
seo-95/elvis
a89c759acdf6ce64c7e6863aeb68dc0ba3293fed
[ "Apache-2.0" ]
null
null
null
import pdb from typing import Dict, List, TypeVar import timm import torch import torch.nn as nn import torch.nn.functional as F from elvis.modeling.models.build import NET_REGISTRY from transformers import BertModel, BertTokenizer from .dispatcher import build_data_interface Tensor = TypeVar('torch.tensor') class...
40.408602
102
0.664715
acfec736fc6441070d47a84735aa127fecb0e5e8
1,240
py
Python
cp/introductory_problems/trailing_zeros.py
hauntarl/real-python
6ffb535648bf5c79c90e2ed7def842078bc7807f
[ "MIT" ]
2
2020-12-15T18:11:00.000Z
2021-03-01T11:43:16.000Z
cp/introductory_problems/trailing_zeros.py
hauntarl/real_python
6ffb535648bf5c79c90e2ed7def842078bc7807f
[ "MIT" ]
null
null
null
cp/introductory_problems/trailing_zeros.py
hauntarl/real_python
6ffb535648bf5c79c90e2ed7def842078bc7807f
[ "MIT" ]
null
null
null
from util import timeit @timeit def trailing_zeros(n: int) -> int: """ [Easy] https://cses.fi/problemset/task/1618 [Help] https://www.geeksforgeeks.org/count-trailing-zeroes-factorial-number/ [Solution] https://cses.fi/paste/e30a1f7b61c0770e239417/ Your task is to calculate the number of trailing...
21.754386
80
0.669355
acfec7e58ff18ced64feccaf75a8b13e21a4da0a
19,204
py
Python
src/sentry/south_migrations/0063_auto.py
seukjung/sentry-custom
c5f6bb2019aef3caff7f3e2b619f7a70f2b9b963
[ "BSD-3-Clause" ]
20
2016-10-01T04:29:24.000Z
2020-10-09T07:23:34.000Z
src/sentry/south_migrations/0063_auto.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
8
2019-12-28T23:49:55.000Z
2022-03-02T04:34:18.000Z
src/sentry/south_migrations/0063_auto.py
fotinakis/sentry
c5cfa5c5e47475bf5ef41e702548c2dfc7bb8a7c
[ "BSD-3-Clause" ]
7
2016-10-27T05:12:45.000Z
2021-05-01T14:29:53.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding index on 'MessageCountByMinute', fields ['date'] db.create_index('sentry_messagecountbyminute', ['d...
81.029536
167
0.565351
acfec8fefdfdb862efe35edf1cd8418ead0e21f2
3,624
py
Python
crawling/Wp_list_all_review.py
Soooyeon-Kim/Python
e9e7e94e4a5a4ac94ff55347201cb4d24a5bb768
[ "MIT" ]
null
null
null
crawling/Wp_list_all_review.py
Soooyeon-Kim/Python
e9e7e94e4a5a4ac94ff55347201cb4d24a5bb768
[ "MIT" ]
null
null
null
crawling/Wp_list_all_review.py
Soooyeon-Kim/Python
e9e7e94e4a5a4ac94ff55347201cb4d24a5bb768
[ "MIT" ]
null
null
null
# link list all # import list import requests from urllib.request import urlopen import time, re, csv from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.common.exceptions import NoSuchEleme...
30.974359
190
0.606512
acfec9a2776fe8642370752a124818bb1783508e
505
py
Python
pandemic_response_analyzer/explore/models.py
sedatozturke/swe-573-2020f
3368b352076a57eadcfd40ea408666cc8a00d8df
[ "MIT" ]
null
null
null
pandemic_response_analyzer/explore/models.py
sedatozturke/swe-573-2020f
3368b352076a57eadcfd40ea408666cc8a00d8df
[ "MIT" ]
6
2020-11-02T19:47:46.000Z
2020-11-10T15:31:04.000Z
pandemic_response_analyzer/explore/models.py
sedatozturke/swe-573-2020f
3368b352076a57eadcfd40ea408666cc8a00d8df
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Subreddit(models.Model): title = models.CharField(max_length=500) reddit_id = models.CharField(max_length=500) created_utc = models.DateTimeField() score = models.IntegerField(default=0) name = models.CharField(max_length=500) upvote...
33.666667
49
0.728713
acfeca245fe2beb44ec7884bc11b1d34d807fa1d
1,055
py
Python
imageprocessingstream/imageprocessingstream_client.py
LukasMaly/grpc-playground
fc67a9b4e47cc7a18954ad66023c771328edb428
[ "MIT" ]
null
null
null
imageprocessingstream/imageprocessingstream_client.py
LukasMaly/grpc-playground
fc67a9b4e47cc7a18954ad66023c771328edb428
[ "MIT" ]
null
null
null
imageprocessingstream/imageprocessingstream_client.py
LukasMaly/grpc-playground
fc67a9b4e47cc7a18954ad66023c771328edb428
[ "MIT" ]
null
null
null
from __future__ import print_function import logging import cv2 import grpc import numpy as np import imageprocessing_pb2 import imageprocessing_pb2_grpc def generate_stream(): src = cv2.imread('../data/lena.png') height, width = src.shape[:2] channels = src.shape[2] for i in range(100): img...
29.305556
97
0.669194
acfecaf6e29365a978f362652edf3aa9f3ec3afe
1,953
py
Python
examples/schoolOntology.py
Kieran-Bacon/InfoGain
621ccd111d474f96f0ba19a8972821becea0c5db
[ "Apache-2.0" ]
1
2019-10-14T00:49:04.000Z
2019-10-14T00:49:04.000Z
examples/schoolOntology.py
Kieran-Bacon/InfoGain
621ccd111d474f96f0ba19a8972821becea0c5db
[ "Apache-2.0" ]
2
2018-06-12T12:46:35.000Z
2019-02-22T10:52:15.000Z
examples/schoolOntology.py
Kieran-Bacon/InfoGain
621ccd111d474f96f0ba19a8972821becea0c5db
[ "Apache-2.0" ]
null
null
null
from infogain.artefact import Entity, Annotation, Document from infogain.knowledge import * from infogain.extraction import ExtractionEngine # Define the ontology base schoolOntology = Ontology("School") # Define concepts person = Concept("Person") _class = Concept("Class") beingTheoldesInClass = Concept("Oldest", ca...
29.149254
116
0.747056
acfecb3ee19364482eba49dff6fb7037f7990cdb
2,912
py
Python
manage.py
open-contracting/public-private-partnerships
d75eb0af4e347415d56aa8194b603b0645815cd1
[ "Apache-2.0" ]
1
2018-03-04T22:20:28.000Z
2018-03-04T22:20:28.000Z
manage.py
open-contracting/public-private-partnerships
d75eb0af4e347415d56aa8194b603b0645815cd1
[ "Apache-2.0" ]
121
2016-06-08T11:49:59.000Z
2018-11-27T18:01:15.000Z
manage.py
open-contracting/public-private-partnerships
d75eb0af4e347415d56aa8194b603b0645815cd1
[ "Apache-2.0" ]
6
2017-05-18T18:21:09.000Z
2017-12-08T22:49:41.000Z
#!/usr/bin/env python import os.path import re import sys from glob import glob from pathlib import Path from textwrap import dedent import click from ocdsextensionregistry import build_profile basedir = Path(__file__).resolve().parent sys.path.append(str(basedir / 'docs')) def update_codelist_urls(text, codelists)...
33.860465
170
0.643887
acfecbd748648536ed4b9ecb1a39c1f5924c3e6d
2,540
py
Python
ci/scripts/python/nrf5_cmake/version.py
perfectco/cmake-nRF5x
08b9158fa7bfa0c8641df468d48917dec46fb115
[ "MIT" ]
111
2017-11-21T06:21:18.000Z
2022-03-30T07:40:03.000Z
ci/scripts/python/nrf5_cmake/version.py
perfectco/cmake-nRF5x
08b9158fa7bfa0c8641df468d48917dec46fb115
[ "MIT" ]
41
2018-01-09T15:44:11.000Z
2021-10-31T08:45:24.000Z
ci/scripts/python/nrf5_cmake/version.py
giuliocorradini/cmake-nRF5x
a5b5d489768dc397a7eddc57d4ad65e6b3039b08
[ "MIT" ]
39
2018-03-13T14:03:10.000Z
2022-02-28T17:46:17.000Z
from unittest import TestCase class Version: def __init__(self, major: int, minor: int, patch: int): self._major = major self._minor = minor self._patch = patch @staticmethod def from_string(version: str): return Version(*(int(x) for x in version.split('.'))) def __st...
29.882353
81
0.601181
acfecc2c4c33fa78688fa531617baa01ec302723
23,709
py
Python
spark_fhir_schemas/r4/complex_types/evidencevariable_characteristic.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/r4/complex_types/evidencevariable_characteristic.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/r4/complex_types/evidencevariable_characteristic.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import ( StructType, StructField, StringType, ArrayType, BooleanType, DataType, TimestampType, ) # This file is auto-generated by generate_schema so do not edit it manually # noinspection PyPep8Naming class EvidenceVariable_C...
51.87965
107
0.575773
acfecce744eede54a0fe9ce6a9cc3efaa9d9fbf3
3,776
py
Python
example.py
devp4/PyAPIReference
8ebb758f17e15960adf0dce5a8dca37eec43bff8
[ "MIT" ]
5
2021-09-14T23:34:31.000Z
2021-11-19T01:08:08.000Z
example.py
devp4/PyAPIReference
8ebb758f17e15960adf0dce5a8dca37eec43bff8
[ "MIT" ]
4
2021-09-17T00:23:06.000Z
2021-09-29T21:47:50.000Z
example.py
devp4/PyAPIReference
8ebb758f17e15960adf0dce5a8dca37eec43bff8
[ "MIT" ]
3
2021-09-26T14:34:21.000Z
2021-12-06T14:23:08.000Z
"""Example file with classes, iheritance, functions, imported members and constants to test PyAPIReference. This is the docstring for example.py. """ from time import sleep from PyQt5 import * BLACK = "#000000" WHITE = "#ffffff" class Person: """Class person that requires name, last name and age. Allows you to dis...
29.046154
179
0.697564
acfecddc4fadef7ce280de57da8e710cc34a1dc1
2,453
py
Python
oslo_messaging/serializer.py
sapcc/oslo.messaging
feb72de7b81e3919dedc697f9fb5484a92f85ad8
[ "Apache-1.1" ]
131
2015-01-23T23:37:05.000Z
2022-02-21T01:38:46.000Z
oslo_messaging/serializer.py
sapcc/oslo.messaging
feb72de7b81e3919dedc697f9fb5484a92f85ad8
[ "Apache-1.1" ]
3
2015-10-01T14:30:01.000Z
2017-03-31T10:51:29.000Z
oslo_messaging/serializer.py
sapcc/oslo.messaging
feb72de7b81e3919dedc697f9fb5484a92f85ad8
[ "Apache-1.1" ]
154
2015-01-08T08:47:08.000Z
2022-03-23T08:37:17.000Z
# Copyright 2013 IBM Corp. # # 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 agree...
29.914634
78
0.692621
acfece708704f82b8d8706749552c5f0fa54e4a2
5,445
py
Python
maelas/relax.py
Xavier-ML/MAELAS
e7eab7281026451fc93a58fbe36f4c2d69e8bac9
[ "BSD-3-Clause" ]
12
2020-09-05T06:35:58.000Z
2022-03-31T09:27:57.000Z
maelas/relax.py
Xavier-ML/MAELAS
e7eab7281026451fc93a58fbe36f4c2d69e8bac9
[ "BSD-3-Clause" ]
null
null
null
maelas/relax.py
Xavier-ML/MAELAS
e7eab7281026451fc93a58fbe36f4c2d69e8bac9
[ "BSD-3-Clause" ]
3
2021-06-11T06:55:02.000Z
2022-01-23T19:18:29.000Z
from pymatgen import Structure from pymatgen.io.vasp import Poscar from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from maelas.data import SymmetryData import os import stat class Relaxation: delec_list = ['Sc', 'Y', 'Ti', 'Zr', 'Hf', 'V', 'Nb', 'Ta', 'Cr', 'Mo', 'W', 'Mn', 'Tc', 'Re', 'Fe', 'Co', 'N...
44.631148
472
0.554454
acfecf8dd9abad44a3f1ec2afacf85d0652dbbef
564
py
Python
legacy/cli/helper.py
hashnfv/hashnfv-qtip
2c79d3361fdb1fcbe67682f8a205011b3ccf5e72
[ "Apache-2.0" ]
null
null
null
legacy/cli/helper.py
hashnfv/hashnfv-qtip
2c79d3361fdb1fcbe67682f8a205011b3ccf5e72
[ "Apache-2.0" ]
null
null
null
legacy/cli/helper.py
hashnfv/hashnfv-qtip
2c79d3361fdb1fcbe67682f8a205011b3ccf5e72
[ "Apache-2.0" ]
null
null
null
############################################################################## # Copyright (c) 2016 ZTE Corp and others. # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at...
37.6
87
0.542553
acfecf8e31d8fafd7a8105e42defe2e11b2de904
756
py
Python
app/__init__.py
medsci-tech/mime_analysis_flask_2017
4a927219f31db433f4af6a7af3085e05c08b5c3e
[ "MIT" ]
null
null
null
app/__init__.py
medsci-tech/mime_analysis_flask_2017
4a927219f31db433f4af6a7af3085e05c08b5c3e
[ "MIT" ]
null
null
null
app/__init__.py
medsci-tech/mime_analysis_flask_2017
4a927219f31db433f4af6a7af3085e05c08b5c3e
[ "MIT" ]
null
null
null
from flask import Flask from .config import configs from .models import db from .vendors import bcrypt from .vendors import login_manager from .blueprint_auth import blueprint_auth from .blueprint_time import blueprint_time from .blueprint_region import blueprint_region from .blueprint_doctor import blueprint_doctor...
24.387097
48
0.78836
acfecfe092784ad222c4a4eb160b98039b1944ba
774
py
Python
tests/models/DeepFM_test.py
jiqiujia/DeepCTR-Torch
687a094135fa597697d926782a5634c79b627dac
[ "Apache-2.0" ]
1
2020-02-19T07:48:46.000Z
2020-02-19T07:48:46.000Z
tests/models/DeepFM_test.py
praysunday/DeepCTR-Torch
abb3a825d8d8e02aa9afaf935d4526e19214c855
[ "Apache-2.0" ]
null
null
null
tests/models/DeepFM_test.py
praysunday/DeepCTR-Torch
abb3a825d8d8e02aa9afaf935d4526e19214c855
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from deepctr_torch.models import DeepFM from ..utils import get_test_data, SAMPLE_SIZE, check_model @pytest.mark.parametrize( 'use_fm,hidden_size,sparse_feature_num', [(True, (32, ), 3), (False, (32, ), 3), (False, (32, ), 2), (False, (32,), 1), (True, (), 1), (...
29.769231
73
0.661499
acfed09d45e9ff9174a53a6eaa2e8b3d71ba6a18
2,839
py
Python
tests/test_allrecipes.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
tests/test_allrecipes.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
tests/test_allrecipes.py
gloriousDan/recipe-scrapers
4e11b04db92abe11b75d373a147cc566629f265b
[ "MIT" ]
null
null
null
from recipe_scrapers.allrecipes import AllRecipes from tests import ScraperTest class TestAllRecipesScraper(ScraperTest): scraper_class = AllRecipes def test_host(self): self.assertEqual("allrecipes.com", self.harvester_class.host()) def test_author(self): self.assertEqual("Michelle", s...
37.853333
456
0.652695
acfed21010dd73c1468794a0a5e6f61db8fc0474
6,253
py
Python
clients/python-flask/generated/openapi_server/models/saml_configuration_property_items_array.py
hoomaan-kh/swagger-aem
0b19225bb6e071df761d176cbc13565891fe895f
[ "Apache-2.0" ]
null
null
null
clients/python-flask/generated/openapi_server/models/saml_configuration_property_items_array.py
hoomaan-kh/swagger-aem
0b19225bb6e071df761d176cbc13565891fe895f
[ "Apache-2.0" ]
null
null
null
clients/python-flask/generated/openapi_server/models/saml_configuration_property_items_array.py
hoomaan-kh/swagger-aem
0b19225bb6e071df761d176cbc13565891fe895f
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class SamlConfigurationPropertyItemsArray(Model): """NOTE: This class is auto ...
30.207729
156
0.638094
acfed25ce5b7306375856c7d96681ff337db493d
19,695
py
Python
tests/test_transform.py
civodlu/trw
b9a1cf045f61d6df9c65c014ef63b4048972dcdc
[ "MIT" ]
3
2019-07-04T01:20:41.000Z
2020-01-27T02:36:12.000Z
tests/test_transform.py
civodlu/trw
b9a1cf045f61d6df9c65c014ef63b4048972dcdc
[ "MIT" ]
null
null
null
tests/test_transform.py
civodlu/trw
b9a1cf045f61d6df9c65c014ef63b4048972dcdc
[ "MIT" ]
2
2020-10-19T13:46:06.000Z
2021-12-27T02:18:10.000Z
import collections from unittest import TestCase import trw.train import trw.transforms import numpy as np import torch import functools import trw.utils class TransformRecorder(trw.transforms.Transform): def __init__(self, kvp, tfm_id): self.kvp = kvp self.tfm_id = tfm_id def __call__(self, ...
37.875
164
0.576593
acfed3fb3ce5d583d7390a9cd8e5d4c7b1d8cb06
615
py
Python
posts/management/commands/cleanup_post_views.py
dimabory/vas3k.club
178154a8d6d2925fb392599d65da3e60082c8f37
[ "MIT" ]
1
2021-04-12T13:38:41.000Z
2021-04-12T13:38:41.000Z
posts/management/commands/cleanup_post_views.py
dimabory/vas3k.club
178154a8d6d2925fb392599d65da3e60082c8f37
[ "MIT" ]
null
null
null
posts/management/commands/cleanup_post_views.py
dimabory/vas3k.club
178154a8d6d2925fb392599d65da3e60082c8f37
[ "MIT" ]
null
null
null
import logging from datetime import datetime, timedelta from django.core.management import BaseCommand from posts.models import PostView log = logging.getLogger(__name__) class Command(BaseCommand): help = "Cleans up old and useless post views" def handle(self, *args, **options): day_ago = datetim...
27.954545
92
0.721951
acfed4bd2bd036d6a1398f4da0fd9e42903c9c3e
11,439
py
Python
dymos/examples/brachistochrone/test/test_brachistochrone_undecorated_ode.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/brachistochrone/test/test_brachistochrone_undecorated_ode.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
dymos/examples/brachistochrone/test/test_brachistochrone_undecorated_ode.py
naylor-b/dymos
56ee72041056ae20c3332d060e291c4da93844b1
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division, absolute_import import unittest import numpy as np from openmdao.api import ExplicitComponent class BrachistochroneODE(ExplicitComponent): def initialize(self): self.options.declare('num_nodes', types=int) def setup(self): nn = self.options['...
40.278169
114
0.634496
acfed52bb6497ce5fb06e49460f94e77f3a7ee78
7,306
py
Python
VideoTranscriptClassification/video_indexer.py
MACEL94/media-services-video-indexer
b4076daa7a7cdad456ce696b50f77ce2f21ead22
[ "MIT" ]
54
2020-01-16T22:18:07.000Z
2022-03-24T15:58:16.000Z
VideoTranscriptClassification/video_indexer.py
MACEL94/media-services-video-indexer
b4076daa7a7cdad456ce696b50f77ce2f21ead22
[ "MIT" ]
10
2020-07-19T19:01:31.000Z
2022-02-09T09:49:00.000Z
VideoTranscriptClassification/video_indexer.py
MACEL94/media-services-video-indexer
b4076daa7a7cdad456ce696b50f77ce2f21ead22
[ "MIT" ]
43
2020-02-13T05:36:42.000Z
2022-03-09T15:39:57.000Z
# Original source code: https://github.com/bklim5/python_video_indexer_lib import os import re import time import datetime import requests def get_retry_after_from_message(message): match = re.search(r'Try again in (\d+) second', message or '') if match: return int(match.group(1)) return 30 # ...
33.668203
118
0.571722
acfed5aaf4b83a8eed69ad9ccc18a0818f0b4dcb
2,930
py
Python
flTile/input/genericInputMapper.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
1
2020-12-11T17:11:45.000Z
2020-12-11T17:11:45.000Z
flTile/input/genericInputMapper.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
null
null
null
flTile/input/genericInputMapper.py
rpwagner/tiled-display
52d135bc163360fe55ce5521784b0ef48a8c82c9
[ "Apache-2.0" ]
null
null
null
import traceback from inputMapper import InputMapper class GenericMsgCallback: # Holds a callback function, a "type" and "arguments" for it, and # whether the callback expects the type and arguments. def __init__(self, callback, passMsgType=False, passMsgArgs=True, extraArgs=None): self.ca...
41.267606
123
0.683276
acfed739159a8c1bef2742e60c5be889bec8e6a4
9,946
py
Python
tests/test_rl.py
Chia-Network/internal-custody
672cf33bb63cad960f5576f84a6606ce471e05cb
[ "Apache-2.0" ]
null
null
null
tests/test_rl.py
Chia-Network/internal-custody
672cf33bb63cad960f5576f84a6606ce471e05cb
[ "Apache-2.0" ]
null
null
null
tests/test_rl.py
Chia-Network/internal-custody
672cf33bb63cad960f5576f84a6606ce471e05cb
[ "Apache-2.0" ]
1
2022-02-22T22:35:24.000Z
2022-02-22T22:35:24.000Z
import math import pytest from blspy import G2Element from dataclasses import dataclass from chia.clvm.spend_sim import SpendSim, SimClient from chia.types.blockchain_format.coin import Coin from chia.types.blockchain_format.program import Program from chia.types.blockchain_format.sized_bytes import bytes32 from chia...
34.534722
117
0.589785
acfed8389e768f0a0d0d268cf327e0397c643a11
17,818
py
Python
cwbot/modules/dread/DreadTimelineModule.py
zeryl/RUcwbot
734716506066da599fcbc96d0a815a5e30f6e077
[ "BSD-3-Clause" ]
null
null
null
cwbot/modules/dread/DreadTimelineModule.py
zeryl/RUcwbot
734716506066da599fcbc96d0a815a5e30f6e077
[ "BSD-3-Clause" ]
1
2019-04-15T02:48:19.000Z
2019-04-15T03:02:36.000Z
cwbot/modules/dread/DreadTimelineModule.py
zeryl/RUcwbot
734716506066da599fcbc96d0a815a5e30f6e077
[ "BSD-3-Clause" ]
null
null
null
from cwbot.modules.BaseDungeonModule import BaseDungeonModule, eventDbMatch from cwbot.common.exceptions import FatalError from cwbot.common.kmailContainer import Kmail from cwbot.kolextra.request.UserProfileRequest import UserProfileRequest import pytz from copy import deepcopy import itertools from collections...
43.671569
88
0.465484
acfed8da7443acebf1c835b67c126a721d8b82d6
2,511
py
Python
backend/pyrogram/raw/functions/messages/update_dialog_filter.py
appheap/social-media-analyzer
0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c
[ "Apache-2.0" ]
5
2021-09-11T22:01:15.000Z
2022-03-16T21:33:42.000Z
backend/pyrogram/raw/functions/messages/update_dialog_filter.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
null
null
null
backend/pyrogram/raw/functions/messages/update_dialog_filter.py
iamatlasss/social-media-analyzer
429d1d2bbd8bfce80c50c5f8edda58f87ace668d
[ "Apache-2.0" ]
3
2022-01-18T11:06:22.000Z
2022-02-26T13:39:28.000Z
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31
103
0.619275
acfed8e280803c0a956c8a00bb2c7964a8afdce1
4,004
py
Python
data_management/toolboxes/scripts/CalculateFieldDeltaTime.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
null
null
null
data_management/toolboxes/scripts/CalculateFieldDeltaTime.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
null
null
null
data_management/toolboxes/scripts/CalculateFieldDeltaTime.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
1
2018-10-25T15:52:41.000Z
2018-10-25T15:52:41.000Z
#--------ESRI 2010------------------------------------- #------------------------------------------------------------------------------- # Copyright 2010-2014 Esri # 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...
30.564885
90
0.676573
acfed94b780d849eabeb62d4bbcc3f172f58add8
7,340
py
Python
base/base_trainer.py
atch841/CCT
3a0b05d63fde9118ea369f2c2d512ae4c814c248
[ "MIT" ]
null
null
null
base/base_trainer.py
atch841/CCT
3a0b05d63fde9118ea369f2c2d512ae4c814c248
[ "MIT" ]
null
null
null
base/base_trainer.py
atch841/CCT
3a0b05d63fde9118ea369f2c2d512ae4c814c248
[ "MIT" ]
null
null
null
import os, json, math, logging, sys, datetime import torch from torch.utils import tensorboard from utils import helpers from utils import logger import utils.lr_scheduler from utils.htmlwriter import HTML def get_instance(module, name, config, *args): return getattr(module, config[name]['type'])(*args, **config[n...
42.923977
130
0.606948
acfeda46c756ba2201cf28a37cca3cac247638c8
9,214
py
Python
pdil/core/factory.py
patcorwin/fossil
8e471c5233e4a2d81dc66bd8e2a3d6387e71ef61
[ "BSD-3-Clause" ]
41
2017-04-24T09:43:24.000Z
2021-10-06T04:11:43.000Z
pdil/core/factory.py
patcorwin/fossil
8e471c5233e4a2d81dc66bd8e2a3d6387e71ef61
[ "BSD-3-Clause" ]
22
2018-04-18T21:56:01.000Z
2021-08-05T20:57:45.000Z
pdil/core/factory.py
patcorwin/fossil
8e471c5233e4a2d81dc66bd8e2a3d6387e71ef61
[ "BSD-3-Clause" ]
9
2017-04-24T09:43:27.000Z
2021-05-14T05:38:33.000Z
''' A collection of helper functions to construct pymel node factories (i.e. custom pynodes). The main appeal is providing direct access (via *Access) instead of get/set, so it only makes sense if the attribute isn't animatable. Additionally there is a helper that allows connecting a single object and another for aut...
27.504478
101
0.62188
acfeda7f5888ef8d43ca9c73d99b840bed7aa2d4
158
py
Python
apps/__init__.py
pythonyhd/django_blog
285800df723ede53bc8b827bd9d3c6ee11bba07a
[ "Apache-2.0" ]
2
2019-12-04T05:36:40.000Z
2020-01-20T06:52:20.000Z
apps/__init__.py
pythonyhd/django_blog
285800df723ede53bc8b827bd9d3c6ee11bba07a
[ "Apache-2.0" ]
9
2021-04-08T21:59:16.000Z
2022-03-12T00:48:24.000Z
apps/__init__.py
pythonyhd/django_blog
285800df723ede53bc8b827bd9d3c6ee11bba07a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/11/28 17:40 # @Author : King life # @Email : 18353626676@163.com # @File : __init__.py.py # @Software: PyCharm
26.333333
32
0.588608
acfedb3b4397c9a9763c2b98c1b1e398bb3572c5
938
py
Python
src/python/grapl_analyzerlib/grapl_analyzerlib/prelude.py
0xflotus/grapl
574902a176ccc4d0cd6fc34549e9dbc95e8044fb
[ "Apache-2.0" ]
1
2021-12-12T14:27:49.000Z
2021-12-12T14:27:49.000Z
src/python/grapl_analyzerlib/grapl_analyzerlib/prelude.py
0xflotus/grapl
574902a176ccc4d0cd6fc34549e9dbc95e8044fb
[ "Apache-2.0" ]
449
2020-09-11T07:07:18.000Z
2021-08-03T06:09:36.000Z
src/python/grapl_analyzerlib/grapl_analyzerlib/prelude.py
0xflotus/grapl
574902a176ccc4d0cd6fc34549e9dbc95e8044fb
[ "Apache-2.0" ]
null
null
null
from grapl_analyzerlib.nodes.dynamic_node import DynamicNodeView, DynamicNodeQuery from grapl_analyzerlib.nodes.process_node import ( ProcessView, ProcessQuery, IProcessView, IProcessQuery, ) from grapl_analyzerlib.nodes.file_node import FileView, FileQuery, IFileView, IFileQuery from grapl_analyzerlib...
37.52
88
0.846482
acfedccf4741744ad37f5d313bb1fa9e08732b81
8,403
py
Python
wemake_python_styleguide/constants.py
serkanozer/wemake-python-styleguide
6032a1bde628d6052869b1da60786c7fc84f5e47
[ "MIT" ]
null
null
null
wemake_python_styleguide/constants.py
serkanozer/wemake-python-styleguide
6032a1bde628d6052869b1da60786c7fc84f5e47
[ "MIT" ]
null
null
null
wemake_python_styleguide/constants.py
serkanozer/wemake-python-styleguide
6032a1bde628d6052869b1da60786c7fc84f5e47
[ "MIT" ]
null
null
null
""" This module contains list of white- and black-listed ``python`` members. We add values here when we want to make them public. Or when a value is reused in several places. Then, we automatically have to add it here and document it. Other constants that are not used across modules and does not require to be documen...
19.912322
79
0.617756
acfede504fd745b36cb09e180bae5338e837098b
3,260
py
Python
src/secondaires/botanique/masques/element_recoltable/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/secondaires/botanique/masques/element_recoltable/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
src/secondaires/botanique/masques/element_recoltable/__init__.py
stormi/tsunami
bdc853229834b52b2ee8ed54a3161a1a3133d926
[ "BSD-3-Clause" ]
null
null
null
# -*-coding:Utf-8 -* # Copyright (c) 2012 LE GOFF Vincent # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # l...
37.471264
79
0.68589
acfedef27a2a95fa23e2012c42bf2ac03be150af
9,532
py
Python
images/gao.py
iruletheworld/Visualisaion-for-Symmetrical-Components-Fortescue-Clarke-Parke
732b3bd935e0cbbf722853f1e6e125aa2034a61b
[ "Apache-2.0" ]
3
2017-12-13T19:21:01.000Z
2020-04-11T14:13:01.000Z
images/gao.py
iruletheworld/Visualisaion-for-Symmetrical-Components-Fortescue-Clarke-Parke
732b3bd935e0cbbf722853f1e6e125aa2034a61b
[ "Apache-2.0" ]
null
null
null
images/gao.py
iruletheworld/Visualisaion-for-Symmetrical-Components-Fortescue-Clarke-Parke
732b3bd935e0cbbf722853f1e6e125aa2034a61b
[ "Apache-2.0" ]
1
2017-12-13T19:21:21.000Z
2017-12-13T19:21:21.000Z
# -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.6.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x08\x34\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\xa6\x0...
55.418605
96
0.727444
acfedff9e41e527ab48dffb8e68e60f9e7e7443b
7,395
py
Python
bindings/python/cntk/ops/tests/ops_test_utils.py
KeDengMS/CNTK
fce86cd9581e7ba746d1ec75bbd67dd35d35d11c
[ "RSA-MD" ]
1
2021-05-09T01:37:49.000Z
2021-05-09T01:37:49.000Z
bindings/python/cntk/ops/tests/ops_test_utils.py
KeDengMS/CNTK
fce86cd9581e7ba746d1ec75bbd67dd35d35d11c
[ "RSA-MD" ]
null
null
null
bindings/python/cntk/ops/tests/ops_test_utils.py
KeDengMS/CNTK
fce86cd9581e7ba746d1ec75bbd67dd35d35d11c
[ "RSA-MD" ]
null
null
null
# Copyright (c) Microsoft. All rights reserved. # Licensed under the MIT license. See LICENSE.md file in the project root # for full license information. # ============================================================================== """ Utils for operations unit tests """ import numpy as np import pytest from cnt...
32.152174
90
0.607708
acfee089ad6d2cc5ff85500b5591b2da726dce46
916
py
Python
notify/by_multiple.py
bttg/UoM-WAM-Spam
8083cbac003397e9c022c02bc427454638dd235f
[ "MIT" ]
54
2019-06-20T00:50:38.000Z
2021-12-01T06:59:38.000Z
notify/by_multiple.py
bttg/UoM-WAM-Spam
8083cbac003397e9c022c02bc427454638dd235f
[ "MIT" ]
18
2019-06-21T00:20:54.000Z
2020-12-03T22:04:15.000Z
notify/by_multiple.py
bttg/UoM-WAM-Spam
8083cbac003397e9c022c02bc427454638dd235f
[ "MIT" ]
24
2019-06-20T02:49:18.000Z
2021-12-02T08:22:09.000Z
""" Multiple-method notifier :author: Matthew Farrugia-Roberts """ class MultiNotifier: def __init__(self, notifiers=None): if notifiers is not None: self.notifiers = notifiers else: self.notifiers = [] def add_notifier(self, notifier): self.notifiers.append(no...
29.548387
76
0.575328
acfee098d5e002410f88314b31391a5803f56d47
10,926
py
Python
sympy/physics/quantum/tensorproduct.py
sn6uv/sympy
5b149c2f72847e4785c65358b09d99b29f101dd5
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/quantum/tensorproduct.py
sn6uv/sympy
5b149c2f72847e4785c65358b09d99b29f101dd5
[ "BSD-3-Clause" ]
null
null
null
sympy/physics/quantum/tensorproduct.py
sn6uv/sympy
5b149c2f72847e4785c65358b09d99b29f101dd5
[ "BSD-3-Clause" ]
null
null
null
"""Abstract tensor product.""" from sympy import Expr, Add, Mul, Matrix, Pow, sympify from sympy.printing.pretty.stringpict import prettyForm from sympy.physics.quantum.qexpr import QuantumError from sympy.physics.quantum.dagger import Dagger from sympy.physics.quantum.commutator import Commutator from sympy.physics....
33.515337
98
0.568918
acfee0d6f8b25d500499c1d3bde1875357abcdbd
2,196
py
Python
tests/benchmarks/scenarios/test_rl_scenario.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
tests/benchmarks/scenarios/test_rl_scenario.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
tests/benchmarks/scenarios/test_rl_scenario.py
lipovsek/avalanche
1f06502b12140b39f48adf5a5f3b5de8ec2a930b
[ "MIT" ]
null
null
null
from avalanche.benchmarks.scenarios.rl_scenario import RLScenario, RLExperience import unittest import numpy as np try: import gym skip = False except ImportError: skip = True @unittest.skipIf(skip, reason="Need gym to run these tests") def test_simple_scenario(): n_envs = 3 envs = [gym.make('Cart...
36.6
79
0.651184
acfee1295baf024a321069e60cc27f6d570ba705
3,504
py
Python
helpers/UrIII_mono.py
cdli-gh/Unsupervised-NMT-for-Sumerian-English-
40025185529e91a3af2db130445dc694d9a0ef16
[ "MIT" ]
17
2020-08-12T08:58:27.000Z
2022-03-14T21:50:38.000Z
helpers/UrIII_mono.py
cdli-gh/Unsupervised-NMT-for-Sumerian-English-
40025185529e91a3af2db130445dc694d9a0ef16
[ "MIT" ]
5
2020-02-26T11:58:42.000Z
2020-08-07T20:06:16.000Z
helpers/UrIII_mono.py
cdli-gh/Unsupervised-NMT-for-Sumerian-English-
40025185529e91a3af2db130445dc694d9a0ef16
[ "MIT" ]
8
2020-02-26T16:02:25.000Z
2020-06-12T21:51:55.000Z
import pandas as pd import re stop_chars=["@", "&", "$", "#", ">"] with open('../dataset/dataToUse/UrIIICompSents/test.sum', 'r') as f: test = f.read().split('\n') with open('../dataset/dataToUse/allCompSents/train.sum', 'r') as f: train = f.read().split('\n') df1 = pd.read_csv('../all_sum.csv') lines = li...
32.146789
89
0.470605
acfee1e3fd888b55d947a83f38b539a250b89152
434
py
Python
WebGarageSale/env/lib/python3.9/site-packages/djongo/features.py
dayojohn19/Garage_Sale
a32a89392911e9ce57cd1441edcbb3781f3ee67d
[ "Apache-2.0" ]
1
2021-09-15T01:36:55.000Z
2021-09-15T01:36:55.000Z
onboarding/Lib/site-packages/djongo/features.py
USPCodeLabSanca/on.boarding-2021.2---Filtro-de-Receitas
273c0f852c66ecec840dc8db4bd3894ef727beb0
[ "MIT" ]
null
null
null
onboarding/Lib/site-packages/djongo/features.py
USPCodeLabSanca/on.boarding-2021.2---Filtro-de-Receitas
273c0f852c66ecec840dc8db4bd3894ef727beb0
[ "MIT" ]
1
2022-03-12T01:09:35.000Z
2022-03-12T01:09:35.000Z
from django.db.backends.base.features import BaseDatabaseFeatures class DatabaseFeatures(BaseDatabaseFeatures): supports_transactions = False # djongo doesn't seem to support this currently has_bulk_insert = True has_native_uuid_field = True supports_timezones = False uses_savepoints = False ...
28.933333
65
0.78341
acfee2f4ce5fc6d7fc32cf8ec26f44ddd79b2df9
4,205
py
Python
tests/test_trs.py
rupertnash/cwltool
9ffdfe50aa5c8006d35a2a6f0ba22b772567a57f
[ "Apache-2.0" ]
null
null
null
tests/test_trs.py
rupertnash/cwltool
9ffdfe50aa5c8006d35a2a6f0ba22b772567a57f
[ "Apache-2.0" ]
15
2021-08-09T15:24:53.000Z
2022-03-30T20:17:42.000Z
tests/test_trs.py
rupertnash/cwltool
9ffdfe50aa5c8006d35a2a6f0ba22b772567a57f
[ "Apache-2.0" ]
2
2021-10-01T10:08:32.000Z
2021-10-01T11:53:48.000Z
from typing import Any, Optional from unittest import mock from unittest.mock import MagicMock from cwltool.main import main from .util import get_data class MockResponse1: def __init__( self, json_data: Any, status_code: int, raise_for_status: Optional[bool] = None ) -> None: """Create a fa...
36.565217
177
0.656361
acfee3c1fd520d66b260a93f6c58f154fe5c1f80
1,573
py
Python
source/week5/homework_answer/3DReconstruction/stereoconfig.py
chargerKong/3D_detection
d3fb7926413f86be9f8aceac169285ee03c8db00
[ "Apache-2.0" ]
null
null
null
source/week5/homework_answer/3DReconstruction/stereoconfig.py
chargerKong/3D_detection
d3fb7926413f86be9f8aceac169285ee03c8db00
[ "Apache-2.0" ]
null
null
null
source/week5/homework_answer/3DReconstruction/stereoconfig.py
chargerKong/3D_detection
d3fb7926413f86be9f8aceac169285ee03c8db00
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 import numpy as np ####################仅仅是一个示例################################### # 双目相机参数 class stereoCamera1(object): #class stereoCameral(object): def __init__(self): # 左相机内参 self.cam_matrix_left = np.array([[1499.64168081943, 0, 1097.61651199043], ...
41.394737
147
0.546726
acfee45ee17163a01bbcd9311175f74a0c8e4c93
96
py
Python
app_kitchen/apps.py
CBaut/kitchen
1efb0fb5c1e32ea704ce5678cb781b1e41e73441
[ "MIT" ]
null
null
null
app_kitchen/apps.py
CBaut/kitchen
1efb0fb5c1e32ea704ce5678cb781b1e41e73441
[ "MIT" ]
10
2020-01-09T02:34:04.000Z
2020-02-28T00:02:26.000Z
app_kitchen/apps.py
CBaut/kitchen
1efb0fb5c1e32ea704ce5678cb781b1e41e73441
[ "MIT" ]
1
2020-06-23T17:33:24.000Z
2020-06-23T17:33:24.000Z
from django.apps import AppConfig class AppKitchenConfig(AppConfig): name = 'app_kitchen'
16
34
0.770833
acfee5801fdb2d45cc863f6ca55c7f9ca953f100
8,657
py
Python
protocall/interpreter/parser_converter.py
google/protocall
0b02cdaa696c883ce3ececb41341e6648d325fec
[ "Apache-2.0" ]
16
2016-07-17T14:47:03.000Z
2021-10-12T03:35:44.000Z
protocall/interpreter/parser_converter.py
google/protocall
0b02cdaa696c883ce3ececb41341e6648d325fec
[ "Apache-2.0" ]
null
null
null
protocall/interpreter/parser_converter.py
google/protocall
0b02cdaa696c883ce3ececb41341e6648d325fec
[ "Apache-2.0" ]
11
2016-09-17T14:32:21.000Z
2021-10-12T03:35:39.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
40.834906
213
0.753148
acfee5f389dbe8a9df1885000c7fc6bac770a59b
1,260
py
Python
chpt6/chessboard.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
null
null
null
chpt6/chessboard.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
2
2018-05-21T09:39:00.000Z
2018-05-27T15:59:15.000Z
chpt6/chessboard.py
GDG-Buea/learn-python
9dfe8caa4b57489cf4249bf7e64856062a0b93c2
[ "Apache-2.0" ]
2
2018-05-19T14:59:56.000Z
2018-05-19T15:25:48.000Z
# This program displays two chessboards side by side # # Draw one chessboard whose upper-left corner is at # # (startx, starty) and bottom-right corner is at (endx, endy) # def drawChessboard(startx, endx, starty, endy): import turtle def draw_chessboard(x, y): # Draw chess board borders turtle.speed(50) ...
24.230769
63
0.556349
acfee6620e5db44d158757e1a512e70f89e62c55
29,236
py
Python
plugins/modules/oci_compute_image.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
108
2020-05-19T20:46:10.000Z
2022-03-25T14:10:01.000Z
plugins/modules/oci_compute_image.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
90
2020-06-14T22:07:11.000Z
2022-03-07T05:40:29.000Z
plugins/modules/oci_compute_image.py
slmjy/oci-ansible-collection
349c91e2868bf4706a6e3d6fb3b47fc622bfe11b
[ "Apache-2.0" ]
42
2020-08-30T23:09:12.000Z
2022-03-25T16:58:01.000Z
#!/usr/bin/python # Copyright (c) 2020, 2021 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICENSE.TXT for d...
42.74269
159
0.606513
acfee7f71274fd5cc93bd63bf09f0d892f9fafff
680
py
Python
blumycelium/the_exceptions.py
bluwr-tech/blumycelium
8f6b24b42244869682d3bd2e5b31428a48c98872
[ "Apache-2.0" ]
2
2022-03-15T10:36:22.000Z
2022-03-23T10:36:35.000Z
blumycelium/the_exceptions.py
bluwr-tech/blumycelium
8f6b24b42244869682d3bd2e5b31428a48c98872
[ "Apache-2.0" ]
null
null
null
blumycelium/the_exceptions.py
bluwr-tech/blumycelium
8f6b24b42244869682d3bd2e5b31428a48c98872
[ "Apache-2.0" ]
null
null
null
class EmptyParameter(Exception): """Represents an empty parameter""" pass class EmptyAnnotationError(Exception): """""" pass class PlaceHolerKeyError(Exception): """""" pass class RedundantParameterError(Exception): """""" pass class ParameterTypeError(Exception): """""" pas...
13.333333
41
0.630882
acfee8304d9809c3dc701bec067c7c1f889882ec
499
py
Python
data/scripts/templates/object/tangible/ship/crafted/booster/shared_base_booster_subcomponent_mk3.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/ship/crafted/booster/shared_base_booster_subcomponent_mk3.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/ship/crafted/booster/shared_base_booster_subcomponent_mk3.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/ship/crafted/booster/shared_base_booster_subcomponent_mk3.iff" resu...
29.352941
98
0.753507
acfeea519e7fca9b20bc10ea3184d0733d65386c
66,995
py
Python
scripts/dpdk_setup_ports.py
mcallaghan-sandvine/trex-core
55fc1ed6d2e3d066e7895321eae233bb0339b722
[ "Apache-2.0" ]
null
null
null
scripts/dpdk_setup_ports.py
mcallaghan-sandvine/trex-core
55fc1ed6d2e3d066e7895321eae233bb0339b722
[ "Apache-2.0" ]
3
2018-04-25T20:28:49.000Z
2018-07-16T13:45:40.000Z
scripts/dpdk_setup_ports.py
mcallaghan-sandvine/trex-core
55fc1ed6d2e3d066e7895321eae233bb0339b722
[ "Apache-2.0" ]
null
null
null
#! /bin/bash "source" "find_python.sh" "--local" "exec" "$PYTHON" "$0" "$@" # hhaim import sys import os python_ver = 'python%s' % sys.version_info[0] yaml_path = os.path.join('external_libs', 'pyyaml-3.11', python_ver) if yaml_path not in sys.path: sys.path.append(yaml_path) import yaml import dpdk_nic_bind impor...
45.761612
203
0.575401
acfeeaf7ac308bbe453b24bcf9bee001b256b85e
8,498
py
Python
django/db/backends/postgresql_psycopg2/operations.py
jezdez-archive/django-old
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2019-06-13T16:18:27.000Z
2019-06-13T16:18:27.000Z
django/db/backends/postgresql_psycopg2/operations.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
null
null
null
django/db/backends/postgresql_psycopg2/operations.py
sirmmo/rango
9e28c4f4e90f8dfcfbb55bb13be437afb4f870e9
[ "BSD-3-Clause" ]
1
2020-07-15T05:01:00.000Z
2020-07-15T05:01:00.000Z
from django.db.backends import BaseDatabaseOperations class DatabaseOperations(BaseDatabaseOperations): def __init__(self, connection): super(DatabaseOperations, self).__init__(connection) def date_extract_sql(self, lookup_type, field_name): # http://www.postgresql.org/docs/8.0/static/functio...
44.031088
184
0.592375
acfeeca74ef7710d9287b7db68d6fedd46a4b53c
1,014
py
Python
main.py
seanwu1105/neural-network-sandbox
bebac433f1eb9aa16e17d13c6034319c1ee7fff4
[ "MIT" ]
60
2019-08-06T23:59:20.000Z
2022-03-27T05:43:07.000Z
main.py
seanwu1105/neural-network-sandbox
bebac433f1eb9aa16e17d13c6034319c1ee7fff4
[ "MIT" ]
null
null
null
main.py
seanwu1105/neural-network-sandbox
bebac433f1eb9aa16e17d13c6034319c1ee7fff4
[ "MIT" ]
14
2019-09-17T12:34:55.000Z
2022-02-24T03:16:05.000Z
import os import sys import PyQt5.QtQml import PyQt5.QtCore import PyQt5.QtWidgets from nn_sandbox.bridges import PerceptronBridge, MlpBridge, RbfnBridge, SomBridge import nn_sandbox.backend.utils if __name__ == '__main__': os.environ['QT_QUICK_CONTROLS_STYLE'] = 'Default' # XXX: Why I Have To ...
30.727273
82
0.680473
acfeecdc8cd22edefd9da9d34212d384d82e4cd9
1,287
py
Python
setup.py
xHossein/radiojavanapi
1ccf8af1e4c8688c10adbd56817b7da66d801712
[ "MIT" ]
11
2021-02-08T10:04:49.000Z
2022-03-26T09:33:31.000Z
setup.py
xHossein/radiojavanapi
1ccf8af1e4c8688c10adbd56817b7da66d801712
[ "MIT" ]
1
2022-02-07T15:28:40.000Z
2022-02-08T11:46:30.000Z
setup.py
xHossein/radiojavanapi
1ccf8af1e4c8688c10adbd56817b7da66d801712
[ "MIT" ]
1
2022-03-26T09:39:09.000Z
2022-03-26T09:39:09.000Z
import pathlib from setuptools import find_packages, setup HERE = pathlib.Path(__file__).parent README = (HERE / "README.md").read_text(encoding='utf-8') requirements = [ 'requests==2.25.1', 'requests-toolbelt==0.9.1', 'PySocks==1.7.1', 'pydantic==1.8.1' ] setup( name='radiojavanapi...
33
99
0.625486
acfeed0f955f52d38a5b4256129978a4d4a1892a
651
py
Python
sirbro_rest_example_cli/sirbro_app/api/apiv1.py
bboortz/sirbro
f0ea4d1dfba262ea8149dd7131a712255b2896ae
[ "Apache-2.0" ]
null
null
null
sirbro_rest_example_cli/sirbro_app/api/apiv1.py
bboortz/sirbro
f0ea4d1dfba262ea8149dd7131a712255b2896ae
[ "Apache-2.0" ]
null
null
null
sirbro_rest_example_cli/sirbro_app/api/apiv1.py
bboortz/sirbro
f0ea4d1dfba262ea8149dd7131a712255b2896ae
[ "Apache-2.0" ]
null
null
null
from sirbro_app.appconfig import AppConfig from sirbro_lib.logger import getLogger from sirbro_lib.client import BaseClient import urllib.request LOGGER = getLogger('apiv1') API_VERSION = "v1" BASE_URL = "%s/%s" % (AppConfig.BASE_URL, API_VERSION) class Client(BaseClient): def __init__(self): self....
20.34375
67
0.674347
acfeed199af18df472a89ca1616664d925f4748d
88
py
Python
tutorials/alice_bob_lab/{{cookiecutter.repo_name}}/{{cookiecutter.model_name}}/__init__.py
modelyst/dbgen-model-template
39c3b84527bc4f01ea3f810d7873e6edf8f056c3
[ "Apache-2.0" ]
null
null
null
tutorials/alice_bob_lab/{{cookiecutter.repo_name}}/{{cookiecutter.model_name}}/__init__.py
modelyst/dbgen-model-template
39c3b84527bc4f01ea3f810d7873e6edf8f056c3
[ "Apache-2.0" ]
null
null
null
tutorials/alice_bob_lab/{{cookiecutter.repo_name}}/{{cookiecutter.model_name}}/__init__.py
modelyst/dbgen-model-template
39c3b84527bc4f01ea3f810d7873e6edf8f056c3
[ "Apache-2.0" ]
null
null
null
"""{{cookiecutter.model_name}} DBGen Model""" __version__ = "{{cookiecutter.version}}"
22
45
0.704545
acfeed927f907c32cb06a37ba956dd7b72d10a0f
7,173
py
Python
qvantum/check_circuit.py
vorpex/qvantum
07e9f749e0a6c9b2ffdfa3e562ca52f23bd4d2a8
[ "MIT" ]
1
2019-05-13T06:28:25.000Z
2019-05-13T06:28:25.000Z
qvantum/check_circuit.py
vorpex/qvantum
07e9f749e0a6c9b2ffdfa3e562ca52f23bd4d2a8
[ "MIT" ]
null
null
null
qvantum/check_circuit.py
vorpex/qvantum
07e9f749e0a6c9b2ffdfa3e562ca52f23bd4d2a8
[ "MIT" ]
null
null
null
'''checking functions for circuit class''' # pylint: disable=E1101, W1401 from . import layer from . import register def circuit_init_check(function): """Decorator to check the arguments of initialization function in circuit class. Arguments: function {} -- The tested function """ def w...
34.990244
160
0.557786
acfeee0de2ebf2f9d0b4d6b633b072daed8e9128
1,174
py
Python
make_static_dyno.py
DynoBits/generate-bitbirds
9443f32be90925a0b791989e67e2acf7fa733da9
[ "MIT" ]
3
2021-08-06T17:22:10.000Z
2022-03-18T12:55:46.000Z
make_static_dyno.py
DynoBits/generate-bitbirds
9443f32be90925a0b791989e67e2acf7fa733da9
[ "MIT" ]
null
null
null
make_static_dyno.py
DynoBits/generate-bitbirds
9443f32be90925a0b791989e67e2acf7fa733da9
[ "MIT" ]
3
2021-03-26T18:02:41.000Z
2021-11-16T09:51:24.000Z
import dyno_colors as dc from dyno_bit import DynoBit from dyno_gif import make_temp_file_names, remove_temp_files, save_dyno_gif # For random list choice from random import choice # Set save_dyno to false if random needed - debugging gif generation script def make_static_dyno(gif_name, dyno=DynoBit(), static_color...
34.529412
87
0.752981
acfeee31d618c33c81d07bad08baa36537302197
11,798
py
Python
kinova_demo/nodes/kinova_demo/robot_control_modules.py
Aachen-Armchair-Engineers/kinova-ros
8735e8a964df7836855e9b1b128e1d7a6134af4e
[ "BSD-3-Clause" ]
null
null
null
kinova_demo/nodes/kinova_demo/robot_control_modules.py
Aachen-Armchair-Engineers/kinova-ros
8735e8a964df7836855e9b1b128e1d7a6134af4e
[ "BSD-3-Clause" ]
null
null
null
kinova_demo/nodes/kinova_demo/robot_control_modules.py
Aachen-Armchair-Engineers/kinova-ros
8735e8a964df7836855e9b1b128e1d7a6134af4e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """A set of example functions that can be used to control the arm""" import rospy import actionlib import kinova_msgs.msg import geometry_msgs.msg import tf import std_msgs.msg import math import thread from kinova_msgs.srv import * from sensor_msgs.msg import JointState import argparse def arg...
34.905325
243
0.699525
acfeee438d066d2e298abfec68cf84d1a54d5b29
15,396
py
Python
horizon/openstack_dashboard/usage/quotas.py
sreenathmenon/openstackTFA
8c765f2728b82cf78c4d2bfd5c6a36ebf9302f2b
[ "Apache-2.0" ]
null
null
null
horizon/openstack_dashboard/usage/quotas.py
sreenathmenon/openstackTFA
8c765f2728b82cf78c4d2bfd5c6a36ebf9302f2b
[ "Apache-2.0" ]
null
null
null
horizon/openstack_dashboard/usage/quotas.py
sreenathmenon/openstackTFA
8c765f2728b82cf78c4d2bfd5c6a36ebf9302f2b
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under t...
38.014815
79
0.627631
acfef01d7dcdcc7d172aa11d28e11dce2af05fa4
12,355
py
Python
swarm_search/src/ground_station_6_SIP.py
acr-iitkgp/swarm_search
3857edde0238c2f5d83a33c8969e6e3e3b9a3dcf
[ "MIT" ]
6
2020-01-07T15:45:14.000Z
2021-06-19T12:14:20.000Z
swarm_search/src/ground_station_6_SIP.py
manthan99/swarm_search
3857edde0238c2f5d83a33c8969e6e3e3b9a3dcf
[ "MIT" ]
null
null
null
swarm_search/src/ground_station_6_SIP.py
manthan99/swarm_search
3857edde0238c2f5d83a33c8969e6e3e3b9a3dcf
[ "MIT" ]
3
2020-04-21T06:29:26.000Z
2020-11-23T05:39:41.000Z
from math import sin, cos, sqrt, atan2, radians import copy import matplotlib.pyplot as plt import rospy from geometry_msgs.msg import PoseStamped from geometry_msgs.msg import Pose2D from swarm_search.msg import sip_goal2 from nav_msgs.msg import Odometry from mavros_msgs.msg import State from mavros_msgs.msg import...
23.533333
119
0.680372
acfef0f5b021e96b43dafa722271b258a345bc22
211
py
Python
fwl-automation-decisions/domain/src/domain/model/zone_connection/__init__.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
fwl-automation-decisions/domain/src/domain/model/zone_connection/__init__.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
fwl-automation-decisions/domain/src/domain/model/zone_connection/__init__.py
aherculano/fwl-project
6d4c4d40393b76d45cf13b572b5aabc0696e9285
[ "MIT" ]
null
null
null
from .ZoneConnection import ZoneConnection from .AllowedPort import AllowedPort from .Criticality import Criticality from .ZoneConnectionRepository import ZoneConnectionRepository from .ZonePair import ZonePair
35.166667
62
0.881517
acfef212fc80e8b2e28bf9e71ef9c5e8d9598f7a
960
py
Python
backend/db_create_table.py
mario21ic/api-demo
10c7cab2f01ba786fea8888246d0ab200477352f
[ "MIT" ]
null
null
null
backend/db_create_table.py
mario21ic/api-demo
10c7cab2f01ba786fea8888246d0ab200477352f
[ "MIT" ]
null
null
null
backend/db_create_table.py
mario21ic/api-demo
10c7cab2f01ba786fea8888246d0ab200477352f
[ "MIT" ]
3
2019-03-14T03:03:02.000Z
2019-11-25T00:31:20.000Z
import mysql.connector from mysql.connector import Error from mysql.connector import errorcode try: connection = mysql.connector.connect(host='db', database='api_db', user='root', password='myclave') sql_insert_query = "CREATE...
35.555556
195
0.667708
acfef44ad081936577aa54d4900ae95a511a1a70
2,590
py
Python
pymoo/algorithms/soo/nonconvex/isres.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
762
2018-06-05T20:56:09.000Z
2021-09-14T09:09:42.000Z
pymoo/algorithms/soo/nonconvex/isres.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
176
2018-09-05T18:37:05.000Z
2021-09-14T01:18:43.000Z
pymoo/algorithms/soo/nonconvex/isres.py
jarreguit/pymoo
0496a3c6765826148d8bab21650736760517dd25
[ "Apache-2.0" ]
160
2018-08-05T05:31:20.000Z
2021-09-14T09:09:45.000Z
from math import sqrt, log, exp import numpy as np from pymoo.algorithms.soo.nonconvex.es import es_sigma, es_mut_repair from pymoo.algorithms.soo.nonconvex.sres import SRES from pymoo.docs import parse_doc_string from pymoo.core.population import Population class ISRES(SRES): def __init__(self, gamma=0.85, al...
35
110
0.610039
acfef45169985f1478221b20bbf7496fd3c1a36e
496
py
Python
libs/cocos/wired.py
HieuLsw/blobjob.editor
c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
libs/cocos/wired.py
HieuLsw/blobjob.editor
c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
libs/cocos/wired.py
HieuLsw/blobjob.editor
c33473ffb7836a70ba3a1b2a9dd9452a9d3a1b81
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
from pyglet.gl import * from pyglet import window, image import shader __all__ = ['wired'] test_v = ''' varying vec3 position; void main() { gl_Position = ftransform(); position = gl_Position.xyz; } ''' test_f = ''' uniform vec4 color; void main() { gl_FragColor = color; } ''' def load_shader(): ...
15.030303
56
0.667339
acfef458281d7674d86d8fbc8d5c2629ebf587eb
13,087
py
Python
ivy/functional/backends/tensorflow/linear_algebra.py
RitujaPawas/ivy
595788507aca609e868cb3d17edd815463af28e4
[ "Apache-2.0" ]
2
2022-02-09T12:59:22.000Z
2022-02-10T23:39:01.000Z
ivy/functional/backends/tensorflow/linear_algebra.py
RitujaPawas/ivy
595788507aca609e868cb3d17edd815463af28e4
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/tensorflow/linear_algebra.py
RitujaPawas/ivy
595788507aca609e868cb3d17edd815463af28e4
[ "Apache-2.0" ]
1
2022-03-17T00:22:36.000Z
2022-03-17T00:22:36.000Z
# global import tensorflow as tf from tensorflow.python.types.core import Tensor from typing import Union, Optional, Tuple, Literal, List, NamedTuple from collections import namedtuple # local from ivy import inf import ivy # Array API Standard # # -------------------# def eigh(x: Tensor, out: Optional[Tensor] = N...
29.212054
87
0.582868
acfef6a81f442febf6575b6838cdcaa1e6e85d21
2,988
py
Python
atlas/foundations_internal/src/foundations_internal/config/execution.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_internal/src/foundations_internal/config/execution.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_internal/src/foundations_internal/config/execution.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
def translate(config): from jsonschema import validate import foundations_contrib import yaml with open( f"{foundations_contrib.root()}/resources/config_validation/execution.yaml" ) as file: schema = yaml.load(file.read()) validate(instance=config, schema=schema) result_e...
34.344828
87
0.759705
acfef6b4357a4f481cf8dbf77a0069d5ba394cce
1,377
py
Python
spydrnet_physical/util/__init__.py
talashilkarraj/spydrnet-physical
d13bcbb0feef7d5c93aa60af4a916f837128a5ad
[ "BSD-3-Clause" ]
3
2021-11-05T18:25:21.000Z
2022-03-02T22:03:02.000Z
spydrnet_physical/util/__init__.py
talashilkarraj/spydrnet-physical
d13bcbb0feef7d5c93aa60af4a916f837128a5ad
[ "BSD-3-Clause" ]
null
null
null
spydrnet_physical/util/__init__.py
talashilkarraj/spydrnet-physical
d13bcbb0feef7d5c93aa60af4a916f837128a5ad
[ "BSD-3-Clause" ]
2
2022-01-10T14:27:59.000Z
2022-03-13T08:21:33.000Z
from spydrnet_physical.util.base_class import (OpenFPGA_Config_Generator, OpenFPGA_Placement_Generator, OpenFPGA_Tile_Generator) from spydrnet_physical.util.initial_placement import initial_placement from spydrnet_physical.ut...
59.869565
89
0.732026
acfef7e6136463f2203bab39a0a9e2d5f699122b
671
py
Python
portfolio/projects/migrations/0001_initial.py
carloocchiena/django_boilerplate
5024ca85ce3469144c5505ae090c69ef98df2838
[ "MIT" ]
1
2022-03-31T21:40:45.000Z
2022-03-31T21:40:45.000Z
portfolio/projects/migrations/0001_initial.py
carloocchiena/django_boilerplate
5024ca85ce3469144c5505ae090c69ef98df2838
[ "MIT" ]
null
null
null
portfolio/projects/migrations/0001_initial.py
carloocchiena/django_boilerplate
5024ca85ce3469144c5505ae090c69ef98df2838
[ "MIT" ]
1
2022-03-31T20:58:37.000Z
2022-03-31T20:58:37.000Z
# Generated by Django 4.0.2 on 2022-03-11 11:29 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Project', fields=[ ('id', models.BigAutoFie...
26.84
117
0.563338
acfef98cffe300d25c3e91f8ea8cf422e9a7113d
1,081
py
Python
Chapter 12/code/frequency_transformer.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
387
2017-02-11T18:28:50.000Z
2022-03-27T01:16:05.000Z
Chapter 12/code/frequency_transformer.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
18
2017-12-15T03:10:25.000Z
2021-04-20T14:32:43.000Z
Chapter 12/code/frequency_transformer.py
shivampotdar/Artificial-Intelligence-with-Python
00221c3b1a6d8003765d1ca48b5c95f86da375d9
[ "MIT" ]
407
2017-01-23T15:18:33.000Z
2022-03-16T05:39:02.000Z
import numpy as np import matplotlib.pyplot as plt from scipy.io import wavfile # Read the audio file sampling_freq, signal = wavfile.read('spoken_word.wav') # Normalize the values signal = signal / np.power(2, 15) # Extract the length of the audio signal len_signal = len(signal) # Extract the half length len_half...
23
74
0.730805
acfef9c43f1f958e01f9074c3f515744295cee42
1,724
py
Python
data_structures/linked_lists/doubly_linked_list/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
1
2022-01-07T18:04:26.000Z
2022-01-07T18:04:26.000Z
data_structures/linked_lists/doubly_linked_list/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
null
null
null
data_structures/linked_lists/doubly_linked_list/implementation.py
karim7262/algorithms-and-datastructures-python
c6c4d1166d07eed549a5f97806222c7a20312d0f
[ "MIT" ]
null
null
null
from typing import Any class Node: """ models a node in a doubly linked list """ def __init__(self, data: Any) -> None: self.data = data self.next_node = None self.previous_node = None class DoublyLinkedList: """ models a doubly linked list data structure ...
24.985507
70
0.62471
acfefb38920c7fd9ff4b249a043150d5c5fa762c
934
py
Python
mkchain/setup.py
chapeltech/tezos-k8s
161189dd0968498032ce4b17a2a5122fc7e6cfdb
[ "MIT" ]
null
null
null
mkchain/setup.py
chapeltech/tezos-k8s
161189dd0968498032ce4b17a2a5122fc7e6cfdb
[ "MIT" ]
1
2022-03-25T14:39:17.000Z
2022-03-25T14:39:17.000Z
mkchain/setup.py
chapeltech/tezos-k8s
161189dd0968498032ce4b17a2a5122fc7e6cfdb
[ "MIT" ]
1
2021-02-11T02:48:04.000Z
2021-02-11T02:48:04.000Z
import setuptools import versioneer with open("README.md", "r") as readme: long_description = readme.read() setuptools.setup( name="mkchain", version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), packages=["tqchain"], author="TQ Tezos", description="A utility to generate k...
31.133333
75
0.675589
acfefc056226000d8a70d9ed0674e8f3fdedcded
1,644
py
Python
OLD notebooks/archive/review.py
nicholasneo78/information-retrieval-4034
9c951531b2c8dc15406cfe26e2a658d27d7230fb
[ "MIT" ]
1
2021-05-08T09:27:09.000Z
2021-05-08T09:27:09.000Z
OLD notebooks/archive/review.py
nicholasneo78/information-retrieval-4034
9c951531b2c8dc15406cfe26e2a658d27d7230fb
[ "MIT" ]
null
null
null
OLD notebooks/archive/review.py
nicholasneo78/information-retrieval-4034
9c951531b2c8dc15406cfe26e2a658d27d7230fb
[ "MIT" ]
1
2021-08-05T08:25:18.000Z
2021-08-05T08:25:18.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import pandas as pd from pynput import keyboard DATA_PATH = "Annotated.csv" data = pd.read_csv(DATA_PATH) stop = False idx = 0 end = 332 target = 7 def annotate(val): global idx print(f'[Annotate {idx} as {val}]') ...
23.826087
66
0.537105
acfefc9579f7183e61c34c8168832a90eac32b91
7,946
py
Python
umd/base/configure/puppet.py
egi-qc/umd-verification
328e875f9633c9e602e9eea61d2590def373098e
[ "Apache-2.0" ]
1
2019-10-31T10:41:37.000Z
2019-10-31T10:41:37.000Z
umd/base/configure/puppet.py
egi-qc/umd-verification
328e875f9633c9e602e9eea61d2590def373098e
[ "Apache-2.0" ]
12
2015-06-04T12:08:18.000Z
2018-06-05T09:54:58.000Z
umd/base/configure/puppet.py
egi-qc/umd-verification
328e875f9633c9e602e9eea61d2590def373098e
[ "Apache-2.0" ]
3
2015-09-15T13:15:50.000Z
2018-04-26T15:10:24.000Z
# 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, software # distributed under t...
39.73
79
0.55701
acfefcb82ccee7027e845b03554db8453f6b9ae4
4,292
py
Python
tests/test_helpers.py
schumskie/quill-delta-python
2cd359e8a442a36960875f155b8f1be277e1de56
[ "MIT" ]
29
2019-05-16T16:31:15.000Z
2021-11-18T14:46:07.000Z
tests/test_helpers.py
schumskie/quill-delta-python
2cd359e8a442a36960875f155b8f1be277e1de56
[ "MIT" ]
13
2019-05-12T03:24:06.000Z
2021-05-10T22:40:28.000Z
tests/test_helpers.py
schumskie/quill-delta-python
2cd359e8a442a36960875f155b8f1be277e1de56
[ "MIT" ]
9
2019-08-19T07:51:41.000Z
2021-11-23T12:10:00.000Z
import json from delta import Delta try: import mock except ImportError: from unittest import mock def get_args(mock, index): args, kwargs = mock.call_args_list[index] return args def test_each_line(): # Expected delta = Delta().insert('Hello\n\n') \ .insert('World', bold=...
25.099415
101
0.568733
acfefd94d8997c0e03b13c86ea715556cb7a8ad4
1,462
py
Python
wechatpy/client/api/__init__.py
MetrodataTeam/wechatpy
37e2a2597335665758c47340f9bcba4ea44ac1f8
[ "MIT" ]
1
2018-12-24T12:04:36.000Z
2018-12-24T12:04:36.000Z
wechatpy/client/api/__init__.py
MetrodataTeam/wechatpy
37e2a2597335665758c47340f9bcba4ea44ac1f8
[ "MIT" ]
null
null
null
wechatpy/client/api/__init__.py
MetrodataTeam/wechatpy
37e2a2597335665758c47340f9bcba4ea44ac1f8
[ "MIT" ]
1
2019-04-03T10:43:42.000Z
2019-04-03T10:43:42.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from wechatpy.client.api.card import WeChatCard # NOQA from wechatpy.client.api.customservice import WeChatCustomService # NOQA from wechatpy.client.api.datacube import WeChatDataCube # NOQA from wechatpy.client.api.device import WeCha...
54.148148
73
0.812585
acff0101ae51b654b416c980cc5b363ea0be6f60
1,637
py
Python
oops_fhir/r4/code_system/v3_act_uncertainty.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/v3_act_uncertainty.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/v3_act_uncertainty.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["v3ActUncertainty"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class v3ActUncertainty: """ v3 Code System ActUncertainty OpenIssue: Missin...
30.314815
211
0.678681
acff01cb6181a940130ae7708968717c47679b3d
1,598
py
Python
src/main/resources/Script/playerCreation.py
lovish1996/cricket-tournament
5d6c6bc3dc40c5fa30cf40164c6b5ce37bd27fbb
[ "MIT" ]
null
null
null
src/main/resources/Script/playerCreation.py
lovish1996/cricket-tournament
5d6c6bc3dc40c5fa30cf40164c6b5ce37bd27fbb
[ "MIT" ]
null
null
null
src/main/resources/Script/playerCreation.py
lovish1996/cricket-tournament
5d6c6bc3dc40c5fa30cf40164c6b5ce37bd27fbb
[ "MIT" ]
null
null
null
# Run the command `python3 src/main/resources/Script/playerCreation.py <DataFileName>` from the project root directory for running the script import json import os import pandas as pd import sys host = "localhost" port = "8080" apiEndPoint = "/players/createPlayer" def isNaN(num): return num != num def generat...
29.054545
141
0.605757
acff02c5f2d0230eac3b96db907fd194c927ffab
3,711
py
Python
evidently/widgets/reg_abs_perc_error_in_time_widget.py
alex-zenml/evidently
e9b683056661fcab8dc3fd4c2d4576b082d80d20
[ "Apache-2.0" ]
null
null
null
evidently/widgets/reg_abs_perc_error_in_time_widget.py
alex-zenml/evidently
e9b683056661fcab8dc3fd4c2d4576b082d80d20
[ "Apache-2.0" ]
null
null
null
evidently/widgets/reg_abs_perc_error_in_time_widget.py
alex-zenml/evidently
e9b683056661fcab8dc3fd4c2d4576b082d80d20
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import json from typing import Optional import pandas as pd import numpy as np import plotly.graph_objs as go from evidently.analyzers.regression_performance_analyzer import RegressionPerformanceAnalyzer from evidently.model.widget import BaseWidgetInfo from evidently.widgets....
33.736364
108
0.589868
acff02d5e3c2c006755632946d0fc76fe48deb34
168
py
Python
ImageProcessing-Python/blog03-roi/blog03-image02.py
Songner/image_classfication
c1f15b2b96544e859e14a92373eb57c6a2644a93
[ "MIT" ]
null
null
null
ImageProcessing-Python/blog03-roi/blog03-image02.py
Songner/image_classfication
c1f15b2b96544e859e14a92373eb57c6a2644a93
[ "MIT" ]
null
null
null
ImageProcessing-Python/blog03-roi/blog03-image02.py
Songner/image_classfication
c1f15b2b96544e859e14a92373eb57c6a2644a93
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import cv2 import numpy #读取图片 img = cv2.imread("test.jpg", cv2.IMREAD_UNCHANGED) #获取图像形状 print(img.shape) #获取像素数目 print(img.size)
12.923077
51
0.64881
acff036b1c0b74f71eed995ead1180e6e26fdfac
2,023
py
Python
web/migrations/versions/df4c282a125e_.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
web/migrations/versions/df4c282a125e_.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
web/migrations/versions/df4c282a125e_.py
michelangelo-prog/wishlist
0a17194274c4339425768b9ea08986fcf735efc9
[ "MIT" ]
null
null
null
"""empty message Revision ID: df4c282a125e Revises: Create Date: 2020-04-11 14:11:44.037995 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'df4c282a125e' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
33.716667
65
0.675235