hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7946a1b746e880a69e881eee572c87e4be02b590
2,404
py
Python
chatterbox/tests/test_utils_facebook.py
blitzagency/django-chatterbox
7bf17444f8308aa12b6718bd62ee1344021c21aa
[ "MIT" ]
8
2015-03-10T20:03:09.000Z
2018-06-14T23:03:58.000Z
chatterbox/tests/test_utils_facebook.py
blitzagency/django-chatterbox
7bf17444f8308aa12b6718bd62ee1344021c21aa
[ "MIT" ]
3
2015-07-14T22:44:47.000Z
2020-06-05T23:43:05.000Z
chatterbox/tests/test_utils_facebook.py
blitzagency/django-chatterbox
7bf17444f8308aa12b6718bd62ee1344021c21aa
[ "MIT" ]
null
null
null
import json from django.test import TestCase from .utils import load_json from chatterbox.utils.facebook import activity_dict_from_dict class FacebookUtils(TestCase): def test_facebook_link_activity_dict_from_dict(self): data = load_json("facebook-in-basic-link") final = load_json("facebook-out-b...
42.928571
82
0.707571
7946a24d65e7accfdaad6b33ab5b3d3818b6c9a1
2,681
py
Python
main/tests/tests_management.py
jhdulaney/oh-ubiome-source
c01bd6c26fb6625ce455e3c2b24ff009bf2f0c64
[ "MIT" ]
null
null
null
main/tests/tests_management.py
jhdulaney/oh-ubiome-source
c01bd6c26fb6625ce455e3c2b24ff009bf2f0c64
[ "MIT" ]
4
2020-02-11T23:02:53.000Z
2021-06-10T20:40:55.000Z
main/tests/tests_management.py
jhdulaney/oh-ubiome-source
c01bd6c26fb6625ce455e3c2b24ff009bf2f0c64
[ "MIT" ]
2
2018-07-13T15:51:18.000Z
2018-12-27T20:54:52.000Z
from django.test import TestCase, RequestFactory import vcr from django.conf import settings from django.core.management import call_command from open_humans.models import OpenHumansMember import requests_mock class ManagementTestCase(TestCase): """ test that files are parsed correctly """ def setUp(...
43.95082
185
0.56658
7946a360386bfa19eba8a4dab74830fbc01079d9
8,636
py
Python
ebay/resolution_case_management.py
roopeshvaddepally/python-ebay
d49edd513459b2f0531cab0d7e840f53347ad1ad
[ "Apache-2.0" ]
55
2015-01-20T10:08:01.000Z
2022-01-11T18:01:45.000Z
ebay/resolution_case_management.py
roopeshvaddepally/python-ebay
d49edd513459b2f0531cab0d7e840f53347ad1ad
[ "Apache-2.0" ]
3
2016-07-17T09:23:36.000Z
2017-02-08T09:34:57.000Z
ebay/resolution_case_management.py
roopeshvaddepally/python-ebay
d49edd513459b2f0531cab0d7e840f53347ad1ad
[ "Apache-2.0" ]
31
2015-02-17T08:44:44.000Z
2021-12-23T00:54:04.000Z
import urllib2 from lxml import etree from utils import get_config_store # case retrieval calls def getUserCases(caseStatusFilter=None, caseTypeFilter=None, creationDateRangeFilterFrom=None, creationDateRangeFilterTo=None, itemFilter=None, ...
38.553571
103
0.701945
7946a37de353db77b3a7c35cbde2bee8564ab190
55
py
Python
modules.py
bab81/IntroPython
87cd55f0afdbfe69f28c8ec95b782c2c4c76eb50
[ "MIT" ]
null
null
null
modules.py
bab81/IntroPython
87cd55f0afdbfe69f28c8ec95b782c2c4c76eb50
[ "MIT" ]
null
null
null
modules.py
bab81/IntroPython
87cd55f0afdbfe69f28c8ec95b782c2c4c76eb50
[ "MIT" ]
null
null
null
import useful_tools print(useful_tools.roll_dice(10))
13.75
33
0.836364
7946a3a4b723dfc35d2a69da1583ec08e2a9102c
2,955
py
Python
scripts/quest/q22750s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/quest/q22750s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/quest/q22750s.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
KINESIS = 1531000 JAY = 1531000 YUNA = 1531002 NERO = 1531003 sm.lockForIntro() sm.removeAdditionalEffect() sm.blind(1, 255, 0, 0) sm.spawnNpc(YUNA, 760, -272) sm.showNpcSpecialActionByTemplateId(YUNA, "summon") sm.spawnNpc(NERO, 600, -272) sm.showNpcSpecialActionByTemplateId(NERO, "summon") sm.teleportInField(647,...
29.257426
222
0.743824
7946a41c791be3875e67642aa31542e326df9ae5
3,568
py
Python
non-overlap/evaluate_acc.py
MalekNaimi/VGGish-Model
61369097fe669c642f15a94f964e9130b0218756
[ "MIT" ]
null
null
null
non-overlap/evaluate_acc.py
MalekNaimi/VGGish-Model
61369097fe669c642f15a94f964e9130b0218756
[ "MIT" ]
null
null
null
non-overlap/evaluate_acc.py
MalekNaimi/VGGish-Model
61369097fe669c642f15a94f964e9130b0218756
[ "MIT" ]
null
null
null
from tqdm import tqdm import numpy as np from collections import Counter import random with open('/content/VGGish-Model/non-overlap/test_clip_length.txt','r') as f: line = f.readline().split() test_clip_length = [int(x) for x in line] with open('/content/VGGish-Model/non-overlap/test_preds.txt','r') as f: lin...
43.512195
156
0.706278
7946a4dd9f09f5ccf4e23f689103336a1fe5247f
4,906
py
Python
WANNRelease/WANN/wann_src/dataGatherer.py
tusharganguli/brain-tokyo-workshop
4ccee864229598f5af29af56197fb5fc7240c1c9
[ "Apache-2.0" ]
null
null
null
WANNRelease/WANN/wann_src/dataGatherer.py
tusharganguli/brain-tokyo-workshop
4ccee864229598f5af29af56197fb5fc7240c1c9
[ "Apache-2.0" ]
null
null
null
WANNRelease/WANN/wann_src/dataGatherer.py
tusharganguli/brain-tokyo-workshop
4ccee864229598f5af29af56197fb5fc7240c1c9
[ "Apache-2.0" ]
null
null
null
import os import numpy as np import copy from .ind import exportNet import logging from wann_train import rank class DataGatherer(): ''' Data recorder for WANN algorithm''' def __init__(self, filename, hyp): """ Args: filename - (string) - path+prefix of file output destination hyp - (di...
35.810219
79
0.481247
7946a63af83551baa3012f3eb8b4c6d01d05492d
47,427
py
Python
cassandra/cqltypes.py
lauranovich/python-driver
89e4b246f259db38322d2f9a7c1111a4ff380c92
[ "Apache-2.0" ]
1,163
2015-01-01T03:02:05.000Z
2022-03-22T13:04:00.000Z
cassandra/cqltypes.py
lauranovich/python-driver
89e4b246f259db38322d2f9a7c1111a4ff380c92
[ "Apache-2.0" ]
556
2015-01-05T16:39:29.000Z
2022-03-26T20:51:36.000Z
cassandra/cqltypes.py
lauranovich/python-driver
89e4b246f259db38322d2f9a7c1111a4ff380c92
[ "Apache-2.0" ]
449
2015-01-05T10:28:59.000Z
2022-03-14T23:15:32.000Z
# Copyright DataStax, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, softwa...
33.305478
201
0.62068
7946a6416f519c5f58c1ab8b925fb3e041cb396f
8,371
py
Python
docs/conf.py
natteruw/worms
6530505d4fca3229bb93738a0bae0463a17229b8
[ "Apache-2.0" ]
null
null
null
docs/conf.py
natteruw/worms
6530505d4fca3229bb93738a0bae0463a17229b8
[ "Apache-2.0" ]
null
null
null
docs/conf.py
natteruw/worms
6530505d4fca3229bb93738a0bae0463a17229b8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # worms documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
30.32971
76
0.713774
7946a9adf00a8ac19b3e2287ecbd9131cd462281
3,296
py
Python
test/test_generate/test_autograder.py
afspies/otter-grader
5d5ba1b049596eaee1fd9c039bb1cd15f6786f4f
[ "BSD-3-Clause" ]
1
2021-10-01T02:02:55.000Z
2021-10-01T02:02:55.000Z
test/test_generate/test_autograder.py
afspies/otter-grader
5d5ba1b049596eaee1fd9c039bb1cd15f6786f4f
[ "BSD-3-Clause" ]
null
null
null
test/test_generate/test_autograder.py
afspies/otter-grader
5d5ba1b049596eaee1fd9c039bb1cd15f6786f4f
[ "BSD-3-Clause" ]
null
null
null
#################################### ##### Tests for otter generate ##### #################################### import json import os import shutil import subprocess import unittest from glob import glob from subprocess import PIPE from unittest import mock from otter.generate import main as generate from .. import ...
36.622222
97
0.622573
7946a9fe51587fb83d713e05d8e400391b306a17
30,690
py
Python
addons/blender_mmd_tools-main/tests/test_pmx_exporter.py
V-Sekai/V-Sekai-Blender-tools
3473ad4abb737756290a9007273519460742960d
[ "MIT" ]
2
2021-12-21T16:38:58.000Z
2022-01-08T00:56:35.000Z
addons/blender_mmd_tools-main/tests/test_pmx_exporter.py
V-Sekai/V-Sekai-Blender-game-tools
3473ad4abb737756290a9007273519460742960d
[ "MIT" ]
1
2022-01-29T05:46:50.000Z
2022-01-29T05:46:50.000Z
addons/blender_mmd_tools-main/tests/test_pmx_exporter.py
V-Sekai/V-Sekai-Blender-game-tools
3473ad4abb737756290a9007273519460742960d
[ "MIT" ]
1
2021-11-07T19:41:34.000Z
2021-11-07T19:41:34.000Z
# -*- coding: utf-8 -*- import os import shutil import unittest import bpy from math import pi from mathutils import Euler from mathutils import Vector from mmd_tools.core import pmx from mmd_tools.core.model import Model from mmd_tools.core.pmd.importer import import_pmd_to_pmx from mmd_tools.core.pmx.importer impo...
45.874439
125
0.60971
7946aa0c0eef12a1b63de123544f0ad719074538
2,653
py
Python
wagtail/wagtailsnippets/edit_handlers.py
minervaproject/wagtail
b94b1179fbf2019d809fd69ed62cd1a096b5d407
[ "BSD-3-Clause" ]
null
null
null
wagtail/wagtailsnippets/edit_handlers.py
minervaproject/wagtail
b94b1179fbf2019d809fd69ed62cd1a096b5d407
[ "BSD-3-Clause" ]
1
2016-04-20T00:54:15.000Z
2016-04-20T00:54:15.000Z
wagtail/wagtailsnippets/edit_handlers.py
minervaproject/wagtail
b94b1179fbf2019d809fd69ed62cd1a096b5d407
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, unicode_literals import warnings from django.core.exceptions import ImproperlyConfigured from django.template.loader import render_to_string from django.utils.safestring import mark_safe from wagtail.utils.deprecation import RemovedInWagtail16Warning from wagtail.wagtailadmin....
36.847222
98
0.648323
7946aae40299cf0f493e5e92bbe69db907942624
7,732
py
Python
jaxnerf/nerf/models.py
muell-monster/google-research
04d2024f4723bc4be3d639a668c19fb1f6a31478
[ "Apache-2.0" ]
1
2021-07-02T07:29:04.000Z
2021-07-02T07:29:04.000Z
jaxnerf/nerf/models.py
thomascherickal/google-research
294a888bbb6678ac255c6422fd703c325cbb0772
[ "Apache-2.0" ]
null
null
null
jaxnerf/nerf/models.py
thomascherickal/google-research
294a888bbb6678ac255c6422fd703c325cbb0772
[ "Apache-2.0" ]
1
2021-09-27T03:17:14.000Z
2021-09-27T03:17:14.000Z
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
36.471698
79
0.678996
7946ab514da23177c8fa136ae47580349c8d5e7a
19,752
py
Python
networking_hyperv/neutron/agent/layer2.py
vaibhavjaiman/networking-hyperv
1f6462a76e7c3f8fc57bf7b1d7d0fc3d39910935
[ "Apache-2.0" ]
14
2015-10-18T02:55:08.000Z
2019-01-28T22:05:28.000Z
networking_hyperv/neutron/agent/layer2.py
vaibhavjaiman/networking-hyperv
1f6462a76e7c3f8fc57bf7b1d7d0fc3d39910935
[ "Apache-2.0" ]
2
2021-03-01T06:13:30.000Z
2021-05-09T06:13:28.000Z
networking_hyperv/neutron/agent/layer2.py
vaibhavjaiman/networking-hyperv
1f6462a76e7c3f8fc57bf7b1d7d0fc3d39910935
[ "Apache-2.0" ]
18
2016-02-03T17:26:34.000Z
2021-02-28T13:36:22.000Z
# Copyright 2017 Cloudbase Solutions SRL # 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 r...
40.979253
79
0.638264
7946ab56412a91399c1b1bad47a07dc5c7f96a8f
19,861
py
Python
manila/tests/api/v1/test_security_service.py
kpawar89/manila
d487c2db728cedf8357b9f4acbc0a45c21c3a83e
[ "Apache-2.0" ]
159
2015-01-02T09:35:15.000Z
2022-01-04T11:51:34.000Z
manila/tests/api/v1/test_security_service.py
kpawar89/manila
d487c2db728cedf8357b9f4acbc0a45c21c3a83e
[ "Apache-2.0" ]
5
2015-07-24T09:28:21.000Z
2020-11-20T04:33:51.000Z
manila/tests/api/v1/test_security_service.py
kpawar89/manila
d487c2db728cedf8357b9f4acbc0a45c21c3a83e
[ "Apache-2.0" ]
128
2015-01-05T22:52:28.000Z
2021-12-29T14:00:58.000Z
# Copyright 2012 NetApp # 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 applic...
45.448513
78
0.636272
7946acc2388304fdfb6caf49e55542368561af96
245
py
Python
2_Baekjoon/7_practice.py
YOON-CC/Baekjoon
608daac0b294f0273f706eff83d7abcb47815097
[ "MIT" ]
null
null
null
2_Baekjoon/7_practice.py
YOON-CC/Baekjoon
608daac0b294f0273f706eff83d7abcb47815097
[ "MIT" ]
null
null
null
2_Baekjoon/7_practice.py
YOON-CC/Baekjoon
608daac0b294f0273f706eff83d7abcb47815097
[ "MIT" ]
null
null
null
#백준 1149 n=int(input()) a=[list(map(int,input().split())) for _ in range(n)] for i in range(1,n): a[i][0]+=min(a[i-1][1],a[i-1][2]) a[i][1]+=min(a[i-1][0],a[i-1][2]) a[i][2]+=min(a[i-1][0],a[i-1][1]) print(a) print(min(a[n-1]))
20.416667
52
0.489796
7946ad0c8b69f2fb349f003fa8f368c5ef072927
2,044
py
Python
calibration/src/calibration/calibration/publish_camera_info.py
sieniven/detect-obstacles-ros
2fe2e502781060da83e4840538c779808553dbfb
[ "Apache-2.0" ]
6
2021-04-26T15:11:24.000Z
2022-01-05T23:10:43.000Z
calibration/src/calibration/calibration/publish_camera_info.py
sieniven/detect-obstacles-ros
2fe2e502781060da83e4840538c779808553dbfb
[ "Apache-2.0" ]
null
null
null
calibration/src/calibration/calibration/publish_camera_info.py
sieniven/detect-obstacles-ros
2fe2e502781060da83e4840538c779808553dbfb
[ "Apache-2.0" ]
null
null
null
# basic Python frameworks import argparse import yaml import numpy as np # ROS2 libraries import rclpy # import messages from sensor_msgs.msg import CameraInfo def main(): """ main function to publish camera info ros2 messages """ rclpy.init(args=None) parser = argparse.ArgumentParser() pars...
31.9375
101
0.683953
7946ad790478927b894a9cfe94d86022ebe4a01e
7,946
py
Python
base_python/cogment_verse/model_registry_client.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
base_python/cogment_verse/model_registry_client.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
base_python/cogment_verse/model_registry_client.py
kharyal/cogment-verse
12bcb855bc742e3ec4ed11c40a1b475e95a32515
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 AI Redefined Inc. <dev+cogment@ai-r.com> # # 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 l...
40.131313
170
0.679713
7946ae510ee16ccd1a48c745d68e8645cabcce00
23,939
py
Python
bauh/gems/web/environment.py
Flash1232/bauh
6f65556c05ae272c1dbbd557c7f80a606658eb56
[ "Zlib" ]
507
2019-08-12T16:15:55.000Z
2022-03-28T15:49:39.000Z
bauh/gems/web/environment.py
Flash1232/bauh
6f65556c05ae272c1dbbd557c7f80a606658eb56
[ "Zlib" ]
176
2019-08-14T02:35:21.000Z
2022-03-31T21:43:56.000Z
bauh/gems/web/environment.py
Flash1232/bauh
6f65556c05ae272c1dbbd557c7f80a606658eb56
[ "Zlib" ]
57
2019-09-02T04:09:22.000Z
2022-03-21T21:37:16.000Z
import glob import logging import os import shutil import tarfile import traceback from datetime import datetime, timedelta from pathlib import Path from threading import Thread from typing import Dict, List, Optional import requests import yaml from bauh.api.abstract.download import FileDownloader from bauh.api.abst...
45.772467
169
0.619073
7946b16ca90dfcc3d54ff43875533eb7a7f8a9b4
23,198
py
Python
graspologic/match/qap.py
kellymarchisio/graspologic
9aaca9067142c2e83d4cbc6bfa41738e64b3c066
[ "MIT" ]
null
null
null
graspologic/match/qap.py
kellymarchisio/graspologic
9aaca9067142c2e83d4cbc6bfa41738e64b3c066
[ "MIT" ]
null
null
null
graspologic/match/qap.py
kellymarchisio/graspologic
9aaca9067142c2e83d4cbc6bfa41738e64b3c066
[ "MIT" ]
null
null
null
# adapted from scipy.optimze.quadratic_assignment() # will live here temporalily until this function is officially released # original code can be found here # https://github.com/scipy/scipy/blob/master/scipy/optimize/_qap.py import operator import numpy as np from scipy._lib._util import check_random_state from scip...
41.949367
82
0.609578
7946b20e92530ddc84221f0e9f2b6c02461e990f
1,035
py
Python
fluxcd_teams_bot/parser.py
binkhq/fluxcd-teams-webhook
617202b003cec7c75e77c691ab002ee056f537d5
[ "Apache-2.0" ]
null
null
null
fluxcd_teams_bot/parser.py
binkhq/fluxcd-teams-webhook
617202b003cec7c75e77c691ab002ee056f537d5
[ "Apache-2.0" ]
1
2021-03-02T09:55:14.000Z
2021-03-02T09:55:14.000Z
fluxcd_teams_bot/parser.py
binkhq/fluxcd-teams-webhook
617202b003cec7c75e77c691ab002ee056f537d5
[ "Apache-2.0" ]
null
null
null
from typing import Any, Dict, Tuple, Union, cast from fluxcd_teams_bot.cards import AutoreleaseCard, Card, ErrorCard def split_workload_id(workload_id: str) -> Tuple[str, str]: return cast(Tuple[str, str], workload_id.split(":", 1)) def parse(data: Dict[str, Any]) -> Union[Card, None]: type_ = data.get("ty...
32.34375
104
0.619324
7946b2802b599f2ed89792ed740bb1e3186b9166
3,339
py
Python
src/programy/dynamic/maps/roman.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/dynamic/maps/roman.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/dynamic/maps/roman.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
4
2019-04-01T15:42:23.000Z
2020-11-05T08:14:27.000Z
""" Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com 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 rights to use, copy, m...
38.825581
120
0.622342
7946b28f799ad654e97e4b6d307b7ea0b1693f9d
1,517
py
Python
app/libs/utils.py
damnever/2L
35dab73106e5879155a647b31c81ae5dea18b89d
[ "BSD-3-Clause" ]
1
2019-03-11T12:16:30.000Z
2019-03-11T12:16:30.000Z
app/libs/utils.py
damnever/2L
35dab73106e5879155a647b31c81ae5dea18b89d
[ "BSD-3-Clause" ]
1
2017-04-16T02:11:58.000Z
2017-04-16T02:11:58.000Z
app/libs/utils.py
damnever/2L
35dab73106e5879155a647b31c81ae5dea18b89d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import re import os import base64 import uuid import importlib import pkgutil import hashlib from app.settings import ROOT_DIR _AT_RE = re.compile(r'@(?P<name>[^ ,\.;:!\?"\':]+)', re.M | re.S) def load_module_attrs(pkg_path,...
26.614035
74
0.642716
7946b30fa0a94fcfbd9cc041fc64da87d54e7ce1
3,781
py
Python
configs/foveabox/fovea_align_gn_r50_fpn_2gpu_1x_5cut.py
wangbingo/mmdetection
a1fb7f9d882e8bbf0138aead7a143e88e93d9896
[ "Apache-2.0" ]
null
null
null
configs/foveabox/fovea_align_gn_r50_fpn_2gpu_1x_5cut.py
wangbingo/mmdetection
a1fb7f9d882e8bbf0138aead7a143e88e93d9896
[ "Apache-2.0" ]
null
null
null
configs/foveabox/fovea_align_gn_r50_fpn_2gpu_1x_5cut.py
wangbingo/mmdetection
a1fb7f9d882e8bbf0138aead7a143e88e93d9896
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='FOVEA', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=4, ### style='pytorch'), neck=dict( type='FPN', ...
31.508333
103
0.604866
7946b4c1492344d18620cf2105e8dc75de3694f0
9,761
py
Python
scripts/cli/parsing/shared.py
scherroman/mvgen
0e79079b3fb71e94c67d48fd5599b6c43602d3b5
[ "MIT" ]
9
2016-11-28T00:54:57.000Z
2016-12-22T21:21:17.000Z
scripts/cli/parsing/shared.py
scherroman/mvgen
0e79079b3fb71e94c67d48fd5599b6c43602d3b5
[ "MIT" ]
null
null
null
scripts/cli/parsing/shared.py
scherroman/mvgen
0e79079b3fb71e94c67d48fd5599b6c43602d3b5
[ "MIT" ]
null
null
null
import argparse from fractions import Fraction from mugen import VideoFilter from mugen.video.filters import DEFAULT_VIDEO_FILTERS from mugen.video.io.VideoWriter import VideoWriter from scripts.cli.events import AudioEventsMode, BeatsMode, OnsetsMode, TargetGroups DEFAULT_MUSIC_VIDEO_NAME = "music_video" def get_a...
36.151852
154
0.625858
7946b52178c47db508f562dea10453b4b16d4b30
562
py
Python
py3plex/algorithms/infomap/examples/python/example-multiplex.py
awesome-archive/Py3plex
a099acb992441c1630208ba13694acb8e2a38895
[ "BSD-3-Clause" ]
1
2020-02-20T07:37:02.000Z
2020-02-20T07:37:02.000Z
py3plex/algorithms/infomap/examples/python/example-multiplex.py
awesome-archive/Py3plex
a099acb992441c1630208ba13694acb8e2a38895
[ "BSD-3-Clause" ]
null
null
null
py3plex/algorithms/infomap/examples/python/example-multiplex.py
awesome-archive/Py3plex
a099acb992441c1630208ba13694acb8e2a38895
[ "BSD-3-Clause" ]
null
null
null
from infomap import infomap infomapWrapper = infomap.MemInfomap("--two-level --expanded") # from (layer, node) to (layer, node) weight infomapWrapper.addMultiplexLink(2, 1, 1, 2, 1.0) infomapWrapper.addMultiplexLink(1, 2, 2, 1, 1.0) infomapWrapper.addMultiplexLink(3, 2, 2, 3, 1.0) infomapWrapper.run() tree = infoma...
28.1
89
0.718861
7946b522adf98416d3c53ee4e38ef273a70082dc
6,399
py
Python
regina_normalizer/ordinal_big_tuples.py
grammatek/regina_normalizer
61ffeafcf1b967b44a3a9f99727013779bfeba13
[ "Apache-2.0" ]
null
null
null
regina_normalizer/ordinal_big_tuples.py
grammatek/regina_normalizer
61ffeafcf1b967b44a3a9f99727013779bfeba13
[ "Apache-2.0" ]
null
null
null
regina_normalizer/ordinal_big_tuples.py
grammatek/regina_normalizer
61ffeafcf1b967b44a3a9f99727013779bfeba13
[ "Apache-2.0" ]
null
null
null
from . import number_patterns as npa from . import tuple_rules as tp ordinal_big_tuples = [(npa.ones_ptrn_no11 + "1\.000\.0([01][1-9]|10)\.$", '.*', 'millions', ' einmilljónasta og'), ("^1\.000\.0([01][1-9]|10)\.$", '.*', 'millions',' milljónasta og'), (npa.ones_ptrn_no11 + "1\.000\.000\.$", '.*', 'millions', ...
95.507463
170
0.601031
7946b548069a1b8eb421340a3baef4bf4cef5db3
843
py
Python
pelayanan/migrations/0002_auto_20200716_1930.py
diaksizz/Adisatya
1b20e523aede6ab3e8effb1ca63adf72016a6839
[ "MIT" ]
null
null
null
pelayanan/migrations/0002_auto_20200716_1930.py
diaksizz/Adisatya
1b20e523aede6ab3e8effb1ca63adf72016a6839
[ "MIT" ]
7
2021-03-30T14:04:35.000Z
2022-01-13T03:07:50.000Z
pelayanan/migrations/0002_auto_20200716_1930.py
diaksizz/Adisatya
1b20e523aede6ab3e8effb1ca63adf72016a6839
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-16 12:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('pelayanan', '0001_initia...
28.1
136
0.628707
7946b6258488efc2b2eadc73559fab954c84dba2
5,561
py
Python
common/trainers/msrvid_trainer.py
karkaroff/castor
881673f3dadb4f757fdfdf5d2ab9031e08512406
[ "Apache-2.0" ]
132
2017-04-02T12:31:55.000Z
2019-03-09T07:53:29.000Z
common/trainers/msrvid_trainer.py
sudipta90/castor
fa2f59535c71a0fb4586afbe543b81ba812c8630
[ "Apache-2.0" ]
111
2017-04-01T23:00:24.000Z
2019-03-10T08:29:20.000Z
common/trainers/msrvid_trainer.py
karkaroff/Castor
881673f3dadb4f757fdfdf5d2ab9031e08512406
[ "Apache-2.0" ]
53
2017-04-06T01:17:18.000Z
2019-02-27T03:10:35.000Z
import math import time import torch import torch.nn.functional as F from torch.optim.lr_scheduler import ReduceLROnPlateau from scipy.stats import pearsonr from .trainer import Trainer from utils.serialization import save_checkpoint class MSRVIDTrainer(Trainer): def train_epoch(self, epoch): self.mode...
45.211382
145
0.617335
7946b64b9aae4a515e58772047a42a65db69c0b5
37,753
py
Python
nodebox/gui/mac/__init__.py
nodebox/nodebox-pyobjc
31c7a95ca24fffdc8f4523278d4b68c330adea8e
[ "MIT" ]
47
2015-03-14T01:44:09.000Z
2021-11-10T10:28:14.000Z
nodebox/gui/mac/__init__.py
nodebox/nodebox-pyobjc
31c7a95ca24fffdc8f4523278d4b68c330adea8e
[ "MIT" ]
4
2015-08-20T20:02:32.000Z
2021-02-10T18:39:11.000Z
nodebox/gui/mac/__init__.py
nodebox/nodebox-pyobjc
31c7a95ca24fffdc8f4523278d4b68c330adea8e
[ "MIT" ]
15
2015-03-14T01:44:00.000Z
2020-12-17T16:44:31.000Z
import sys import os import traceback, linecache import re import objc import time import random from Foundation import * from AppKit import * from threading import Thread from nodebox.gui.mac.ValueLadder import MAGICVAR from nodebox.gui.mac import PyDETextView from nodebox.gui.mac.util import errorAlert from nodebox ...
36.44112
146
0.606203
7946b709983160600294fd21ecd433e851450ad5
5,998
py
Python
HyperAPI/hdp_api/routes/datasetReshapes.py
WassimAbida/HyperAPI
654a72922148d23158e3e4ea4b105f07626c5c36
[ "BSD-3-Clause" ]
null
null
null
HyperAPI/hdp_api/routes/datasetReshapes.py
WassimAbida/HyperAPI
654a72922148d23158e3e4ea4b105f07626c5c36
[ "BSD-3-Clause" ]
null
null
null
HyperAPI/hdp_api/routes/datasetReshapes.py
WassimAbida/HyperAPI
654a72922148d23158e3e4ea4b105f07626c5c36
[ "BSD-3-Clause" ]
null
null
null
from HyperAPI.hdp_api.base.resource import Resource from HyperAPI.hdp_api.base.route import Route class DatasetReshapes(Resource): name = "datasetReshapes" available_since = "3.0" removed_since = None class _getReshapes(Route): name = "getReshapes" httpMethod = Route.GET path ...
33.322222
89
0.610037
7946b76c76898d73d3d83f723e8c9d9510318b69
2,280
py
Python
base_agent/dialogue_stack.py
kandluis/droidlet
3851f0bdac7bc63100cfbcf1c206a94658790352
[ "MIT" ]
null
null
null
base_agent/dialogue_stack.py
kandluis/droidlet
3851f0bdac7bc63100cfbcf1c206a94658790352
[ "MIT" ]
null
null
null
base_agent/dialogue_stack.py
kandluis/droidlet
3851f0bdac7bc63100cfbcf1c206a94658790352
[ "MIT" ]
null
null
null
""" Copyright (c) Facebook, Inc. and its affiliates. """ import logging from base_agent.base_util import NextDialogueStep, ErrorWithResponse class DialogueStack(object): """This class organizes and steps DialogueObjects.""" def __init__(self, agent, memory): self.agent = agent self.memory = ...
31.232877
98
0.575439
7946b7a6ce73732132cf4d923c9e8538cbf92610
2,913
py
Python
prophy/tests/test_class_helpers.py
florczakraf/prophy
a42a6151a77b31afa05300fc2e1f52cc15a298cf
[ "MIT" ]
14
2015-02-19T22:00:37.000Z
2020-11-30T03:03:55.000Z
prophy/tests/test_class_helpers.py
florczakraf/prophy
a42a6151a77b31afa05300fc2e1f52cc15a298cf
[ "MIT" ]
31
2015-06-22T11:11:10.000Z
2021-05-12T06:35:47.000Z
prophy/tests/test_class_helpers.py
florczakraf/prophy
a42a6151a77b31afa05300fc2e1f52cc15a298cf
[ "MIT" ]
16
2015-06-12T06:48:06.000Z
2019-11-26T22:48:13.000Z
import prophy def get_helper_classes(): class SubStruct(prophy.with_metaclass(prophy.struct_generator, prophy.struct)): _descriptor = [ ("a", prophy.array(prophy.u8, size=2)), ] class OneStruct(prophy.with_metaclass(prophy.struct_generator, prophy.struct)): _descriptor = [...
30.34375
118
0.58977
7946b7df3c3eedcc089af29067ab4ae7c07477d8
3,290
py
Python
sensor_ui/rotary_encoder.py
mattgrogan/ledmatrix
3a54de98ab107cf1266404400c7eb576007c8b17
[ "MIT" ]
1
2017-10-27T20:27:13.000Z
2017-10-27T20:27:13.000Z
sensor_ui/rotary_encoder.py
mattgrogan/ledmatrix
3a54de98ab107cf1266404400c7eb576007c8b17
[ "MIT" ]
null
null
null
sensor_ui/rotary_encoder.py
mattgrogan/ledmatrix
3a54de98ab107cf1266404400c7eb576007c8b17
[ "MIT" ]
null
null
null
from gpiozero import Button class RotaryEncoder: """ Decode mechanical rotary encoder pulses. The following example will print a Rotary Encoder change direction from gpiozero import RotaryEncoder def change(value): if value == 1: print("clockwise")...
31.941748
86
0.427052
7946ba0d437f7d739eac3e2833ad3efb1acfe051
18,623
py
Python
tests/io/test_json.py
Hhx1999/eznlp
9d1397d8e9630c099295712cbcffa495353a3268
[ "Apache-2.0" ]
1
2022-03-08T05:17:52.000Z
2022-03-08T05:17:52.000Z
tests/io/test_json.py
Hhx1999/eznlp
9d1397d8e9630c099295712cbcffa495353a3268
[ "Apache-2.0" ]
null
null
null
tests/io/test_json.py
Hhx1999/eznlp
9d1397d8e9630c099295712cbcffa495353a3268
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import pytest import jieba from eznlp.io import JsonIO, SQuADIO, KarpathyIO, TextClsIO, BratIO from eznlp.utils.chunk import detect_nested, filter_clashed_by_priority class TestJsonIO(object): """ References ---------- [1] Lu and Roth. 2015. Joint Mention Extraction and C...
49.661333
158
0.615529
7946ba39a60ccaa81eb5ebc968f04ba161171ac8
658
py
Python
mayan/apps/autoadmin/apps.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/autoadmin/apps.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/autoadmin/apps.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
from django.conf import settings from django.db.models.signals import post_save from django.utils.translation import ugettext_lazy as _ from mayan.apps.common.apps import MayanAppConfig from .handlers import handler_auto_admin_account_password_change class AutoAdminAppConfig(MayanAppConfig): has_tests = True ...
28.608696
69
0.746201
7946bc15718dd60639f3ac922f82102f9a8cc485
213
py
Python
play.py
AcrobaticPanicc/stocks-manager
f8411c13ce049583bd4fa5b18a9266919f222edd
[ "MIT" ]
93
2020-07-09T23:15:44.000Z
2022-03-30T22:14:22.000Z
play.py
AcrobaticPanicc/stocks-manager
f8411c13ce049583bd4fa5b18a9266919f222edd
[ "MIT" ]
1
2021-12-07T03:17:05.000Z
2021-12-07T03:17:05.000Z
play.py
AcrobaticPanicc/stocks-manager
f8411c13ce049583bd4fa5b18a9266919f222edd
[ "MIT" ]
16
2020-07-10T03:44:07.000Z
2022-03-30T22:14:27.000Z
# from app.table import table # # # from app import data # import csv # # a = [] # # with open('tickers.csv') as csvfile: # res = csv.reader(csvfile) # for i in res: # a.append(i[1]) # # print(a) #
14.2
38
0.56338
7946bd5a4094f4ce5d3536e6d7beb73dab9df4a9
221
py
Python
publications/__init__.py
fusion-flap/flap_nstx
234bc6d482357cde94b36c85819e9a3f292819d5
[ "MIT" ]
null
null
null
publications/__init__.py
fusion-flap/flap_nstx
234bc6d482357cde94b36c85819e9a3f292819d5
[ "MIT" ]
1
2019-10-03T22:25:58.000Z
2021-10-06T10:31:11.000Z
publications/__init__.py
fusion-flap/flap_nstx
234bc6d482357cde94b36c85819e9a3f292819d5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 1 16:05:39 2021 @author: mlampert """ from .read_ahmed_matlab_file import read_ahmed_fit_parameters, read_ahmed_edge_current, read_ahmed_matlab_file
24.555556
110
0.760181
7946bd88ba0b577fb9f4885b80829cec6f26c919
11,059
py
Python
tensorflow/python/estimator/export/export_test.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
5
2019-01-17T08:47:31.000Z
2020-05-06T06:10:56.000Z
tensorflow/python/estimator/export/export_test.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
3
2020-03-24T18:15:52.000Z
2021-02-02T22:28:38.000Z
tensorflow/python/estimator/export/export_test.py
xincao79/tensorflow
7fa0cf39f854d5fdaaa19ad6425dfed02f5fea64
[ "Apache-2.0" ]
3
2017-06-09T10:39:33.000Z
2021-04-08T16:13:30.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
40.214545
80
0.65449
7946c02a7c60824df40e69916d67d2193847d83a
8,085
py
Python
src/cryptography/hazmat/primitives/asymmetric/dsa.py
zapfbandit/pyca-cryptography
577e058798e0e6ae04eac07f958f1072e351e859
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
2
2015-10-08T21:28:42.000Z
2020-08-15T10:03:49.000Z
src/cryptography/hazmat/primitives/asymmetric/dsa.py
zapfbandit/pyca-cryptography
577e058798e0e6ae04eac07f958f1072e351e859
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
68
2015-06-27T00:28:53.000Z
2022-03-31T10:09:13.000Z
src/cryptography/hazmat/primitives/asymmetric/dsa.py
zapfbandit/pyca-cryptography
577e058798e0e6ae04eac07f958f1072e351e859
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause" ]
3
2016-04-11T20:22:38.000Z
2018-09-20T20:39:54.000Z
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import abc import typing from cryptography.hazmat.backends import _get_backend from cryptography.hazmat.primitives import _serialization,...
28.170732
79
0.635993
7946c10e6b8f4d297de3f705c48872fc8a6a5c72
5,908
py
Python
tensorflow_probability/python/internal/test_combinations.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
1
2019-10-10T06:15:42.000Z
2019-10-10T06:15:42.000Z
tensorflow_probability/python/internal/test_combinations.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/internal/test_combinations.py
bolcom/probability
4a11efad1ecd8a1336e4c9fdb0105efbf2375ad7
[ "Apache-2.0" ]
1
2019-10-10T06:15:44.000Z
2019-10-10T06:15:44.000Z
# Copyright 2019 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
38.614379
103
0.741198
7946c18acc1c390c927bfd6ced0b3ab42693e747
4,859
py
Python
mct_json_converter/main_window.py
iorodeo/mct_json_converter
aa7cbb180928868fb8b12e177a793373f6a15191
[ "Apache-2.0" ]
1
2020-07-23T19:04:03.000Z
2020-07-23T19:04:03.000Z
mct_json_converter/main_window.py
iorodeo/mct_json_converter
aa7cbb180928868fb8b12e177a793373f6a15191
[ "Apache-2.0" ]
null
null
null
mct_json_converter/main_window.py
iorodeo/mct_json_converter
aa7cbb180928868fb8b12e177a793373f6a15191
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys import os import time import mct_json_converter from PyQt4 import QtCore from PyQt4 import QtGui from converter_ui import Ui_MainWindow USER_HOME = os.getenv('USERPROFILE') if USER_HOME is None: USER_HOME = os.getenv('HOME') DEFAULT_DIRECTORY = os.path.join(USER...
34.460993
86
0.630582
7946c1a480bac043986cf39ce6ac793ecad9800c
828
py
Python
Rosalind/mrna.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
null
null
null
Rosalind/mrna.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
1
2015-03-25T22:35:52.000Z
2015-03-25T22:35:52.000Z
Rosalind/mrna.py
yuriyshapovalov/Prototypes
1fc4af4434440a8f59a4bcb486e79fd53d199a7d
[ "Apache-2.0" ]
null
null
null
# Inferring mRNA from Protein # rosalind.info/problems/mrna/ import sys class mrna: codon_freq = {'F':2, 'L':6, 'S':6, 'Y':2, 'A':4, 'C':2, 'W':1, 'P':4, 'H':2, 'Q':2, 'R':6, 'I':3, 'M':1, 'N':2, 'K':2, 'D':2, 'V':4, 'E':2, 'G':4, 'T':4, 'stop':3} def mai...
29.571429
64
0.504831
7946c29d7f5341c8ab9780f4022f686031d18139
459
py
Python
pitchdeck/wsgi.py
rjmackay/pitchdeck
51e5715e95441169af783135cb34c48d6d380f00
[ "MIT" ]
null
null
null
pitchdeck/wsgi.py
rjmackay/pitchdeck
51e5715e95441169af783135cb34c48d6d380f00
[ "MIT" ]
null
null
null
pitchdeck/wsgi.py
rjmackay/pitchdeck
51e5715e95441169af783135cb34c48d6d380f00
[ "MIT" ]
null
null
null
""" WSGI config for pitchdeck project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pitchdeck.settings") os.environ.set...
25.5
78
0.786492
7946c2bf55aefa9f8b086ae978865e9b69e24c76
4,533
py
Python
dataset_coco.py
XDong18/dla
063f1facc2bc49b2ca3a6bb9c87977b6f194505e
[ "BSD-3-Clause" ]
null
null
null
dataset_coco.py
XDong18/dla
063f1facc2bc49b2ca3a6bb9c87977b6f194505e
[ "BSD-3-Clause" ]
null
null
null
dataset_coco.py
XDong18/dla
063f1facc2bc49b2ca3a6bb9c87977b6f194505e
[ "BSD-3-Clause" ]
null
null
null
from pycocotools.coco import COCO import os import os.path as osp import sys import torch import torch.utils.data as data import cv2 import numpy as np from PIL import Image import data_transforms as transforms def f_print(*obj): fn='./output.log' # print(obj) with open(fn, 'a+') as f: print(obj, ...
41.209091
90
0.521288
7946c2e55b4c68dfc1dfc0b540957a9f648d2f66
3,971
py
Python
WebsiteVisitUserPatternAnalyze.py
syeddabeer/0projects
e132628f3693ed40c5ea9055a6c79f8266196bae
[ "Apache-2.0" ]
null
null
null
WebsiteVisitUserPatternAnalyze.py
syeddabeer/0projects
e132628f3693ed40c5ea9055a6c79f8266196bae
[ "Apache-2.0" ]
null
null
null
WebsiteVisitUserPatternAnalyze.py
syeddabeer/0projects
e132628f3693ed40c5ea9055a6c79f8266196bae
[ "Apache-2.0" ]
null
null
null
class Solution: def mostVisitedPattern(self, username: List[str], timestamp: List[int], website: List[str]) -> List[str]: users = defaultdict(list) for user, time, site in sorted(zip(username, timestamp, website), key = lambda x: (x[0],x[1])): users[user].append(site) ...
49.6375
271
0.700076
7946c378ee5afcc22d03400f6f322100d8077abe
14,009
py
Python
tests/suite/test_rl_policies_vsr.py
datamachines/kubernetes-ingress
d4629491677daeb3f247774009cff0beaffe0ec6
[ "Apache-2.0" ]
1
2021-06-06T23:51:18.000Z
2021-06-06T23:51:18.000Z
tests/suite/test_rl_policies_vsr.py
datamachines/kubernetes-ingress
d4629491677daeb3f247774009cff0beaffe0ec6
[ "Apache-2.0" ]
null
null
null
tests/suite/test_rl_policies_vsr.py
datamachines/kubernetes-ingress
d4629491677daeb3f247774009cff0beaffe0ec6
[ "Apache-2.0" ]
null
null
null
import pytest, requests, time from kubernetes.client.rest import ApiException from suite.resources_utils import wait_before_test, replace_configmap_from_yaml from suite.custom_resources_utils import ( read_crd, delete_virtual_server, create_virtual_server_from_yaml, patch_virtual_server_from_yaml, p...
37.159151
110
0.633022
7946c42bac956164a24ced7f38c27636f661dc2f
10,804
py
Python
ogs5py/tools/script.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
3
2018-05-27T15:39:07.000Z
2018-10-29T17:02:11.000Z
ogs5py/tools/script.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
1
2018-11-12T11:32:12.000Z
2018-11-12T13:07:48.000Z
ogs5py/tools/script.py
MuellerSeb/ogs5py
752e7bd2298fbd476406d168f6b7d1a85863dccd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Script generator for ogs5py. .. currentmodule:: ogs5py.tools.script Generator ^^^^^^^^^ .. autosummary:: :toctree: generated gen_script Helpers ^^^^^^^ .. autosummary:: :toctree: generated formater get_line tab add_block_file add_load_file add_list_file ---...
30.780627
79
0.494076
7946c46960ef15fdcaff6b5ad9f0bc2623a84b17
5,077
py
Python
tensorflow/python/keras/_impl/keras/datasets/imdb.py
2392863668/tensorFlow
6743031da633d1ce284a606c49eb00e793c1d729
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/_impl/keras/datasets/imdb.py
2392863668/tensorFlow
6743031da633d1ce284a606c49eb00e793c1d729
[ "Apache-2.0" ]
null
null
null
tensorflow/python/keras/_impl/keras/datasets/imdb.py
2392863668/tensorFlow
6743031da633d1ce284a606c49eb00e793c1d729
[ "Apache-2.0" ]
1
2020-05-08T22:28:00.000Z
2020-05-08T22:28:00.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
32.754839
80
0.659445
7946c4e03d0d885474fc249354dd123c3ed4da28
3,142
py
Python
contextmonkey/tracelayer/processingfilters/CabspottingLocationModify.py
manojrege/contextmonkey
9974889a726d7f60c6da0d6ccab97113ce635a14
[ "BSD-3-Clause" ]
4
2017-03-17T02:28:12.000Z
2019-04-18T11:25:44.000Z
contextmonkey/tracelayer/processingfilters/CabspottingLocationModify.py
manojrege/contextmonkey
9974889a726d7f60c6da0d6ccab97113ce635a14
[ "BSD-3-Clause" ]
null
null
null
contextmonkey/tracelayer/processingfilters/CabspottingLocationModify.py
manojrege/contextmonkey
9974889a726d7f60c6da0d6ccab97113ce635a14
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2017, Technische Universität Berlin # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # - Redistributions of source code must retain t...
41.893333
114
0.744749
7946c643243295ec05241863bf2cdcb237f97700
11,253
py
Python
env/lib/python3.7/site-packages/numpy/doc/basics.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
99
2019-10-09T16:14:46.000Z
2022-03-17T02:23:47.000Z
env/lib/python3.7/site-packages/numpy/doc/basics.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
26
2020-03-24T18:07:06.000Z
2022-03-12T00:12:27.000Z
env/lib/python3.7/site-packages/numpy/doc/basics.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
98
2019-10-17T14:48:28.000Z
2022-01-21T03:33:38.000Z
""" ============ Array basics ============ Array types and conversions between types ========================================= NumPy supports a much greater variety of numerical types than Python does. This section shows which are available, and how to modify an array's data-type. The primitive types supported are t...
32.80758
101
0.674842
7946c6e34069235a2492b459209f6b873cba1deb
82
py
Python
src/pyassets/__init__.py
skillfulhacks/xv
861419a38e955eb841b7a25f0924f5a2dc2816a9
[ "MIT" ]
null
null
null
src/pyassets/__init__.py
skillfulhacks/xv
861419a38e955eb841b7a25f0924f5a2dc2816a9
[ "MIT" ]
null
null
null
src/pyassets/__init__.py
skillfulhacks/xv
861419a38e955eb841b7a25f0924f5a2dc2816a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Program Python Assets # # # # #
9.111111
25
0.54878
7946c7275acf28ea31247cb18685343eab5753d7
4,129
py
Python
mergify_engine/logs.py
nafg/mergify-engine
7fac6f561a0cd3481a89f2aa19cd8d4d0e39d7e8
[ "Apache-2.0" ]
null
null
null
mergify_engine/logs.py
nafg/mergify-engine
7fac6f561a0cd3481a89f2aa19cd8d4d0e39d7e8
[ "Apache-2.0" ]
null
null
null
mergify_engine/logs.py
nafg/mergify-engine
7fac6f561a0cd3481a89f2aa19cd8d4d0e39d7e8
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
31.045113
122
0.61952
7946c7a80f35957b2770f649439be65d040cdf41
1,205
py
Python
python/encrypt.py
mswdwk/code_test_records
6edda193c8c19607c2021e62b96b8ff0813c7208
[ "MIT" ]
1
2019-06-06T13:34:24.000Z
2019-06-06T13:34:24.000Z
python/encrypt.py
mswdwk/code_test_records
6edda193c8c19607c2021e62b96b8ff0813c7208
[ "MIT" ]
null
null
null
python/encrypt.py
mswdwk/code_test_records
6edda193c8c19607c2021e62b96b8ff0813c7208
[ "MIT" ]
null
null
null
#coding: utf8 import sys from Crypto.Cipher import AES from binascii import b2a_hex, a2b_hex class prpcrypt(): def __init__(self, key): self.key = key self.mode = AES.MODE_CBC #加密函数,如果text不是16的倍数【加密文本text必须为16的倍数!】,那就补足为16的倍数 def encrypt(self, text): cryptor = AES.new(self.ke...
31.710526
79
0.607469
7946c8242c9a52e09c4a4b3f4e9ecaaaa3f96f9e
7,369
py
Python
mautic/api.py
sharon-asana/python-mautic
84e0d81ab223dda91dee72895363b0e86271c113
[ "MIT" ]
3
2020-11-22T00:07:41.000Z
2021-03-02T03:32:24.000Z
mautic/api.py
sharon-asana/python-mautic
84e0d81ab223dda91dee72895363b0e86271c113
[ "MIT" ]
null
null
null
mautic/api.py
sharon-asana/python-mautic
84e0d81ab223dda91dee72895363b0e86271c113
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import import requests from requests_oauthlib import OAuth2Session import json class MauticOauth2Client(object): def __init__( self, base_url, client_id, client_secret=None, scope=None, token...
27.599251
92
0.535758
7946c9a5ca3d1a4fef50a150f20e6788941010d9
51,767
py
Python
keystone/tests/unit/test_v3_resource.py
whitepages/keystone
7a0874f6f69852584061fa384f75dfb0d5f1c229
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_v3_resource.py
whitepages/keystone
7a0874f6f69852584061fa384f75dfb0d5f1c229
[ "Apache-2.0" ]
null
null
null
keystone/tests/unit/test_v3_resource.py
whitepages/keystone
7a0874f6f69852584061fa384f75dfb0d5f1c229
[ "Apache-2.0" ]
1
2021-03-21T11:38:30.000Z
2021-03-21T11:38:30.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
40.442969
79
0.594259
7946c9b296a95e1feefc6cb19ee0841dc646637d
4,374
py
Python
src/wheel/vendored/packaging/_musllinux.py
hugovk/wheel
0e07002ac82efa883061ac91c476d057b8d4d20d
[ "MIT" ]
null
null
null
src/wheel/vendored/packaging/_musllinux.py
hugovk/wheel
0e07002ac82efa883061ac91c476d057b8d4d20d
[ "MIT" ]
null
null
null
src/wheel/vendored/packaging/_musllinux.py
hugovk/wheel
0e07002ac82efa883061ac91c476d057b8d4d20d
[ "MIT" ]
null
null
null
"""PEP 656 support. This module implements logic to detect if the currently running Python is linked against musl, and what musl version is used. """ from __future__ import annotations import contextlib import functools import operator import os import re import struct import subprocess import sys from typing import...
31.467626
80
0.638775
7946ca15306944b2acf91f6d480518c20dd6059e
1,302
py
Python
assignment/assignment2/python/preprocess.py
maple1eaf/data_mining_inf553
fba0c19f46aac5882e103dbe53155e7128a9290f
[ "MIT" ]
1
2021-05-04T05:17:57.000Z
2021-05-04T05:17:57.000Z
assignment/assignment2/python/preprocess.py
maple1eaf/data_mining_inf553
fba0c19f46aac5882e103dbe53155e7128a9290f
[ "MIT" ]
null
null
null
assignment/assignment2/python/preprocess.py
maple1eaf/data_mining_inf553
fba0c19f46aac5882e103dbe53155e7128a9290f
[ "MIT" ]
1
2021-09-24T08:17:23.000Z
2021-09-24T08:17:23.000Z
""" spark-submit preprocess.py <business_file_path> <review_file_path> <output_file_path> spark-submit preprocess.py "file:///Users/markduan/duan/USC_course/USC_APDS/INF553/homework/hw2/dataset/business.json" "file:///Users/markduan/duan/USC_course/USC_APDS/INF553/homework/hw2/dataset/review.json" "/Users/markduan/dua...
28.304348
294
0.698925
7946ca368e2daf9fbe8215ecd41671c24f448289
22,327
py
Python
utils/raw_data_utils.py
cogito233/text-autoaugment
cae3cfddaba9da01cf291f975e5cf4f734634b51
[ "MIT" ]
1
2021-09-08T12:00:11.000Z
2021-09-08T12:00:11.000Z
utils/raw_data_utils.py
cogito233/text-autoaugment
cae3cfddaba9da01cf291f975e5cf4f734634b51
[ "MIT" ]
null
null
null
utils/raw_data_utils.py
cogito233/text-autoaugment
cae3cfddaba9da01cf291f975e5cf4f734634b51
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from sklearn.model_selection import StratifiedShuffleSplit, KFold import torchtext import csv import os import numpy as np import random import pandas as pd import re from theconf import Config as C from common ...
37.650927
120
0.604783
7946caf07a3f1ad50ee2264463b15dd64ab1ed02
167
py
Python
Py_lab/Lab 1,2/matrix.py
veterinarian-5300/Genious-Python-Code-Generator
d78cd5f4b64221e8e4dc80d6e1f5ba0a4c613bcd
[ "Apache-2.0" ]
1
2021-09-27T06:24:21.000Z
2021-09-27T06:24:21.000Z
Py_lab/Lab 1,2/matrix.py
veterinarian-5300/Genious-Python-Code-Generator
d78cd5f4b64221e8e4dc80d6e1f5ba0a4c613bcd
[ "Apache-2.0" ]
null
null
null
Py_lab/Lab 1,2/matrix.py
veterinarian-5300/Genious-Python-Code-Generator
d78cd5f4b64221e8e4dc80d6e1f5ba0a4c613bcd
[ "Apache-2.0" ]
null
null
null
# importing numpy import numpy as np matrix = np.array([[2,4,6,10], [5,10,15,20], [7,14,21,28]]) print(matrix.shape) print(matrix.size) print(matrix.ndim)
15.181818
31
0.640719
7946cb641be9226b28a29f244355bb4c48eb2304
3,121
py
Python
app/app/settings.py
BINAYKUMAR943/recipe-app-api
ce70ba8df09ac4df76250a26a9a2950f8044abf2
[ "MIT" ]
null
null
null
app/app/settings.py
BINAYKUMAR943/recipe-app-api
ce70ba8df09ac4df76250a26a9a2950f8044abf2
[ "MIT" ]
null
null
null
app/app/settings.py
BINAYKUMAR943/recipe-app-api
ce70ba8df09ac4df76250a26a9a2950f8044abf2
[ "MIT" ]
null
null
null
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
24.968
91
0.69497
7946cbcfaf3c637be4fdc13d7b4bb36ec9ff0f8d
5,285
py
Python
travels/views.py
adrianboratyn/TripRecommendations
d3e5a10d80c405d5ac22f028be54c8198bc10410
[ "MIT" ]
null
null
null
travels/views.py
adrianboratyn/TripRecommendations
d3e5a10d80c405d5ac22f028be54c8198bc10410
[ "MIT" ]
null
null
null
travels/views.py
adrianboratyn/TripRecommendations
d3e5a10d80c405d5ac22f028be54c8198bc10410
[ "MIT" ]
2
2021-06-26T13:03:22.000Z
2021-06-27T10:47:59.000Z
from django.contrib import messages from .models import Trip, TripPicture, TripDates, Polling, TripReservation from django.views.generic.edit import CreateView from .forms import TripReservationForm, PollingForm from django.views.generic.list import ListView from django.views.generic import DetailView from django.views...
36.958042
111
0.674551
7946cc394fc1966e217460a5675b0c3d76ec4447
2,483
py
Python
lib/flowbber/args.py
simiolabs/flowbber
f306d9ade30a807d0b5c61620bbb528830e4bd8f
[ "Apache-2.0" ]
null
null
null
lib/flowbber/args.py
simiolabs/flowbber
f306d9ade30a807d0b5c61620bbb528830e4bd8f
[ "Apache-2.0" ]
1
2019-02-21T19:26:34.000Z
2019-02-21T19:26:34.000Z
lib/flowbber/args.py
simiolabs/flowbber
f306d9ade30a807d0b5c61620bbb528830e4bd8f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2017 KuraLabs S.R.L # # 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 applicabl...
24.106796
78
0.653645
7946ccf65fb3c95db7e70c25021c9e6569e68a68
3,320
py
Python
benchmarks/benchmarks/bench_ufunc.py
leifdenby/numpy
4750c2810c5e0943cbea8e2acc0337c4e66a9bb2
[ "BSD-3-Clause" ]
1
2021-01-06T21:28:45.000Z
2021-01-06T21:28:45.000Z
benchmarks/benchmarks/bench_ufunc.py
leifdenby/numpy
4750c2810c5e0943cbea8e2acc0337c4e66a9bb2
[ "BSD-3-Clause" ]
null
null
null
benchmarks/benchmarks/bench_ufunc.py
leifdenby/numpy
4750c2810c5e0943cbea8e2acc0337c4e66a9bb2
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function from .common import Benchmark, squares_ import numpy as np ufuncs = ['abs', 'absolute', 'add', 'arccos', 'arccosh', 'arcsin', 'arcsinh', 'arctan', 'arctan2', 'arctanh', 'bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor', 'cb...
28.376068
76
0.569578
7946cd4ad6664caeba3a1f92dd7e55d2cdc87a72
12,167
py
Python
salt/cli/caller.py
JesseRhoads/salt
bd5395ea85956e064970710aae03398cbd1b20f5
[ "Apache-2.0" ]
1
2020-10-02T02:29:25.000Z
2020-10-02T02:29:25.000Z
salt/cli/caller.py
JesseRhoads/salt
bd5395ea85956e064970710aae03398cbd1b20f5
[ "Apache-2.0" ]
null
null
null
salt/cli/caller.py
JesseRhoads/salt
bd5395ea85956e064970710aae03398cbd1b20f5
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' The caller module is used as a front-end to manage direct calls to the salt minion modules. ''' # Import python libs from __future__ import print_function import os import sys import logging import datetime import traceback # Import salt libs import salt.exitcodes import salt.loader import...
34.370056
106
0.552396
7946cd55b64e51763b83ef66b394e961275ca224
579
py
Python
src/multilingual/context_processors.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
src/multilingual/context_processors.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
src/multilingual/context_processors.py
daniel-werner/stelagifts
809cb70f98a1ead3acbc2fd6aea99a87fdfd9435
[ "MIT" ]
null
null
null
from multilingual.languages import get_language_code_list, get_default_language_code from multilingual.settings import LANG_DICT from django.conf import settings def multilingual(request): """ Returns context variables containing information about available languages. """ codes = sorted(get_language_c...
38.6
84
0.740933
7946cd9e3c1d170db9f3c449fc30a4c10ff631e4
3,458
py
Python
dcnow.py
sairuk/dreampi
8aba6801059433b93bb2fc44e29fc4e0b44e03e9
[ "MIT" ]
null
null
null
dcnow.py
sairuk/dreampi
8aba6801059433b93bb2fc44e29fc4e0b44e03e9
[ "MIT" ]
null
null
null
dcnow.py
sairuk/dreampi
8aba6801059433b93bb2fc44e29fc4e0b44e03e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import threading import os import json import time import logging import sh # python3 first then python2 try: import urllib2 as urlh except ImportError: import urllib.request as urlh try: import urllib.parse as urlp except: import urllib as urlp from hashlib import sha256 fr...
28.578512
104
0.593985
7946ce3f7f98959e1db957cffd5879b5c089d44e
1,963
py
Python
tmt/steps/prepare/shell.py
pkis/tmt
66fa6417bb5483fd3a432f008e863f6ad9003501
[ "MIT" ]
2
2022-03-04T05:57:48.000Z
2022-03-09T18:49:02.000Z
tmt/steps/prepare/shell.py
pkis/tmt
66fa6417bb5483fd3a432f008e863f6ad9003501
[ "MIT" ]
91
2022-02-15T14:09:03.000Z
2022-03-31T16:05:28.000Z
tmt/steps/prepare/shell.py
pkis/tmt
66fa6417bb5483fd3a432f008e863f6ad9003501
[ "MIT" ]
5
2022-02-21T08:02:23.000Z
2022-03-26T16:43:46.000Z
import click import fmf import tmt import tmt.utils class PrepareShell(tmt.steps.prepare.PreparePlugin): """ Prepare guest using shell scripts Example config: prepare: how: shell script: - sudo dnf install -y 'dnf-command(copr)' - sudo dnf copr enable -y psss/tmt ...
28.867647
75
0.599083
7946ce633331354ca9497b9f24c80f10a3b1734d
213
py
Python
c-series/c015.py
TheLurkingCat/ZeroJudge
6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee
[ "MIT" ]
1
2018-10-21T10:03:42.000Z
2018-10-21T10:03:42.000Z
c-series/c015.py
TheLurkingCat/ZeroJudge
6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee
[ "MIT" ]
null
null
null
c-series/c015.py
TheLurkingCat/ZeroJudge
6fc49c54a45e2b4b3a8d04b7a5a1fc81a2ff4eee
[ "MIT" ]
2
2018-10-12T16:40:11.000Z
2021-04-05T12:05:36.000Z
a = int(input()) for _ in range(a): x = input() y = x[::-1] counter = 0 while x != y or not counter: x = str(int(x) + int(y)) y = x[::-1] counter += 1 print(counter, x)
19.363636
32
0.43662
7946cf7921705a2305b6f5a228f1cf14353b33ba
3,811
py
Python
14A-235/HI/imaging/ebhis_regrid_m31.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
1
2019-04-11T00:37:56.000Z
2019-04-11T00:37:56.000Z
14A-235/HI/imaging/ebhis_regrid_m31.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
null
null
null
14A-235/HI/imaging/ebhis_regrid_m31.py
Astroua/LocalGroup-VLA
4920341c9e25343d724fb4a2e37cdcd234201047
[ "MIT" ]
null
null
null
''' Regrid the EBHIS data to match the 14A footprint. ''' from astropy.io import fits from astropy.wcs import WCS from spectral_cube import SpectralCube from astropy.utils.console import ProgressBar import numpy as np import os import astropy.units as u from cube_analysis.io_utils import create_huge_fits from paths...
29.773438
93
0.672264
7946cf8c7f3eb96ef44a8f0c9536655228aabbf3
6,629
py
Python
.modules/.CMSeeK/cmsbrute/joom.py
termux-one/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
1,103
2018-04-20T14:08:11.000Z
2022-03-29T06:22:43.000Z
.modules/.CMSeeK/cmsbrute/joom.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
29
2019-04-03T14:52:38.000Z
2022-03-24T12:33:05.000Z
.modules/.CMSeeK/cmsbrute/joom.py
sshourya948/EasY_HaCk
0a8d09ca4b126b027b6842e02fa0c29d8250e090
[ "Apache-2.0" ]
161
2018-04-20T15:57:12.000Z
2022-03-15T19:16:16.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- # This is a part of CMSeeK, check the LICENSE file for more information # Copyright (c) 2018 Tuhinshubhra ### Joomla Bruteforce module ### Version 1.3 ### This thing took a whole freaking night to build... apperently i was dealing with the cookies in a not so "Wise" manner! ##...
44.193333
169
0.559964
7946d095939bc8bd45fc2c84022a1475a3f77ace
2,071
py
Python
krux_redis/sentinel.py
krux/python-krux-redis
a7b1723a21001ec5d67271f170bc6b1ea6e7f98e
[ "MIT" ]
null
null
null
krux_redis/sentinel.py
krux/python-krux-redis
a7b1723a21001ec5d67271f170bc6b1ea6e7f98e
[ "MIT" ]
null
null
null
krux_redis/sentinel.py
krux/python-krux-redis
a7b1723a21001ec5d67271f170bc6b1ea6e7f98e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # © 2017 Krux, A Salesforce Company # from __future__ import absolute_import from redis.sentinel import ConnectionError, Sentinel from krux.cli import Application from krux_redis.cli import add_sentinel_cli_arguments SEPARATOR = ':' SOCKET_TIMEOUT = 0.1 def hostport_from_string(spec): ...
27.986486
80
0.668759
7946d0ca8d02f13664bad960a24f0f16e4be5b1b
1,583
py
Python
fn_pastebin/fn_pastebin/util/customize.py
lmahoney1/resilient-community-apps
1f60fb100e6a697df7b901d7a4aad707fea3dfee
[ "MIT" ]
null
null
null
fn_pastebin/fn_pastebin/util/customize.py
lmahoney1/resilient-community-apps
1f60fb100e6a697df7b901d7a4aad707fea3dfee
[ "MIT" ]
null
null
null
fn_pastebin/fn_pastebin/util/customize.py
lmahoney1/resilient-community-apps
1f60fb100e6a697df7b901d7a4aad707fea3dfee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Generate the Resilient customizations required for fn_pastebin""" import base64 import os import io try: from resilient import ImportDefinition except ImportError: # Support Apps running on resilient-circuits < v35.0.195 from resilient_circuits.util import ImportDefinition RES_...
26.830508
68
0.651927
7946d18dc48b97ddd1a993a15f718ef34f18fa6c
4,816
py
Python
tests/unit/preprocessor/_regrid/test__stock_cube.py
markelg/ESMValCore
b2f7ffc3232f174dd5ebc50ad20b4a02d3517c2c
[ "Apache-2.0" ]
26
2019-06-07T07:50:07.000Z
2022-03-22T21:04:01.000Z
tests/unit/preprocessor/_regrid/test__stock_cube.py
markelg/ESMValCore
b2f7ffc3232f174dd5ebc50ad20b4a02d3517c2c
[ "Apache-2.0" ]
1,370
2019-06-06T09:03:07.000Z
2022-03-31T04:37:20.000Z
tests/unit/preprocessor/_regrid/test__stock_cube.py
zklaus/ESMValCore
5656fb8b546eeb4d750a424de7ed56a237edfabb
[ "Apache-2.0" ]
26
2019-07-03T13:08:48.000Z
2022-03-02T16:08:47.000Z
""" Unit tests for the :func:`esmvalcore.preprocessor.regrid._stock_cube` function. """ import unittest from unittest import mock import iris import numpy as np import tests from esmvalcore.preprocessor._regrid import (_LAT_MAX, _LAT_MIN, _LAT_RANGE, _LON_MAX, _LON_MIN, ...
39.47541
77
0.603405
7946d21359bfccd19b277796022012201f672ce9
1,943
py
Python
avwx_account/views/token.py
flyinactor91/AVWX-Account
29f3b9226699243966f9c7b041e94773c79d0314
[ "MIT" ]
1
2019-09-14T02:20:04.000Z
2019-09-14T02:20:04.000Z
avwx_account/views/token.py
flyinactor91/AVWX-Account
29f3b9226699243966f9c7b041e94773c79d0314
[ "MIT" ]
null
null
null
avwx_account/views/token.py
flyinactor91/AVWX-Account
29f3b9226699243966f9c7b041e94773c79d0314
[ "MIT" ]
1
2019-03-23T09:34:50.000Z
2019-03-23T09:34:50.000Z
""" Token management views """ # library from flask import flash, redirect, render_template, request, url_for from flask_user import login_required, current_user # app from avwx_account import app @app.route("/token/new") @login_required def new_token(): if current_user.new_token(): current_user.save() ...
29.439394
81
0.664951
7946d24dccf22d442eae14407c544ec50c0e0e8c
4,306
py
Python
core/pycopia/OS/Linux/sequencer.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
3
2018-11-26T15:00:20.000Z
2022-01-28T23:17:58.000Z
core/pycopia/OS/Linux/sequencer.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
null
null
null
core/pycopia/OS/Linux/sequencer.py
kdart/pycopia3
8a7c820f096245411eabbb72345e4f30a35988b6
[ "Apache-2.0" ]
1
2018-11-26T15:00:21.000Z
2018-11-26T15:00:21.000Z
#!/usr/bin/python3.4 # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab # 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 app...
29.696552
104
0.627497
7946d2b66ed76d196e36b1a6b37ca2f7c96baabe
2,685
py
Python
example.py
andrew-ld/async_worker.py
013b95e8a2f763c62fcc53d11e9c5dc330aec81d
[ "MIT" ]
1
2020-02-06T18:00:04.000Z
2020-02-06T18:00:04.000Z
example.py
andrew-ld/async_worker.py
013b95e8a2f763c62fcc53d11e9c5dc330aec81d
[ "MIT" ]
null
null
null
example.py
andrew-ld/async_worker.py
013b95e8a2f763c62fcc53d11e9c5dc330aec81d
[ "MIT" ]
null
null
null
# This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publish, use, compile, sell, or # distribute this software, either in source code form or as a compiled # binary, for any purpose, commercial or non-commercial, and by any # means. # # In jurisdictions that rec...
29.184783
73
0.6946
7946d2c9f7c2c62f417f9c97900d44f5cf2d7411
75,989
py
Python
tests/python/proton_tests/engine.py
Azure/qpid-proton
fa784b1f3c4f3dbd6b143d5cceda10bf76da23a5
[ "Apache-2.0" ]
2
2020-04-28T13:33:06.000Z
2020-06-01T14:51:05.000Z
tests/python/proton_tests/engine.py
Azure/qpid-proton
fa784b1f3c4f3dbd6b143d5cceda10bf76da23a5
[ "Apache-2.0" ]
null
null
null
tests/python/proton_tests/engine.py
Azure/qpid-proton
fa784b1f3c4f3dbd6b143d5cceda10bf76da23a5
[ "Apache-2.0" ]
4
2015-10-17T20:44:45.000Z
2021-06-08T19:00:56.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...
28.816458
107
0.660332
7946d30e82212c9e486fe9a21d659274868ebddb
587
py
Python
output/models/nist_data/atomic/g_year_month/schema_instance/nistschema_sv_iv_atomic_g_year_month_max_exclusive_2_xsd/nistschema_sv_iv_atomic_g_year_month_max_exclusive_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/nist_data/atomic/g_year_month/schema_instance/nistschema_sv_iv_atomic_g_year_month_max_exclusive_2_xsd/nistschema_sv_iv_atomic_g_year_month_max_exclusive_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/nist_data/atomic/g_year_month/schema_instance/nistschema_sv_iv_atomic_g_year_month_max_exclusive_2_xsd/nistschema_sv_iv_atomic_g_year_month_max_exclusive_2.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import Optional from xsdata.models.datatype import XmlPeriod __NAMESPACE__ = "NISTSchema-SV-IV-atomic-gYearMonth-maxExclusive-2-NS" @dataclass class NistschemaSvIvAtomicGYearMonthMaxExclusive2: class Meta: name = "NISTSchema-SV-IV-atomic-gYearMonth-max...
27.952381
74
0.696763
7946d74dda46d11ef61b21b248bd176363c3b8dd
6,268
py
Python
pymc3/step_methods/hmc/trajectory.py
vpolisky/pymc3
87cdd712c86321121c2ed3150764f3d847f5083c
[ "Apache-2.0" ]
null
null
null
pymc3/step_methods/hmc/trajectory.py
vpolisky/pymc3
87cdd712c86321121c2ed3150764f3d847f5083c
[ "Apache-2.0" ]
null
null
null
pymc3/step_methods/hmc/trajectory.py
vpolisky/pymc3
87cdd712c86321121c2ed3150764f3d847f5083c
[ "Apache-2.0" ]
1
2021-04-13T10:31:26.000Z
2021-04-13T10:31:26.000Z
from collections import namedtuple from pymc3.theanof import join_nonshared_inputs, gradient, CallableTensor import theano import theano.tensor as tt Hamiltonian = namedtuple("Hamiltonian", "logp, dlogp, pot") def _theano_hamiltonian(model_vars, shared, logpt, potential): """Creates a Hamiltonian with shared ...
33.164021
97
0.662093
7946d8141892428550b4cf2a571578307e8dcfdd
1,643
py
Python
setup.py
catalystneuro/ndx-labmetadata-giocomo
0371ef86be78eb017fcdaf28cc908d7a6b6c1a1f
[ "BSD-3-Clause" ]
null
null
null
setup.py
catalystneuro/ndx-labmetadata-giocomo
0371ef86be78eb017fcdaf28cc908d7a6b6c1a1f
[ "BSD-3-Clause" ]
1
2019-11-05T10:45:52.000Z
2019-11-19T04:56:49.000Z
setup.py
catalystneuro/ndx-labmetadata-giocomo
0371ef86be78eb017fcdaf28cc908d7a6b6c1a1f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import os from setuptools import setup, find_packages from shutil import copy2 # Get the long description from the README file with open('README.md', 'r') as f: long_description = f.read() # Get requirements with open('requirements.txt') as f: install_requires = f.read().strip().spl...
32.215686
95
0.684723
7946d958ce438a2697165fcb4c6b74fbf665ad86
2,883
py
Python
examples/ExecutionPools/Remote/tasks.py
kelliott55/testplan
05d20033ac64a1dd6673ab6f70208b22ce17c545
[ "Apache-2.0" ]
null
null
null
examples/ExecutionPools/Remote/tasks.py
kelliott55/testplan
05d20033ac64a1dd6673ab6f70208b22ce17c545
[ "Apache-2.0" ]
null
null
null
examples/ExecutionPools/Remote/tasks.py
kelliott55/testplan
05d20033ac64a1dd6673ab6f70208b22ce17c545
[ "Apache-2.0" ]
null
null
null
"""TCP connections tests to be executed in parallel in a remote pool.""" import os import time from testplan.testing.multitest import MultiTest, testsuite, testcase from testplan.common.utils.context import context from testplan.testing.multitest.driver.tcp import TCPServer, TCPClient def after_start(env): """...
30.670213
74
0.602151
7946d98924c3b6ea4269463247b8b55d968a3282
409
py
Python
main/migrations/0002_activity_age_grade.py
cablespaghetti/running-club-challenge
46bc289084c5c089154f456ac2b8901924653ead
[ "MIT" ]
null
null
null
main/migrations/0002_activity_age_grade.py
cablespaghetti/running-club-challenge
46bc289084c5c089154f456ac2b8901924653ead
[ "MIT" ]
null
null
null
main/migrations/0002_activity_age_grade.py
cablespaghetti/running-club-challenge
46bc289084c5c089154f456ac2b8901924653ead
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-17 22:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0001_initial'), ] operations = [ migrations.AddField( model_name='activity', name='age_grade', fie...
20.45
50
0.584352
7946da2979f14377d08c1c1b154b71552f08e332
3,456
py
Python
docusign_esign/models/credential.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
null
null
null
docusign_esign/models/credential.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
null
null
null
docusign_esign/models/credential.py
pivotal-energy-solutions/docusign-python-client
f3edd0b82e57999bc8848a63a0477712714ee437
[ "MIT" ]
1
2021-04-26T20:52:45.000Z
2021-04-26T20:52:45.000Z
# coding: utf-8 """ DocuSign REST API The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. OpenAPI spec version: v2 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from ppr...
24.510638
126
0.520255
7946db4208ecec6801584c7458f2f5294d3c9166
9,246
py
Python
pyrolite/comp/codata.py
JustinGOSSES/pyrolite
21eb5b28d9295625241b73b820fc8892b00fc6b0
[ "BSD-3-Clause" ]
1
2020-03-13T07:11:47.000Z
2020-03-13T07:11:47.000Z
pyrolite/comp/codata.py
JustinGOSSES/pyrolite
21eb5b28d9295625241b73b820fc8892b00fc6b0
[ "BSD-3-Clause" ]
null
null
null
pyrolite/comp/codata.py
JustinGOSSES/pyrolite
21eb5b28d9295625241b73b820fc8892b00fc6b0
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import pandas as pd import scipy.stats as scpstats import scipy.special as scpspec # from .renorm import renormalise, close from ..util.math import orthogonal_basis_default, orthogonal_basis_from_array import logging logging.getLogger(__name__).addHandler(logging.NullHandler()) logger = logging.get...
26.8
88
0.578953
7946dc1f42a18eb7e6cefea59ca3edb384bf7eca
27,016
py
Python
tf_quant_finance/models/hjm/swaption_pricing.py
slowy07/tf-quant-finance
0976f720fb58a2d7bfd863640c12a2425cd2f94f
[ "Apache-2.0" ]
3,138
2019-07-24T21:43:17.000Z
2022-03-30T12:11:09.000Z
tf_quant_finance/models/hjm/swaption_pricing.py
slowy07/tf-quant-finance
0976f720fb58a2d7bfd863640c12a2425cd2f94f
[ "Apache-2.0" ]
63
2019-09-07T19:16:03.000Z
2022-03-29T19:29:40.000Z
tf_quant_finance/models/hjm/swaption_pricing.py
slowy07/tf-quant-finance
0976f720fb58a2d7bfd863640c12a2425cd2f94f
[ "Apache-2.0" ]
423
2019-07-26T21:28:05.000Z
2022-03-26T13:07:44.000Z
# Lint as: python3 # Copyright 2020 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
45.867572
85
0.700733
7946dc203416f2713d1e67e1424d11f3493629b1
35
py
Python
rhsa_mapper/__init__.py
programmerchad/rhsa_mapper
94fedb215697bcbfea5a262bdba471a4de5dce07
[ "MIT" ]
null
null
null
rhsa_mapper/__init__.py
programmerchad/rhsa_mapper
94fedb215697bcbfea5a262bdba471a4de5dce07
[ "MIT" ]
null
null
null
rhsa_mapper/__init__.py
programmerchad/rhsa_mapper
94fedb215697bcbfea5a262bdba471a4de5dce07
[ "MIT" ]
null
null
null
from rhsa_mapper.main import rhsam
17.5
34
0.857143
7946dc89cbc40d038684841b6e14631bc54aff7a
5,545
py
Python
backends/ebpf/targets/ebpfstf.py
anasyrmia/p4c-1
2bf2f615fdaaf4efed1f2f8ab0b3f3261cface60
[ "Apache-2.0" ]
487
2016-12-22T03:33:27.000Z
2022-03-29T06:36:45.000Z
backends/ebpf/targets/ebpfstf.py
anasyrmia/p4c-1
2bf2f615fdaaf4efed1f2f8ab0b3f3261cface60
[ "Apache-2.0" ]
2,114
2016-12-18T11:36:27.000Z
2022-03-31T22:33:23.000Z
backends/ebpf/targets/ebpfstf.py
anasyrmia/p4c-1
2bf2f615fdaaf4efed1f2f8ab0b3f3261cface60
[ "Apache-2.0" ]
456
2016-12-20T14:01:11.000Z
2022-03-30T19:26:05.000Z
#!/usr/bin/env python3 # Copyright 2018 VMware, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.380597
104
0.581785
7946dd5489f1c2f18f785031a6574bb3a67cfa97
5,703
py
Python
bindings/python/ensmallen_graph/datasets/networkrepository/sw10040d2trial3.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/networkrepository/sw10040d2trial3.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/networkrepository/sw10040d2trial3.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph SW-100-4-0d2-trial3. The graph is automatically retrieved from the NetworkRepository repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Dateti...
31.860335
94
0.682799
7946dedb29967a5ff96a8d7cd312b2fd2bc51b15
6,859
py
Python
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
3
2020-12-07T04:07:04.000Z
2021-08-19T10:41:08.000Z
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
2
2020-12-10T19:12:02.000Z
2020-12-10T19:12:08.000Z
notebooks/02_crash_severity.py
jennan/crash_prediction
498b59704ed2aca61c78e4eb7c5558abe9edaffc
[ "MIT" ]
2
2021-04-14T14:32:39.000Z
2021-12-10T10:36:59.000Z
# # Exploration of the crash severity information in CAS data # # In this notebook, we will explore the severity of crashes, as it will be the # target of our predictive models. from pathlib import Path import numpy as np import pandas as pd import scipy.stats as st import matplotlib.pyplot as plt import seaborn as s...
30.896396
85
0.697478
7946e12304748268eca61f0a6ae06157e1488ec4
2,394
py
Python
wagtail/contrib/wagtailstyleguide/views.py
hanpama/wagtail
e0e3cdc824b1acd9f9daa6d80b5455c969b385dd
[ "BSD-3-Clause" ]
null
null
null
wagtail/contrib/wagtailstyleguide/views.py
hanpama/wagtail
e0e3cdc824b1acd9f9daa6d80b5455c969b385dd
[ "BSD-3-Clause" ]
null
null
null
wagtail/contrib/wagtailstyleguide/views.py
hanpama/wagtail
e0e3cdc824b1acd9f9daa6d80b5455c969b385dd
[ "BSD-3-Clause" ]
1
2019-03-05T15:37:22.000Z
2019-03-05T15:37:22.000Z
from django import forms from django.shortcuts import render from django.utils.translation import ugettext as _ from django.core.paginator import Paginator from wagtail.wagtailadmin import messages from wagtail.wagtailadmin.forms import SearchForm from wagtail.wagtailadmin.widgets import AdminPageChooser, AdminDateInp...
35.205882
109
0.688805
7946e1da26e31003cfd09c19b3079fe28995bc79
1,539
py
Python
statement_parser/validators/total.py
jamiehannaford/statement-parser
93925b5903a4570f66f3e7b7d5d839412bde1da0
[ "MIT" ]
5
2021-09-01T03:27:02.000Z
2022-03-31T16:31:23.000Z
statement_parser/validators/total.py
jamiehannaford/statement-parser
93925b5903a4570f66f3e7b7d5d839412bde1da0
[ "MIT" ]
null
null
null
statement_parser/validators/total.py
jamiehannaford/statement-parser
93925b5903a4570f66f3e7b7d5d839412bde1da0
[ "MIT" ]
null
null
null
import math from xbrl.instance import NumericFact class TotalValidator: def __init__(self, instance): self.instance = instance def isclose(self, a, b, sf=None): if sf: return math.isclose(a, b, abs_tol=10**-sf) else: return math.isclose(a, b) def check_list...
30.78
103
0.564003
7946e3e6bb1b2c2257bc3ddbd58b9908807462ce
1,501
py
Python
tests/spot/mining/test_mining_worker.py
fossabot/binance-connector-python
bab18df22ba57b407b15dd0a9147cd75e6389b9e
[ "MIT" ]
1
2021-08-05T03:36:24.000Z
2021-08-05T03:36:24.000Z
tests/spot/mining/test_mining_worker.py
fossabot/binance-connector-python
bab18df22ba57b407b15dd0a9147cd75e6389b9e
[ "MIT" ]
2
2021-07-12T11:18:55.000Z
2021-07-12T11:28:19.000Z
tests/spot/mining/test_mining_worker.py
fossabot/binance-connector-python
bab18df22ba57b407b15dd0a9147cd75e6389b9e
[ "MIT" ]
1
2021-07-10T20:50:04.000Z
2021-07-10T20:50:04.000Z
import responses from urllib.parse import urlencode from tests.util import random_str from tests.util import mock_http_response from binance.spot import Spot as Client from binance.error import ParameterRequiredError, ClientError mock_item = {"key_1": "value_1", "key_2": "value_2"} key = random_str() secret = random...
27.796296
92
0.726849
7946e5482b750680a3cad702affab9514421a401
2,936
py
Python
paramak/parametric_components/center_column_circular.py
billingsley-john/paramak
127d064f7bc0fd26305b4d83776d66b0e12aeeb0
[ "MIT" ]
null
null
null
paramak/parametric_components/center_column_circular.py
billingsley-john/paramak
127d064f7bc0fd26305b4d83776d66b0e12aeeb0
[ "MIT" ]
null
null
null
paramak/parametric_components/center_column_circular.py
billingsley-john/paramak
127d064f7bc0fd26305b4d83776d66b0e12aeeb0
[ "MIT" ]
null
null
null
from typing import Optional, Tuple from paramak import RotateMixedShape class CenterColumnShieldCircular(RotateMixedShape): """A center column shield volume with a circular outer profile and constant cylindrical inner profile. Args: height: height of the center column shield (cm). inner_...
30.905263
82
0.633515
7946e605e141a38b13ce9411d114e04308c8a19f
460
py
Python
StringMe.py
akey7/supreme-enigma
a724c1cd26f6fc82d7c3f988a62d9bfefed6f750
[ "MIT" ]
null
null
null
StringMe.py
akey7/supreme-enigma
a724c1cd26f6fc82d7c3f988a62d9bfefed6f750
[ "MIT" ]
6
2019-08-30T04:08:52.000Z
2019-08-30T15:23:48.000Z
StringMe.py
akey7/supreme-enigma
a724c1cd26f6fc82d7c3f988a62d9bfefed6f750
[ "MIT" ]
null
null
null
class StringMe: def __init__(self, source): self.source = source def is_palindrome(self, test_me=None): if test_me is None: test_me = self.source if len(test_me) < 2: return True elif test_me[0] != test_me[-1]: return False else: ...
21.904762
52
0.552174
7946e64f2ee649e2b91285c3654eb78ff026e7ce
2,201
py
Python
run.py
semihcanturk/PyTorch-VAE
ee881337f75cc47f54e164142073714eed43dd0a
[ "Apache-2.0" ]
null
null
null
run.py
semihcanturk/PyTorch-VAE
ee881337f75cc47f54e164142073714eed43dd0a
[ "Apache-2.0" ]
null
null
null
run.py
semihcanturk/PyTorch-VAE
ee881337f75cc47f54e164142073714eed43dd0a
[ "Apache-2.0" ]
null
null
null
import yaml import argparse import numpy as np from models import * from experiment import VAEXperiment import torch.backends.cudnn as cudnn from pytorch_lightning import Trainer from pytorch_lightning.loggers import TestTubeLogger from pytorch_lightning.callbacks import ModelCheckpoint if __name__ == '__main__': ...
34.390625
150
0.606542
7946e6ed355d68d1b718da4578a4d9ae9ff16584
458
py
Python
models/dummynet.py
LendelTheGreat/weak-segmentation
0ff6015f1af741cfb50ef8fb6f55cea822f68f7a
[ "MIT" ]
1
2020-11-04T03:00:44.000Z
2020-11-04T03:00:44.000Z
models/dummynet.py
LendelTheGreat/weak-segmentation
0ff6015f1af741cfb50ef8fb6f55cea822f68f7a
[ "MIT" ]
null
null
null
models/dummynet.py
LendelTheGreat/weak-segmentation
0ff6015f1af741cfb50ef8fb6f55cea822f68f7a
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class DummyNet(nn.Module): def __init__(self): super(DummyNet, self).__init__() self.conv1 = nn.Conv2d(3, 10, kernel_size=5, padding=2) self.conv2 = nn.Conv2d(10, 5, kernel_size=5, padding=2) self.softmax = nn.Softma...
26.941176
63
0.60917
7946e9e1061e7f3c202f7300dd0bf44dc923b516
520
py
Python
day2/netmikox/collateral/netmiko_example1.py
austind/pyplus-ons
f0fcd6b2a980f75968ab54cd2ae39b42c1f68302
[ "Apache-2.0" ]
null
null
null
day2/netmikox/collateral/netmiko_example1.py
austind/pyplus-ons
f0fcd6b2a980f75968ab54cd2ae39b42c1f68302
[ "Apache-2.0" ]
null
null
null
day2/netmikox/collateral/netmiko_example1.py
austind/pyplus-ons
f0fcd6b2a980f75968ab54cd2ae39b42c1f68302
[ "Apache-2.0" ]
5
2019-11-19T18:41:41.000Z
2020-06-18T14:58:09.000Z
#!/usr/bin/env python from getpass import getpass from netmiko import ConnectHandler if __name__ == "__main__": password = getpass("Enter password: ") cisco3 = { "device_type": "cisco_ios", "host": "cisco3.lasthop.io", "username": "pyclass", "password": password, "sessi...
26
56
0.648077
7946eaa0e993062333c4d08e262c3bf3da8fac09
4,237
py
Python
stubs.min/System/Windows/Forms/__init___parts/Cursor.py
ricardyn/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
1
2021-02-02T13:39:16.000Z
2021-02-02T13:39:16.000Z
stubs.min/System/Windows/Forms/__init___parts/Cursor.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
stubs.min/System/Windows/Forms/__init___parts/Cursor.py
hdm-dt-fb/ironpython-stubs
4d2b405eda3ceed186e8adca55dd97c332c6f49d
[ "MIT" ]
null
null
null
class Cursor(object,IDisposable,ISerializable): """ Represents the image used to paint the mouse pointer. Cursor(handle: IntPtr) Cursor(stream: Stream) Cursor(fileName: str) Cursor(type: Type,resource: str) """ def CopyHandle(self): """ CopyHandle(self: Cursor) -> IntPtr Copies t...
26.987261
215
0.661317
7946eb9845b5bd62949017b4a02a2372adad6700
1,599
py
Python
Car.py
Researchnix/Taco
4946fa996638f7fd6704d14ab029c208bf625707
[ "MIT" ]
null
null
null
Car.py
Researchnix/Taco
4946fa996638f7fd6704d14ab029c208bf625707
[ "MIT" ]
null
null
null
Car.py
Researchnix/Taco
4946fa996638f7fd6704d14ab029c208bf625707
[ "MIT" ]
null
null
null
# # Car.py # Taco --- SPH Innovation Challenge # # Created by Mat, Kon and Len on 2017-03-11. # Copyright 2016 Researchnix. All rights reserved. # import collections class Car: # ID of the car ID = "" # starting point of the car start = 0 # departure and arrival time stamps startTime =...
23.173913
75
0.614134