hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
58f91a9f5c9302c8e95efa47c83b819f09e32089
1,248
py
Python
conanfile.py
midurk/conan-rapidxml
df93616a87ba41edd9def914f765fd8eae0007c5
[ "MIT" ]
null
null
null
conanfile.py
midurk/conan-rapidxml
df93616a87ba41edd9def914f765fd8eae0007c5
[ "MIT" ]
null
null
null
conanfile.py
midurk/conan-rapidxml
df93616a87ba41edd9def914f765fd8eae0007c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from conans import ConanFile, tools import os
37.818182
97
0.684295
58f92d8b76c80f99fb368b4b75fdb05787830601
2,772
py
Python
src_2d/help/compute_dice.py
xzluo97/MvMM-RegNet
c08d5df14b4a9c4a98c66973ff4950aba7f416e4
[ "MIT" ]
19
2020-07-14T02:23:58.000Z
2022-03-15T12:22:49.000Z
src_2d/help/compute_dice.py
xzluo97/MvMM-RegNet
c08d5df14b4a9c4a98c66973ff4950aba7f416e4
[ "MIT" ]
4
2020-09-25T22:42:40.000Z
2021-08-25T15:03:29.000Z
src_2d/help/compute_dice.py
xzluo97/MvMM-RegNet
c08d5df14b4a9c4a98c66973ff4950aba7f416e4
[ "MIT" ]
7
2020-08-29T15:46:13.000Z
2021-07-16T01:51:28.000Z
""" Compute Dice between test ground truth and predictions from groupwise registration. """ import os import nibabel as nib import glob import numpy as np from core import utils_2d from core.metrics_2d import OverlapMetrics if __name__ == '__main__': gt_path = '../../../../../../dataset/C0T2LG...
35.538462
119
0.626623
58f98f05dc6e23f4ee940bfbe966fafa9a03fa4c
14,359
py
Python
farmos_ext/farm.py
applecreekacres/farmos.py.ext
91db8a6d5532661650869d34c2ff94e1fed02f02
[ "MIT" ]
null
null
null
farmos_ext/farm.py
applecreekacres/farmos.py.ext
91db8a6d5532661650869d34c2ff94e1fed02f02
[ "MIT" ]
46
2021-02-21T21:05:07.000Z
2022-03-15T23:05:25.000Z
farmos_ext/farm.py
applecreekacres/farmos.py.ext
91db8a6d5532661650869d34c2ff94e1fed02f02
[ "MIT" ]
null
null
null
"""Main farm access.""" from __future__ import annotations import os from datetime import datetime from typing import Dict, Iterable, Iterator, List, Type, Union from farmos_ext.area import Area from farmos_ext.asset import Asset, Equipment, Planting from farmos_ext.log import (Activity, Birth, Harvest, Input, Log, ...
37.393229
109
0.537503
58f9aedfba7b25435acbe41455b6f6873bd36f40
2,768
py
Python
tests/io/v3/base/test_csv_iterator.py
alpesh-te/pyTenable
4b5381a7757561f7ac1e79c2e2679356dd533540
[ "MIT" ]
null
null
null
tests/io/v3/base/test_csv_iterator.py
alpesh-te/pyTenable
4b5381a7757561f7ac1e79c2e2679356dd533540
[ "MIT" ]
25
2021-11-16T18:41:36.000Z
2022-03-25T05:43:31.000Z
tests/io/v3/base/test_csv_iterator.py
alpesh-te/pyTenable
4b5381a7757561f7ac1e79c2e2679356dd533540
[ "MIT" ]
2
2022-03-02T12:24:40.000Z
2022-03-29T05:12:04.000Z
''' Testing the CSV iterators ''' import responses from tenable.io.v3.base.iterators.explore_iterator import CSVChunkIterator USERS_BASE_URL = r'https://cloud.tenable.com/api/v3/assets/search' CSV_TEXT = ( 'created,display_ipv4_address,first_observed,id,' 'ipv4_addresses,ipv6_addresses,is_deleted,is_license...
35.948052
74
0.695087
58fb3efb05d44bd1aa9c7179a47db0c343140765
3,716
py
Python
startt.py
OnyyMexicanCat/RinkoglionitoBot
12e48e679b46710bbeaa7e98f02b09a512609031
[ "MIT" ]
null
null
null
startt.py
OnyyMexicanCat/RinkoglionitoBot
12e48e679b46710bbeaa7e98f02b09a512609031
[ "MIT" ]
null
null
null
startt.py
OnyyMexicanCat/RinkoglionitoBot
12e48e679b46710bbeaa7e98f02b09a512609031
[ "MIT" ]
null
null
null
from telegram.ext import * from telegram import * import time
62.983051
655
0.660388
58fb480ae327d41355b8b8179c7dede058c21b5b
222
py
Python
server/config.py
nikitinivan/Crypton
90db77f4066d763e55f55c0fb540dc99aa2495e3
[ "MIT" ]
null
null
null
server/config.py
nikitinivan/Crypton
90db77f4066d763e55f55c0fb540dc99aa2495e3
[ "MIT" ]
null
null
null
server/config.py
nikitinivan/Crypton
90db77f4066d763e55f55c0fb540dc99aa2495e3
[ "MIT" ]
null
null
null
import os
24.666667
74
0.725225
58fc01c36853b26f8562e022eac13585ff61105f
69
py
Python
nbviewerbot/__main__.py
JohnPaton/nbviewerbot
a9564655ba041e53db9a6916fb424e9582704321
[ "MIT" ]
7
2018-08-06T20:02:13.000Z
2021-04-12T06:04:46.000Z
nbviewerbot/__main__.py
JohnPaton/nbviewerbot
a9564655ba041e53db9a6916fb424e9582704321
[ "MIT" ]
5
2018-09-13T20:53:32.000Z
2021-03-31T18:55:48.000Z
nbviewerbot/__main__.py
JohnPaton/nbviewerbot
a9564655ba041e53db9a6916fb424e9582704321
[ "MIT" ]
null
null
null
import nbviewerbot if __name__ == "__main__": nbviewerbot.cli()
13.8
26
0.710145
58fd05c379e33e35d0b95e61f85e13decd24ff2f
1,571
py
Python
fetch_data.py
ASabryMazroua/Arabic-Dialect-Classification
e0e778379a321022d4d05b54b067ab6541793434
[ "MIT" ]
1
2022-03-19T04:40:27.000Z
2022-03-19T04:40:27.000Z
fetch_data.py
ASabryMazroua/Arabic-Dialect-Classification
e0e778379a321022d4d05b54b067ab6541793434
[ "MIT" ]
null
null
null
fetch_data.py
ASabryMazroua/Arabic-Dialect-Classification
e0e778379a321022d4d05b54b067ab6541793434
[ "MIT" ]
null
null
null
import json import math import requests import pandas as pd def fetch_data(ids): ''' A function to fetch data from the API. Parameters: ids (list): A list of ids (integrs) to fetch Returns: text (dict): A dictionary where keys are the ids and values are the...
38.317073
89
0.624443
58fd528adc4ec458f11e0462bce2b5ed5cc03175
2,305
py
Python
tests/test.py
daniel-sasu/roadwatch-data-processor
10317998a7f336bd1a26dc95b54e7bb7785cfd22
[ "MIT" ]
null
null
null
tests/test.py
daniel-sasu/roadwatch-data-processor
10317998a7f336bd1a26dc95b54e7bb7785cfd22
[ "MIT" ]
null
null
null
tests/test.py
daniel-sasu/roadwatch-data-processor
10317998a7f336bd1a26dc95b54e7bb7785cfd22
[ "MIT" ]
null
null
null
# tests/test.py from rw_data_proc.core import * import unittest
39.741379
107
0.610846
58fdec912e446a48a537a766eb98ce253951af60
1,496
py
Python
booking_spaces/booking/forms.py
pvlvnk/booking
701c8e1d8ceefde03090cd93bf954874d9fe349e
[ "MIT" ]
null
null
null
booking_spaces/booking/forms.py
pvlvnk/booking
701c8e1d8ceefde03090cd93bf954874d9fe349e
[ "MIT" ]
null
null
null
booking_spaces/booking/forms.py
pvlvnk/booking
701c8e1d8ceefde03090cd93bf954874d9fe349e
[ "MIT" ]
null
null
null
from booking.models import Schedule, ParkingSpace from datetime import datetime as dt from django import forms
24.933333
73
0.68115
58ff16ed56b02ccd24c5cca15503e57704dd6fd0
20,793
py
Python
tests/unit/aiplatform/test_matching_engine_index_endpoint.py
kthytang/python-aiplatform
e82c1792293396045a1032df015a3700fc38609b
[ "Apache-2.0" ]
null
null
null
tests/unit/aiplatform/test_matching_engine_index_endpoint.py
kthytang/python-aiplatform
e82c1792293396045a1032df015a3700fc38609b
[ "Apache-2.0" ]
null
null
null
tests/unit/aiplatform/test_matching_engine_index_endpoint.py
kthytang/python-aiplatform
e82c1792293396045a1032df015a3700fc38609b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.537097
90
0.67994
58ff85cb63e954368b68902aa3d1e1f0e1df7bef
1,440
py
Python
vrc_log_viewer.py
27Cobalter/vrc_log_viewer
00b5d106488fb95c605ef873a75fd26bd7d1d37f
[ "MIT" ]
2
2019-08-29T05:58:22.000Z
2019-09-09T15:29:16.000Z
vrc_log_viewer.py
27Cobalter/vrc_log_viewer
00b5d106488fb95c605ef873a75fd26bd7d1d37f
[ "MIT" ]
1
2022-03-20T08:11:00.000Z
2022-03-20T08:11:00.000Z
vrc_log_viewer.py
27Cobalter/vrc_log_viewer
00b5d106488fb95c605ef873a75fd26bd7d1d37f
[ "MIT" ]
2
2020-02-04T03:19:57.000Z
2021-02-08T15:17:22.000Z
import glob import os import re import sys import time import yaml if __name__ == "__main__": with open("config.yml", "r") as config: conf = yaml.load(config, Loader=yaml.SafeLoader) print("load config") reg = [] for pattern in conf["reg"]: print(" " + pattern) reg.append(re....
27.169811
80
0.532639
450019e12b1cc5c40f3f6bff8bbb906c38cceb65
9,032
py
Python
src/intermediate_representation/sem2sql/infer_from_clause.py
brunnurs/proton
057889e2bcefd2e7e6bc3b0fcdf418a2123767a0
[ "Apache-2.0" ]
null
null
null
src/intermediate_representation/sem2sql/infer_from_clause.py
brunnurs/proton
057889e2bcefd2e7e6bc3b0fcdf418a2123767a0
[ "Apache-2.0" ]
null
null
null
src/intermediate_representation/sem2sql/infer_from_clause.py
brunnurs/proton
057889e2bcefd2e7e6bc3b0fcdf418a2123767a0
[ "Apache-2.0" ]
null
null
null
def _find_and_remove_star_table(columns, join_clause): """ Starting from 3 tables we have to deal with the "star-table" effect - a join with a joining table where we only wanna know e.g. the count(*) of the third table. In that case we don't need to join the third table - we just do a count over the jo...
45.616162
175
0.665633
450109704aaa9e57ec8952a08e13c1c362e0340c
21
py
Python
test.py
AlanFnz/profiles-rest-api
c606999f86235ed74fd98421bd02bc598d5a5463
[ "MIT" ]
null
null
null
test.py
AlanFnz/profiles-rest-api
c606999f86235ed74fd98421bd02bc598d5a5463
[ "MIT" ]
null
null
null
test.py
AlanFnz/profiles-rest-api
c606999f86235ed74fd98421bd02bc598d5a5463
[ "MIT" ]
null
null
null
print('Test script')
10.5
20
0.714286
45022a2b63c33a9252e7e2198671dfbcf5309e06
2,208
py
Python
src/markdown_storage/folder.py
stephanpoetschner/markdown_storage
69005db4484010e0d2282bdeb0d0bcc30a316932
[ "MIT" ]
null
null
null
src/markdown_storage/folder.py
stephanpoetschner/markdown_storage
69005db4484010e0d2282bdeb0d0bcc30a316932
[ "MIT" ]
null
null
null
src/markdown_storage/folder.py
stephanpoetschner/markdown_storage
69005db4484010e0d2282bdeb0d0bcc30a316932
[ "MIT" ]
null
null
null
import os from .exceptions import MarkdownError, MetadataError from .file import ContentFile # def __next__(self): # import ipdb; ipdb.set_trace() # for file in self._files: # return file # raise StopIteration # def sort(self, key=None, reverse=False): # return Co...
24
62
0.579257
4506dc61f56a8eae8242703dae9838d15d5a49a2
2,327
py
Python
test/test_session.py
Sunmxt/UESTC-EAMS
760a7387a5d73967e45a0b9d211acb383bb50fe1
[ "Apache-2.0" ]
1
2020-07-25T13:53:35.000Z
2020-07-25T13:53:35.000Z
test/test_session.py
Sunmxt/UESTC-EAMS
760a7387a5d73967e45a0b9d211acb383bb50fe1
[ "Apache-2.0" ]
null
null
null
test/test_session.py
Sunmxt/UESTC-EAMS
760a7387a5d73967e45a0b9d211acb383bb50fe1
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/python ''' Test for session module ''' import unittest import uestc_eams from .mock_server import LoginMockServer from .utils import HookedMethod, MakeResponse mock_login = LoginMockServer()
34.731343
77
0.65578
4507d40889bdeb2efc06f9fd94721d09e699f4c0
159
py
Python
Asignacion2/App/main.py
HarambeGeek/uip-iq-pc3
6e9a0678a90c4bfd7499dfb5c71c9a3ea9effe1e
[ "Apache-2.0" ]
null
null
null
Asignacion2/App/main.py
HarambeGeek/uip-iq-pc3
6e9a0678a90c4bfd7499dfb5c71c9a3ea9effe1e
[ "Apache-2.0" ]
null
null
null
Asignacion2/App/main.py
HarambeGeek/uip-iq-pc3
6e9a0678a90c4bfd7499dfb5c71c9a3ea9effe1e
[ "Apache-2.0" ]
null
null
null
from App.numeros import numeros if __name__ == "__main__": x = int(input("Ingrese el nmero que desea evaluar: \n")) pi = numeros(x) pi.parImpar()
26.5
61
0.660377
45085ba62031c2ca173669eca6938ca7aaf578c8
6,950
py
Python
tensorflow/python/distribute/test_util.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
11
2018-01-03T15:11:09.000Z
2021-04-13T05:47:27.000Z
tensorflow/python/distribute/test_util.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
88
2020-11-24T08:18:10.000Z
2022-03-25T20:28:30.000Z
tensorflow/python/distribute/test_util.py
TL-Rubick/tensorflow
6cf1ccf6060a95aad3ccc84544d0aa166990ec72
[ "Apache-2.0" ]
10
2018-07-31T10:56:21.000Z
2019-10-07T08:05:21.000Z
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
36.010363
80
0.726475
4508cb0373bf214606e00078a7d58793158e28a1
3,928
py
Python
experiment_data_handler.py
grdddj/Diploma-Thesis---Inverse-Heat-Transfer
636182fa4c57913002675ed3afca8c1b3dc35e1c
[ "MIT" ]
2
2019-09-09T18:49:14.000Z
2021-11-15T23:41:00.000Z
experiment_data_handler.py
grdddj/Diploma-Thesis---Inverse-Heat-Transfer
636182fa4c57913002675ed3afca8c1b3dc35e1c
[ "MIT" ]
null
null
null
experiment_data_handler.py
grdddj/Diploma-Thesis---Inverse-Heat-Transfer
636182fa4c57913002675ed3afca8c1b3dc35e1c
[ "MIT" ]
null
null
null
import csv
38.509804
118
0.621436
450a6b5edd6e30d83bb61609d61f4702dee03bf9
23,457
py
Python
hybrideb/_bineb.py
beckermr/hybrideb
a72d712020943dbbed35cb244f9e7f13fc6b2d4d
[ "BSD-3-Clause" ]
null
null
null
hybrideb/_bineb.py
beckermr/hybrideb
a72d712020943dbbed35cb244f9e7f13fc6b2d4d
[ "BSD-3-Clause" ]
null
null
null
hybrideb/_bineb.py
beckermr/hybrideb
a72d712020943dbbed35cb244f9e7f13fc6b2d4d
[ "BSD-3-Clause" ]
null
null
null
import sys import numpy as np import scipy.integrate import scipy.special from ._dblquad import dblquad HAVE_PYGSL = False try: import pygsl.integrate import pygsl.sf HAVE_PYGSL = True except ImportError: pass
34.394428
87
0.336488
450a8b0c8c6133dd03a986ca11b5d16bc7850c24
9,945
py
Python
test_fast_ndimage.py
grlee77/skimage_accel_demos
96606ca27c8c622733958c01620bc55e616319db
[ "BSD-3-Clause" ]
null
null
null
test_fast_ndimage.py
grlee77/skimage_accel_demos
96606ca27c8c622733958c01620bc55e616319db
[ "BSD-3-Clause" ]
null
null
null
test_fast_ndimage.py
grlee77/skimage_accel_demos
96606ca27c8c622733958c01620bc55e616319db
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy.testing import assert_allclose, run_module_suite from fast_ndimage import ( median_filter, sobel, convolve, correlate, gaussian_filter, gaussian_filter1d, uniform_filter, uniform_filter1d) # TODO: test threading if __name__ == "__main__": run_module_suite()
44.2
173
0.627954
450aba433942ebcf2d5698d6bec5bdbf826e634d
628
py
Python
RecamanSequence/recaman_sequence.py
urosjevremovic/Recamans-Sequence
ab6a90c363271dc842f26ccd1b69168a9764de9e
[ "MIT" ]
null
null
null
RecamanSequence/recaman_sequence.py
urosjevremovic/Recamans-Sequence
ab6a90c363271dc842f26ccd1b69168a9764de9e
[ "MIT" ]
null
null
null
RecamanSequence/recaman_sequence.py
urosjevremovic/Recamans-Sequence
ab6a90c363271dc842f26ccd1b69168a9764de9e
[ "MIT" ]
null
null
null
import sys from itertools import count, islice def write_sequence(num): """Write Recaman's sequence to a text file""" filename = "recaman.txt" with open(filename, mode="wt", encoding="utf-8") as f: f.writelines(f"{r}\n" for r in islice(sequence(), num)) if __name__ == '__main__': write_seq...
20.258065
63
0.565287
450b1dc0c660308c26a032b98dc820700aea0504
533
py
Python
2018/aoc/d8/test.py
lukaselmer/adventofcode
b96ffc9040b63b338bca653830ba4ff7e90a8b2a
[ "MIT" ]
1
2018-12-12T22:59:44.000Z
2018-12-12T22:59:44.000Z
2018/aoc/d8/test.py
lukaselmer/adventofcode
b96ffc9040b63b338bca653830ba4ff7e90a8b2a
[ "MIT" ]
null
null
null
2018/aoc/d8/test.py
lukaselmer/adventofcode
b96ffc9040b63b338bca653830ba4ff7e90a8b2a
[ "MIT" ]
null
null
null
import unittest from unittest.mock import mock_open, patch from aoc.d8.main import metadata_sum, supervalue DATA = "2 3 0 3 10 11 12 1 1 0 1 99 2 1 1 2\n" if __name__ == "__main__": unittest.main()
25.380952
63
0.682927
450b884de08b19e1126451db4abb472fc660d42a
955
py
Python
tests/calculators/openbabel/test_obabel_calculators.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
null
null
null
tests/calculators/openbabel/test_obabel_calculators.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
null
null
null
tests/calculators/openbabel/test_obabel_calculators.py
stevenbennett96/stko
ee340af4fc549d5a2c3e9cba8360661335efe0fd
[ "MIT" ]
2
2020-05-08T17:51:25.000Z
2020-05-11T09:03:24.000Z
import stko import pytest try: from openbabel import openbabel except ImportError: openbabel = None
29.84375
62
0.709948
450c6f3fc4e2b60e9dc2c7675ce23445e63cfa2b
1,773
py
Python
psono/restapi/views/membership_decline.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
48
2018-04-19T15:50:58.000Z
2022-01-23T15:58:11.000Z
psono/restapi/views/membership_decline.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
9
2018-09-13T14:56:18.000Z
2020-01-17T16:44:33.000Z
psono/restapi/views/membership_decline.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
11
2019-09-20T11:53:47.000Z
2021-07-18T22:41:31.000Z
from rest_framework import status from rest_framework.response import Response from rest_framework.generics import GenericAPIView from ..permissions import IsAuthenticated from django.core.cache import cache from django.conf import settings from ..authentication import TokenAuthentication from ..app_settings import (...
30.568966
106
0.693739
450c825cc3c91a3ffe9479b87c3868422b01ed4b
5,350
py
Python
tests/data/samplers/bucket_batch_sampler_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
11,433
2017-06-27T03:08:46.000Z
2022-03-31T18:14:33.000Z
tests/data/samplers/bucket_batch_sampler_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
4,006
2017-06-26T21:45:43.000Z
2022-03-31T02:11:10.000Z
tests/data/samplers/bucket_batch_sampler_test.py
MSLars/allennlp
2cdb8742c8c8c3c38ace4bdfadbdc750a1aa2475
[ "Apache-2.0" ]
2,560
2017-06-26T21:16:53.000Z
2022-03-30T07:55:46.000Z
from allennlp.common import Params from allennlp.data import Instance, Token, Batch from allennlp.data.fields import TextField from allennlp.data.samplers import BucketBatchSampler from allennlp.data.data_loaders import MultiProcessDataLoader from .sampler_test import SamplerTest
35.90604
95
0.601121
45112f2abb035e911415cb428c007f107a543914
3,332
py
Python
tests/test_sphere.py
dkirkby/batoid
734dccc289eb7abab77a62cdc14563ed5981753b
[ "BSD-2-Clause" ]
null
null
null
tests/test_sphere.py
dkirkby/batoid
734dccc289eb7abab77a62cdc14563ed5981753b
[ "BSD-2-Clause" ]
null
null
null
tests/test_sphere.py
dkirkby/batoid
734dccc289eb7abab77a62cdc14563ed5981753b
[ "BSD-2-Clause" ]
null
null
null
import batoid import numpy as np import math from test_helpers import timer, do_pickle, all_obj_diff if __name__ == '__main__': test_properties() test_sag() test_intersect() test_intersect_vectorized() test_ne() test_fail()
28.237288
88
0.545618
4511821928e83d509f748b6119d6ba8794c26a88
2,678
py
Python
site_stats/middlewares.py
ganlvtech/blueking-django-startup-project
042aa36b0757c0d3929d88bc23534f54963d333e
[ "MIT" ]
1
2018-11-22T21:13:25.000Z
2018-11-22T21:13:25.000Z
site_stats/middlewares.py
ganlvtech/blueking-django-startup-project
042aa36b0757c0d3929d88bc23534f54963d333e
[ "MIT" ]
null
null
null
site_stats/middlewares.py
ganlvtech/blueking-django-startup-project
042aa36b0757c0d3929d88bc23534f54963d333e
[ "MIT" ]
null
null
null
from django.http.response import HttpResponseForbidden from .models import Counter, VisitLog from .utils import get_client_ip
34.779221
79
0.596341
4511a28651e9a1abc5a51540a0f550556e34f6c9
1,753
py
Python
gpu_bdb/bdb_tools/q24_utils.py
VibhuJawa/gpu-bdb
13987b4ef8b92db3b9d2905dec7bd2fd81f42ae9
[ "Apache-2.0" ]
62
2020-05-14T13:33:02.000Z
2020-10-29T13:28:26.000Z
gpu_bdb/bdb_tools/q24_utils.py
VibhuJawa/gpu-bdb
13987b4ef8b92db3b9d2905dec7bd2fd81f42ae9
[ "Apache-2.0" ]
104
2020-07-01T21:07:42.000Z
2020-11-13T16:36:04.000Z
gpu_bdb/bdb_tools/q24_utils.py
VibhuJawa/gpu-bdb
13987b4ef8b92db3b9d2905dec7bd2fd81f42ae9
[ "Apache-2.0" ]
21
2020-05-14T14:44:40.000Z
2020-11-07T12:08:28.000Z
# # Copyright (c) 2019-2022, NVIDIA CORPORATION. # # 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 ag...
34.372549
75
0.714775
451235b4dc66c44ae6da7b46c7877673b9a0d562
8,175
py
Python
tests/test_compare.py
mys-lang/mys
070431fdedd7a6bf537f3a30583cd44f644cdbf4
[ "MIT" ]
59
2021-01-06T14:21:40.000Z
2022-02-22T21:49:39.000Z
tests/test_compare.py
mys-lang/mys
070431fdedd7a6bf537f3a30583cd44f644cdbf4
[ "MIT" ]
31
2021-01-05T00:32:36.000Z
2022-02-23T13:34:33.000Z
tests/test_compare.py
mys-lang/mys
070431fdedd7a6bf537f3a30583cd44f644cdbf4
[ "MIT" ]
7
2021-01-03T11:53:03.000Z
2022-02-22T17:49:42.000Z
from .utils import TestCase from .utils import build_and_test_module from .utils import transpile_source
34.493671
78
0.416147
4512ba1f9249887e49626300dacbdb0fac5b7fbe
170
py
Python
epidemioptim/environments/cost_functions/costs/__init__.py
goodhamgupta/EpidemiOptim
a4fe3fcfc2d82a10db16a168526982c03ca2c8d3
[ "MIT" ]
null
null
null
epidemioptim/environments/cost_functions/costs/__init__.py
goodhamgupta/EpidemiOptim
a4fe3fcfc2d82a10db16a168526982c03ca2c8d3
[ "MIT" ]
null
null
null
epidemioptim/environments/cost_functions/costs/__init__.py
goodhamgupta/EpidemiOptim
a4fe3fcfc2d82a10db16a168526982c03ca2c8d3
[ "MIT" ]
null
null
null
from epidemioptim.environments.cost_functions.costs.death_toll_cost import DeathToll from epidemioptim.environments.cost_functions.costs.gdp_recess_cost import GdpRecess
56.666667
84
0.905882
451354227c3d203ff804c452ae15b439b4e8924c
1,587
py
Python
BFS/70.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
BFS/70.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
BFS/70.py
wilbertgeng/LintCode_exercise
e7a343b746e98ca3b4bc7b36655af7291f3150db
[ "MIT" ]
null
null
null
"""70 Binary Tree Level Order Traversal II""" """ Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """
24.415385
61
0.477001
451370b67d994c4274e51949234d8fd9c7be285d
2,554
py
Python
yuque_py/clients/client.py
kingJiaYouwen/yuque-py
451ec6b88860a984de9456d48c0af341676513a3
[ "MIT" ]
null
null
null
yuque_py/clients/client.py
kingJiaYouwen/yuque-py
451ec6b88860a984de9456d48c0af341676513a3
[ "MIT" ]
null
null
null
yuque_py/clients/client.py
kingJiaYouwen/yuque-py
451ec6b88860a984de9456d48c0af341676513a3
[ "MIT" ]
null
null
null
import typing import requests from urllib.parse import urlencode from .abstract_client import AbstractClient from yuque_py.exceptions.request_error import RequestError
32.74359
85
0.643696
45138db5ed51843c9a5afaaec91f905c3ac8de23
671
py
Python
results/views/sports.py
JukkaKarvonen/sal-kiti
3dcff71552ab323e3c97eccf502c0d72eb683967
[ "MIT" ]
1
2021-06-12T08:46:32.000Z
2021-06-12T08:46:32.000Z
results/views/sports.py
JukkaKarvonen/sal-kiti
3dcff71552ab323e3c97eccf502c0d72eb683967
[ "MIT" ]
8
2020-07-01T15:06:52.000Z
2022-02-20T09:11:23.000Z
results/views/sports.py
JukkaKarvonen/sal-kiti
3dcff71552ab323e3c97eccf502c0d72eb683967
[ "MIT" ]
3
2020-03-01T17:02:24.000Z
2020-07-05T14:37:59.000Z
from dry_rest_permissions.generics import DRYPermissions from rest_framework import viewsets from results.models.sports import Sport from results.serializers.sports import SportSerializer
20.96875
56
0.728763
45148079bc72efab4e9fdeacd43d659e9726c7f1
1,332
py
Python
tests/pvsystemprofiler/test_equation_of_time.py
slacgismo/pv-system-profiler
5ab663cd186511605bbb1e6aa387c8b897e47d83
[ "BSD-2-Clause" ]
4
2020-08-18T14:28:44.000Z
2021-10-14T13:17:03.000Z
tests/pvsystemprofiler/test_equation_of_time.py
slacgismo/pv-system-profiler
5ab663cd186511605bbb1e6aa387c8b897e47d83
[ "BSD-2-Clause" ]
10
2020-04-14T18:57:03.000Z
2021-09-14T15:26:24.000Z
tests/pvsystemprofiler/test_equation_of_time.py
slacgismo/pv-system-profiler
5ab663cd186511605bbb1e6aa387c8b897e47d83
[ "BSD-2-Clause" ]
null
null
null
import unittest import os from pathlib import Path import numpy as np path = Path.cwd().parent.parent os.chdir(path) from pvsystemprofiler.utilities.equation_of_time import eot_da_rosa, eot_duffie if __name__ == '__main__': unittest.main()
32.487805
101
0.722973
4514a6b0a130ee0e5e4417b6086e78904e058a13
1,942
py
Python
raiden/tests/unit/transfer/test_node.py
gasparmedina/raiden
649c43b7233b9e95f13831e61d5db187d583367a
[ "MIT" ]
null
null
null
raiden/tests/unit/transfer/test_node.py
gasparmedina/raiden
649c43b7233b9e95f13831e61d5db187d583367a
[ "MIT" ]
null
null
null
raiden/tests/unit/transfer/test_node.py
gasparmedina/raiden
649c43b7233b9e95f13831e61d5db187d583367a
[ "MIT" ]
4
2019-01-24T14:45:06.000Z
2019-04-01T16:12:40.000Z
from raiden.constants import EMPTY_MERKLE_ROOT from raiden.tests.utils.factories import HOP1, HOP2, UNIT_SECRETHASH, make_block_hash from raiden.transfer.events import ContractSendChannelBatchUnlock from raiden.transfer.node import is_transaction_effect_satisfied from raiden.transfer.state_change import ContractReceive...
45.162791
91
0.785273
451505779ddfa18b109340abfbe8b097a645a054
2,826
py
Python
tfx/utils/channel_test.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
2
2019-07-08T20:56:13.000Z
2020-08-04T17:07:26.000Z
tfx/utils/channel_test.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
null
null
null
tfx/utils/channel_test.py
HassanDayoub/tfx
dc9221abbb8dad991d1ae22fb91876da1290efae
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
34.888889
74
0.754777
45154cfb764af63ed99ff0eaf6a51b8393aa6827
1,870
py
Python
lyrics.py
samiraafreen/lyrics-generator
37f894bdb8986c153985104af83e12ef8d6dac07
[ "MIT" ]
null
null
null
lyrics.py
samiraafreen/lyrics-generator
37f894bdb8986c153985104af83e12ef8d6dac07
[ "MIT" ]
null
null
null
lyrics.py
samiraafreen/lyrics-generator
37f894bdb8986c153985104af83e12ef8d6dac07
[ "MIT" ]
null
null
null
import configparser import requests from bs4 import BeautifulSoup token = getAccessToken() #searchMusicArtist("drake") #print(getArtistID('drake')) #print(getTopTenSongs('drake')) #print(scrapeLyricText('drake'))
28.333333
95
0.648128
45156df577791ff159e318cbc3c7550a59d3c192
2,968
py
Python
src/slack/slack_json_factories/dialog_json/comment.py
yejingyu/jama-slack-integration
55d1366d6cde3962e788afebe0001747cbe11fe8
[ "MIT" ]
1
2019-07-30T01:41:53.000Z
2019-07-30T01:41:53.000Z
src/slack/slack_json_factories/dialog_json/comment.py
yejingyu/jama-slack-integration
55d1366d6cde3962e788afebe0001747cbe11fe8
[ "MIT" ]
4
2018-11-16T05:56:06.000Z
2018-11-29T05:07:52.000Z
src/slack/slack_json_factories/dialog_json/comment.py
yejingyu/jama-slack-integration
55d1366d6cde3962e788afebe0001747cbe11fe8
[ "MIT" ]
6
2018-11-08T03:49:28.000Z
2019-04-29T19:53:25.000Z
def comment_dialog(data=None): """ Function takes in a JSON object, and uses the following format: https://api.slack.com/dialogs Returns created JSON object, then is sent back to Slack. """ text = "" state = "" project_holder = None item_holder = None if data is not None: ...
34.511628
78
0.412062
45168a0a61e3273b57493bda1e9d073423e6c698
8,105
py
Python
tests/hahm/test_config_flow.py
Voxxie/custom_homematic
d199f1fcc565febe42e686198a9eb33ef4d755f6
[ "MIT" ]
null
null
null
tests/hahm/test_config_flow.py
Voxxie/custom_homematic
d199f1fcc565febe42e686198a9eb33ef4d755f6
[ "MIT" ]
null
null
null
tests/hahm/test_config_flow.py
Voxxie/custom_homematic
d199f1fcc565febe42e686198a9eb33ef4d755f6
[ "MIT" ]
null
null
null
"""Test the HaHomematic config flow.""" from typing import Any from unittest.mock import patch from homeassistant import config_entries from homeassistant.components.hahm.config_flow import ( ATTR_BICDOS_RF_ENABLED, ATTR_BICDOS_RF_PORT, ATTR_HMIP_RF_ENABLED, ATTR_HOST, ATTR_HS485D_ENABLED, ATTR...
33.217213
84
0.664405
451695e3856e2d5dd4a42abbf9ad2c012826eaed
792
py
Python
komapy/decorators.py
bpptkg/komapy
a33fce5f4fbfacf085fd1f8043a57564be192a8d
[ "MIT" ]
null
null
null
komapy/decorators.py
bpptkg/komapy
a33fce5f4fbfacf085fd1f8043a57564be192a8d
[ "MIT" ]
null
null
null
komapy/decorators.py
bpptkg/komapy
a33fce5f4fbfacf085fd1f8043a57564be192a8d
[ "MIT" ]
null
null
null
from functools import partial def register_as_decorator(func): """ Register extensions, transforms, or addons function as decorator. """ return wrapper
26.4
78
0.616162
4516fa710b28e684423724f2bca16759c34404c0
5,883
py
Python
Applications/Examples/python/market_price_authentication.py
Refinitiv/websocket-api
15a5957510d2bb246cbbf65ed999ff0089b3a65d
[ "Apache-2.0" ]
36
2019-01-08T17:43:38.000Z
2022-03-11T21:59:58.000Z
Applications/Examples/python/market_price_authentication.py
thomsonreuters/websocket-api
52c940a01d40a6c073d35922d8214d927327caa4
[ "Apache-2.0" ]
14
2019-12-27T15:58:12.000Z
2021-11-03T21:39:27.000Z
Applications/Examples/python/market_price_authentication.py
thomsonreuters/websocket-api
52c940a01d40a6c073d35922d8214d927327caa4
[ "Apache-2.0" ]
28
2019-01-22T21:43:15.000Z
2022-03-29T11:43:05.000Z
#|----------------------------------------------------------------------------- #| This source code is provided under the Apache 2.0 license -- #| and is provided AS IS with no warranty or guarantee of fit for purpose. -- #| See the project's LICENSE.md for details. -- ...
34.810651
235
0.590345
4517ac136f86ccb5533a40509e2b215d308bd04d
571
py
Python
cardDao.py
Blueredemption/Inventory
8d61671071f89b51b3e34c5eb673200fc8baffc0
[ "MIT" ]
null
null
null
cardDao.py
Blueredemption/Inventory
8d61671071f89b51b3e34c5eb673200fc8baffc0
[ "MIT" ]
null
null
null
cardDao.py
Blueredemption/Inventory
8d61671071f89b51b3e34c5eb673200fc8baffc0
[ "MIT" ]
null
null
null
#!/usr/bin/python3 if __name__ == '__main__': main()
16.794118
54
0.528897
451838fb8b3acc8747399824b9d60c1c29d67e5c
3,416
py
Python
test_kmethods.py
quinlan-lab/kmertools
93e90919c26e2fc899a905b77748857404389e13
[ "MIT" ]
1
2020-08-25T01:35:38.000Z
2020-08-25T01:35:38.000Z
test_kmethods.py
quinlan-lab/kmertools
93e90919c26e2fc899a905b77748857404389e13
[ "MIT" ]
null
null
null
test_kmethods.py
quinlan-lab/kmertools
93e90919c26e2fc899a905b77748857404389e13
[ "MIT" ]
1
2021-07-13T23:21:56.000Z
2021-07-13T23:21:56.000Z
from unittest import TestCase from eskedit.kmethods import *
30.5
63
0.660422
45187c05fe7efccfb6cd2366904c5d7b0e9849c8
8,747
py
Python
distributed_social_network/users/views.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
null
null
null
distributed_social_network/users/views.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
51
2019-03-22T00:31:06.000Z
2021-06-10T21:17:30.000Z
distributed_social_network/users/views.py
leevtori/CMPUT404-project
52214288855ae4b3f05b8d17e67a2686debffb19
[ "Apache-2.0" ]
1
2019-08-03T14:41:22.000Z
2019-08-03T14:41:22.000Z
from django.urls import reverse_lazy, reverse from django.shortcuts import get_object_or_404, render, HttpResponse, HttpResponseRedirect from requests.auth import HTTPBasicAuth from .models import User, Node from .forms import CustomUserCreationForm, UserCreationForm from django.views.generic import ListView from djan...
36.598326
115
0.658169
4519b87ff604566c931c34b6c30b719a965b014c
1,569
py
Python
util.py
reckenrode/ParanoiaCharGen
07aa5a5cf1699ae47edab95ee5490b2f1d48c501
[ "BSD-2-Clause" ]
1
2021-12-20T00:03:34.000Z
2021-12-20T00:03:34.000Z
util.py
reckenrode/ParanoiaCharGen
07aa5a5cf1699ae47edab95ee5490b2f1d48c501
[ "BSD-2-Clause" ]
null
null
null
util.py
reckenrode/ParanoiaCharGen
07aa5a5cf1699ae47edab95ee5490b2f1d48c501
[ "BSD-2-Clause" ]
null
null
null
#from weakref import WeakValueDictionary import random, operator, weakref def format_service_group(group): """pretty prints the group""" rstr = '%s [%s]' if group.cover != None: # Spy for IntSec return rstr % (group.cover, group.cover.firm) elif group.spyon != None: return rstr % (group.spyon, group.spyon.firm...
30.173077
109
0.702358
451a01d6bf880434d082fec4bb6d94642deb72ee
2,195
py
Python
moex/tests/test_service.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
null
null
null
moex/tests/test_service.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
11
2021-02-21T19:39:41.000Z
2021-06-13T16:29:47.000Z
moex/tests/test_service.py
ChanTerelLy/broker-account-analist
a723c83fe9a924905eb0754b4acb1231b31f9c87
[ "MIT" ]
2
2021-11-16T16:31:37.000Z
2022-02-11T02:55:37.000Z
import asyncio import unittest from moex.service import Cbr, Moex if __name__ == '__main__': unittest.main()
34.296875
119
0.655125
451aa8ccde2d865dd652ad209fefdf68afe0ad46
2,820
py
Python
streamlit_app.py
guim4dev/education-cv
ffd880090de28e36849b4d53c424c2009791aaf5
[ "MIT" ]
null
null
null
streamlit_app.py
guim4dev/education-cv
ffd880090de28e36849b4d53c424c2009791aaf5
[ "MIT" ]
null
null
null
streamlit_app.py
guim4dev/education-cv
ffd880090de28e36849b4d53c424c2009791aaf5
[ "MIT" ]
null
null
null
import streamlit as st import pandas as pd import numpy as np import plotly.express as px st.title("Relatrio de Aula") df = pd.read_csv('data/emocoes.csv') agg = pd.read_csv('data/agg.csv') Engajado = df[df['emocao'] == 'Engajado'] Engajado_agg = Engajado.groupby(['emocao', 'pessoa']).size().reset_index(name='size') ...
32.413793
134
0.699291
451af08e7abf6ac7cd2e6c4f9832ea860419a281
4,410
py
Python
other_nominate/register_other_nominate.py
kondounagi/japanese_movies_dataset
349f217cd04e07fd44a401ecb2f2dcaea7bc2e5e
[ "MIT" ]
1
2019-08-05T21:43:09.000Z
2019-08-05T21:43:09.000Z
other_nominate/register_other_nominate.py
kondounagi/japanese_movies_dataset
349f217cd04e07fd44a401ecb2f2dcaea7bc2e5e
[ "MIT" ]
3
2020-03-31T05:53:37.000Z
2021-12-13T20:07:39.000Z
other_nominate/register_other_nominate.py
kondounagi/japanese_movies_dataset
349f217cd04e07fd44a401ecb2f2dcaea7bc2e5e
[ "MIT" ]
null
null
null
import argparse import json import os from os import listdir from os.path import isfile, join if __name__ == '__main__': main()
35.28
80
0.460544
451b7210c711e56db4043ee4381d442e6b1a9d25
5,477
py
Python
PC6/table.py
ReneCapella/pythonTinkering
93a5080e8ef6f67fe8ca0b67eb1fb27370beb26a
[ "MIT" ]
null
null
null
PC6/table.py
ReneCapella/pythonTinkering
93a5080e8ef6f67fe8ca0b67eb1fb27370beb26a
[ "MIT" ]
null
null
null
PC6/table.py
ReneCapella/pythonTinkering
93a5080e8ef6f67fe8ca0b67eb1fb27370beb26a
[ "MIT" ]
null
null
null
col = 0 row = 0 header = "" headers = [] border_size = -1 while col < 1 or col > 100: col = input("How many columns do you want (1 to 100)? ") col = int(col) while row < 1 or col > 100: row = input("How many rows do you want (1 to 100)? ") row = int(row) while header != "Y" and header !...
33.601227
95
0.617126
451d32ddace64c14dc2a20c09b0af3249bd93791
676
py
Python
api/db/models/child_datum.py
peuan-testai/opentestdata-api
9e9b12e73abc30a2031eb49d51d5b9d5412ed6ba
[ "MIT" ]
15
2019-06-27T02:48:02.000Z
2020-11-29T09:01:29.000Z
api/db/models/child_datum.py
peuan-testai/opentestdata-api
9e9b12e73abc30a2031eb49d51d5b9d5412ed6ba
[ "MIT" ]
16
2019-07-26T19:51:55.000Z
2022-03-12T00:00:24.000Z
api/db/models/child_datum.py
peuan-testai/opentestdata-api
9e9b12e73abc30a2031eb49d51d5b9d5412ed6ba
[ "MIT" ]
7
2019-06-26T11:10:50.000Z
2020-09-04T08:52:58.000Z
from .. import db from .base import BaseModel
30.727273
91
0.659763
451d5be5b8b8cc7a0af4de177c971df7cd94b93b
13,474
py
Python
mate3/devices.py
kodonnell/mate3
6c378cc7d5eee59e322075b7fcdc91c49b24265f
[ "MIT" ]
null
null
null
mate3/devices.py
kodonnell/mate3
6c378cc7d5eee59e322075b7fcdc91c49b24265f
[ "MIT" ]
null
null
null
mate3/devices.py
kodonnell/mate3
6c378cc7d5eee59e322075b7fcdc91c49b24265f
[ "MIT" ]
null
null
null
import dataclasses as dc from typing import Any, Dict, Iterable, List, Optional from loguru import logger from mate3.field_values import FieldValue, ModelValues from mate3.read import AllModelReads from mate3.sunspec.fields import IntegerField from mate3.sunspec.model_base import Model from mate3.sunspec.models impor...
38.062147
120
0.656672
451de10c0477bdaf31e0d063879d50b5418e6b0b
490
py
Python
catkin_ws/src/ros_python/function_ws/srv_sub_pub/src/srv_server.py
min-chuir-Park/ROS_Tutorials
4c19e7673ec7098019c747833c45f0d32b85dab4
[ "MIT" ]
1
2019-07-04T04:49:05.000Z
2019-07-04T04:49:05.000Z
catkin_ws/src/ros_python/function_ws/srv_sub_pub/src/srv_server.py
min-chuir-Park/ROS_Tutorials
4c19e7673ec7098019c747833c45f0d32b85dab4
[ "MIT" ]
null
null
null
catkin_ws/src/ros_python/function_ws/srv_sub_pub/src/srv_server.py
min-chuir-Park/ROS_Tutorials
4c19e7673ec7098019c747833c45f0d32b85dab4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from srv_sub_pub.srv import * NAME = "add_two_ints_server" if __name__ == "__main__": add_two_ints_server()
22.272727
71
0.681633
451f9b7ff4174b43f88b83397cc76cc631f10347
148
py
Python
app/captcha/handlers/verify.py
huioo/tornadoWeb
001efbae9815b30d8a0c0b4ba8819cc711b99dc4
[ "Apache-2.0" ]
null
null
null
app/captcha/handlers/verify.py
huioo/tornadoWeb
001efbae9815b30d8a0c0b4ba8819cc711b99dc4
[ "Apache-2.0" ]
null
null
null
app/captcha/handlers/verify.py
huioo/tornadoWeb
001efbae9815b30d8a0c0b4ba8819cc711b99dc4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import tornado.web
18.5
42
0.662162
451fd926ec9ad4d32166fa0f1f6362133bc3d0df
1,113
py
Python
simplydomain/src/module_recursion.py
SimplySecurity/SimplyDomain-Old
101dd55b213009b449a96a1fa8b143d85dcdba88
[ "BSD-3-Clause" ]
17
2018-08-08T11:51:26.000Z
2022-03-27T19:43:25.000Z
simplydomain/src/module_recursion.py
SimplySecurity/SimplyDomain-Old
101dd55b213009b449a96a1fa8b143d85dcdba88
[ "BSD-3-Clause" ]
10
2018-06-14T21:33:49.000Z
2020-08-26T18:10:54.000Z
simplydomain/src/module_recursion.py
SimplySecurity/SimplyDomain-Old
101dd55b213009b449a96a1fa8b143d85dcdba88
[ "BSD-3-Clause" ]
6
2018-07-20T17:52:03.000Z
2021-10-18T09:08:33.000Z
import multiprocessing as mp
21.403846
70
0.674753
451ff3d3aabbbe325d6f684b5fc8911f70524e81
1,691
py
Python
python/tests/spatial_operator/test_polygon_range.py
Maxar-Corp/GeoSpark
6248c6773dc88bf3354ea9b223f16ceb064e7627
[ "Apache-2.0", "MIT" ]
1
2021-10-19T07:57:29.000Z
2021-10-19T07:57:29.000Z
python/tests/spatial_operator/test_polygon_range.py
mayankkt9/GeoSpark
618da90413f7d86c59def92ba765fbd6d9d49761
[ "Apache-2.0", "MIT" ]
3
2020-03-24T18:20:35.000Z
2021-02-02T22:36:37.000Z
python/tests/spatial_operator/test_polygon_range.py
mayankkt9/GeoSpark
618da90413f7d86c59def92ba765fbd6d9d49761
[ "Apache-2.0", "MIT" ]
1
2021-09-26T15:51:22.000Z
2021-09-26T15:51:22.000Z
import os from pyspark import StorageLevel from geospark.core.SpatialRDD import PolygonRDD from geospark.core.enums import IndexType, FileDataSplitter from geospark.core.geom.envelope import Envelope from geospark.core.spatialOperator import RangeQuery from tests.test_base import TestBase from tests.tools import test...
36.76087
97
0.707865
45202479629fa2ae422e3a2c76ead8cf08a4c08c
2,004
py
Python
river/compose/renamer.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
1,105
2019-01-24T15:15:30.000Z
2020-11-10T18:27:00.000Z
river/compose/renamer.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
328
2019-01-25T13:48:43.000Z
2020-11-11T11:41:44.000Z
river/compose/renamer.py
online-ml/creme
60872844e6052b5ef20e4075aea30f9031377136
[ "BSD-3-Clause" ]
150
2019-01-29T19:05:21.000Z
2020-11-11T11:50:14.000Z
from typing import Dict from river import base __all__ = ["Renamer", "Prefixer", "Suffixer"]
21.094737
120
0.560878
452450d09a4bf187252d74d278741b2191dfc928
4,660
py
Python
open_publishing/catalog/catalog_types.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
open_publishing/catalog/catalog_types.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
open_publishing/catalog/catalog_types.py
open-publishing/open-publishing-api
0d1646bb2460c6f35cba610a355941d2e07bfefd
[ "BSD-3-Clause" ]
null
null
null
from open_publishing.core import FieldGroup from open_publishing.core import FieldDescriptor from open_publishing.core.enums import CatalogType, VLBCategory, AcademicCategory from open_publishing.core import SimpleField from open_publishing.extendable_enum_field import ExtendableEnumField from open_publishing.genre im...
41.981982
106
0.547425
4524547bc1c556606b6ef59589378a69ffa68a6d
2,263
py
Python
app/request.py
aenshtyn/News-Update
2a09099cd6468d00e2e1972072a88db3e4b7cb78
[ "MIT" ]
null
null
null
app/request.py
aenshtyn/News-Update
2a09099cd6468d00e2e1972072a88db3e4b7cb78
[ "MIT" ]
null
null
null
app/request.py
aenshtyn/News-Update
2a09099cd6468d00e2e1972072a88db3e4b7cb78
[ "MIT" ]
null
null
null
import urllib.request,json from .models import Source,Article # Getting Api Key api_key = None #Getting the base urls source_base_url = None article_base_url = None def get_sources(category): ''' Function that gets the json response to our url request ''' get_sources_url = source_base_url.format(categ...
30.173333
86
0.699956
4524add159eab216540f8144d587795ca3f57c91
5,027
py
Python
corai_util/finance/src/param_iv.py
Code-Cornelius/python_libraries
71c388da60e2aeb94369c3813faca93bf6a18ebf
[ "MIT" ]
1
2022-01-01T22:10:04.000Z
2022-01-01T22:10:04.000Z
corai_util/finance/src/param_iv.py
Code-Cornelius/python_libraries
71c388da60e2aeb94369c3813faca93bf6a18ebf
[ "MIT" ]
null
null
null
corai_util/finance/src/param_iv.py
Code-Cornelius/python_libraries
71c388da60e2aeb94369c3813faca93bf6a18ebf
[ "MIT" ]
null
null
null
# normal libraries import math import numpy as np # priv_libraries from corai_util.finance.src.financials import compute_price, compute_integral from corai_util.finance.src.implied_vol import implied_volatility_newton, total_implied_vol_newton phi_heston = lambda xx: (1 - (1 - np.exp(-xx)) / xx) / xx phi_heston_lambd...
33.966216
120
0.63139
45266515995c4fa2eef2c47f14074dcb92d42fdb
687
py
Python
cracking_the_coding_interview_qs/8.7-8.8/get_all_permutations_of_string_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
cracking_the_coding_interview_qs/8.7-8.8/get_all_permutations_of_string_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
cracking_the_coding_interview_qs/8.7-8.8/get_all_permutations_of_string_test.py
angelusualle/algorithms
86286a49db2a755bc57330cb455bcbd8241ea6be
[ "Apache-2.0" ]
null
null
null
import unittest from get_all_permutations_of_string import get_all_permutations_of_string, get_all_permutations_of_string_with_dups
76.333333
176
0.764192
4526f09b63533011d0dbd7fc3b49ed217cae0f86
8,171
py
Python
third-party/webscalesqlclient/mysql-5.6/xtrabackup/test/kewpie/percona_tests/xtrabackup_disabled/xb_partial_test.py
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
2
2018-03-07T08:31:29.000Z
2019-02-01T10:10:48.000Z
third-party/webscalesqlclient/mysql-5.6/xtrabackup/test/kewpie/percona_tests/xtrabackup_disabled/xb_partial_test.py
hkirsman/hhvm_centos7_builds
2a1fd6de0d2d289c1575f43f10018f3bec23bb13
[ "PHP-3.01", "Zend-2.0" ]
1
2021-02-23T14:52:22.000Z
2021-02-23T14:52:22.000Z
xtrabackup_main/xb_partial_test.py
isabella232/kewpie
47d67124fa755719eda3ca5a621a2abf0322d3f9
[ "Apache-2.0" ]
1
2020-11-13T10:17:28.000Z
2020-11-13T10:17:28.000Z
#! /usr/bin/env python # -*- mode: python; indent-tabs-mode: nil; -*- # vim:expandtab:shiftwidth=2:tabstop=2:smarttab: # # Copyright (C) 2011 Patrick Crews # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwar...
45.648045
135
0.571778
45271fd81da1faed37c0972df122fea04a51747b
104
py
Python
filter.py
Gerrydh/MPP-Recursion
de81bb0dcd50f7f66971db9000e6262767168b8f
[ "Apache-2.0" ]
null
null
null
filter.py
Gerrydh/MPP-Recursion
de81bb0dcd50f7f66971db9000e6262767168b8f
[ "Apache-2.0" ]
null
null
null
filter.py
Gerrydh/MPP-Recursion
de81bb0dcd50f7f66971db9000e6262767168b8f
[ "Apache-2.0" ]
null
null
null
print filter((lambda x: (x%2) ==0 ), [1,2,3,4,5,6]) print filter((lambda x: (x%2) !=0 ), [1,2,3,4,5,6])
52
52
0.519231
45278aea9c424ae5e3cd32a1bd843d89d29dbea4
156
py
Python
project euler/q2.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
project euler/q2.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
project euler/q2.py
milkmeat/thomas
fbc72af34267488d931a4885d4e19fce22fea582
[ "MIT" ]
null
null
null
l=[0]*100 l[0]=1 l[1]=2 for x in range (2,100): l[x]=l[x-1]+l[x-2] #print l f=0 for c in l: if c%2==0 and c<4000000: f=f+c print f
14.181818
29
0.474359
452797680ac9c44f15c014b0a008440ac1ea29cb
12,809
py
Python
recipes/LibriSpeech/ASR/CTC/train_with_wav2vec.py
mj-kh/speechbrain
9351f61cc057ddf3f8a0b7074a9c3c857dec84ed
[ "Apache-2.0" ]
3,913
2021-03-14T13:54:52.000Z
2022-03-30T05:09:55.000Z
recipes/LibriSpeech/ASR/CTC/train_with_wav2vec.py
mj-kh/speechbrain
9351f61cc057ddf3f8a0b7074a9c3c857dec84ed
[ "Apache-2.0" ]
667
2021-03-14T20:11:17.000Z
2022-03-31T04:07:17.000Z
recipes/LibriSpeech/ASR/CTC/train_with_wav2vec.py
mj-kh/speechbrain
9351f61cc057ddf3f8a0b7074a9c3c857dec84ed
[ "Apache-2.0" ]
785
2021-03-14T13:20:57.000Z
2022-03-31T03:26:03.000Z
#!/usr/bin/env/python3 """Recipe for training a wav2vec-based ctc ASR system with librispeech. The system employs wav2vec as its encoder. Decoding is performed with ctc greedy decoder. To run this recipe, do the following: > python train_with_wav2vec.py hparams/train_with_wav2vec.yaml The neural network is trained on C...
35.879552
89
0.640331
45284a1d25fe21c81004bcc320ecfac7a3fe05f4
907
py
Python
src/dask_awkward/tests/test_utils.py
douglasdavis/dask-awkward
e8829d32ed080d643c7e4242036ce64aee60eda6
[ "BSD-3-Clause" ]
21
2021-09-09T19:32:30.000Z
2022-03-01T15:42:06.000Z
src/dask_awkward/tests/test_utils.py
douglasdavis/dask-awkward
e8829d32ed080d643c7e4242036ce64aee60eda6
[ "BSD-3-Clause" ]
14
2021-09-23T16:54:10.000Z
2022-03-23T19:24:53.000Z
src/dask_awkward/tests/test_utils.py
douglasdavis/dask-awkward
e8829d32ed080d643c7e4242036ce64aee60eda6
[ "BSD-3-Clause" ]
3
2021-09-09T19:32:32.000Z
2021-11-18T17:27:35.000Z
from __future__ import annotations from ..utils import normalize_single_outer_inner_index
22.675
62
0.46527
45288cac480034ff3c670253791c5dd9e04dcb61
16,413
py
Python
core/client_socket.py
schalekamp/ibapipy
a9e02d604d9f4a2ad87e78089654b29305aa110d
[ "Apache-2.0" ]
1
2020-08-13T05:45:48.000Z
2020-08-13T05:45:48.000Z
core/client_socket.py
schalekamp/ibapipy
a9e02d604d9f4a2ad87e78089654b29305aa110d
[ "Apache-2.0" ]
null
null
null
core/client_socket.py
schalekamp/ibapipy
a9e02d604d9f4a2ad87e78089654b29305aa110d
[ "Apache-2.0" ]
null
null
null
"""Implements the EClientSocket interface for the Interactive Brokers API.""" import threading import ibapipy.config as config from ibapipy.core.network_handler import NetworkHandler def check(value): """Check to see if the specified value is equal to JAVA_INT_MAX or JAVA_DOUBLE_MAX and return None if such i...
36.718121
79
0.628709
4529524b72ee8b6f655a486a5542d22fd69041be
2,234
py
Python
common.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
common.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
common.py
shawnau/DataScienceBowl2018
3c6f0f26dd86b71aad55fca52314e6432d0b3a82
[ "MIT" ]
null
null
null
import os from datetime import datetime PROJECT_PATH = os.path.dirname(os.path.realpath(__file__)) IDENTIFIER = datetime.now().strftime('%Y-%m-%d_%H-%M-%S') #numerical libs import numpy as np import random import matplotlib matplotlib.use('TkAgg') import cv2 # torch libs import torch from torch.utils.data.sampler...
26.282353
90
0.723814
452af70b9e1700ac30a7f0af42ce0f50e0812342
1,460
py
Python
NumberExtractor.py
Dikshit15/SolveSudoku
7a84e64c9b708c730179f65c8cce8a360ff96d7f
[ "MIT" ]
54
2019-01-03T20:05:26.000Z
2022-02-22T12:46:47.000Z
NumberExtractor.py
Dikshit15/SolveSudoku
7a84e64c9b708c730179f65c8cce8a360ff96d7f
[ "MIT" ]
1
2021-05-18T07:05:28.000Z
2021-05-20T04:38:30.000Z
NumberExtractor.py
Dikshit15/SolveSudoku
7a84e64c9b708c730179f65c8cce8a360ff96d7f
[ "MIT" ]
29
2019-02-28T13:54:45.000Z
2021-12-17T03:22:33.000Z
import numpy as np import cv2 import matplotlib.pyplot as plt import numpy as np from keras.models import model_from_json # Load the saved model json_file = open('models/model.json', 'r') loaded_model_json = json_file.read() json_file.close() loaded_model = model_from_json(loaded_model_json) # load weights into new mo...
31.73913
92
0.656164
452b051b1e4ced509f2b30c049b1e85fd074fa94
38,889
py
Python
code/Rts.py
andreschristen/RTs
d3dceb7d2f518222cfaa940b4ecfc9c7f63a25a9
[ "CC0-1.0" ]
null
null
null
code/Rts.py
andreschristen/RTs
d3dceb7d2f518222cfaa940b4ecfc9c7f63a25a9
[ "CC0-1.0" ]
null
null
null
code/Rts.py
andreschristen/RTs
d3dceb7d2f518222cfaa940b4ecfc9c7f63a25a9
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue May 12 18:28:54 2020 @author: Dr J A Christen (CIMAT-CONACYT, Mexico) jac at cimat.mx Instantaneous reproduction numbers calculations. Rts_P, Implementation of Cori et al (2013) Rts_AR, new filtering version using an autoregressive linear model of Ca...
44.906467
156
0.550618
452ce291eab1e58321278df273620d4a3c795783
678
py
Python
zombieclusters.py
tnkteja/notthisagain
85e2b2cbea1298a052986e9dfe5e73d022b537f3
[ "MIT" ]
null
null
null
zombieclusters.py
tnkteja/notthisagain
85e2b2cbea1298a052986e9dfe5e73d022b537f3
[ "MIT" ]
null
null
null
zombieclusters.py
tnkteja/notthisagain
85e2b2cbea1298a052986e9dfe5e73d022b537f3
[ "MIT" ]
null
null
null
def zombieCluster(zombies): cm=clusterManager(clusters={i:cluster(members=[i]) for i in xrange(len(zombies))}) for i,row in enumerate(zombies): for j,column in enumerate(row): if column == '1': cm.merge(i,j) return cm.count()
26.076923
86
0.59292
452dfafcf95365869f17107edc7e9285e32b7078
2,989
py
Python
CondTools/Ecal/python/EcalO2O_laser_online_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
6
2017-09-08T14:12:56.000Z
2022-03-09T23:57:01.000Z
CondTools/Ecal/python/EcalO2O_laser_online_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
545
2017-09-19T17:10:19.000Z
2022-03-07T16:55:27.000Z
CondTools/Ecal/python/EcalO2O_laser_online_cfg.py
SWuchterl/cmssw
769b4a7ef81796579af7d626da6039dfa0347b8e
[ "Apache-2.0" ]
14
2017-10-04T09:47:21.000Z
2019-10-23T18:04:45.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("ProcessOne") process.load("CondCore.DBCommon.CondDBCommon_cfi") process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb' # # Choose the output database # process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_42X_ECAL_...
41.513889
112
0.577451
452e242fef5c444f6a84742a55e2adf53a8f64d3
9,907
py
Python
algofi/v1/staking.py
zhengxunWu3/algofi-py-sdk
8388d71d55eae583ac3579286b5f870aa3db2913
[ "MIT" ]
null
null
null
algofi/v1/staking.py
zhengxunWu3/algofi-py-sdk
8388d71d55eae583ac3579286b5f870aa3db2913
[ "MIT" ]
null
null
null
algofi/v1/staking.py
zhengxunWu3/algofi-py-sdk
8388d71d55eae583ac3579286b5f870aa3db2913
[ "MIT" ]
null
null
null
from algosdk import logic from algosdk.future.transaction import ApplicationOptInTxn, AssetOptInTxn, ApplicationNoOpTxn, PaymentTxn, AssetTransferTxn from ..contract_strings import algofi_manager_strings as manager_strings from .prepend import get_init_txns from ..utils import TransactionGroup, Transactions, randint, i...
43.262009
159
0.731402
452e279a6193abc88461babe810211a3f8d434ff
1,661
py
Python
main.py
kirantambe/koinex-status-ticker
487028a00605912e9fee97f4b29f260a2ab4f66f
[ "MIT" ]
null
null
null
main.py
kirantambe/koinex-status-ticker
487028a00605912e9fee97f4b29f260a2ab4f66f
[ "MIT" ]
1
2021-06-01T21:56:55.000Z
2021-06-01T21:56:55.000Z
main.py
kirantambe/koinex-status-ticker
487028a00605912e9fee97f4b29f260a2ab4f66f
[ "MIT" ]
1
2018-01-16T03:51:09.000Z
2018-01-16T03:51:09.000Z
import rumps import requests import json API_URL = 'https://koinex.in/api/ticker' UPDATE_INTERVAL = 60 CURRENCIES = { 'Bitcoin': 'BTC', 'Ethereum': 'ETH', 'Ripple': 'XRP', 'Litecoin': 'LTC', 'Bitcoin Cash': 'BCH', } if __name__ == "__main__": KoinexStatusBarApp().run()
26.790323
77
0.587598
452f2babff6fef2a136326734c3cab066e39250a
900
py
Python
app.py
migueljunior/docker
09effa41a2207294ec9ab8bd34b166c862edea72
[ "Apache-2.0" ]
null
null
null
app.py
migueljunior/docker
09effa41a2207294ec9ab8bd34b166c862edea72
[ "Apache-2.0" ]
null
null
null
app.py
migueljunior/docker
09effa41a2207294ec9ab8bd34b166c862edea72
[ "Apache-2.0" ]
null
null
null
from flask import Flask, jsonify from time import strftime from socket import gethostname from socket import gethostbyname app = Flask(__name__) if __name__ == '__main__': app.run(debug=True , port=8888 , host='0.0.0.0')
31.034483
54
0.646667
452f9d740231a724ca7b77510cb8a67453b7e2aa
8,605
py
Python
knn_and_regression/src/free_response.py
WallabyLester/Machine_Learning_From_Scratch
6042cf421f5de2db61fb570b7c4de64dc03453f3
[ "MIT" ]
null
null
null
knn_and_regression/src/free_response.py
WallabyLester/Machine_Learning_From_Scratch
6042cf421f5de2db61fb570b7c4de64dc03453f3
[ "MIT" ]
null
null
null
knn_and_regression/src/free_response.py
WallabyLester/Machine_Learning_From_Scratch
6042cf421f5de2db61fb570b7c4de64dc03453f3
[ "MIT" ]
null
null
null
import numpy as np from numpy.core.fromnumeric import mean from numpy.core.numeric import True_ from numpy.testing._private.utils import rand from polynomial_regression import PolynomialRegression from generate_regression_data import generate_regression_data from metrics import mean_squared_error # mse from math impor...
38.936652
176
0.664614
45303096a42f87f1631edf145b0ae0b347d69c0b
753
py
Python
chapter10/exercises/EG10-20 Twinkle Twinkle classes.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter10/exercises/EG10-20 Twinkle Twinkle classes.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter10/exercises/EG10-20 Twinkle Twinkle classes.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
# EG10-20 Twinkle Twinkle classes import time import snaps tune = [Note(note=0, duration=0.4), Note(note=0, duration=0.4), Note(note=7, duration=0.4), Note(note=7, duration=0.4), Note(note=9, duration=0.4), Note(note=9, duration=0.4), Note(note=7, duration=0.8), Note(note=5, duration=0.4), ...
30.12
63
0.622842
453161fcfe76bf1d62b11f9f68c0fa622f378ff1
3,523
py
Python
tests/python/gpu/test_forward.py
xudong-sun/mxnet
fe42d30d5885dd576cb871fd70594c53efce9b42
[ "Apache-2.0" ]
31
2016-04-29T09:13:44.000Z
2021-02-16T21:27:00.000Z
tests/python/gpu/test_forward.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
23
2018-06-11T20:03:54.000Z
2018-08-10T03:17:49.000Z
tests/python/gpu/test_forward.py
greenpea0104/incubator-mxnet
fc9e70bf2d349ad4c6cb65ff3f0958e23a7410bf
[ "Apache-2.0" ]
47
2016-04-19T22:46:09.000Z
2020-09-30T08:09:16.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
43.493827
93
0.676412
4532f548d365251f68edc483eadcb7b23a21e639
7,706
py
Python
docs/src/conf.py
rbeucher/LavaVu
317a234d69ba3eb06a827a1f8658feb031fe358b
[ "CC-BY-4.0" ]
23
2016-01-26T23:06:53.000Z
2019-06-11T08:31:32.000Z
docs/src/conf.py
rbeucher/LavaVu
317a234d69ba3eb06a827a1f8658feb031fe358b
[ "CC-BY-4.0" ]
73
2016-03-16T03:02:35.000Z
2019-07-18T07:29:52.000Z
docs/src/conf.py
rbeucher/LavaVu
317a234d69ba3eb06a827a1f8658feb031fe358b
[ "CC-BY-4.0" ]
6
2016-03-25T23:22:49.000Z
2018-01-16T14:38:09.000Z
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # LavaVu conf based on conf.py from underworld2 # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup ------------...
30.101563
79
0.666623
453357739358367ed9649135f97753882d4359cd
25,824
py
Python
experiments/pamogk_exp.py
tastanlab/pamogk
fdd1a5b3dcd43b91ce9aa9989c7815b71f13e710
[ "FTL" ]
6
2020-06-18T14:37:01.000Z
2021-09-12T07:25:47.000Z
experiments/pamogk_exp.py
tastanlab/pamogk
fdd1a5b3dcd43b91ce9aa9989c7815b71f13e710
[ "FTL" ]
null
null
null
experiments/pamogk_exp.py
tastanlab/pamogk
fdd1a5b3dcd43b91ce9aa9989c7815b71f13e710
[ "FTL" ]
5
2020-01-02T09:08:36.000Z
2021-07-17T12:35:37.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import collections import mkkm_mr import networkx as nx from sklearn.cluster import KMeans, SpectralClustering from snf_simple import SNF from pamogk import config from pamogk import label_mapper from pamogk.data_processor import rnaseq_processor as rp, synapse_rppa_pro...
44.755633
122
0.642852
45346855166d8c198852fc2c2b74490101e9dbc6
1,703
py
Python
d3network/data/handschriftencensus_scrap.py
GusRiva/GusRiva
50d63e3bc84f007b10df6edadbab85e23cf15731
[ "MIT" ]
null
null
null
d3network/data/handschriftencensus_scrap.py
GusRiva/GusRiva
50d63e3bc84f007b10df6edadbab85e23cf15731
[ "MIT" ]
null
null
null
d3network/data/handschriftencensus_scrap.py
GusRiva/GusRiva
50d63e3bc84f007b10df6edadbab85e23cf15731
[ "MIT" ]
null
null
null
import requests from lxml import html from bs4 import BeautifulSoup import json import codecs import re #In this variable I will store the information as a dictionary with this structure: # {number : "Name"} ms_dict = {} links_dict = {"links" : []} for index in range(1,27000): print(index) page = requests.get('ht...
27.467742
90
0.658837
4534bb68221abad8193f98fdfa1110b766c99aa2
2,590
py
Python
tests/emukit/quadrature/test_quadrature_acquisitions.py
alexgessner/emukit
355e26bb30edd772a81af2a1267c569d7f446d42
[ "Apache-2.0" ]
6
2019-06-02T21:23:27.000Z
2020-02-17T09:46:30.000Z
tests/emukit/quadrature/test_quadrature_acquisitions.py
Tony-Chiong/emukit
a068c8d5e06b2ae8b038f67bf2e4f66c4d91651a
[ "Apache-2.0" ]
4
2019-05-17T13:30:21.000Z
2019-06-21T13:49:19.000Z
tests/emukit/quadrature/test_quadrature_acquisitions.py
Tony-Chiong/emukit
a068c8d5e06b2ae8b038f67bf2e4f66c4d91651a
[ "Apache-2.0" ]
1
2020-01-12T19:50:44.000Z
2020-01-12T19:50:44.000Z
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import GPy from math import isclose from emukit.model_wrappers.gpy_quadrature_wrappers import QuadratureRBF, RBFGPy, BaseGaussianProcessGPy from emukit.quadrature.methods i...
28.777778
103
0.667568
4535c1a7513cb60d8687c9c277406f75c8762e19
2,039
py
Python
tests/test_ProtocolService/test_ProtocolService.py
danilocgsilva/awsinstances
c0ab6ae42b3bfbe94735f7ba4741b3facec271ce
[ "MIT" ]
null
null
null
tests/test_ProtocolService/test_ProtocolService.py
danilocgsilva/awsinstances
c0ab6ae42b3bfbe94735f7ba4741b3facec271ce
[ "MIT" ]
null
null
null
tests/test_ProtocolService/test_ProtocolService.py
danilocgsilva/awsinstances
c0ab6ae42b3bfbe94735f7ba4741b3facec271ce
[ "MIT" ]
null
null
null
import unittest import sys sys.path.insert(2, "..") from awsec2instances_includes.ProtocolService import ProtocolService
36.410714
77
0.714076
4538624158b0321268253bb048733d15b3730192
873
py
Python
mltoolkit/mldp/utils/helpers/nlp/token_matching.py
mancunian1792/FewSum
c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e
[ "MIT" ]
28
2020-10-12T19:05:22.000Z
2022-03-18T01:19:29.000Z
mltoolkit/mldp/utils/helpers/nlp/token_matching.py
mancunian1792/FewSum
c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e
[ "MIT" ]
1
2022-01-30T01:52:59.000Z
2022-02-19T08:04:54.000Z
mltoolkit/mldp/utils/helpers/nlp/token_matching.py
mancunian1792/FewSum
c2f9ef0ae7445bdb188b6ceb28e998b3fd12b78e
[ "MIT" ]
7
2020-10-29T14:01:04.000Z
2022-02-22T18:33:10.000Z
from .constants import SPECIAL_TOKENS try: import re2 as re except ImportError: import re def twitter_sentiment_token_matching(token): """Special token matching function for twitter sentiment data.""" if 'URL_TOKEN' in SPECIAL_TOKENS and re.match(r'https?:\/\/[^\s]+', token): return SPECIAL_TO...
41.571429
79
0.651775
45387e1e55f5181cc1ef4691f476f0481b601834
1,503
py
Python
setup.py
geirem/pyconfig
e99693b7bc0acb3fe6b82acd29e8724336f95c43
[ "CC0-1.0" ]
1
2020-05-15T16:22:36.000Z
2020-05-15T16:22:36.000Z
setup.py
geirem/pyconfig
e99693b7bc0acb3fe6b82acd29e8724336f95c43
[ "CC0-1.0" ]
9
2020-05-14T08:31:48.000Z
2021-04-22T12:35:15.000Z
setup.py
geirem/pyconfig
e99693b7bc0acb3fe6b82acd29e8724336f95c43
[ "CC0-1.0" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/guides/distributing-packages-using-setuptools/ """ from setuptools import setup, find_packages from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f...
31.3125
75
0.641384
45389f146c6eea595dda9a6c6445b4f79a204445
3,457
py
Python
pybamm/solvers/scipy_solver.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
pybamm/solvers/scipy_solver.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
pybamm/solvers/scipy_solver.py
danieljtait/PyBaMM
f9d6143770e4a01099f06e3574142424730f731a
[ "BSD-3-Clause" ]
null
null
null
# # Solver class using Scipy's adaptive time stepper # import casadi import pybamm import scipy.integrate as it import numpy as np
33.563107
84
0.565519
4539375fe3de0d453832a057381afb182d19ced7
5,204
py
Python
crits/core/fields.py
dutrow/crits
6b357daa5c3060cf622d3a3b0c7b41a9ca69c049
[ "MIT" ]
738
2015-01-02T12:39:55.000Z
2022-03-23T11:05:51.000Z
crits/core/fields.py
deadbits/crits
154097a1892e9d3960d6faaed4bd2e912a196a47
[ "MIT" ]
605
2015-01-01T01:03:39.000Z
2021-11-17T18:51:07.000Z
crits/core/fields.py
deadbits/crits
154097a1892e9d3960d6faaed4bd2e912a196a47
[ "MIT" ]
316
2015-01-07T12:35:01.000Z
2022-03-30T04:44:30.000Z
import datetime from dateutil.parser import parse from mongoengine import DateTimeField, FileField from mongoengine.connection import DEFAULT_CONNECTION_NAME #from mongoengine.python_support import str_types from six import string_types as str_types import io from django.conf import settings if settings.FILE_DB == se...
33.574194
93
0.613951
453972bee5e4b38dcaee26d48c6dcec6950939dd
821
py
Python
custom_uss/custom_widgets/outlog.py
shuanet/dss
5daafeb89aac58e4614775f301bec920f4abfa24
[ "Apache-2.0" ]
2
2022-02-13T19:13:16.000Z
2022-02-17T14:52:05.000Z
custom_uss/custom_widgets/outlog.py
shuanet/dss
5daafeb89aac58e4614775f301bec920f4abfa24
[ "Apache-2.0" ]
null
null
null
custom_uss/custom_widgets/outlog.py
shuanet/dss
5daafeb89aac58e4614775f301bec920f4abfa24
[ "Apache-2.0" ]
1
2022-02-16T20:17:38.000Z
2022-02-16T20:17:38.000Z
import sys from PySide6 import QtGui
25.65625
72
0.576127
453a307689bad4f488cdb3f14eea66f7d9566594
5,079
py
Python
2020/day07/day07.py
maxschalz/advent_of_code
537ff10b74fb0faaba4fb7dffcba4a5cf3a999ae
[ "BSD-3-Clause" ]
null
null
null
2020/day07/day07.py
maxschalz/advent_of_code
537ff10b74fb0faaba4fb7dffcba4a5cf3a999ae
[ "BSD-3-Clause" ]
null
null
null
2020/day07/day07.py
maxschalz/advent_of_code
537ff10b74fb0faaba4fb7dffcba4a5cf3a999ae
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import unittest COLOR = "shiny gold" FNAME = "input.txt" N_ITER = 1e7 TEST_FNAME = "test_input.txt" def main(): """Main function.""" data = load_input(FNAME) part1(data) part2(data) print("\nUnittests") unittest.main() def part1(d...
29.189655
74
0.590471
453b632b266da30271e1e4710f1d5bea075bf4fb
1,937
py
Python
cluster/image/pro_seafile_7.1/scripts_7.1/start.py
chaosbunker/seafile-docker
560d982d8cd80a20508bf616abc0dc741d7b5d84
[ "Apache-2.0" ]
503
2015-11-11T22:07:36.000Z
2022-03-28T21:29:30.000Z
cluster/image/pro_seafile_7.1/scripts_7.1/start.py
chaosbunker/seafile-docker
560d982d8cd80a20508bf616abc0dc741d7b5d84
[ "Apache-2.0" ]
209
2015-07-13T04:49:38.000Z
2022-03-25T22:06:18.000Z
cluster/image/pro_seafile_7.1/scripts_7.1/start.py
chaosbunker/seafile-docker
560d982d8cd80a20508bf616abc0dc741d7b5d84
[ "Apache-2.0" ]
195
2015-07-09T18:11:47.000Z
2022-03-25T11:56:53.000Z
#!/usr/bin/env python3 #coding: UTF-8 import os import sys import time import json import argparse from os.path import join, exists, dirname from upgrade import check_upgrade from utils import call, get_conf, get_script, get_command_output, get_install_dir installdir = get_install_dir() topdir = dirname(installdir) ...
29.348485
113
0.653588
453bee7425b707c77a51058c3fca5c10f29a6d05
4,774
py
Python
codit/stats/de_duplication_stat.py
saikat107/OpenNMT-py
148b0d860e78120de704f7a6671e8eced251801b
[ "MIT" ]
null
null
null
codit/stats/de_duplication_stat.py
saikat107/OpenNMT-py
148b0d860e78120de704f7a6671e8eced251801b
[ "MIT" ]
null
null
null
codit/stats/de_duplication_stat.py
saikat107/OpenNMT-py
148b0d860e78120de704f7a6671e8eced251801b
[ "MIT" ]
null
null
null
import sys, os import nltk import numpy as np if __name__ == '__main__': result_base = '/home/sc2nf/codit-clone' option = 'token' # 'token size = 10 # if option == 'tree': # file_name = 'codit-all-concrete_' + str(size) + '.2_' + str(2*size) + '_decode_res.txt' # else: # file_nam...
35.626866
102
0.59845
453c01d612c70ef3a56e01d8f48863230c296568
4,934
py
Python
pysnark/qaptools/runqapgen.py
Charterhouse/pysnark
4d8ae194a918c57a84c9f42f2d9809d66e90f006
[ "RSA-MD" ]
65
2018-01-12T08:49:18.000Z
2022-03-16T07:35:40.000Z
pysnark/qaptools/runqapgen.py
Charterhouse/pysnark
4d8ae194a918c57a84c9f42f2d9809d66e90f006
[ "RSA-MD" ]
9
2018-01-19T21:14:02.000Z
2019-10-15T09:48:01.000Z
pysnark/qaptools/runqapgen.py
Charterhouse/pysnark
4d8ae194a918c57a84c9f42f2d9809d66e90f006
[ "RSA-MD" ]
13
2018-01-15T20:50:57.000Z
2022-03-25T05:39:36.000Z
# Copyright (c) 2016-2018 Koninklijke Philips N.V. All rights reserved. A # copyright license for redistribution and use in source and binary forms, # with or without modification, is hereby granted for non-commercial, # experimental and research purposes, provided that the following conditions # are met: # - Redistrib...
37.378788
114
0.688285
453c20b8c1cf91ca7912ad336c0a4f1a000e5011
4,024
py
Python
tubee/utils/__init__.py
tomy0000000/Tubee
1bfbd3cde118cd8a31499b8255b311602fde85bc
[ "MIT" ]
8
2020-12-09T13:01:41.000Z
2022-01-09T10:06:25.000Z
tubee/utils/__init__.py
tomy0000000/Tubee
1bfbd3cde118cd8a31499b8255b311602fde85bc
[ "MIT" ]
141
2019-08-21T20:23:07.000Z
2022-03-29T14:02:27.000Z
tubee/utils/__init__.py
tomy0000000/Tubee
1bfbd3cde118cd8a31499b8255b311602fde85bc
[ "MIT" ]
7
2020-07-28T08:52:06.000Z
2021-07-26T02:15:36.000Z
"""Helper Functions Some Misc Functions used in this app """ import secrets import string from functools import wraps from urllib.parse import urljoin, urlparse from dateutil import parser from flask import abort, current_app, request from flask_login import current_user from flask_migrate import upgrade def adm...
27.006711
88
0.685885
453cbca8f170f8d57f86e5292c872a332ff4738e
1,094
py
Python
HourlyCrime/hour.py
pauljrodriguezcs/Chicago_Crime_Analysis
8f385fdfbb8b770631a458edf03f90836f33b674
[ "MIT" ]
1
2020-02-12T16:25:23.000Z
2020-02-12T16:25:23.000Z
HourlyCrime/hour.py
pauljrodriguezcs/Chicago_Crime_Analysis
8f385fdfbb8b770631a458edf03f90836f33b674
[ "MIT" ]
null
null
null
HourlyCrime/hour.py
pauljrodriguezcs/Chicago_Crime_Analysis
8f385fdfbb8b770631a458edf03f90836f33b674
[ "MIT" ]
null
null
null
import numpy as np import matplotlib import matplotlib.pyplot as plt import scipy.linalg as la print("loading time series... ") plt.figure(figsize=(16,9)) timeSeries = np.loadtxt('TheftTS.txt',delimiter=',',dtype=float) # load data hourly = timeSeries[:,0] plt.plot(hourly,'r-', label='Theft') timeSeries = np.loadtxt...
30.388889
85
0.71755
453cc274659ff78328110cd29e7888f4f4d189f2
2,733
py
Python
scripts/annotation_csv.py
RulerOf/keras-yolo3
8d091cf42b2f126626ad8610adf31293225b7daa
[ "MIT" ]
37
2018-10-20T15:50:18.000Z
2021-06-18T14:31:50.000Z
scripts/annotation_csv.py
RulerOf/keras-yolo3
8d091cf42b2f126626ad8610adf31293225b7daa
[ "MIT" ]
34
2019-04-10T18:59:08.000Z
2021-03-24T11:08:36.000Z
scripts/annotation_csv.py
RulerOf/keras-yolo3
8d091cf42b2f126626ad8610adf31293225b7daa
[ "MIT" ]
13
2019-08-29T08:19:05.000Z
2021-09-20T10:13:31.000Z
""" Creating training file from own custom dataset >> python annotation_csv.py \ --path_dataset ~/Data/PeopleDetections \ --path_output ../model_data """ import os import sys import glob import argparse import logging import pandas as pd import tqdm sys.path += [os.path.abspath('.'), os.path.abspath('..')] ...
33.740741
86
0.626418
453d3dd28ce2e196af7faf59e068a64e46af26e2
3,280
py
Python
Assignment_2/one_vs_one.py
hthuwal/mcs-ml-assignments
1d2850b82f49ccf31eec3c8f921f09d6260d13a4
[ "MIT" ]
3
2018-11-23T10:36:36.000Z
2021-12-16T17:47:22.000Z
Assignment_2/one_vs_one.py
hthuwal/mcs-ml-assignments
1d2850b82f49ccf31eec3c8f921f09d6260d13a4
[ "MIT" ]
null
null
null
Assignment_2/one_vs_one.py
hthuwal/mcs-ml-assignments
1d2850b82f49ccf31eec3c8f921f09d6260d13a4
[ "MIT" ]
7
2018-11-14T18:14:12.000Z
2021-12-16T17:47:34.000Z
from pegasos import bgd_pegasos import numpy as np import pandas as pd import pickle import sys retrain = False wandbs = None if retrain: x_train, y_train = read_data("mnist/train.csv") num_classes = len(set(y_train)) wandbs = [[() for j in range(num_classes)] for i in range(num_classes)] count = 0...
27.107438
108
0.498171
453dfae7aa03af853f997301ef1cbbd1ca05e43a
1,533
py
Python
tools/numpy-examples.py
martinahogg/machinelearning
03b473375e64a0398177194df2fe26a1a89feedf
[ "Apache-2.0" ]
2
2017-08-17T14:38:14.000Z
2017-08-17T14:40:32.000Z
tools/numpy-examples.py
martinahogg/machinelearning
03b473375e64a0398177194df2fe26a1a89feedf
[ "Apache-2.0" ]
null
null
null
tools/numpy-examples.py
martinahogg/machinelearning
03b473375e64a0398177194df2fe26a1a89feedf
[ "Apache-2.0" ]
null
null
null
import numpy as np # Inner (or dot) product a = np.array([1,2]) b = np.array([3,4]) np.inner(a, b) a.dot(b) # Outer product a = np.array([1,2]) b = np.array([3,4]) np.outer(a, b) # Inverse m = np.array([[1,2], [3,4]]) np.linalg.inv(m) # Inner (or dot) product m = np.array([[1,2], [3,4]]) minv = np.linalg.inv(m) m....
20.716216
79
0.629485
453fdaffee2d4ec5ec8223f0fa753fce8c413273
14,337
py
Python
src/relstorage/tests/util.py
lungj/relstorage
e18394b0197f6b70708037f36defbd3fe3ee5137
[ "ZPL-2.1" ]
null
null
null
src/relstorage/tests/util.py
lungj/relstorage
e18394b0197f6b70708037f36defbd3fe3ee5137
[ "ZPL-2.1" ]
null
null
null
src/relstorage/tests/util.py
lungj/relstorage
e18394b0197f6b70708037f36defbd3fe3ee5137
[ "ZPL-2.1" ]
null
null
null
import os import platform import unittest # ZODB >= 3.9. The blob directory can be a private cache. shared_blob_dir_choices = (False, True) RUNNING_ON_TRAVIS = os.environ.get('TRAVIS') RUNNING_ON_APPVEYOR = os.environ.get('APPVEYOR') RUNNING_ON_CI = RUNNING_ON_TRAVIS or RUNNING_ON_APPVEYOR if RUNNING_ON_CI: ski...
37.046512
92
0.604032
45409f2dbf3fb01dea755f2b203a25f415411768
2,435
py
Python
sktime/datatypes/_panel/_examples.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
5,349
2019-03-21T14:56:50.000Z
2022-03-31T11:25:30.000Z
sktime/datatypes/_panel/_examples.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
1,803
2019-03-26T13:33:53.000Z
2022-03-31T23:58:10.000Z
sktime/datatypes/_panel/_examples.py
marcio55afr/sktime
25ba2f470f037366ca6b0e529137d3d0a6191e2e
[ "BSD-3-Clause" ]
911
2019-03-25T01:21:30.000Z
2022-03-31T04:45:51.000Z
# -*- coding: utf-8 -*- """Example generation for testing. Exports dict of examples, useful for testing as fixtures. example_dict: dict indexed by triple 1st element = mtype - str 2nd element = considered as this scitype - str 3rd element = int - index of example elements are data objects, considered examples f...
31.623377
79
0.632444
4540a0cc0547d5162f147799d9341ebb9bb38b1a
2,951
py
Python
ipfnlite/get_los_diaggeom.py
guimarais/AUGlite
8b6f6fbf57d974eabd7eb4c04c8b18478a38c9de
[ "MIT" ]
null
null
null
ipfnlite/get_los_diaggeom.py
guimarais/AUGlite
8b6f6fbf57d974eabd7eb4c04c8b18478a38c9de
[ "MIT" ]
null
null
null
ipfnlite/get_los_diaggeom.py
guimarais/AUGlite
8b6f6fbf57d974eabd7eb4c04c8b18478a38c9de
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Tue Jul 9 15:34:36 2019 @author: eseliuni """ from __future__ import print_function #from builtins import str #from builtins import range import os def get_coordinate_from_line(coordinate, line): """ Returns a value of a coordinate from a line ...
35.554217
118
0.583192