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
9bb08d27951cdcbd92a25a4408ad1a1b8fb55f34
1,345
py
Python
test/test_CommandHead.py
jcandan/WonderPy
ee82322b082e94015258b34b27f23501f8130fa2
[ "MIT" ]
46
2018-07-31T20:30:41.000Z
2022-03-23T17:14:51.000Z
test/test_CommandHead.py
jcandan/WonderPy
ee82322b082e94015258b34b27f23501f8130fa2
[ "MIT" ]
24
2018-08-01T09:59:29.000Z
2022-02-26T20:57:51.000Z
test/test_CommandHead.py
jcandan/WonderPy
ee82322b082e94015258b34b27f23501f8130fa2
[ "MIT" ]
24
2018-08-01T19:14:31.000Z
2021-02-18T13:26:40.000Z
import unittest from mock import Mock from test.robotTestUtil import RobotTestUtil if __name__ == '__main__': unittest.main()
40.757576
82
0.646097
9bb204788fee823d3cdd79e26af5c6bd4b825e8a
3,866
py
Python
feature_options.py
soarsmu/HERMES
9b38eedd1f7fcc3321048cc25d15c38268e6fd0b
[ "MIT" ]
2
2022-01-15T11:31:40.000Z
2022-03-09T11:27:28.000Z
feature_options.py
soarsmu/HERMES
9b38eedd1f7fcc3321048cc25d15c38268e6fd0b
[ "MIT" ]
null
null
null
feature_options.py
soarsmu/HERMES
9b38eedd1f7fcc3321048cc25d15c38268e6fd0b
[ "MIT" ]
null
null
null
import click
51.546667
99
0.693999
9bb4070df0345465e234b3e6738bbb40c587c512
2,038
py
Python
py_randomprime/__init__.py
UltiNaruto/py-randomprime
597d3636c2e40e11ed92d4808200ded879ccb244
[ "MIT" ]
null
null
null
py_randomprime/__init__.py
UltiNaruto/py-randomprime
597d3636c2e40e11ed92d4808200ded879ccb244
[ "MIT" ]
2
2021-05-24T18:05:11.000Z
2021-05-31T08:07:29.000Z
py_randomprime/__init__.py
henriquegemignani/py-randomprime
aac48b44761cbb8d857a4d72e06dfac17efc1fae
[ "MIT" ]
2
2021-08-18T01:17:19.000Z
2021-11-26T15:08:34.000Z
import copy import os import json from pathlib import Path from typing import Callable, Optional from . import rust, version def patch_iso_raw(config_str: str, notifier: BaseProgressNotifier): if notifier is None: raise ValueError("notifier is None") return rust.patch_iso(config_str, notifier) de...
29.536232
111
0.723749
9bb514fb57dd5b2a6965770909c4eb7274835dca
3,453
py
Python
secistsploit/modules/auxiliary/whatweb.py
reneaicisneros/SecistSploit
b4e1bb0a213bee39c3bb79ab36e03e19122b80c0
[ "MIT" ]
15
2018-12-06T16:03:32.000Z
2021-06-23T01:17:00.000Z
secistsploit/modules/auxiliary/whatweb.py
reneaicisneros/SecistSploit
b4e1bb0a213bee39c3bb79ab36e03e19122b80c0
[ "MIT" ]
null
null
null
secistsploit/modules/auxiliary/whatweb.py
reneaicisneros/SecistSploit
b4e1bb0a213bee39c3bb79ab36e03e19122b80c0
[ "MIT" ]
6
2019-03-01T04:10:00.000Z
2020-02-26T08:43:54.000Z
# -*- coding: UTF-8 -*- import os from secistsploit.core.exploit import * from secistsploit.core.http.http_client import HTTPClient
34.188119
141
0.435274
9bb942cefeb3547baf593097bb2c4998d052f1b8
3,285
py
Python
pygnss/__init__.py
nmerlene/pygnss
9dc59e57cf5a4bdf0ca56c2b6a23d622ffda4c5a
[ "MIT" ]
null
null
null
pygnss/__init__.py
nmerlene/pygnss
9dc59e57cf5a4bdf0ca56c2b6a23d622ffda4c5a
[ "MIT" ]
null
null
null
pygnss/__init__.py
nmerlene/pygnss
9dc59e57cf5a4bdf0ca56c2b6a23d622ffda4c5a
[ "MIT" ]
null
null
null
from pathlib import Path import logging import xarray from time import time from typing import Union # from .io import opener from .rinex2 import rinexnav2, _scan2 from .rinex3 import rinexnav3, _scan3 # for NetCDF compression. too high slows down with little space savings. COMPLVL = 1 def readrinex(rinexfn: Path, o...
28.318966
120
0.595129
9bb96ea949af7533581d8e4cca76f381e779a9b0
5,201
py
Python
classroom/pref_graph.py
norabelrose/whisper
79642bab696f3e166b6af61a447602e8e5d58270
[ "MIT" ]
null
null
null
classroom/pref_graph.py
norabelrose/whisper
79642bab696f3e166b6af61a447602e8e5d58270
[ "MIT" ]
null
null
null
classroom/pref_graph.py
norabelrose/whisper
79642bab696f3e166b6af61a447602e8e5d58270
[ "MIT" ]
null
null
null
from typing import TYPE_CHECKING import networkx as nx from .fas import eades_fas if TYPE_CHECKING: # Prevent circular import from .pref_dag import PrefDAG def add_indiff(self, a: str, b: str, **attr): """Try to dd the indifference relation `a ~ b`, and throw an error if the expected coh...
42.284553
104
0.635455
9bbc0decb0390376acbaa65e5a7c58faddf9f153
516
py
Python
scaffolder/templates/django/views.py
javidgon/wizard
a75a4c10f84c756c2466c9afaaadf3b2c0cf3a43
[ "MIT" ]
null
null
null
scaffolder/templates/django/views.py
javidgon/wizard
a75a4c10f84c756c2466c9afaaadf3b2c0cf3a43
[ "MIT" ]
null
null
null
scaffolder/templates/django/views.py
javidgon/wizard
a75a4c10f84c756c2466c9afaaadf3b2c0cf3a43
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.views import generic from .models import {% for model in app.models %}{{ model.name }}{% if not loop.last %}, {% endif %}{% endfor %} {% for model in app.models %}class {{ model.name }}IndexView(generic.ListView): model = {{ model.name }} template_name = '...
30.352941
112
0.656977
9bbcdfbd01a5563f9c4786b31c8c24dcfa3b565b
683
py
Python
hisitter/reviews/permissions.py
babysitter-finder/backend
5c37c6876ca13b5794ac44e0342b810426acbc76
[ "MIT" ]
1
2021-02-25T01:02:40.000Z
2021-02-25T01:02:40.000Z
hisitter/reviews/permissions.py
babysitter-finder/backend
5c37c6876ca13b5794ac44e0342b810426acbc76
[ "MIT" ]
null
null
null
hisitter/reviews/permissions.py
babysitter-finder/backend
5c37c6876ca13b5794ac44e0342b810426acbc76
[ "MIT" ]
1
2020-11-23T20:57:47.000Z
2020-11-23T20:57:47.000Z
""" Reviews permissions.""" # Python import logging # Django Rest Framework from rest_framework.permissions import BasePermission
28.458333
75
0.628111
9bbd9c4b8b498fde19563e3848c89d37d52b9838
1,678
py
Python
pk.py
CnybTseng/SOSNet
9f1e96380388dde75fe0737ec0b3516669054205
[ "MIT" ]
null
null
null
pk.py
CnybTseng/SOSNet
9f1e96380388dde75fe0737ec0b3516669054205
[ "MIT" ]
null
null
null
pk.py
CnybTseng/SOSNet
9f1e96380388dde75fe0737ec0b3516669054205
[ "MIT" ]
null
null
null
import sys import torch import timeit sys.path.append('../JDE') from mot.models.backbones import ShuffleNetV2 from sosnet import SOSNet if __name__ == '__main__': print('SOSNet PK ShuffleNetV2') model1 = ShuffleNetV2( stage_repeat={'stage2': 4, 'stage3': 8, 'stage4': 4}, stage_out_ch...
37.288889
85
0.567342
9bbda2f39a11084b661e8fe58491f418c2a36b6f
2,255
py
Python
test/generate_netmhcpan_functions.py
til-unc/mhcgnomes
0bfbe193daeb7cd38d958222f6071dd657e9fb6e
[ "Apache-2.0" ]
6
2020-10-27T15:31:32.000Z
2020-11-29T03:26:06.000Z
test/generate_netmhcpan_functions.py
til-unc/mhcgnomes
0bfbe193daeb7cd38d958222f6071dd657e9fb6e
[ "Apache-2.0" ]
4
2020-10-27T14:57:16.000Z
2020-11-04T21:56:39.000Z
test/generate_netmhcpan_functions.py
pirl-unc/mhcgnomes
0bfbe193daeb7cd38d958222f6071dd657e9fb6e
[ "Apache-2.0" ]
null
null
null
import pandas as pd NETMHCPAN_3_0_DEST = "test_netmhcpan_3_0_alleles.py" NETMHCPAN_3_0_SOURCE = "netmhcpan_3_0_alleles.txt" NETMHCPAN_4_0_DEST = "test_netmhcpan_4_0_alleles.py" NETMHCPAN_4_0_SOURCE = "netmhcpan_4_0_alleles.txt" special_chars = " *:-,/." netmhcpan_3_0_alleles = generate( src=NETMHCPAN_3_0_SOURC...
35.234375
107
0.501552
9bbde6aa054a0343fb01e156fb53162fe6c254c5
96
py
Python
python/tests/test_linked_list.py
Leenhazaimeh/data-structures-and-algorithms
d55d55bf8c98e768cb929326b5ec8c18fb5c8384
[ "MIT" ]
null
null
null
python/tests/test_linked_list.py
Leenhazaimeh/data-structures-and-algorithms
d55d55bf8c98e768cb929326b5ec8c18fb5c8384
[ "MIT" ]
10
2021-07-29T18:56:48.000Z
2021-09-11T19:11:00.000Z
python/tests/test_linked_list.py
Leenhazaimeh/data-structures-and-algorithms
d55d55bf8c98e768cb929326b5ec8c18fb5c8384
[ "MIT" ]
3
2021-08-16T06:16:37.000Z
2021-12-05T14:29:51.000Z
# from linked_list.linked_list import LinkedList # def test_import(): # assert LinkedList
16
48
0.75
9bbf5d23053e93f4be3618d38f8307dfe71dd5b9
2,156
py
Python
美团爬取商家信息/paquxinxi.py
13060923171/Crawl-Project2
effab1bf31979635756fc272a7bcc666bb499be2
[ "MIT" ]
14
2020-10-27T05:52:20.000Z
2021-11-07T20:24:55.000Z
美团爬取商家信息/paquxinxi.py
13060923171/Crawl-Project2
effab1bf31979635756fc272a7bcc666bb499be2
[ "MIT" ]
1
2021-09-17T07:40:00.000Z
2021-09-17T07:40:00.000Z
美团爬取商家信息/paquxinxi.py
13060923171/Crawl-Project2
effab1bf31979635756fc272a7bcc666bb499be2
[ "MIT" ]
8
2020-11-18T14:23:12.000Z
2021-11-12T08:55:08.000Z
import requests import re import json headers = { "Origin": "https://bj.meituan.com", "Host": "apimobile.meituan.com", "Referer": "https://bj.meituan.com/s/%E7%81%AB%E9%94%85/", "Cookie": "uuid=692a53319ce54d0c91f3.1597223761.1.0.0; ci=1; rvct=1; _lxsdk_cuid=173e1f47707c8-0dcd4ff30b4ae3-3323765-e1000-1...
33.169231
185
0.590909
9bc11053555c82b404c0a0cf86d08e3626d9e05f
4,071
py
Python
entity_resolution/EntityClass.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
entity_resolution/EntityClass.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
entity_resolution/EntityClass.py
GeoJamesJones/ArcGIS-Senzing-Prototype
ebe7f1c3f516525f4bfbf5b4f1446e8c6612a67b
[ "MIT" ]
null
null
null
from __future__ import annotations import json from typing import List, Dict from entity_resolution import EntityResolution
36.675676
121
0.561778
32ca34b8eacf24dc530fada37a04db8272ab0be6
523
py
Python
langcreator/system.py
xzripper/LanguageCreator
65421063161166d3e4f97e4b874909259b665fce
[ "MIT" ]
2
2021-12-12T16:48:20.000Z
2021-12-31T17:48:21.000Z
langcreator/system.py
xzripper/LanguageCreator
65421063161166d3e4f97e4b874909259b665fce
[ "MIT" ]
null
null
null
langcreator/system.py
xzripper/LanguageCreator
65421063161166d3e4f97e4b874909259b665fce
[ "MIT" ]
null
null
null
import subprocess import sys import os subprocess = subprocess sys = sys os = os def output(command: str, remlstc: bool) -> str: """ Get output from console command. If remlstc is True, it's return an output without a useless newline. :param command: The command. :param remlstc: R...
27.526316
158
0.692161
32cada166139a42c2081b8a48a2bcd39a15cb5ab
2,612
py
Python
create_categories.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
create_categories.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
create_categories.py
Botomatik/JackBot
58651d8b5a5bcead2a2eb79849019cb4f972b7cd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Program to batch create categories. The program expects a generator containing a list of page titles to be used as base. The following command line parameters are supported: -always (not implemented yet) Don't ask, just do the edit. -overwrite (not implemented yet). -parent...
25.359223
78
0.630551
32cae26d8eb99a201dc12930e81a1edb58d4cace
10,287
py
Python
avod/core/losses.py
Zengyi-Qin/TLNet
11fa48160158b550ad2dc810ed564eebe17e8f5e
[ "Apache-2.0" ]
114
2019-03-13T01:42:22.000Z
2022-03-31T07:56:04.000Z
avod/core/losses.py
Zengyi-Qin/TLNet
11fa48160158b550ad2dc810ed564eebe17e8f5e
[ "Apache-2.0" ]
12
2019-03-26T08:18:13.000Z
2021-05-19T14:36:27.000Z
avod/core/losses.py
Zengyi-Qin/TLNet
11fa48160158b550ad2dc810ed564eebe17e8f5e
[ "Apache-2.0" ]
22
2019-03-22T10:44:49.000Z
2021-04-01T00:11:07.000Z
"""Classification and regression loss functions for object detection. Localization losses: * WeightedL2LocalizationLoss * WeightedSmoothL1LocalizationLoss Classification losses: * WeightedSoftmaxClassificationLoss * WeightedSigmoidClassificationLoss """ from abc import ABCMeta from abc import abstractmethod impo...
44.150215
129
0.636726
32cd6811a8df581555a9e17bfebdb7625e6646ac
19,282
py
Python
routing/views.py
iqqmuT/tsari
343ef5cf08ee24bdb710e94c0b6fb334264e5677
[ "MIT" ]
null
null
null
routing/views.py
iqqmuT/tsari
343ef5cf08ee24bdb710e94c0b6fb334264e5677
[ "MIT" ]
2
2020-02-11T22:09:10.000Z
2020-06-05T18:02:28.000Z
routing/views.py
iqqmuT/tsari
343ef5cf08ee24bdb710e94c0b6fb334264e5677
[ "MIT" ]
null
null
null
import json from datetime import datetime, timedelta from dateutil import parser as dateparser from django.contrib.auth.decorators import user_passes_test from django.db.models import Q from django.http import HttpResponseNotFound, JsonResponse from django.shortcuts import render from django.utils import timezone fro...
36.041121
256
0.587283
32cf5c6af409ad539e05135e062b11460576c4f6
5,575
py
Python
my_ner.py
shouxieai/nlp-bilstm_crf-ner
907381325eeb0a2c29004e1c617bea7312579ba8
[ "Apache-2.0" ]
16
2021-12-14T10:51:25.000Z
2022-03-30T10:10:09.000Z
my_ner.py
shouxieai/nlp-bilstm-ner
907381325eeb0a2c29004e1c617bea7312579ba8
[ "Apache-2.0" ]
1
2022-03-23T04:28:50.000Z
2022-03-23T04:28:50.000Z
my_ner.py
shouxieai/nlp-bilstm-ner
907381325eeb0a2c29004e1c617bea7312579ba8
[ "Apache-2.0" ]
2
2021-12-08T02:48:01.000Z
2021-12-13T13:03:25.000Z
import os from torch.utils.data import Dataset,DataLoader import torch import torch.nn as nn from sklearn.metrics import f1_score def build_corpus(split, make_vocab=True, data_dir="data"): """""" assert split in ['train', 'dev', 'test'] word_lists = [] tag_lists = [] with open(os.path.join(data_di...
32.794118
130
0.63139
32cf7fd469a0aec109e44e66849bad3789086158
245
py
Python
test.py
karttur/geoimagine03-support
3971db215382bd16f207eca3ef1d9d81e4298b41
[ "BSD-3-Clause" ]
null
null
null
test.py
karttur/geoimagine03-support
3971db215382bd16f207eca3ef1d9d81e4298b41
[ "BSD-3-Clause" ]
null
null
null
test.py
karttur/geoimagine03-support
3971db215382bd16f207eca3ef1d9d81e4298b41
[ "BSD-3-Clause" ]
null
null
null
''' Created on 28 Jan 2021 @author: thomasgumbricht ''' from string import whitespace def CheckWhitespace(s): ''' ''' return True in [c in s for c in whitespace] s = 'dumsnut' print (CheckWhitespace(s))
13.611111
51
0.591837
32cfbeee160a6e50ceb471701c99ace872cbfe2b
362
py
Python
leetcode/409.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
1
2019-08-28T23:15:25.000Z
2019-08-28T23:15:25.000Z
leetcode/409.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
leetcode/409.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
""" link: https://leetcode.com/problems/longest-palindrome problem: s solution: map """
18.1
54
0.558011
32cfc631e8d4a50ff93f3a9a349602c8342fb97a
847
py
Python
nickenbot/config.py
brlafreniere/nickenbot
f13ec78057ec25823eb16df6ffab3a32eddfd3ca
[ "MIT" ]
1
2016-08-10T12:20:58.000Z
2016-08-10T12:20:58.000Z
nickenbot/config.py
brlafreniere/nickenbot
f13ec78057ec25823eb16df6ffab3a32eddfd3ca
[ "MIT" ]
null
null
null
nickenbot/config.py
brlafreniere/nickenbot
f13ec78057ec25823eb16df6ffab3a32eddfd3ca
[ "MIT" ]
null
null
null
import yaml import os import sys current_dir = os.path.dirname(os.path.realpath(__file__)) project_dir = os.path.realpath(os.path.join(current_dir, ".."))
27.322581
95
0.615112
32d046c8c2ed3ece0b08aa280a40083f8b7d16ab
2,277
py
Python
qna/views.py
channprj/KU-PL
7fc3719b612a819ed1bd443695d7f13f509ee596
[ "MIT" ]
null
null
null
qna/views.py
channprj/KU-PL
7fc3719b612a819ed1bd443695d7f13f509ee596
[ "MIT" ]
null
null
null
qna/views.py
channprj/KU-PL
7fc3719b612a819ed1bd443695d7f13f509ee596
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.shortcuts import redirect from django.shortcuts import get_object_or_404 from django.utils import timezone from .forms import QuestionForm from .forms import AnswerForm from .models import Question from .models import Answer
35.030769
101
0.665349
32d33f3c862ddf8043ee8ce09e1a526264e7c51a
1,648
py
Python
python/tests/test_oci.py
miku/labe
2d784f418e24ab6fef9f76791c9fdd02dd505657
[ "MIT" ]
null
null
null
python/tests/test_oci.py
miku/labe
2d784f418e24ab6fef9f76791c9fdd02dd505657
[ "MIT" ]
null
null
null
python/tests/test_oci.py
miku/labe
2d784f418e24ab6fef9f76791c9fdd02dd505657
[ "MIT" ]
1
2021-09-16T10:51:00.000Z
2021-09-16T10:51:00.000Z
""" Unit tests for labe. Most not mocked yet, hence slow. """ import collections import socket import pytest import requests from labe.oci import get_figshare_download_link, get_terminal_url def no_internet(host="8.8.8.8", port=53, timeout=3): """ Host: 8.8.8.8 (google-public-dns-a.google.com) OpenPort...
30.518519
88
0.662621
32d559b8ce0d7d1c7f26302620ef00f9255a82dc
26,404
py
Python
pyNastran/bdf/cards/test/test_dynamic.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
293
2015-03-22T20:22:01.000Z
2022-03-14T20:28:24.000Z
pyNastran/bdf/cards/test/test_dynamic.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
512
2015-03-14T18:39:27.000Z
2022-03-31T16:15:43.000Z
pyNastran/bdf/cards/test/test_dynamic.py
ACea15/pyNastran
5ffc37d784b52c882ea207f832bceb6b5eb0e6d4
[ "BSD-3-Clause" ]
136
2015-03-19T03:26:06.000Z
2022-03-25T22:14:54.000Z
"""tests dynamic cards and dynamic load cards""" import unittest from io import StringIO import numpy as np import pyNastran from pyNastran.bdf.bdf import BDF, read_bdf, CrossReferenceError from pyNastran.bdf.cards.test.utils import save_load_deck #ROOT_PATH = pyNastran.__path__[0] if __name__ == '__main__': # prag...
34.069677
97
0.549879
32d6f22794e1af28d1b004461271504fb7680002
4,691
py
Python
src/kv/benchmark/runbench.py
showapicxt/iowow
a29ac5b28f1b6c2817061c2a43b7222176458876
[ "MIT" ]
242
2015-08-13T06:38:10.000Z
2022-03-17T13:49:56.000Z
src/kv/benchmark/runbench.py
showapicxt/iowow
a29ac5b28f1b6c2817061c2a43b7222176458876
[ "MIT" ]
44
2018-04-08T07:12:02.000Z
2022-03-04T06:15:01.000Z
src/kv/benchmark/runbench.py
showapicxt/iowow
a29ac5b28f1b6c2817061c2a43b7222176458876
[ "MIT" ]
18
2016-01-14T09:50:34.000Z
2022-01-26T23:07:40.000Z
import subprocess import argparse import os import random from collections import OrderedDict from parse import parse from bokeh.io import export_png from bokeh.plotting import figure, output_file, show, save from bokeh.models import ColumnDataSource, FactorRange from bokeh.transform import factor_cmap from bokeh.layou...
31.273333
99
0.568322
32d7c7852b8b937ddf9034af3749422522ced7eb
2,792
py
Python
tests/utils/test_parser.py
ccechatelier/bcdi
cbe3b7960414b03f8e98336c3fcd7b367de441ca
[ "CECILL-B" ]
18
2020-04-30T08:48:39.000Z
2022-03-30T14:42:01.000Z
tests/utils/test_parser.py
ccechatelier/bcdi
cbe3b7960414b03f8e98336c3fcd7b367de441ca
[ "CECILL-B" ]
78
2019-06-30T03:45:58.000Z
2022-03-23T15:04:44.000Z
tests/utils/test_parser.py
ccechatelier/bcdi
cbe3b7960414b03f8e98336c3fcd7b367de441ca
[ "CECILL-B" ]
16
2019-07-03T17:18:53.000Z
2022-01-12T15:54:56.000Z
# -*- coding: utf-8 -*- # BCDI: tools for pre(post)-processing Bragg coherent X-ray diffraction imaging data # (c) 07/2017-06/2019 : CNRS UMR 7344 IM2NP # (c) 07/2019-05/2021 : DESY PHOTON SCIENCE # authors: # Jerome Carnis, carnis_jerome@yahoo.fr from pathlib import Path import unittest from bcdi.u...
34.469136
87
0.690544
32d936fc21c284d747f6a37882f102cf2a32a1e5
567
py
Python
src/directory-starter/README_text.py
hannahweber244/directory-starter
0cb12b6e9dfe9c3a6eb5029d7d0b6cb5da52b44b
[ "MIT" ]
null
null
null
src/directory-starter/README_text.py
hannahweber244/directory-starter
0cb12b6e9dfe9c3a6eb5029d7d0b6cb5da52b44b
[ "MIT" ]
null
null
null
src/directory-starter/README_text.py
hannahweber244/directory-starter
0cb12b6e9dfe9c3a6eb5029d7d0b6cb5da52b44b
[ "MIT" ]
null
null
null
""" # [REPO NAME] ## Table of contents [Here you can use a table of contents to keep your README structured.] ## Overview [Here you give a short overview over the motivation behind your project and what problem it solves.] ## How to use it [Here you can explain how your tool/project is usable.] ### Requirements an...
31.5
102
0.75485
32da7030ea8ed7c10970c252248ba50cc03bff1f
152
py
Python
kfdda/models/__init__.py
ll1l11/pymysql-test
de5747366bbf23ecb0b1f01059b3a69c8ac4936d
[ "MIT" ]
null
null
null
kfdda/models/__init__.py
ll1l11/pymysql-test
de5747366bbf23ecb0b1f01059b3a69c8ac4936d
[ "MIT" ]
null
null
null
kfdda/models/__init__.py
ll1l11/pymysql-test
de5747366bbf23ecb0b1f01059b3a69c8ac4936d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from ..core import db from ..helpers import JSONSerializer
19
42
0.710526
32db89f97cc25f33ad056f8860c98d1fafd8baab
2,652
py
Python
chapt05/triangle.py
ohlogic/PythonOpenGLSuperBible4Glut
a0d01caaeb811002c191c28210268b5fcbb8b379
[ "MIT" ]
null
null
null
chapt05/triangle.py
ohlogic/PythonOpenGLSuperBible4Glut
a0d01caaeb811002c191c28210268b5fcbb8b379
[ "MIT" ]
null
null
null
chapt05/triangle.py
ohlogic/PythonOpenGLSuperBible4Glut
a0d01caaeb811002c191c28210268b5fcbb8b379
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Demonstrates OpenGL color triangle # Ben Smith # benjamin.coder.smith@gmail.com # # based heavily on ccube.cpp # OpenGL SuperBible # Program by Richard S. Wright Jr. import math from OpenGL.GL import * from OpenGL.GLUT import * from OpenGL.GLU import * ESCAPE = b'\033' xRot...
21.737705
83
0.562217
32e013bad1fb65c5a409199a8b804f1d0f72e07c
1,379
py
Python
sdpremote/utils/user.py
gudn/sdpremote
431234420ea1e0c752432eac6000c11a75851375
[ "MIT" ]
null
null
null
sdpremote/utils/user.py
gudn/sdpremote
431234420ea1e0c752432eac6000c11a75851375
[ "MIT" ]
null
null
null
sdpremote/utils/user.py
gudn/sdpremote
431234420ea1e0c752432eac6000c11a75851375
[ "MIT" ]
null
null
null
import binascii from base64 import b64decode from typing import Optional from fastapi import Depends, Header, status from fastapi.exceptions import HTTPException
26.018868
74
0.649021
32e2062c20d3f7d54552e963b99e3b7f219ffa2e
19,175
py
Python
ScreenTrainer.py
ZihaoChen0319/CMB-Segmentation
99c5788baacc280ca5dbe02f3e18403e399fb238
[ "Apache-2.0" ]
null
null
null
ScreenTrainer.py
ZihaoChen0319/CMB-Segmentation
99c5788baacc280ca5dbe02f3e18403e399fb238
[ "Apache-2.0" ]
null
null
null
ScreenTrainer.py
ZihaoChen0319/CMB-Segmentation
99c5788baacc280ca5dbe02f3e18403e399fb238
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn import os import torch.optim as optim from tqdm import tqdm import numpy as np import torch import torch.nn.functional as nnf import SimpleITK as sitk import json from scipy import ndimage import medpy.io as mio from Utils import find_binary_object from MyDataloader import get_train_...
50.460526
140
0.557445
32e36a60281e09d72c79ad1807ea74035aa73e60
534
py
Python
examples/earthquakes/main.py
admariner/beneath
a6aa2c220e4a646be792379528ae673f4bef440b
[ "MIT" ]
65
2021-04-27T13:13:09.000Z
2022-01-24T00:26:06.000Z
examples/earthquakes/main.py
admariner/beneath
a6aa2c220e4a646be792379528ae673f4bef440b
[ "MIT" ]
22
2021-10-06T10:30:40.000Z
2021-12-10T11:36:55.000Z
examples/earthquakes/main.py
admariner/beneath
a6aa2c220e4a646be792379528ae673f4bef440b
[ "MIT" ]
4
2021-04-24T15:29:51.000Z
2022-03-30T16:20:12.000Z
import beneath from generators import earthquakes with open("schemas/earthquake.graphql", "r") as file: EARTHQUAKES_SCHEMA = file.read() if __name__ == "__main__": p = beneath.Pipeline(parse_args=True) p.description = "Continually pings the USGS earthquake API" earthquakes = p.generate(earthquakes.ge...
28.105263
76
0.700375
32e3ce811bff9ec736c02ce8188ebe9e69d6a483
5,073
py
Python
examples/tf_vision/tensorflow_saved_model_service.py
siddharthgee/multi-model-server
bd795b402330b491edd5d2a235b8b8c2ef9fcb58
[ "Apache-2.0" ]
null
null
null
examples/tf_vision/tensorflow_saved_model_service.py
siddharthgee/multi-model-server
bd795b402330b491edd5d2a235b8b8c2ef9fcb58
[ "Apache-2.0" ]
null
null
null
examples/tf_vision/tensorflow_saved_model_service.py
siddharthgee/multi-model-server
bd795b402330b491edd5d2a235b8b8c2ef9fcb58
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # http://www.apache.org/licenses/LICENSE-2.0 # or in the "license" file...
38.431818
118
0.640647
32e4f05624819cc83857abc3b6af4086f2c2a88e
167
py
Python
setup.py
kimballa/arduino-dbg
639d73b6d96996218cf9aafde52f3683c9d93775
[ "BSD-3-Clause" ]
null
null
null
setup.py
kimballa/arduino-dbg
639d73b6d96996218cf9aafde52f3683c9d93775
[ "BSD-3-Clause" ]
null
null
null
setup.py
kimballa/arduino-dbg
639d73b6d96996218cf9aafde52f3683c9d93775
[ "BSD-3-Clause" ]
null
null
null
# Minimal setup.py # # Enables installing requirements as declared in setup.cfg. # From this directory, run: # pip install . from setuptools import setup setup()
18.555556
59
0.736527
32e63e4af47da5e138ff28bb64adb55087df265e
7,113
py
Python
apps/etl/models.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
apps/etl/models.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
apps/etl/models.py
diudiu/featurefactory
ee02ad9e3ea66e2eeafe6e11859801f0420c7d9e
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ common models """ from django.db import models from apps.common.models import BaseModel from apps.datasource.models import DsInterfaceInfo
39.082418
111
0.707578
32e861d95e4d1e621303b5ebac3624de50614805
4,007
py
Python
mazegen/solver.py
alekratz/mazegen
2799a5cf790cec4bab94a147315cc8541c5efec7
[ "MIT" ]
null
null
null
mazegen/solver.py
alekratz/mazegen
2799a5cf790cec4bab94a147315cc8541c5efec7
[ "MIT" ]
null
null
null
mazegen/solver.py
alekratz/mazegen
2799a5cf790cec4bab94a147315cc8541c5efec7
[ "MIT" ]
null
null
null
import random from typing import Optional from .grid import *
32.056
96
0.520839
32e9f9206385a627a8ad3b33526b3f3d199fd0d3
78
py
Python
practice.py
dajimmy1120/AvatarGAN
be264914223490ee9c23e59ad5a414da1aef4824
[ "Apache-2.0" ]
null
null
null
practice.py
dajimmy1120/AvatarGAN
be264914223490ee9c23e59ad5a414da1aef4824
[ "Apache-2.0" ]
null
null
null
practice.py
dajimmy1120/AvatarGAN
be264914223490ee9c23e59ad5a414da1aef4824
[ "Apache-2.0" ]
null
null
null
from keras_segmentation.pretrained import pspnet_101_voc12 pspnet_101_voc12()
26
58
0.897436
32ea368fa5ba2732d1c51618d8edfc516b6eb773
1,224
py
Python
example/RunModel/Abaqus_Model_Example/process_odb.py
volpatto/UQpy
acbe1d6e655e98917f56b324f019881ea9ccca82
[ "MIT" ]
null
null
null
example/RunModel/Abaqus_Model_Example/process_odb.py
volpatto/UQpy
acbe1d6e655e98917f56b324f019881ea9ccca82
[ "MIT" ]
null
null
null
example/RunModel/Abaqus_Model_Example/process_odb.py
volpatto/UQpy
acbe1d6e655e98917f56b324f019881ea9ccca82
[ "MIT" ]
null
null
null
from odbAccess import * from abaqusConstants import * from textRepr import * import timeit import numpy as np import os import sys start_time = timeit.default_timer() index = sys.argv[-1] # print(index) # index = float(index) index = int(index) # print(index) odbFile = os.path.join(os.getcwd(), "single_element_simul...
27.818182
87
0.684641
32eaa0a294af2308ff208fed9c050fd370b31fec
8,526
py
Python
analysis_methods/shuff_time.py
gbrookshire/simulated_rhythmic_sampling
5c9ed507847a75dbe38d10d78b54441ae83f5831
[ "MIT" ]
null
null
null
analysis_methods/shuff_time.py
gbrookshire/simulated_rhythmic_sampling
5c9ed507847a75dbe38d10d78b54441ae83f5831
[ "MIT" ]
null
null
null
analysis_methods/shuff_time.py
gbrookshire/simulated_rhythmic_sampling
5c9ed507847a75dbe38d10d78b54441ae83f5831
[ "MIT" ]
null
null
null
""" Tools to perform analyses by shuffling in time, as in Landau & Fries (2012) and Fiebelkorn et al. (2013). """ import os import yaml import numpy as np import statsmodels.api as sm from statsmodels.stats.multitest import multipletests from .utils import avg_repeated_timepoints, dft # Load the details of the behavi...
29
79
0.62327
32eb29b8500dc60a31bfc242ef317ed9ccbd65b5
1,411
py
Python
configs/common/ARM_A7.py
baz21/g5
e81b0df094c5ff80fbbcc37618e81e206a3c9de9
[ "BSD-3-Clause" ]
null
null
null
configs/common/ARM_A7.py
baz21/g5
e81b0df094c5ff80fbbcc37618e81e206a3c9de9
[ "BSD-3-Clause" ]
null
null
null
configs/common/ARM_A7.py
baz21/g5
e81b0df094c5ff80fbbcc37618e81e206a3c9de9
[ "BSD-3-Clause" ]
null
null
null
from m5.objects import * # https://en.wikipedia.org/wiki/Raspberry_Pi # https://en.wikipedia.org/wiki/ARM_Cortex-A7 # Instruction Cache # Data Cache # L2 Cache # L3 Cache, NONE # TLB Cache, NONE # end
20.75
57
0.649894
32ebbb19735d64f55f4b8caaf8724aa49e1ddf29
172
py
Python
webapp/models/__init__.py
xaldey/otus_blog
32600506d447c0b76c7e0323389d17428d197181
[ "Apache-2.0" ]
null
null
null
webapp/models/__init__.py
xaldey/otus_blog
32600506d447c0b76c7e0323389d17428d197181
[ "Apache-2.0" ]
null
null
null
webapp/models/__init__.py
xaldey/otus_blog
32600506d447c0b76c7e0323389d17428d197181
[ "Apache-2.0" ]
null
null
null
from .create_db import Session, engine, Base from .models import User, Post, Tag __all__ = [ "Session", "engine", "Base", "User", "Post", "Tag", ]
14.333333
44
0.569767
32ef88405f3f3c3db42531c5dfa16c38dbb4d202
1,405
py
Python
Easy/112.PathSum.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Easy/112.PathSum.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Easy/112.PathSum.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. Note: A leaf is a node with no children. Example: Given the below binary tree and sum = 22, 5 / \ 4 8 ...
28.673469
84
0.577936
32f125ad1d76b4e0fde9ddfeb972aeb7353e40c7
42
py
Python
downloads.py
Jamal135/fine-grained-sentiment-app
4754cefd77ccfa99b15a7721c3471aeacec650c9
[ "MIT" ]
null
null
null
downloads.py
Jamal135/fine-grained-sentiment-app
4754cefd77ccfa99b15a7721c3471aeacec650c9
[ "MIT" ]
null
null
null
downloads.py
Jamal135/fine-grained-sentiment-app
4754cefd77ccfa99b15a7721c3471aeacec650c9
[ "MIT" ]
null
null
null
import nltk nltk.download('vader_lexicon')
21
30
0.833333
32f16560a7eafdb17a4951c61d182a0eaa97e4e4
880
py
Python
src/Tools/Button.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
src/Tools/Button.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
src/Tools/Button.py
hieuhdh/Multi-tasking-program
2f064a554f647247c84979b7a27f0797d1e1b5af
[ "MIT" ]
null
null
null
from tkinter import* from tkinter import Button, font from tkinter.font import BOLD import tkinter.ttk as ttk from tkhtmlview import HTMLLabel from tkhtmlview import HTMLText
40
303
0.659091
32f6cfa5b601a97d41e10a68ea610b54a023b9f0
864
py
Python
src/test.py
ayieko168/Arduino-Oscilloscope
5a0634437010f4303c86aef141f33cc6a628b3dc
[ "MIT" ]
null
null
null
src/test.py
ayieko168/Arduino-Oscilloscope
5a0634437010f4303c86aef141f33cc6a628b3dc
[ "MIT" ]
null
null
null
src/test.py
ayieko168/Arduino-Oscilloscope
5a0634437010f4303c86aef141f33cc6a628b3dc
[ "MIT" ]
null
null
null
import pyqtgraph as pg import pyqtgraph.exporters import numpy as np import math from time import sleep f = 10 t = 0 Samples = 1000 # while True: # y2 = np.sin( 2* np.pi * f * t) # print(y) # t+=0.01 # sleep(0.25) # define the data theTitle = "pyqtgraph plot" y2 = [] # create plot plt = pg.plot()...
16.941176
76
0.618056
32f73e3a96427c84bfa7bd842e7e9ab6eeb893b6
931
py
Python
Aula07/Exercicio2.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula07/Exercicio2.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
Aula07/Exercicio2.py
PabloSchumacher/TrabalhosPython
828edd35eb40442629211bc9f1477f75fb025d74
[ "bzip2-1.0.6", "MIT" ]
null
null
null
#--- Exercicio 2 - Dicionrios #--- Escreva um programa que leia os dados de 11 jogadores #--- Jogador: Nome, Posicao, Numero, PernaBoa #--- Crie um dicionario para armazenar os dados #--- Imprima todos os jogadores e seus dados lista_jogador = [] for i in range(0,11): dicionario_jogador = {'Nome':'', 'Posicao':''...
46.55
177
0.688507
32f8e7bf61b54b514d134bdb102d258bdc2af2ce
669
py
Python
Tiny ImageNet Challenge/train_data.py
Vishal-V/Mastering-TensorFlow-2.x
83e18cf84dc5c391c5f902978ee5a80e1be4a31d
[ "MIT" ]
3
2020-05-15T16:57:39.000Z
2020-09-16T20:53:58.000Z
Tiny ImageNet Challenge/train_data.py
Vishal-V/Mastering-Tensorflow
83e18cf84dc5c391c5f902978ee5a80e1be4a31d
[ "MIT" ]
null
null
null
Tiny ImageNet Challenge/train_data.py
Vishal-V/Mastering-Tensorflow
83e18cf84dc5c391c5f902978ee5a80e1be4a31d
[ "MIT" ]
4
2020-03-30T16:11:41.000Z
2020-09-15T20:28:27.000Z
# Iterate over epochs. for epoch in range(3): print(f'Epoch {epoch+1}') # Iterate over the batches of the dataset. for step, x_batch_train in enumerate(train_data): with tf.GradientTape() as tape: reconstructed = autoencoder(x_batch_train) # Compute reconstruction loss loss = mse_loss(x_b...
35.210526
74
0.707025
32f92084cffe12b7f31fc3604eb9852e4502b8d7
1,422
py
Python
utils/generate_topics.py
ahoho/scholar
fe1b7ba590563e245e7765d100cfff091ba20c54
[ "Apache-2.0" ]
null
null
null
utils/generate_topics.py
ahoho/scholar
fe1b7ba590563e245e7765d100cfff091ba20c54
[ "Apache-2.0" ]
null
null
null
utils/generate_topics.py
ahoho/scholar
fe1b7ba590563e245e7765d100cfff091ba20c54
[ "Apache-2.0" ]
null
null
null
################################################################ # Generate top-N words for topics, one per line, to stdout ################################################################ import os import sys import argparse import numpy as np import file_handling as fh if __name__ == "__main__": main()
25.392857
70
0.563291
32fc43425ea47a93c10fa87eeeea81ca0922ca0c
918
py
Python
AutomateboringStuff/3. Functions/try_nd_except.py
gabriel-marchetti/Exercicios-Python
0f1eac7eee48081cf899d25bed0ec5dbc70a3542
[ "MIT" ]
2
2021-12-21T23:28:02.000Z
2021-12-21T23:28:03.000Z
AutomateboringStuff/3. Functions/try_nd_except.py
gabriel-marchetti/Exercicios-Python
0f1eac7eee48081cf899d25bed0ec5dbc70a3542
[ "MIT" ]
1
2021-12-22T12:05:11.000Z
2021-12-22T13:02:52.000Z
AutomateboringStuff/3. Functions/try_nd_except.py
gabriel-marchetti/Exercicios-Python
0f1eac7eee48081cf899d25bed0ec5dbc70a3542
[ "MIT" ]
null
null
null
# Quando tivermos um programa onde claramente temos um caso # indesejvel, ento podemos usar a funo do python dita # try_and_except. # Vamos supor que desejamos fazer uma funo que faa uma # diviso, ento podemos fazer a seguinte estrutura de # cdigo # veja que nesse caso, se dermos o argumento zero, ento # iremos ganhar...
20.863636
59
0.713508
32fcb908b2dfd2baf6aec8baabfb5d1f269220d0
1,577
py
Python
src/plyer_lach/platforms/android/email.py
locksmith47/turing-sim-kivy
f57de9d52494245c56f67dd7e63121434bb0553f
[ "MIT" ]
null
null
null
src/plyer_lach/platforms/android/email.py
locksmith47/turing-sim-kivy
f57de9d52494245c56f67dd7e63121434bb0553f
[ "MIT" ]
null
null
null
src/plyer_lach/platforms/android/email.py
locksmith47/turing-sim-kivy
f57de9d52494245c56f67dd7e63121434bb0553f
[ "MIT" ]
null
null
null
from jnius import autoclass, cast from kivy.logger import Logger from plyer_lach.facades import Email from plyer_lach.platforms.android import activity Intent = autoclass('android.content.Intent') AndroidString = autoclass('java.lang.String') URI = autoclass('android.net.Uri')
36.674419
89
0.606848
32ff2b91e7cdacd12f1c52a76ec14a6214fafa45
452
py
Python
main.py
rishi-chauhan/sudoku
2b07954b2f3ab5146ab0f96eb4d0509a3ea45eb2
[ "MIT" ]
null
null
null
main.py
rishi-chauhan/sudoku
2b07954b2f3ab5146ab0f96eb4d0509a3ea45eb2
[ "MIT" ]
null
null
null
main.py
rishi-chauhan/sudoku
2b07954b2f3ab5146ab0f96eb4d0509a3ea45eb2
[ "MIT" ]
null
null
null
"""Main class for sudoku game. Run this to solve the game.""" from board import Board # ENTRIES contains the values of each cell ENTRIES = [0, 0, 0, 2, 6, 0, 7, 0, 1, 6, 8, 0, 0, 7, 0, 0, 9, 0, 1, 9, 0, 0, 0, 4, 5, 0, 0, 8, 2, 0, 1, 0, 0, 0, 4, 0, 0, 0, 4, 6, 0, 2, 9, 0, 0, 0, 5, 0, 0, 0, 3, 0, 2...
37.666667
67
0.446903
fd00768ed39187f9b978abbf6c4d123c662329a9
121
py
Python
fuzzer/fuzzing_strategies/base_strategy/base_strategy.py
Dyfox100/Libstemmer_Fuzzer
263d6e64e007116a348d994851aa05e4c0c35358
[ "MIT" ]
null
null
null
fuzzer/fuzzing_strategies/base_strategy/base_strategy.py
Dyfox100/Libstemmer_Fuzzer
263d6e64e007116a348d994851aa05e4c0c35358
[ "MIT" ]
null
null
null
fuzzer/fuzzing_strategies/base_strategy/base_strategy.py
Dyfox100/Libstemmer_Fuzzer
263d6e64e007116a348d994851aa05e4c0c35358
[ "MIT" ]
null
null
null
import abc
17.285714
47
0.710744
fd009473c74aa4ae5995e6b6bc84914f1edd33ca
2,215
py
Python
netbox/dcim/migrations/0100_application.py
fireman0865/PingBox
0f00eaf88b88e9441fffd5173a1501e56c13db03
[ "Apache-2.0" ]
1
2021-09-23T00:06:51.000Z
2021-09-23T00:06:51.000Z
netbox/dcim/migrations/0100_application.py
fireman0865/PingBox
0f00eaf88b88e9441fffd5173a1501e56c13db03
[ "Apache-2.0" ]
2
2021-06-08T21:05:10.000Z
2021-09-08T01:46:58.000Z
netbox/dcim/migrations/0100_application.py
fireman0865/PingBox
0f00eaf88b88e9441fffd5173a1501e56c13db03
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.2.10 on 2020-03-04 09:21 from django.db import migrations, models import django.db.models.deletion
55.375
219
0.628442
fd00db8ee275e84aadc9a08c115a590eab1c8a65
1,934
py
Python
pam_notify.py
aNNufriy/pamNotifier
088ec0cb87c026a0fbc8e6275fc891bf653af645
[ "MIT" ]
1
2020-03-21T21:37:57.000Z
2020-03-21T21:37:57.000Z
pam_notify.py
aNNufriy/pamNotifier
088ec0cb87c026a0fbc8e6275fc891bf653af645
[ "MIT" ]
null
null
null
pam_notify.py
aNNufriy/pamNotifier
088ec0cb87c026a0fbc8e6275fc891bf653af645
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import smtplib import time import syslog import telegram import yaml from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText # Author:: Alexander Schedrov (schedrow@gmail.com) # Copyright:: Copyright (c) 2019 Alexander Schedrov # License:: MIT
33.344828
97
0.635471
fd032c799cd2f082ede61113614415437237b7bc
40,263
py
Python
src/eventail/async_service/pika/base.py
allo-media/eventail
aed718d733709f1a522fbfec7083ddd8ed7b5039
[ "MIT" ]
2
2019-12-12T15:08:25.000Z
2020-05-19T08:52:06.000Z
src/eventail/async_service/pika/base.py
allo-media/eventail
aed718d733709f1a522fbfec7083ddd8ed7b5039
[ "MIT" ]
10
2021-01-19T15:03:51.000Z
2022-03-08T15:48:22.000Z
src/eventail/async_service/pika/base.py
allo-media/eventail
aed718d733709f1a522fbfec7083ddd8ed7b5039
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # MIT License # # Copyright (c) 2018-2019 Groupe Allo-Media # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the r...
39.014535
108
0.634304
fd0394b6bd7363e7ed4aa89ca0603954bd731b42
889
py
Python
CLI/mainmenue.py
MeatBoyed/PasswordBank2
f4367b22902ce1282772b184899e3d6e899c1cca
[ "MIT" ]
1
2021-02-08T17:45:28.000Z
2021-02-08T17:45:28.000Z
CLI/mainmenue.py
MeatBoyed/PasswordBank2
f4367b22902ce1282772b184899e3d6e899c1cca
[ "MIT" ]
null
null
null
CLI/mainmenue.py
MeatBoyed/PasswordBank2
f4367b22902ce1282772b184899e3d6e899c1cca
[ "MIT" ]
null
null
null
from .mock_api.utils import GetSelection from .viewAccounts import ViewAccounts from .addAccount import AddAccount
26.939394
137
0.418448
fd03c109230a47c1540cdcf65dcdedac9302a120
7,342
py
Python
dataset.py
Intelligent-Computing-Lab-Yale/Energy-Separation-Training
9336862a10c915a482d427e8a36367f648e7dd40
[ "MIT" ]
2
2022-03-31T02:36:52.000Z
2022-03-31T06:13:25.000Z
dataset.py
Intelligent-Computing-Lab-Yale/Energy-Separation-Training
9336862a10c915a482d427e8a36367f648e7dd40
[ "MIT" ]
null
null
null
dataset.py
Intelligent-Computing-Lab-Yale/Energy-Separation-Training
9336862a10c915a482d427e8a36367f648e7dd40
[ "MIT" ]
null
null
null
import torch import torchvision from torchvision import datasets, transforms from torch.utils.data import DataLoader import os
40.120219
96
0.578725
fd04dad88b99035b710b66d225ec5a6739f0249b
25,604
py
Python
tests/st/ops/cpu/test_scatter_arithmetic_op.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
3,200
2020-02-17T12:45:41.000Z
2022-03-31T20:21:16.000Z
tests/st/ops/cpu/test_scatter_arithmetic_op.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
176
2020-02-12T02:52:11.000Z
2022-03-28T22:15:55.000Z
tests/st/ops/cpu/test_scatter_arithmetic_op.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
621
2020-03-09T01:31:41.000Z
2022-03-30T03:43:19.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
39.757764
82
0.594712
fd06722fb8cfe07ace7e4c46b654df0346766b26
4,181
py
Python
nn_similarity_index/cwt_kernel_mat.py
forgi86/xfer
56d98a66d6adb2466d1a73b52f3b27193930a008
[ "Apache-2.0" ]
244
2018-08-31T18:35:29.000Z
2022-03-20T01:12:50.000Z
nn_similarity_index/cwt_kernel_mat.py
forgi86/xfer
56d98a66d6adb2466d1a73b52f3b27193930a008
[ "Apache-2.0" ]
26
2018-08-29T15:31:21.000Z
2021-06-24T08:05:53.000Z
nn_similarity_index/cwt_kernel_mat.py
forgi86/xfer
56d98a66d6adb2466d1a73b52f3b27193930a008
[ "Apache-2.0" ]
57
2018-09-11T13:40:35.000Z
2022-02-22T14:43:34.000Z
# Copyright 2020 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in th...
40.201923
112
0.648649
fd067b6667868f936c5b7ba2c71c491e3eeb9190
844
py
Python
venv/Lib/site-packages/traits/observation/events.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
1
2022-01-18T17:56:51.000Z
2022-01-18T17:56:51.000Z
venv/Lib/site-packages/traits/observation/events.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
null
null
null
venv/Lib/site-packages/traits/observation/events.py
richung99/digitizePlots
6b408c820660a415a289726e3223e8f558d3e18b
[ "MIT" ]
null
null
null
# (C) Copyright 2005-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
29.103448
71
0.760664
fd077dfb9ba449d6f886f45f49324f828fa9d71b
827
py
Python
src/run_hid_4_network2.py
Naresh1318/Effect_of_injected_noise_in_deep_NN
0d001ea2c4d33011204247cb4c066b0da6632c04
[ "Unlicense" ]
2
2016-09-11T08:47:29.000Z
2016-11-19T10:29:47.000Z
src/run_hid_4_network2.py
Naresh1318/Effect_of_injected_noise_in_deep_NN
0d001ea2c4d33011204247cb4c066b0da6632c04
[ "Unlicense" ]
null
null
null
src/run_hid_4_network2.py
Naresh1318/Effect_of_injected_noise_in_deep_NN
0d001ea2c4d33011204247cb4c066b0da6632c04
[ "Unlicense" ]
null
null
null
import mnist_loader import network2 import numpy as np training_data, validation_data, test_data = mnist_loader.load_data_wrapper() eta = 0.9 m_b_s = 10 epochs = 30 trials = 10 trial_ev = [] for t in xrange(trials): net = network2.Network([784, 50, 50, 50, 50, 10], cost=network2.CrossEntropyCost) net.defaul...
33.08
131
0.732769
fd08718d6dac06e0024584cff9f9907168ac0518
1,918
py
Python
wsm/backend/asyncwhois/base.py
Rayologist/windows-sshd-manager
4f78a0cdaa12fe3c2a785aca31066c3be886878b
[ "Apache-2.0" ]
9
2022-02-09T09:09:43.000Z
2022-02-09T09:10:06.000Z
wsm/backend/asyncwhois/base.py
Rayologist/windows-sshd-manager
4f78a0cdaa12fe3c2a785aca31066c3be886878b
[ "Apache-2.0" ]
null
null
null
wsm/backend/asyncwhois/base.py
Rayologist/windows-sshd-manager
4f78a0cdaa12fe3c2a785aca31066c3be886878b
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from typing import List, Any from ipaddress import IPv4Address from dataclasses import dataclass, FrozenInstanceError from types import SimpleNamespace from enum import Enum, auto
22.302326
77
0.688738
fd0c1d5bae5b02c0610c8254bb0ed033a6e6d1e5
1,079
py
Python
optaux/helper_functions/check_nonvalidated_auxs.py
coltonlloyd/OptAux
3ee1f8cdfa32f1a732ad41d5f854659159694160
[ "MIT" ]
1
2019-06-05T10:41:06.000Z
2019-06-05T10:41:06.000Z
optaux/helper_functions/check_nonvalidated_auxs.py
coltonlloyd/OptAux
3ee1f8cdfa32f1a732ad41d5f854659159694160
[ "MIT" ]
null
null
null
optaux/helper_functions/check_nonvalidated_auxs.py
coltonlloyd/OptAux
3ee1f8cdfa32f1a732ad41d5f854659159694160
[ "MIT" ]
null
null
null
import cobra from optaux import resources resource_dir = resources.__path__[0] met_to_rs = {'EX_pydam_e': ['PDX5PS', 'PYDXK', 'PYDXNK'], 'EX_orot_e': ['DHORTS', 'UPPRT', 'URIK2'], 'EX_thr__L_e': ['PTHRpp', 'THRS'], 'EX_pro__L_e': ['AMPTASEPG', 'P5CR'], 'EX_skm_e': ...
33.71875
68
0.615385
fd0f8e0645346f82a2ff9bdf244ca7d9bf72405b
186
py
Python
xauto/common/futils.py
sababa11/xauto
107e59344b4624941387a4dff0d439719075ebf4
[ "Apache-2.0" ]
null
null
null
xauto/common/futils.py
sababa11/xauto
107e59344b4624941387a4dff0d439719075ebf4
[ "Apache-2.0" ]
null
null
null
xauto/common/futils.py
sababa11/xauto
107e59344b4624941387a4dff0d439719075ebf4
[ "Apache-2.0" ]
null
null
null
import os import sys def get_workdir(): """ get_workdir() -> workdir: [str] Returns the current workdir. """ return os.path.realpath(os.path.dirname(sys.argv[0]))
15.5
57
0.629032
fd105e9dfaa8a1cb5dda8aab7e3ed98167bf73e4
10,430
py
Python
csv-to-mysql.py
LongPhan1912/Youtube-Playlist-Extractor
80b10e0b459c2cb264113cfaff644f5f28650813
[ "CC0-1.0" ]
null
null
null
csv-to-mysql.py
LongPhan1912/Youtube-Playlist-Extractor
80b10e0b459c2cb264113cfaff644f5f28650813
[ "CC0-1.0" ]
null
null
null
csv-to-mysql.py
LongPhan1912/Youtube-Playlist-Extractor
80b10e0b459c2cb264113cfaff644f5f28650813
[ "CC0-1.0" ]
null
null
null
import csv import MySQLdb # installing MySQL: https://dev.mysql.com/doc/refman/8.0/en/osx-installation-pkg.html # how to start, watch: https://www.youtube.com/watch?v=3vsC05rxZ8c # or read this (absolutely helpful) guide: https://www.datacamp.com/community/tutorials/mysql-python # this is mainly created to get a data...
48.287037
136
0.661266
fd107c2da7b904339edb0406a2c83b2ca10efada
8,850
py
Python
coadd_mdetsims/tests/test_shear_bias_meas.py
beckermr/metadetect-coadding-sims
15ccaec353aa61c69ac9d78d1dfca8ce25bca3cf
[ "BSD-3-Clause" ]
null
null
null
coadd_mdetsims/tests/test_shear_bias_meas.py
beckermr/metadetect-coadding-sims
15ccaec353aa61c69ac9d78d1dfca8ce25bca3cf
[ "BSD-3-Clause" ]
null
null
null
coadd_mdetsims/tests/test_shear_bias_meas.py
beckermr/metadetect-coadding-sims
15ccaec353aa61c69ac9d78d1dfca8ce25bca3cf
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pytest from ..shear_bias_meas import ( measure_shear_metadetect, estimate_m_and_c, estimate_m_and_c_patch_avg)
34.570313
77
0.490508
fd1270311d2747042f749172a656ddde2d001d75
1,221
py
Python
src/topologies/simple.py
sevenEng/Resolving-Consensus
a508701e19bd4ec0df735f5b094487983272dbb6
[ "MIT" ]
null
null
null
src/topologies/simple.py
sevenEng/Resolving-Consensus
a508701e19bd4ec0df735f5b094487983272dbb6
[ "MIT" ]
null
null
null
src/topologies/simple.py
sevenEng/Resolving-Consensus
a508701e19bd4ec0df735f5b094487983272dbb6
[ "MIT" ]
null
null
null
from mininet.net import Mininet from mininet.node import Controller, UserSwitch, IVSSwitch, OVSSwitch from mininet.log import info, setLogLevel setLogLevel("info") import importlib switch_num = 1 host_num = 1 client_num = 1
18.784615
69
0.633907
fd1396e2ed5013e365c0832fe7ee283e5e1bda20
856
py
Python
lunchapi/permissions.py
pesusieni999/lunchapplication
2aa2a4320a2ad85b39b74c5dcc3d960a46cdb6ef
[ "MIT" ]
null
null
null
lunchapi/permissions.py
pesusieni999/lunchapplication
2aa2a4320a2ad85b39b74c5dcc3d960a46cdb6ef
[ "MIT" ]
null
null
null
lunchapi/permissions.py
pesusieni999/lunchapplication
2aa2a4320a2ad85b39b74c5dcc3d960a46cdb6ef
[ "MIT" ]
null
null
null
from rest_framework import permissions __author__ = "Ville Myllynen" __copyright__ = "Copyright 2017, Ohsiha Project" __credits__ = ["Ville Myllynen"] __license__ = "MIT" __version__ = "1.0" __maintainer__ = "Ville Myllynen" __email__ = "ville.myllynen@student.tut.fi" __status__ = "Development"
31.703704
73
0.712617
fd139df441393f7003990ec4900a0d7e845e7545
3,994
py
Python
MsSampleFmpDevicePkg/Tools/ConvertCerToH.py
kuqin12/mu_plus
f78c66d0508a7b884b3f73d7c86648656bf07fbb
[ "BSD-2-Clause" ]
null
null
null
MsSampleFmpDevicePkg/Tools/ConvertCerToH.py
kuqin12/mu_plus
f78c66d0508a7b884b3f73d7c86648656bf07fbb
[ "BSD-2-Clause" ]
null
null
null
MsSampleFmpDevicePkg/Tools/ConvertCerToH.py
kuqin12/mu_plus
f78c66d0508a7b884b3f73d7c86648656bf07fbb
[ "BSD-2-Clause" ]
null
null
null
## # Copyright (c) 2016, Microsoft Corporation # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions...
33.847458
107
0.73986
fd16505a157e42c0095152f4d85cf3c6e225daa0
2,899
py
Python
webtraversallibrary/app_info.py
redfungus/webtraversallibrary
d5013edc061deba40e859dcfcda314c7055ce82a
[ "Apache-2.0" ]
null
null
null
webtraversallibrary/app_info.py
redfungus/webtraversallibrary
d5013edc061deba40e859dcfcda314c7055ce82a
[ "Apache-2.0" ]
null
null
null
webtraversallibrary/app_info.py
redfungus/webtraversallibrary
d5013edc061deba40e859dcfcda314c7055ce82a
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
32.573034
111
0.67506
fd166522613f70d68340ce87a9e8c0bff5f78c6b
4,863
py
Python
aws_reporting.py
jeberhar/DevOpsLearner
f9dce9cf2dc6e75494c1372a339e9f13e836102d
[ "MIT" ]
null
null
null
aws_reporting.py
jeberhar/DevOpsLearner
f9dce9cf2dc6e75494c1372a339e9f13e836102d
[ "MIT" ]
null
null
null
aws_reporting.py
jeberhar/DevOpsLearner
f9dce9cf2dc6e75494c1372a339e9f13e836102d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import boto import boto.ec2 import sys from boto.ec2.connection import EC2Connection import pprint account_string = "YOUR_ACCOUNT_STRING" #change this for each AWS account ####main program execution#### regions = sys.argv[1:] volume_info = "" if len(regions) == 0: regions=['us...
37.122137
267
0.584002
fd1683f2abe7dd47f1cee08ed7abab26a488dbc0
1,832
py
Python
code/functions/one_hop_majority_vote.py
YatongChen/decoupled_smoothing_on_graph
b5110db92841c00193577adb0f5d3daa70f46845
[ "MIT" ]
5
2019-02-25T20:05:47.000Z
2021-06-23T21:38:52.000Z
code/functions/one_hop_majority_vote.py
YatongChen/decoupled_smoothing_on_graphs
b5110db92841c00193577adb0f5d3daa70f46845
[ "MIT" ]
null
null
null
code/functions/one_hop_majority_vote.py
YatongChen/decoupled_smoothing_on_graphs
b5110db92841c00193577adb0f5d3daa70f46845
[ "MIT" ]
null
null
null
# one hop helper function
50.888889
231
0.69869
fd16885dbeb4939e362807cdc853aa44683b010f
18,284
py
Python
alphago/alphago.py
noahwaterfieldprice/alphago
4a7bba6d9758ccf1d2f2d7ae964b5d5d48021ee8
[ "MIT" ]
4
2018-02-12T09:11:26.000Z
2022-01-24T20:46:15.000Z
alphago/alphago.py
noahwaterfieldprice/alphago
4a7bba6d9758ccf1d2f2d7ae964b5d5d48021ee8
[ "MIT" ]
null
null
null
alphago/alphago.py
noahwaterfieldprice/alphago
4a7bba6d9758ccf1d2f2d7ae964b5d5d48021ee8
[ "MIT" ]
3
2018-08-23T15:08:54.000Z
2020-03-13T14:21:08.000Z
from collections import OrderedDict import numpy as np from tqdm import tqdm import tensorflow as tf from .player import MCTSPlayer, RandomPlayer, OptimalPlayer from .evaluator import evaluate from .mcts_tree import MCTSNode, mcts from .utilities import sample_distribution __all__ = ["train_alphago", "self_play", "p...
39.152034
80
0.644553
fd16ab23714a63a2de7b1edeefc67fc983b65d54
835
py
Python
SRCTF/SRCTF/django_reuse/reuse/migrations/0002_auto_20160829_1452.py
yinyueacm/work-uga
d8fd104b8c5600e1715491fc5eeffaf5c0b5896c
[ "MIT" ]
1
2019-01-11T03:20:34.000Z
2019-01-11T03:20:34.000Z
SRCTF/SRCTF/django_reuse/reuse/migrations/0002_auto_20160829_1452.py
yinyueacm/yinyue-thesis
d8fd104b8c5600e1715491fc5eeffaf5c0b5896c
[ "MIT" ]
null
null
null
SRCTF/SRCTF/django_reuse/reuse/migrations/0002_auto_20160829_1452.py
yinyueacm/yinyue-thesis
d8fd104b8c5600e1715491fc5eeffaf5c0b5896c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-08-29 14:52 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion
28.793103
118
0.602395
fd17609bb6160f46ba3a4f3809db927e0e55536c
5,976
py
Python
complexity_science/ca/ca/ca1d.py
KristerJazz/complexity-science
2340b7467d50c45d06fa93db7603f7f2778d3c4c
[ "BSD-3-Clause" ]
null
null
null
complexity_science/ca/ca/ca1d.py
KristerJazz/complexity-science
2340b7467d50c45d06fa93db7603f7f2778d3c4c
[ "BSD-3-Clause" ]
2
2021-03-28T16:23:00.000Z
2021-04-05T08:10:35.000Z
complexity_science/ca/ca/ca1d.py
KristerJazz/complexity-science
2340b7467d50c45d06fa93db7603f7f2778d3c4c
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from .rule_manager import RuleManager
29.15122
138
0.54836
fd1902e85156fc45744e6e48892733db33d5f755
4,373
py
Python
extract_skip_thought.py
youngfly11/ReferCOCO-Pretraining-Detectron2
8c8536a4d822b3cf9140380442a440d42e948c38
[ "Apache-2.0" ]
2
2020-08-14T08:00:53.000Z
2020-11-21T11:01:55.000Z
extract_skip_thought.py
youngfly11/ReferCOCO-Pretraining-Detectron2
8c8536a4d822b3cf9140380442a440d42e948c38
[ "Apache-2.0" ]
null
null
null
extract_skip_thought.py
youngfly11/ReferCOCO-Pretraining-Detectron2
8c8536a4d822b3cf9140380442a440d42e948c38
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.6 # -*- coding: utf-8 -*- # @Time : 2020/6/25 22:41 # @Author : Yongfei Liu # @Email : liuyf3@shanghaitech.edu.cn import numpy as np import os.path as osp import os import pickle from collections import OrderedDict import torch import json from detectron2.data.datasets.builtin_meta import CO...
30.58042
104
0.607363
fd1912c311e861ca371e1043073ef9f199c996c4
4,909
py
Python
pyutil_mongo/cfg.py
chhsiao1981/pyutil_mongo
facea2376b48dd7157d4633ab8128c8daf7e59ef
[ "MIT" ]
null
null
null
pyutil_mongo/cfg.py
chhsiao1981/pyutil_mongo
facea2376b48dd7157d4633ab8128c8daf7e59ef
[ "MIT" ]
null
null
null
pyutil_mongo/cfg.py
chhsiao1981/pyutil_mongo
facea2376b48dd7157d4633ab8128c8daf7e59ef
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Attributes: config (dict): Description logger (logging.Logger): Description """ import logging import pymongo logger = None config = {} def init(the_logger: logging.Logger, mongo_maps: list): """init Args: the_logger (logging.Logger): Description mongo_m...
28.375723
243
0.646771
fd196b9ee70ef729b16290f14477ca8c3d79df73
172
py
Python
exhaustive_search/05_multiple-arrays/05-01-01.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
exhaustive_search/05_multiple-arrays/05-01-01.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
exhaustive_search/05_multiple-arrays/05-01-01.py
fumiyanll23/algo-method
d86ea1d399cbc5a1db0ae49d0c82e41042f661ab
[ "MIT" ]
null
null
null
# input N, M = map(int, input().split()) As = [*map(int, input().split())] Bs = [*map(int, input().split())] # compute # output print(sum(A > B for B in Bs for A in As))
17.2
41
0.569767
fd19ca0b5b114583ad7ed023250d660c51840010
141
py
Python
solutions/1639.py
nxexox/acm.timus
9548d2a0b54fdd99bd60071f3be2fb7f897a7303
[ "MIT" ]
null
null
null
solutions/1639.py
nxexox/acm.timus
9548d2a0b54fdd99bd60071f3be2fb7f897a7303
[ "MIT" ]
null
null
null
solutions/1639.py
nxexox/acm.timus
9548d2a0b54fdd99bd60071f3be2fb7f897a7303
[ "MIT" ]
null
null
null
#!/usr/bin/python a, b = [int(i) for i in input().split()] c = a * b if c % 2 == 0: print('[:=[first]') else: print('[second]=:]')
14.1
40
0.475177
fd19e6853abb785c9505d8a5f4aaf9326f1ad438
374
py
Python
lstmcpipe/config/__init__.py
cta-observatory/lst-i-rf
7a634e0b3b07dda2b20df47875d97616eab65821
[ "MIT" ]
2
2021-02-01T17:30:46.000Z
2021-02-22T13:59:49.000Z
lstmcpipe/config/__init__.py
cta-observatory/lst-i-rf
7a634e0b3b07dda2b20df47875d97616eab65821
[ "MIT" ]
106
2021-04-16T21:15:20.000Z
2022-03-31T23:02:50.000Z
lstmcpipe/config/__init__.py
cta-observatory/lstmcpipe
7a634e0b3b07dda2b20df47875d97616eab65821
[ "MIT" ]
3
2022-03-02T09:23:09.000Z
2022-03-03T16:00:25.000Z
import os from shutil import which from .pipeline_config import load_config __all__ = ["load_config"]
28.769231
87
0.671123
fd1a5012b7966cdeb8f03d71591cc6d8a74c6420
2,337
py
Python
tests/stakkr_compose_test.py
dwade75/stakkr
ae77607e84b5b305ae8f5a14eb8f22237d943a29
[ "Apache-2.0" ]
null
null
null
tests/stakkr_compose_test.py
dwade75/stakkr
ae77607e84b5b305ae8f5a14eb8f22237d943a29
[ "Apache-2.0" ]
null
null
null
tests/stakkr_compose_test.py
dwade75/stakkr
ae77607e84b5b305ae8f5a14eb8f22237d943a29
[ "Apache-2.0" ]
null
null
null
import os import sys import stakkr.stakkr_compose as sc import subprocess import unittest base_dir = os.path.abspath(os.path.dirname(__file__)) sys.path.insert(0, base_dir + '/../') # https://docs.python.org/3/library/unittest.html#assert-methods if __name__ == "__main__": unittest.main()
31.16
86
0.670946
fd1dc3801dfc8c9bd5d0968ee738990d98e2881b
2,792
py
Python
DQIC/backtesting/run.py
bladezzw/DeepQuantInChina
ce74a9bf8db91e3545ccc3e7af81f80796a536fa
[ "MIT" ]
8
2019-04-14T03:05:19.000Z
2020-02-13T18:35:41.000Z
DQIC/backtesting/run.py
bladezzw/DeepQuantInChina
ce74a9bf8db91e3545ccc3e7af81f80796a536fa
[ "MIT" ]
null
null
null
DQIC/backtesting/run.py
bladezzw/DeepQuantInChina
ce74a9bf8db91e3545ccc3e7af81f80796a536fa
[ "MIT" ]
2
2019-05-08T08:23:50.000Z
2020-01-23T03:54:41.000Z
import os,sys BASE_DIR = os.path.dirname(os.path.dirname(__file__)) sys.path.append(BASE_DIR) import datetime import time from backtesting.backtest import Backtest from backtesting.data import HistoricCSVDataHandler from backtesting.execution import SimulatedExecutionHandler from backtesting.portfolio import Portfolio...
33.638554
78
0.567335
fd1e95f3c8250711415f3acb25bf5e3b26c63f39
3,306
py
Python
Emergency/DB/DRAW3D.py
LeeDaeil/CNS_Autonomous
2ae3688cfd654b9669893e3cdf4cdf1ac0748b9f
[ "Apache-2.0" ]
2
2020-03-22T14:35:00.000Z
2020-05-26T05:06:41.000Z
Emergency/DB/DRAW3D.py
LeeDaeil/CNS_Autonomous
2ae3688cfd654b9669893e3cdf4cdf1ac0748b9f
[ "Apache-2.0" ]
null
null
null
Emergency/DB/DRAW3D.py
LeeDaeil/CNS_Autonomous
2ae3688cfd654b9669893e3cdf4cdf1ac0748b9f
[ "Apache-2.0" ]
null
null
null
import matplotlib.pylab as plt import numpy as np import pandas as pd from COMMONTOOL import PTCureve DB = pd.read_csv('0_228.txt') # DB = pd.read_csv('../3 /322.txt') # target_time = 100 # for i in range(0, len(DB)): # if DB['KCNTOMS'].loc[i] != target_time: # DB.drop([i], inplace=True) # else: # ...
30.897196
85
0.5366
fd1f6bede9086f03b21d05de1c334c5625e057f0
658
py
Python
aeroplast/images.py
kk6/aeroplast
8347bf071f43a560b865a7f37b76fb05f5cea57d
[ "MIT" ]
1
2019-11-12T07:02:20.000Z
2019-11-12T07:02:20.000Z
aeroplast/images.py
kk6/aeroplast
8347bf071f43a560b865a7f37b76fb05f5cea57d
[ "MIT" ]
14
2018-11-13T09:57:09.000Z
2019-04-05T20:02:46.000Z
aeroplast/images.py
kk6/aeroplast
8347bf071f43a560b865a7f37b76fb05f5cea57d
[ "MIT" ]
1
2018-12-20T07:52:59.000Z
2018-12-20T07:52:59.000Z
# -*- coding: utf-8 -*- """ Transparent PNG conversion ~~~~~~~~~~~~~~~~~~~~~~~~~~ """ from PIL import Image def get_new_size(original_size): """ Returns each width and height plus 2px. :param original_size: Original image's size :return: Width / height after calculation :rtype: tuple """ ...
18.8
50
0.617021
fd22786701bf4e42b8d3932674e46c80a650982c
678
py
Python
common/common/management/commands/makemessages.py
FSTUM/rallyetool-v2
2f3e2b5cb8655abe023ed1215b7182430b75bb23
[ "MIT" ]
1
2021-10-30T09:31:02.000Z
2021-10-30T09:31:02.000Z
common/common/management/commands/makemessages.py
FSTUM/rallyetool-v2
2f3e2b5cb8655abe023ed1215b7182430b75bb23
[ "MIT" ]
9
2021-11-23T10:13:43.000Z
2022-03-01T15:04:15.000Z
common/common/management/commands/makemessages.py
CommanderStorm/rallyetool-v2
721413d6df8afc9347dac7ee83deb3a0ad4c01bc
[ "MIT" ]
1
2021-10-16T09:07:47.000Z
2021-10-16T09:07:47.000Z
from django.core.management.commands import makemessages
27.12
64
0.610619
fd2333a5ba2bad8fcd4a158981a7c15852072e07
6,529
py
Python
app/api/v2/users/views_update.py
Raywire/iReporter
ac58414b84b9c96f0be5e0d477355d0811d8b9c5
[ "MIT" ]
3
2019-01-09T15:17:28.000Z
2019-12-01T18:40:50.000Z
app/api/v2/users/views_update.py
Raywire/iReporter
ac58414b84b9c96f0be5e0d477355d0811d8b9c5
[ "MIT" ]
13
2018-11-30T05:33:13.000Z
2021-04-30T20:46:41.000Z
app/api/v2/users/views_update.py
Raywire/iReporter
ac58414b84b9c96f0be5e0d477355d0811d8b9c5
[ "MIT" ]
3
2018-12-02T16:10:12.000Z
2019-01-04T14:51:04.000Z
"""Views for users""" from flask_restful import Resource from flask import jsonify, request from app.api.v2.users.models import UserModel from app.api.v2.decorator import token_required, get_token from app.api.v2.send_email import send
33.482051
135
0.551386
fd247bba2b56b1306086374a12025c1833517c10
7,357
py
Python
LoadDataAndPrepare/Make_Dictionaries/4_make_reviews_all_words_vocab_dictionary.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
LoadDataAndPrepare/Make_Dictionaries/4_make_reviews_all_words_vocab_dictionary.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
LoadDataAndPrepare/Make_Dictionaries/4_make_reviews_all_words_vocab_dictionary.py
ngrover2/Automatic_Lexicon_Induction
b58a1d55f294293161dc23ab2e6d669c1c5e90d8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import os import traceback import ujson from pprint import pprint from textblob import TextBlob as tb from textblob import Word as wd import shutil from collections import defaultdict from gensim.corpora import Dictionary from socialconfig import config if __name__ == "__main__": ...
42.773256
156
0.740791
fd25176d16569d58b76384f5892d5e731b3f5603
434
py
Python
tests/test_demo.py
PrabhuLoganathan/Pytest-Selenium-POM--Google
d0b50faf28a0c3797d1b0bc838d77f82dd0be81c
[ "MIT" ]
null
null
null
tests/test_demo.py
PrabhuLoganathan/Pytest-Selenium-POM--Google
d0b50faf28a0c3797d1b0bc838d77f82dd0be81c
[ "MIT" ]
1
2021-04-22T12:02:19.000Z
2021-04-22T12:02:19.000Z
tests/test_demo.py
wadle/test_demo_pytest_selenium
bc9f2b4a9da895568da2cc3f0bc904f78775884c
[ "MIT" ]
1
2020-11-26T20:03:07.000Z
2020-11-26T20:03:07.000Z
from pages.demo_page import DemoPage
16.074074
46
0.532258
fd266f079f9daa527e01e31d5df3c4df79e8150b
1,126
py
Python
day 03/day03_part1.py
MischaDy/PyAdventOfCode2020
3e0a1a61ac930d7e30a0104ac617008297508fcb
[ "CC0-1.0" ]
2
2020-12-17T18:49:20.000Z
2021-02-20T16:48:14.000Z
day 03/day03_part1.py
MischaDy/PyAdventOfCode2020
3e0a1a61ac930d7e30a0104ac617008297508fcb
[ "CC0-1.0" ]
null
null
null
day 03/day03_part1.py
MischaDy/PyAdventOfCode2020
3e0a1a61ac930d7e30a0104ac617008297508fcb
[ "CC0-1.0" ]
3
2020-12-20T19:08:32.000Z
2020-12-26T22:11:15.000Z
from helpers.cyclic_list import CyclicList from helpers.coordinates2d import Coordinates2D RUN_TEST = False TEST_SOLUTION = 7 TEST_INPUT_FILE = 'test_input_day_03.txt' INPUT_FILE = 'input_day_03.txt' START = Coordinates2D((0, 0)) # top left corner TRAJECTORY = Coordinates2D((3, 1)) # right 3, down 1 ARGS = [START...
26.186047
86
0.688277
fd279c40ef3cc1786017d66b7c1e1b885d2e67e1
807
py
Python
binary_tree/e_path_sum.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
binary_tree/e_path_sum.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
binary_tree/e_path_sum.py
dhrubach/python-code-recipes
14356c6adb1946417482eaaf6f42dde4b8351d2f
[ "MIT" ]
null
null
null
############################################### # LeetCode Problem Number : 112 # Difficulty Level : Easy # URL : https://leetcode.com/problems/path-sum/ ############################################### from binary_search_tree.tree_node import TreeNode
25.21875
59
0.484511
fd2a11e31304af5fc6efc0099f574785c36f1cf8
127
py
Python
High School/9th Grade APCSP (Python)/Unit 7/07.02.03.py
SomewhereOutInSpace/Computer-Science-Class
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
[ "Unlicense" ]
null
null
null
High School/9th Grade APCSP (Python)/Unit 7/07.02.03.py
SomewhereOutInSpace/Computer-Science-Class
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
[ "Unlicense" ]
null
null
null
High School/9th Grade APCSP (Python)/Unit 7/07.02.03.py
SomewhereOutInSpace/Computer-Science-Class
f5d21850236a7a18dc53b4a650ecbe9a11781f1d
[ "Unlicense" ]
null
null
null
st1 = input() st2 = input() st3 = input() listy = [st1, st2, st3] listy.sort() print(listy[0]) print(listy[1]) print(listy[2])
14.111111
23
0.629921
fd2a6655ca5c2bb5ada546fc62616fc063ba84a1
3,900
py
Python
tests/unit/guests/linux/storage/disk.py
tessia-project/tessia-baselib
07004b7f6462f081a6f7e810954fd7e0d2cdcf6b
[ "Apache-2.0" ]
1
2022-01-27T01:32:14.000Z
2022-01-27T01:32:14.000Z
tests/unit/guests/linux/storage/disk.py
tessia-project/tessia-baselib
07004b7f6462f081a6f7e810954fd7e0d2cdcf6b
[ "Apache-2.0" ]
null
null
null
tests/unit/guests/linux/storage/disk.py
tessia-project/tessia-baselib
07004b7f6462f081a6f7e810954fd7e0d2cdcf6b
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 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, sof...
30
78
0.646923
fd2a6afac5326ae943f8dfecdd01a780b28ea0e3
5,888
py
Python
scripts/mv_drawables.py
euitam/MoveDrawable
33923276d856de8effff9e958ba7a33767739137
[ "Apache-2.0" ]
null
null
null
scripts/mv_drawables.py
euitam/MoveDrawable
33923276d856de8effff9e958ba7a33767739137
[ "Apache-2.0" ]
null
null
null
scripts/mv_drawables.py
euitam/MoveDrawable
33923276d856de8effff9e958ba7a33767739137
[ "Apache-2.0" ]
null
null
null
import sys, os, errno, shutil, signal, subprocess from glob import glob signal.signal(signal.SIGINT, sigint_handler) # BEGIN SCRIPT printTitle() print bcolors.FAIL print "Exit script anytime with CTRL+C" print bcolors.ENDC # Check argument number if len(sys.argv) < 3: print "Usage: {} SRC_DIRECTORY ANDROID_RESOU...
28.038095
160
0.667969
fd2ae8dc293d1b7377165b6678e015927d2d75d1
5,479
py
Python
kornia/x/trainer.py
AK391/kornia
a2535eb7593ee2fed94d23cc720804a16f9f0e7e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/x/trainer.py
AK391/kornia
a2535eb7593ee2fed94d23cc720804a16f9f0e7e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/x/trainer.py
AK391/kornia
a2535eb7593ee2fed94d23cc720804a16f9f0e7e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import logging from typing import Callable, Dict import torch import torch.nn as nn from torch.utils.data import DataLoader # the accelerator library is a requirement for the Trainer # but it is optional for grousnd base user of kornia. try: from accelerate import Accelerator except ImportError: Accelerator =...
34.459119
95
0.632962
fd2c1f1342cad7325a43f5762d5c2d1d94cfe573
2,795
py
Python
datasets/transformations/jpeg_compress.py
bytedance/Hammer
388ed20b3d9b34f33f5357d75f8fe5d726782ec8
[ "MIT" ]
97
2022-02-08T09:00:57.000Z
2022-03-23T05:33:35.000Z
datasets/transformations/jpeg_compress.py
bytedance/Hammer
388ed20b3d9b34f33f5357d75f8fe5d726782ec8
[ "MIT" ]
null
null
null
datasets/transformations/jpeg_compress.py
bytedance/Hammer
388ed20b3d9b34f33f5357d75f8fe5d726782ec8
[ "MIT" ]
7
2022-02-08T15:13:02.000Z
2022-03-19T19:11:13.000Z
# python3.7 """Implements JPEG compression on images.""" import cv2 import numpy as np try: import nvidia.dali.fn as fn import nvidia.dali.types as types except ImportError: fn = None from utils.formatting_utils import format_range from .base_transformation import BaseTransformation __all__ = ['JpegComp...
35.379747
80
0.65975
fd2ca1a6e56d2464e000ae2d9a68e5afd6f6c238
2,046
py
Python
venv/VFR/flask_app_3d.py
flhataf/Virtual-Fitting-Room
e5b41849df963cebd3b7deb7e87d643ece5b6d18
[ "MIT" ]
null
null
null
venv/VFR/flask_app_3d.py
flhataf/Virtual-Fitting-Room
e5b41849df963cebd3b7deb7e87d643ece5b6d18
[ "MIT" ]
null
null
null
venv/VFR/flask_app_3d.py
flhataf/Virtual-Fitting-Room
e5b41849df963cebd3b7deb7e87d643ece5b6d18
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 15 00:31:35 2021 @author: RayaBit """ from flask import Flask, render_template, Response from imutils.video import VideoStream from skeletonDetector import skeleton import cv2 from skeleton3DDetector import Skeleton3dDetector from visualization import Visualizer import t...
26.571429
115
0.616813
fd2dbbfa0aac3167c6b35b08529f51283edf8826
8,144
py
Python
schedsi/threads/thread.py
z33ky/schedsi
3affe28a3e1d2001c639d7c0423cb105d1991590
[ "CC0-1.0" ]
1
2017-08-03T12:58:53.000Z
2017-08-03T12:58:53.000Z
schedsi/threads/thread.py
z33ky/schedsi
3affe28a3e1d2001c639d7c0423cb105d1991590
[ "CC0-1.0" ]
null
null
null
schedsi/threads/thread.py
z33ky/schedsi
3affe28a3e1d2001c639d7c0423cb105d1991590
[ "CC0-1.0" ]
null
null
null
"""Define the :class:`Thread`.""" import threading from schedsi.cpu import request as cpurequest from schedsi.cpu.time import Time #: Whether to log individual times, or only the sum LOG_INDIVIDUAL = True
32.706827
94
0.608915
fd3187f8e540b93ec7789114fa6cc6e3969608ec
1,335
py
Python
pyBRML/pyBRML/core.py
anich003/brml_toolkit
de8218bdf333902431d4c0055fcf5cb3dc47d0c1
[ "MIT" ]
null
null
null
pyBRML/pyBRML/core.py
anich003/brml_toolkit
de8218bdf333902431d4c0055fcf5cb3dc47d0c1
[ "MIT" ]
null
null
null
pyBRML/pyBRML/core.py
anich003/brml_toolkit
de8218bdf333902431d4c0055fcf5cb3dc47d0c1
[ "MIT" ]
null
null
null
import copy from pyBRML import utils from pyBRML import Array def multiply_potentials(list_of_potentials): """ Returns the product of each potential in list_of_potentials, useful for calculating joint probabilities. For example, if the joint probability of a system is defined as p(A,B,C) = p(...
35.131579
94
0.743071
fd3394f2b7968055dc2a5d2b8bdde46ae4644c49
2,098
py
Python
lib/akf_known_uncategories.py
UB-Mannheim/docxstruct
dd6d99b6fd6f5660fdc61a14b60e70a54ac9be85
[ "Apache-2.0" ]
1
2019-03-06T14:59:44.000Z
2019-03-06T14:59:44.000Z
lib/akf_known_uncategories.py
UB-Mannheim/docxstruct
dd6d99b6fd6f5660fdc61a14b60e70a54ac9be85
[ "Apache-2.0" ]
null
null
null
lib/akf_known_uncategories.py
UB-Mannheim/docxstruct
dd6d99b6fd6f5660fdc61a14b60e70a54ac9be85
[ "Apache-2.0" ]
null
null
null
import re
31.313433
108
0.515253
fd33bdf592a5bbf5b20d72627b7e89fa294ef5bf
1,640
py
Python
maps/templatetags/mapas_tags.py
lsalta/mapground
d927d283dab6f756574bd88b3251b9e68f000ca7
[ "MIT" ]
null
null
null
maps/templatetags/mapas_tags.py
lsalta/mapground
d927d283dab6f756574bd88b3251b9e68f000ca7
[ "MIT" ]
3
2020-02-11T23:04:56.000Z
2021-06-10T18:07:53.000Z
maps/templatetags/mapas_tags.py
lsalta/mapground
d927d283dab6f756574bd88b3251b9e68f000ca7
[ "MIT" ]
1
2021-08-20T14:49:09.000Z
2021-08-20T14:49:09.000Z
from django import template register = template.Library() register.inclusion_tag('mapas/mapa.html', takes_context=True)(mostrar_resumen_mapa) register.filter('quitar_char',quitar_char) register.filter('replace_text',replace_text) register.filter('truncar_string',truncar_string) def get_range(value): """ Fil...
22.777778
83
0.668902