hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
96de8cfd18855bd3db54e341bcf82c6193cb52f1
1,213
py
Python
web-server/webserver/urls.py
ApLight/groenlandicus
61d230d2b1de0674424c2ea00d2d256f7a68db2e
[ "MIT" ]
null
null
null
web-server/webserver/urls.py
ApLight/groenlandicus
61d230d2b1de0674424c2ea00d2d256f7a68db2e
[ "MIT" ]
14
2018-09-01T07:41:10.000Z
2018-09-01T19:41:11.000Z
web-server/webserver/urls.py
ApLight/groenlandicus
61d230d2b1de0674424c2ea00d2d256f7a68db2e
[ "MIT" ]
null
null
null
"""webserver URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
37.90625
80
0.718054
0
0
0
0
0
0
0
0
782
0.644683
96df38e80d482351507d9e44ebf768c69656d95b
958
py
Python
pasteScripts.py
alexanderbeatson/electiondashboard
8567e183a61c4e0b9e3f6ff0ee30acb61be93f15
[ "MIT" ]
null
null
null
pasteScripts.py
alexanderbeatson/electiondashboard
8567e183a61c4e0b9e3f6ff0ee30acb61be93f15
[ "MIT" ]
null
null
null
pasteScripts.py
alexanderbeatson/electiondashboard
8567e183a61c4e0b9e3f6ff0ee30acb61be93f15
[ "MIT" ]
null
null
null
def main(): mainFile = open("index.html", 'r', encoding='utf-8') writeFile = open("index_pasted.html", 'w+', encoding='utf-8') classId = 'class="internal"' cssId = '<link rel=' for line in mainFile: if (classId in line): pasteScript(line, writeFile) elif (cssId in line):...
28.176471
65
0.591858
0
0
0
0
0
0
0
0
159
0.165971
96dfc543c2de8dddb6e747e4e8c3935460f47a78
1,016
py
Python
apps/core/views.py
InfinityLoopA-Z/BigBoxChallenge
eb1b70412af6859032d78d23edfb4c588c17b8cd
[ "MIT" ]
null
null
null
apps/core/views.py
InfinityLoopA-Z/BigBoxChallenge
eb1b70412af6859032d78d23edfb4c588c17b8cd
[ "MIT" ]
null
null
null
apps/core/views.py
InfinityLoopA-Z/BigBoxChallenge
eb1b70412af6859032d78d23edfb4c588c17b8cd
[ "MIT" ]
null
null
null
from rest_framework import viewsets from django_filters.rest_framework import DjangoFilterBackend from . import models, serializers, filtersets, pagination class ActivityViewSet(viewsets.ModelViewSet): """A viewset of Activity model""" queryset = models.Activity.objects.all() serializer_class = serialize...
28.222222
61
0.744094
850
0.836614
0
0
0
0
0
0
112
0.110236
96e0ca518913b396a050050562a88480c52f946d
3,721
py
Python
hearthbreaker/cards/spells/neutral.py
souserge/hearthbreaker
481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7
[ "MIT" ]
429
2015-01-01T16:07:20.000Z
2022-03-16T22:30:50.000Z
hearthbreaker/cards/spells/neutral.py
souserge/hearthbreaker
481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7
[ "MIT" ]
47
2015-01-01T17:07:57.000Z
2018-05-07T10:49:37.000Z
hearthbreaker/cards/spells/neutral.py
souserge/hearthbreaker
481dcaa3ae13c7dc16c0e6b7f59f11c36fdb29a7
[ "MIT" ]
135
2015-01-12T21:52:17.000Z
2022-02-25T21:18:08.000Z
from hearthbreaker.cards.base import SpellCard from hearthbreaker.constants import CHARACTER_CLASS, CARD_RARITY from hearthbreaker.tags.base import BuffUntil, Buff from hearthbreaker.tags.event import TurnStarted from hearthbreaker.tags.status import Stealth, Taunt, Frozen import hearthbreaker.targeting class TheCoin...
34.775701
110
0.67025
3,226
0.866971
0
0
0
0
0
0
143
0.038431
96e125ec5aa02313a1615a9630dae1a661e5c4fd
2,339
py
Python
srgan_pytorch/utils/transform.py
nisargshah1999/SRGAN-PyTorch
093fba8ee4e571d71ac9644350bdd03a1a547765
[ "Apache-2.0" ]
2
2021-08-22T06:27:48.000Z
2021-08-22T06:36:43.000Z
srgan_pytorch/utils/transform.py
ekstra26/SRGAN-PyTorch
3cc4c034362070ba1e02549acca2088572fd7ec2
[ "Apache-2.0" ]
null
null
null
srgan_pytorch/utils/transform.py
ekstra26/SRGAN-PyTorch
3cc4c034362070ba1e02549acca2088572fd7ec2
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Dakewe Biotech Corporation. 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...
30.376623
91
0.68106
0
0
0
0
0
0
0
0
1,193
0.510047
96e210cba8e910f4151833c51c27bccda1cc8790
12,828
py
Python
dorado/ceres/ceresClass.py
Mucephie/DORADO
20c1742af7eef0265e670b1f600aea0a8021135b
[ "BSD-3-Clause" ]
null
null
null
dorado/ceres/ceresClass.py
Mucephie/DORADO
20c1742af7eef0265e670b1f600aea0a8021135b
[ "BSD-3-Clause" ]
13
2020-11-23T06:08:46.000Z
2021-09-10T03:24:57.000Z
dorado/ceres/ceresClass.py
Mucephie/DORADO
20c1742af7eef0265e670b1f600aea0a8021135b
[ "BSD-3-Clause" ]
null
null
null
import warnings warnings.filterwarnings('ignore') # import sys # import os import numpy as np import ccdprocx from astropy.time import Time from astropy.table import QTable, Table import astroalign as aa from astropy.wcs import WCS # from astropy.utils.console import ProgressBar, ProgressBarOrSpinner from tqdm import ...
40.0875
166
0.587933
11,286
0.879794
0
0
0
0
0
0
3,382
0.263642
96e2491a9adc0b19fb3614740c106c51b3b7bfed
610
py
Python
scrawl.py
I-mm/Lianjia-houseInfo
c3a22b200637ef65bd3c90e2fe20a7f2ee9144ea
[ "MIT" ]
null
null
null
scrawl.py
I-mm/Lianjia-houseInfo
c3a22b200637ef65bd3c90e2fe20a7f2ee9144ea
[ "MIT" ]
null
null
null
scrawl.py
I-mm/Lianjia-houseInfo
c3a22b200637ef65bd3c90e2fe20a7f2ee9144ea
[ "MIT" ]
null
null
null
import core import model import settings def get_communitylist(): res = [] for community in model.Community.select(): res.append(community.title) return res if __name__ == "__main__": regionlist = settings.REGIONLIST # only pinyin support model.database_init() core.GetHouseByRegionl...
29.047619
114
0.74918
0
0
0
0
0
0
0
0
127
0.208197
96e2e02958eb8b2f96b29096a9887913b5f2e8c3
733
py
Python
monitoring/deployment_manager/systems/configuration.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
null
null
null
monitoring/deployment_manager/systems/configuration.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
1
2021-11-29T21:53:39.000Z
2021-11-29T21:53:39.000Z
monitoring/deployment_manager/systems/configuration.py
interuss/InterUSS-Platform
099abaa1159c4c143f8f1fde6b88956c86608281
[ "Apache-2.0" ]
null
null
null
from typing import Optional from monitoring.monitorlib.typing import ImplicitDict from monitoring.deployment_manager.systems.dss.configuration import DSS from monitoring.deployment_manager.systems.test.configuration import Test class KubernetesCluster(ImplicitDict): name: str """Name of the Kubernetes clust...
27.148148
73
0.758527
497
0.678035
0
0
0
0
0
0
299
0.407913
96e2f6791d358888a299b482a3e7912cf3a6c4c5
627
py
Python
src/Broker_Instance/streamer.py
zxq0404/Raven
398e208330619d76c0236a43493f217c1dd198be
[ "RSA-MD" ]
null
null
null
src/Broker_Instance/streamer.py
zxq0404/Raven
398e208330619d76c0236a43493f217c1dd198be
[ "RSA-MD" ]
null
null
null
src/Broker_Instance/streamer.py
zxq0404/Raven
398e208330619d76c0236a43493f217c1dd198be
[ "RSA-MD" ]
null
null
null
import zmq def main(): try: context = zmq.Context(1) # Socket facing clients frontend = context.socket(zmq.PULL) frontend.bind("tcp://*:5556") # Socket facing services backend = context.socket(zmq.PUSH) backend.bind("tcp://*:5557") zmq.device(zmq.S...
24.115385
79
0.503987
0
0
0
0
0
0
0
0
111
0.177033
96e374927020d16c7dc665a056f81ae42d3dde0f
1,724
py
Python
tests/users/lists/items/test_people.py
mza921/trakt.py
391b02a509d6ccc367711e66c8789eea3de89161
[ "MIT" ]
null
null
null
tests/users/lists/items/test_people.py
mza921/trakt.py
391b02a509d6ccc367711e66c8789eea3de89161
[ "MIT" ]
null
null
null
tests/users/lists/items/test_people.py
mza921/trakt.py
391b02a509d6ccc367711e66c8789eea3de89161
[ "MIT" ]
null
null
null
# flake8: noqa: F403, F405 from tests.core import mock from trakt import Trakt from trakt.objects import Person from datetime import datetime from dateutil.tz import tzutc from hamcrest import * from httmock import HTTMock def test_basic(): with HTTMock(mock.fixtures, mock.unknown): with Trakt.configura...
26.523077
77
0.441415
0
0
0
0
0
0
0
0
430
0.24942
96e3d2507b0d0ae8602498cb1566776722035d2c
870
py
Python
code-challanges/401/linked_list/ll_merge/ll_merge.py
schoentr/data-structures-and-algorithms
535ac617a2ab32293014946b043bdb40a647d43b
[ "MIT" ]
null
null
null
code-challanges/401/linked_list/ll_merge/ll_merge.py
schoentr/data-structures-and-algorithms
535ac617a2ab32293014946b043bdb40a647d43b
[ "MIT" ]
1
2019-03-11T02:13:58.000Z
2019-03-11T02:13:58.000Z
code-challanges/401_code_challenges/linked_list/ll_merge/ll_merge.py
schoentr/data-structures-and-algorithms
535ac617a2ab32293014946b043bdb40a647d43b
[ "MIT" ]
null
null
null
from linked_list.linked_listf import LinkedList def ll_merge(list_A, list_B): curr_B = list_B.head curr_A = list_A.head temp_C = None while curr_A._next and curr_B: curr_B = list_B.head temp_A = curr_A._next temp_B = curr_B._next # if curr_B._next._next: # te...
21.75
47
0.636782
0
0
0
0
0
0
0
0
137
0.157471
96e3e6827970c8c66b107feb95851d4718ea2a5e
6,159
py
Python
wr_ks_reader.py
Kevin-Prichard/werobots-kickstarter-python
aa089f66dcd7defbfd7d06a1fb5821bb59ead10f
[ "BSD-2-Clause" ]
1
2020-10-27T11:06:19.000Z
2020-10-27T11:06:19.000Z
wr_ks_reader.py
Kevin-Prichard/werobots-kickstarter-python
aa089f66dcd7defbfd7d06a1fb5821bb59ead10f
[ "BSD-2-Clause" ]
null
null
null
wr_ks_reader.py
Kevin-Prichard/werobots-kickstarter-python
aa089f66dcd7defbfd7d06a1fb5821bb59ead10f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json, sys, copy, os, re import pprint import locale import csv locale.setlocale(locale.LC_ALL, 'en_US') from collections import defaultdict from operator import itemgetter pp = pprint.PrettyPrinter(indent=4) # For MacPorts ... need to eliminate TODO sys.path.append...
39.993506
139
0.599448
0
0
0
0
0
0
0
0
2,013
0.326839
96e5665a895a1fb9a756f3fb69c43aacf59d81ff
886
py
Python
partialflow/utils.py
jakob-bauer/partialflow
bea1b46ca66fb5c10aefbcd1570aff922a903118
[ "MIT" ]
3
2017-02-03T15:59:10.000Z
2020-05-23T07:26:10.000Z
partialflow/utils.py
jakob-bauer/partialflow
bea1b46ca66fb5c10aefbcd1570aff922a903118
[ "MIT" ]
null
null
null
partialflow/utils.py
jakob-bauer/partialflow
bea1b46ca66fb5c10aefbcd1570aff922a903118
[ "MIT" ]
1
2018-08-02T02:16:34.000Z
2018-08-02T02:16:34.000Z
import time class Timer(object): def __init__(self): self._start = 0 self._end = 0 def __enter__(self): self._start = time.time() return self def __exit__(self, exc_type, exc_val, exc_tb): self._end = time.time() @property def duration(self): if s...
24.611111
74
0.595937
869
0.980813
0
0
162
0.182844
0
0
43
0.048533
96e61a11791baafd8b6c85cae2fa69be8d6833f2
11,891
py
Python
scripts/cloud/aws/ops-ec2-add-snapshot-tag-to-ebs-volumes.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
164
2015-07-29T17:35:04.000Z
2021-12-16T16:38:04.000Z
scripts/cloud/aws/ops-ec2-add-snapshot-tag-to-ebs-volumes.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
3,634
2015-06-09T13:49:15.000Z
2022-03-23T20:55:44.000Z
scripts/cloud/aws/ops-ec2-add-snapshot-tag-to-ebs-volumes.py
fahlmant/openshift-tools
dbb4f16ccde3404c36c23108c45ca7b67138ee12
[ "Apache-2.0" ]
250
2015-06-08T19:53:11.000Z
2022-03-01T04:51:23.000Z
#!/usr/bin/env python # vim: expandtab:tabstop=4:shiftwidth=4 """ This is a script that can be used to tag EBS volumes in OpenShift v3. This script assume that your AWS credentials are setup in ~/.aws/credentials like this: [default] aws_access_key_id = xxxx aws_secret_access_key = xxxx Or that environmen...
50.6
114
0.641241
10,409
0.875368
0
0
0
0
0
0
3,256
0.273821
96e773f3eb8d9309f3f610d7802ef89439807320
3,679
py
Python
rush00/rush00/settings.py
ppichier/moviemon_game
556948b4763879c6c88d60037e4faf5f3555e432
[ "MIT" ]
null
null
null
rush00/rush00/settings.py
ppichier/moviemon_game
556948b4763879c6c88d60037e4faf5f3555e432
[ "MIT" ]
null
null
null
rush00/rush00/settings.py
ppichier/moviemon_game
556948b4763879c6c88d60037e4faf5f3555e432
[ "MIT" ]
null
null
null
""" Django settings for rush00 project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import os # ...
24.203947
91
0.693395
0
0
0
0
0
0
0
0
2,573
0.699375
96e7d1ddaf507ff49c193f3c3f481b154f3b0eda
13,122
py
Python
test/jpypetest/test_jchar.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
test/jpypetest/test_jchar.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
test/jpypetest/test_jchar.py
baztian/jpype
034d44e6c719995c25e9cd61348ebc1860030a9b
[ "Apache-2.0" ]
null
null
null
import _jpype import jpype import common from jpype.types import * class JChar2TestCase(common.JPypeTestCase): def setUp(self): common.JPypeTestCase.setUp(self) def testCharRange(self): self.assertEqual(ord(str(jpype.JChar(65))), 65) self.assertEqual(ord(str(jpype.JChar(512))), 512) ...
30.658879
86
0.601357
13,043
0.99398
0
0
2,216
0.168877
0
0
791
0.06028
96e84b02847af097942827575530d900a0b5412e
5,279
py
Python
pysensors.py
zakrzem1/pysensors
bfbef5f1442d845e5fa5febf1de5a35a81e436ee
[ "Apache-2.0" ]
null
null
null
pysensors.py
zakrzem1/pysensors
bfbef5f1442d845e5fa5febf1de5a35a81e436ee
[ "Apache-2.0" ]
null
null
null
pysensors.py
zakrzem1/pysensors
bfbef5f1442d845e5fa5febf1de5a35a81e436ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Google Spreadsheet DHT Sensor Data-logging Example # Depends on the 'gspread' package being installed. If you have pip installed # execute: # sudo pip install gspread # Copyright (c) 2014 Adafruit Industries # Author: Tony DiCola # Permission is hereby granted, free of charge, to any person obt...
37.176056
126
0.639326
0
0
0
0
0
0
0
0
2,200
0.416746
96e9083445d26a4f829c2bf35d90cd2813d1671b
4,287
py
Python
compare/utils.py
l0rb/buzzword
1f12875cfb883be07890b2da5482d3b53d878a09
[ "MIT" ]
null
null
null
compare/utils.py
l0rb/buzzword
1f12875cfb883be07890b2da5482d3b53d878a09
[ "MIT" ]
null
null
null
compare/utils.py
l0rb/buzzword
1f12875cfb883be07890b2da5482d3b53d878a09
[ "MIT" ]
null
null
null
""" Random utilities this app needs """ import os import re from buzz import Corpus as BuzzCorpus from buzz import Collection from django.conf import settings from explore.models import Corpus from .models import OCRUpdate, PDF # from django.core.exceptions import ObjectDoesNotExist # when doing OCR, re.findall wi...
31.291971
81
0.623513
0
0
0
0
0
0
0
0
1,707
0.398181
96e90e29c3780580d721f8e007e8c29d7b8c4d6c
55
py
Python
apps/sitemap/__init__.py
MySmile/mysmile
5abe4baa7970674d1f8365d875519283c2e29dae
[ "BSD-3-Clause" ]
5
2015-05-03T09:51:32.000Z
2019-05-21T14:19:02.000Z
apps/sitemap/__init__.py
MySmile/mysmile
5abe4baa7970674d1f8365d875519283c2e29dae
[ "BSD-3-Clause" ]
24
2015-04-05T16:28:08.000Z
2022-03-11T23:36:56.000Z
apps/sitemap/__init__.py
MySmile/mysmile
5abe4baa7970674d1f8365d875519283c2e29dae
[ "BSD-3-Clause" ]
1
2017-01-23T23:00:11.000Z
2017-01-23T23:00:11.000Z
default_app_config = 'apps.sitemap.apps.SitemapConfig'
27.5
54
0.836364
0
0
0
0
0
0
0
0
33
0.6
96ead76583647a3211d18d56e012be5c362ce02d
1,399
py
Python
extra_tests/snippets/stdlib_subprocess.py
dbrgn/RustPython
6d371cea8a62d84dbbeec5a53cfd040f45899211
[ "CC-BY-4.0", "MIT" ]
11,058
2018-05-29T07:40:06.000Z
2022-03-31T11:38:42.000Z
extra_tests/snippets/stdlib_subprocess.py
dbrgn/RustPython
6d371cea8a62d84dbbeec5a53cfd040f45899211
[ "CC-BY-4.0", "MIT" ]
2,105
2018-06-01T10:07:16.000Z
2022-03-31T14:56:42.000Z
extra_tests/snippets/stdlib_subprocess.py
dbrgn/RustPython
6d371cea8a62d84dbbeec5a53cfd040f45899211
[ "CC-BY-4.0", "MIT" ]
914
2018-07-27T09:36:14.000Z
2022-03-31T19:56:34.000Z
import subprocess import time import sys import signal from testutils import assert_raises is_unix = not sys.platform.startswith("win") if is_unix: def echo(text): return ["echo", text] def sleep(secs): return ["sleep", str(secs)] else: def echo(text): return ["cmd", "/C", f"echo {...
19.985714
82
0.686919
0
0
0
0
0
0
0
0
154
0.110079
96ece3d883b91ffe8949433754af0502b5ee3b91
341
py
Python
pythonProject1/chap2/demo8.py
zhudi7/pythonAK
d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c
[ "Apache-2.0" ]
null
null
null
pythonProject1/chap2/demo8.py
zhudi7/pythonAK
d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c
[ "Apache-2.0" ]
null
null
null
pythonProject1/chap2/demo8.py
zhudi7/pythonAK
d52995a4c35a3c9aeb1542922e9d786f4dcc8d1c
[ "Apache-2.0" ]
null
null
null
# 公众号:MarkerJava # 开发时间:2020/10/5 17:25 scores = {'kobe': 100, 'lebron': 99, 'AD': 88} # 获取所有key keys = scores.keys() print(keys) print(type(keys)) print(list(keys)) # 将所有key组成的视图转换层列表 # 获取所有的值 value = scores.values() print(value) print(type(value)) # 将所有value组成的视图转换层列表 # 获取所有键值对 items = scores.items() print(items...
17.05
46
0.695015
0
0
0
0
0
0
0
0
224
0.503371
96ed4bcf4dda34f4a0193956be88e898b8ddc8c2
6,579
py
Python
src/command_modules/azure-cli-storage/tests/test_storage_blob_scenarios.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-storage/tests/test_storage_blob_scenarios.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-storage/tests/test_storage_blob_scenarios.py
saurabsa/azure-cli-old
f77477a98c9aa9cb55daf5b0d2f410d1455a9225
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
47.673913
98
0.619851
5,961
0.906065
0
0
2,032
0.308862
0
0
1,596
0.24259
96ee1e1fed4d3684ce5d45ae63f74a644486fff2
29,363
py
Python
fmtrack/post_process.py
elejeune11/FM-Track
ce255388872f4c1f500c89f6aaacba57562d45c2
[ "MIT" ]
3
2019-11-01T06:37:36.000Z
2019-11-08T05:13:35.000Z
fmtrack/post_process.py
elejeune11/FM-Track
ce255388872f4c1f500c89f6aaacba57562d45c2
[ "MIT" ]
1
2019-11-01T06:44:54.000Z
2019-11-01T15:34:00.000Z
fmtrack/post_process.py
elejeune11/FM-Track
ce255388872f4c1f500c89f6aaacba57562d45c2
[ "MIT" ]
2
2019-11-01T06:38:44.000Z
2020-02-07T09:08:23.000Z
import fmtrack import os import matplotlib.colors as colors import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import pickle import pyvista from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_process.kernels import (RBF, Matern, RationalQuadratic, ...
41.590652
172
0.691789
0
0
0
0
0
0
0
0
4,695
0.159895
96eebe16c5c97601b0056f0ec84be091e97855b8
1,592
py
Python
chapter_6/C.py
staguchi0703/ALDS1
bb3d5865fb0a3f459f7a7331190e146c0e817a33
[ "MIT" ]
null
null
null
chapter_6/C.py
staguchi0703/ALDS1
bb3d5865fb0a3f459f7a7331190e146c0e817a33
[ "MIT" ]
null
null
null
chapter_6/C.py
staguchi0703/ALDS1
bb3d5865fb0a3f459f7a7331190e146c0e817a33
[ "MIT" ]
null
null
null
# %% # VScodeで入力をテキストから読み込んで標準入力に渡す import sys import os f=open(r'.\chapter_6\C_input.txt', 'r', encoding="utf-8") # inputをフルパスで指定 # win10でファイルを作るとs-jisで保存されるため、読み込みをutf-8へエンコードする必要あり # VScodeでinput file開くとutf8になってるんだけど中身は結局s-jisになっているらしい sys.stdin=f # # 入力スニペット # num = int(input()) # num_list = [int(item) for item in...
21.226667
62
0.574121
0
0
0
0
0
0
0
0
1,030
0.570953
96eece2555a7b7330f57153533780f7760ac2702
5,001
py
Python
cloudformation/solution-assistant/src/lambda_function.py
NihalHarish/sagemaker-explaining-credit-decisions
e5965902d8901819a60f8c56517a82ddd17c1f95
[ "Apache-2.0" ]
80
2020-04-15T09:35:11.000Z
2022-03-23T01:56:12.000Z
cloudformation/solution-assistant/src/lambda_function.py
IronOnet/sagemaker-explaining-credit-decisions
dbb8ea1a685412033c774c2a79cc1e5794438cf9
[ "Apache-2.0" ]
8
2020-04-16T16:53:09.000Z
2022-02-06T17:07:02.000Z
cloudformation/solution-assistant/src/lambda_function.py
IronOnet/sagemaker-explaining-credit-decisions
dbb8ea1a685412033c774c2a79cc1e5794438cf9
[ "Apache-2.0" ]
28
2020-05-25T09:26:41.000Z
2022-01-25T22:23:54.000Z
import boto3 from pathlib import Path import sys sys.path.append('./site-packages') from crhelper import CfnResource import datasets helper = CfnResource() @helper.update @helper.create def on_create(event, _): folderpath = Path("/tmp") solutions_s3_bucket = event["ResourceProperties"]["SolutionsS3BucketN...
31.853503
78
0.634873
0
0
0
0
1,430
0.285943
0
0
1,241
0.24815
96ef264174a3778804b0a88b93099995faf0b946
1,209
py
Python
rover/controls-systems/mobility/I2C_Test_Code_Enum.py
CSUFTitanRover/TitanRover2018
4926d377322a37ba644d7e852faa305fb8bb9b55
[ "Apache-2.0" ]
16
2017-09-01T23:33:17.000Z
2021-01-04T02:41:19.000Z
rover/controls-systems/mobility/I2C_Test_Code_Enum.py
WesleyBaxter/TitanRover2018
be69fa908ed0cbb1f4fe4708d0394881b3a4b105
[ "Apache-2.0" ]
56
2017-08-30T01:14:46.000Z
2021-02-28T22:18:44.000Z
rover/controls-systems/mobility/I2C_Test_Code_Enum.py
WesleyBaxter/TitanRover2018
be69fa908ed0cbb1f4fe4708d0394881b3a4b105
[ "Apache-2.0" ]
15
2017-09-14T19:55:55.000Z
2020-05-03T19:44:39.000Z
import smbus import time from enum import Enum # Sets enumerators and their values class commands(Enum): UNKNOWN_COMMAND = 0 LED = 1 SERVO = 2 # Initializes bus to smbus bus = smbus.SMBus(1) # This is the slave address we setup in the Arduino Program address = 0x04 def writeCommand(cmd): # Converts ...
27.477273
78
0.679901
71
0.058726
0
0
0
0
0
0
591
0.488834
96f175f0b51602c5e97137cd52bc7e95509e5606
423
py
Python
tests/test_matrix.py
avere001/dsplot
89948c2f1b16e00bb3a240f73d0cb100b3eac847
[ "MIT" ]
8
2021-08-08T06:06:39.000Z
2022-02-04T18:30:38.000Z
tests/test_matrix.py
avere001/dsplot
89948c2f1b16e00bb3a240f73d0cb100b3eac847
[ "MIT" ]
1
2022-01-04T02:01:36.000Z
2022-01-04T02:01:36.000Z
tests/test_matrix.py
avere001/dsplot
89948c2f1b16e00bb3a240f73d0cb100b3eac847
[ "MIT" ]
2
2021-08-18T12:28:40.000Z
2022-01-03T23:56:41.000Z
import os import pytest from dsplot.errors import InputException from dsplot.matrix import Matrix def test_matrix(): matrix = Matrix([[1, 2, 3], [4, 5, 6], [1, 2, 6]]) matrix.plot('tests/test_data/matrix.png') assert 'matrix.png' in os.listdir('tests/test_data') with pytest.raises(InputException) ...
23.5
69
0.669031
0
0
0
0
0
0
0
0
99
0.234043
96f1aad1a0a08c20f4321ab24752eaca035e74c9
1,724
py
Python
odoo-13.0/addons/board/controllers/main.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/board/controllers/main.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/board/controllers/main.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from lxml import etree as ElementTree from odoo.http import Controller, route, request class Board(Controller): @route('/board/add_to_dashboard', type='json', auth='user') def add_to_dashboard(self, action_id...
42.04878
109
0.533643
1,533
0.889211
0
0
1,503
0.87181
0
0
475
0.275522
96f23e2c5a6ab2a675fd38cb4e2d70f563a35f7e
485
py
Python
JSONFormatter.py
ejkim1996/Unity-JSON-Manager
29f98247263f2bb64f6960d4aa42bfc448fda3dd
[ "MIT" ]
2
2019-01-12T09:53:50.000Z
2021-03-02T02:19:28.000Z
JSONFormatter.py
ejkim1996/Unity-JSON-Manager
29f98247263f2bb64f6960d4aa42bfc448fda3dd
[ "MIT" ]
null
null
null
JSONFormatter.py
ejkim1996/Unity-JSON-Manager
29f98247263f2bb64f6960d4aa42bfc448fda3dd
[ "MIT" ]
null
null
null
import json from tkinter import Tk from tkinter.filedialog import askopenfilename # Python script that allows user to select JSON file using TKinter and format it properly. root = Tk() filename = askopenfilename() root.destroy() # Close the window read = open(filename, 'r') parsed = json.load(read) write = open(file...
23.095238
90
0.74433
0
0
0
0
0
0
0
0
155
0.319588
96f32ed1cb808038241c0062fb82667d9d2ca2d6
188
py
Python
webs/douban/tasks/__init__.py
billvsme/videoSpider
e19111cc48d0a2a44c5245b0ddc9fad0c7a1824d
[ "MIT" ]
216
2016-02-20T12:46:43.000Z
2022-02-23T07:07:00.000Z
webs/douban/tasks/__init__.py
billvsme/tvCrawlers
e19111cc48d0a2a44c5245b0ddc9fad0c7a1824d
[ "MIT" ]
3
2016-05-06T05:04:17.000Z
2021-12-13T19:41:39.000Z
webs/douban/tasks/__init__.py
billvsme/tvCrawlers
e19111cc48d0a2a44c5245b0ddc9fad0c7a1824d
[ "MIT" ]
99
2016-02-20T08:34:00.000Z
2022-02-10T20:52:01.000Z
from . import get_main_movies_base_data from . import get_main_movies_full_data from . import get_celebrities_full_data from . import down_video_images from . import down_celebrity_images
31.333333
39
0.867021
0
0
0
0
0
0
0
0
0
0
96f370301695ce2890172ceee68267335e737203
397
py
Python
examples/self_bot.py
LimeProgramming/defectio
ff5bbd2964a66fe44f9f1e192d0574c8db4a7404
[ "MIT" ]
null
null
null
examples/self_bot.py
LimeProgramming/defectio
ff5bbd2964a66fe44f9f1e192d0574c8db4a7404
[ "MIT" ]
null
null
null
examples/self_bot.py
LimeProgramming/defectio
ff5bbd2964a66fe44f9f1e192d0574c8db4a7404
[ "MIT" ]
null
null
null
import defectio client = defectio.Client() @client.event async def on_ready(): print("We have logged in.") @client.event async def on_message(message: defectio.Message): if message.author == client.user: return if message.content.startswith("$hello"): await message.channel.send("Hello!...
16.541667
48
0.680101
0
0
0
0
273
0.687657
245
0.617128
60
0.151134
96f38ecfbeecd1933cbe011b730c71f4c32f4990
301
py
Python
rtl/tests/test_log.py
kelceydamage/raspi-tasks
18aa323e3e2428c998b7472c226d05a00c8ae8c2
[ "Apache-2.0" ]
1
2019-08-10T00:27:45.000Z
2019-08-10T00:27:45.000Z
rtl/tests/test_log.py
kelceydamage/raspi-tasks
18aa323e3e2428c998b7472c226d05a00c8ae8c2
[ "Apache-2.0" ]
null
null
null
rtl/tests/test_log.py
kelceydamage/raspi-tasks
18aa323e3e2428c998b7472c226d05a00c8ae8c2
[ "Apache-2.0" ]
null
null
null
from rtl.tasks.log import log from dummy_data import KWARGS, CONTENTS3 def test_log(): KWARGS = { 'operations': [ { 'a': 'b', 'column': 'c' } ] } r = log(KWARGS, CONTENTS3) assert r['c'][2] == 2.5649493574615367
20.066667
42
0.465116
0
0
0
0
0
0
0
0
32
0.106312
96f3a23cb8b0a87f238aa02340f2199afdec7644
1,970
py
Python
CollaborativeFiltering/CollaborativeFiltering.py
darwin-b/MachineLearning
834a07fcb5052053d7a7d6d9fe4fc5abbe3117d3
[ "MIT" ]
null
null
null
CollaborativeFiltering/CollaborativeFiltering.py
darwin-b/MachineLearning
834a07fcb5052053d7a7d6d9fe4fc5abbe3117d3
[ "MIT" ]
null
null
null
CollaborativeFiltering/CollaborativeFiltering.py
darwin-b/MachineLearning
834a07fcb5052053d7a7d6d9fe4fc5abbe3117d3
[ "MIT" ]
null
null
null
import numpy as np train_ratings_path = "./../Data/netflix/TrainingRatings.txt" test_ratings_path = "./../Data/netflix/TestingRatings.txt" map_users={} map_titles={} data_matrix = np.empty((28978,1821),dtype=np.float32) data_matrix[:] = np.nan with open(train_ratings_path,'r') as reader: counter_titles=0 c...
29.402985
104
0.668528
0
0
0
0
0
0
0
0
126
0.063959
96f41d0268d46bff1736443eb02dd162aabd3a36
2,784
py
Python
sources/lectures.py
JhoLee/ecampus-manager
9c56678ba06b3b92f539b746d7103798592ad1ac
[ "MIT" ]
1
2021-09-05T06:34:01.000Z
2021-09-05T06:34:01.000Z
sources/lectures.py
JhoLee/BBang-Shuttle
9c56678ba06b3b92f539b746d7103798592ad1ac
[ "MIT" ]
null
null
null
sources/lectures.py
JhoLee/BBang-Shuttle
9c56678ba06b3b92f539b746d7103798592ad1ac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui/lectures.ui' # # Created by: PyQt5 UI code generator 5.13.0 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.Qt import QMessageBox, QSize, QIcon from PyQt5.QtWidgets import Q...
37.12
105
0.674569
2,396
0.845448
0
0
0
0
0
0
657
0.231828
96f748a0816f7543ed6484d05af8d17f971b4e2c
662
py
Python
my_cv/gesture_recognition/demo.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
2
2020-04-06T09:09:19.000Z
2020-07-24T03:59:55.000Z
my_cv/gesture_recognition/demo.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
my_cv/gesture_recognition/demo.py
strawsyz/straw
db313c78c2e3c0355cd10c70ac25a15bb5632d41
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt fig, ax = plt.subplots() text = ax.text(0.5, 0.5, 'event', ha='center', va='center', fontdict={'size': 20}) def call_back(event): # print( event.xdata, event.ydata) info = 'name:{}\n button:{}\n x,y:{},{}\n xdata,ydata:{}{}'.format(event.name, event.button, event.x, event.y, ...
33.1
114
0.622356
0
0
0
0
0
0
0
0
178
0.268882
96f7b9468167fcacd877c20a27a062a48eb88c3a
1,828
py
Python
day16/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
day16/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
day16/part1.py
bugra-yilmaz/adventofcode2021
136cb1d4fba42af4eea934a73714c93710c8741e
[ "MIT" ]
null
null
null
import os.path import pytest INPUT_TXT = os.path.join(os.path.dirname(__file__), 'input.txt') def compute(s: str) -> int: packet = s.strip() packet = "".join([hexadecimal_to_binary(c) for c in packet]) versions = [] parse_packet(versions, packet, 0) return sum(versions) def parse_packet(vers...
20.311111
64
0.560722
0
0
0
0
185
0.101204
0
0
92
0.050328
96f8088f165a5d53d7971cb2268d0b92f24f5e33
1,193
py
Python
tests/managers/test_equal_managers.py
microprediction/precise
0aa7c69c3c280926cec03fb6fc0934a6193da440
[ "MIT" ]
40
2022-01-13T00:40:59.000Z
2022-03-31T20:33:19.000Z
tests/managers/test_equal_managers.py
microprediction/precise
0aa7c69c3c280926cec03fb6fc0934a6193da440
[ "MIT" ]
14
2022-01-08T16:00:12.000Z
2022-03-16T00:12:04.000Z
tests/managers/test_equal_managers.py
microprediction/precise
0aa7c69c3c280926cec03fb6fc0934a6193da440
[ "MIT" ]
9
2022-01-26T21:14:43.000Z
2022-03-21T17:32:02.000Z
import random from precise.skaters.managerutil.managertesting import manager_test_run from precise.skaters.managers.equalmanagers import equal_daily_long_manager, equal_long_manager from precise.skaters.managers.equalmanagers import equal_weekly_long_manager, equal_weekly_buy_and_hold_long_manager from precise.skaterto...
30.589744
116
0.788768
0
0
0
0
0
0
0
0
37
0.031014
96f81fd3d9d30944b376af400b2a416db01f6a6d
7,852
py
Python
model/fcgn/grasp_proposal_target.py
ZhangHanbo/Visual-Manipulation-Relationship-Network-Pytorch
9dd24947db318f6e404918d4758f1d824eea3748
[ "MIT" ]
26
2019-10-31T08:21:46.000Z
2022-03-11T13:58:43.000Z
model/fcgn/grasp_proposal_target.py
xjtAlgo/Visual-Manipulation-Relationship-Network-Pytorch
da7fffcc6bed062fa1a5dc12b4279f3456825664
[ "MIT" ]
12
2019-11-07T09:12:50.000Z
2022-03-12T02:58:18.000Z
model/fcgn/grasp_proposal_target.py
xjtAlgo/Visual-Manipulation-Relationship-Network-Pytorch
da7fffcc6bed062fa1a5dc12b4279f3456825664
[ "MIT" ]
11
2019-10-30T08:44:47.000Z
2022-03-11T13:58:48.000Z
# -------------------------------------------------------- # Visual Detection: State-of-the-Art # Copyright: Hanbo Zhang # Licensed under The MIT License [see LICENSE for details] # Written by Hanbo Zhang # -------------------------------------------------------- import torch import torch.nn as nn import torch.nn.func...
36.691589
93
0.566989
7,249
0.923204
0
0
0
0
0
0
1,696
0.215996
96f856b12bdb1da37c38499de024996b5d7da12b
411
py
Python
python-advanced/webscrap/wlog.py
Rokon-Uz-Zaman/thinkdiff_python_django
5010c5f1dd8a028fb9e5235319bb6bb434831e6c
[ "MIT" ]
92
2018-04-03T20:53:07.000Z
2022-03-04T05:53:10.000Z
python-language/python-advanced/webscrap/wlog.py
mostafijur-rahman299/thinkdiff
b0e0c01fe38c406f4dfa8cc80b2f0c5654017079
[ "MIT" ]
11
2018-10-01T15:35:33.000Z
2021-09-01T04:59:56.000Z
python-language/python-advanced/webscrap/wlog.py
mostafijur-rahman299/thinkdiff
b0e0c01fe38c406f4dfa8cc80b2f0c5654017079
[ "MIT" ]
98
2018-03-13T08:03:54.000Z
2022-03-22T08:11:44.000Z
# author: Mahmud Ahsan # code: https://github.com/mahmudahsan/thinkdiff # blog: http://thinkdiff.net # http://pythonbangla.com # MIT License # -------------------------- # Reporting Logs in text file # -------------------------- import logging def set_custom_log_info(filename): logging.basicConfig(filename=...
21.631579
62
0.63017
0
0
0
0
0
0
0
0
226
0.549878
96fa22ff6672a9418b26fa05a3ae9f12341d9ea4
864
py
Python
geoevents/core/management/commands/r3dumpdata.py
mcenirm/geoevents
f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6
[ "MIT" ]
25
2015-01-06T15:37:31.000Z
2020-12-10T19:05:22.000Z
geoevents/core/management/commands/r3dumpdata.py
mcenirm/geoevents
f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6
[ "MIT" ]
2
2015-01-31T02:36:58.000Z
2015-02-01T00:11:15.000Z
geoevents/core/management/commands/r3dumpdata.py
mcenirm/geoevents
f78cc09b8bcc8c6e4eee0d1de14e5becad7d49e6
[ "MIT" ]
5
2016-01-01T15:04:49.000Z
2019-05-30T23:34:30.000Z
# This technical data was produced for the U. S. Government under Contract No. W15P7T-13-C-F600, and # is subject to the Rights in Technical Data-Noncommercial Items clause at DFARS 252.227-7013 (FEB 2012) from django.core.management.base import BaseCommand, CommandError from django.core.management import call_command...
41.142857
104
0.699074
541
0.626157
0
0
0
0
0
0
383
0.443287
96fac71ba63e9e0125078ad8dc31d6b80c225f02
1,343
py
Python
src/MostrarGrafica.py
VictorVaquero/sentimentAnalysis
947d3621db14fa28e05f328e80f1c98f6aa685ae
[ "MIT" ]
null
null
null
src/MostrarGrafica.py
VictorVaquero/sentimentAnalysis
947d3621db14fa28e05f328e80f1c98f6aa685ae
[ "MIT" ]
null
null
null
src/MostrarGrafica.py
VictorVaquero/sentimentAnalysis
947d3621db14fa28e05f328e80f1c98f6aa685ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[28]: import matplotlib.pyplot as plt import numpy as np import csv # In[32]: listaHigh = [] listaLow = [] listaClose = [] contador = 0 lineas = len(open('GOOGLPrediccion.csv').readlines()) c = input() if(int(c)!=0): c = int(c) else: c = lineas cantidad = linea...
23.155172
74
0.658972
0
0
0
0
0
0
0
0
484
0.359584
96fb71abe1597b3445be3baa69638e7080246d4f
207
py
Python
src/Blog/settings/production.py
sadmanbd/wagtailblog
adeccb29826200cb1bedc658a0f1c57c2f705d0e
[ "MIT" ]
1
2020-04-20T05:38:01.000Z
2020-04-20T05:38:01.000Z
src/Blog/settings/production.py
sadmanbd/wagtailblog
adeccb29826200cb1bedc658a0f1c57c2f705d0e
[ "MIT" ]
8
2020-02-11T21:41:52.000Z
2022-01-13T00:33:02.000Z
src/Blog/settings/production.py
sadmanbd/wagtailblog
adeccb29826200cb1bedc658a0f1c57c2f705d0e
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import os from .base import * DEBUG = False SECRET_KEY = os.environ.get("SECRET_KEY") try: from .local import * except ImportError: pass
13.8
56
0.743961
0
0
0
0
0
0
0
0
12
0.057971
96fbefce1bae3ccaee2952d5e7652edcc5609ce7
65,374
py
Python
lookml/lookml.py
pythonruss/pylookml
879c4c6325138295b4ce59c8663aa62da42837dc
[ "MIT" ]
null
null
null
lookml/lookml.py
pythonruss/pylookml
879c4c6325138295b4ce59c8663aa62da42837dc
[ "MIT" ]
null
null
null
lookml/lookml.py
pythonruss/pylookml
879c4c6325138295b4ce59c8663aa62da42837dc
[ "MIT" ]
null
null
null
import re, os, shutil import lookml.config as conf import lkml import time, copy from string import Template from lookml.modules.project import * import lkml, github def snakeCase(string): str1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', string) return re.sub('([a-z0-9])([A-Z])', r'\1_\2', str1).lower() def splice...
35.318206
233
0.574647
59,596
0.91156
3,357
0.051348
0
0
0
0
23,831
0.364511
96fc72968950824d61acc3ae7701e624cdb6308f
1,933
py
Python
chapter03/python/situation.py
coco-in-bluemoon/building-recommendation-engines
b337b2ba75b6c9b08612ab1720a2858e64e9de09
[ "MIT" ]
null
null
null
chapter03/python/situation.py
coco-in-bluemoon/building-recommendation-engines
b337b2ba75b6c9b08612ab1720a2858e64e9de09
[ "MIT" ]
null
null
null
chapter03/python/situation.py
coco-in-bluemoon/building-recommendation-engines
b337b2ba75b6c9b08612ab1720a2858e64e9de09
[ "MIT" ]
null
null
null
from sklearn.metrics.pairwise import cosine_similarity import numpy as np import pandas as pd # 1. Load Data and Item Profile ratings = pd.read_csv('chapter03/data/movie_rating.csv') movie_ratings = pd.pivot_table( ratings, values='rating', index='title', columns='critic' ) print(movie_ratings) # 2....
24.782051
74
0.649767
0
0
0
0
0
0
0
0
298
0.154165
96fd1f2b486144df968599ce7e69efe106bab45c
1,025
py
Python
tic_tac_toe/TD_lambda_run.py
Luca-Dambra/TD_lambda_board_games
31febd4987fe882c559bfb40b2bd9aef3326dd3f
[ "MIT" ]
null
null
null
tic_tac_toe/TD_lambda_run.py
Luca-Dambra/TD_lambda_board_games
31febd4987fe882c559bfb40b2bd9aef3326dd3f
[ "MIT" ]
null
null
null
tic_tac_toe/TD_lambda_run.py
Luca-Dambra/TD_lambda_board_games
31febd4987fe882c559bfb40b2bd9aef3326dd3f
[ "MIT" ]
null
null
null
import functools import numpy as np import pandas as pd from NN_base import load_network, save_network, create_network from tic_tac_toe import TicTacToeGameSpec, play_game from TD_lambda import TD_train NETWORK_FILE_PATH = None NUMBER_OF_GAMES_TO_RUN = 500 NUMBER_OF_TEST = 200 NUMBER_OF_ROUNDS = 100 EPSILON = 0.1 TA...
27.702703
130
0.712195
0
0
0
0
0
0
0
0
25
0.02439
96fd8456b0b3a88b436bed5097c56c54ff0c3e18
7,808
py
Python
FinalProject_SANet/demo/net.py
lev1khachatryan/ASDS_CV
c9f0c0412002e929bcb7cc2fc6e5392977a9fa76
[ "MIT" ]
5
2019-12-13T16:26:10.000Z
2020-01-10T07:44:05.000Z
FinalProject_SANet/PyTorch/net.py
lev1khachatryan/ASDS_CV
c9f0c0412002e929bcb7cc2fc6e5392977a9fa76
[ "MIT" ]
1
2020-01-07T16:48:21.000Z
2020-03-18T18:43:37.000Z
FinalProject_SANet/demo/net.py
lev1khachatryan/ASDS_CV
c9f0c0412002e929bcb7cc2fc6e5392977a9fa76
[ "MIT" ]
null
null
null
import torch.nn as nn import torch from function import normal from function import calc_mean_std decoder = nn.Sequential( nn.ReflectionPad2d((1, 1, 1, 1)), nn.Conv2d(512, 256, (3, 3)), nn.ReLU(), nn.Upsample(scale_factor=2, mode='nearest'), nn.ReflectionPad2d((1, 1, 1, 1)), nn.Conv2d(256, 256,...
38.653465
162
0.597848
4,909
0.628714
0
0
0
0
0
0
525
0.067239
96ff65371ea5fac719ab021f858179bf05875269
607
py
Python
blaze/expr/scalar/interface.py
chdoig/blaze
caa5a497e1ca1ceb1cf585483312ff4cd74d0bda
[ "BSD-3-Clause" ]
1
2015-01-18T23:59:57.000Z
2015-01-18T23:59:57.000Z
blaze/expr/scalar/interface.py
chdoig/blaze
caa5a497e1ca1ceb1cf585483312ff4cd74d0bda
[ "BSD-3-Clause" ]
null
null
null
blaze/expr/scalar/interface.py
chdoig/blaze
caa5a497e1ca1ceb1cf585483312ff4cd74d0bda
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function from ..core import Expr from datashape import dshape from .boolean import BooleanInterface from .numbers import NumberInterface class ScalarSymbol(NumberInterface, BooleanInterface): __slots__ = '_name', 'dtype' def __init__(self, name, dtype=...
21.678571
64
0.693575
410
0.675453
0
0
120
0.197694
0
0
20
0.032949
96ff89e422270b31c5889bf32192c54fcd3d3495
817
py
Python
2019/08-kosen/rev-favorites/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
25
2019-03-06T11:55:56.000Z
2021-05-21T22:07:14.000Z
2019/08-kosen/rev-favorites/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2020-06-25T07:27:15.000Z
2020-06-25T07:27:15.000Z
2019/08-kosen/rev-favorites/solve.py
wani-hackase/wani-writeup
dd4ad0607d2f2193ad94c1ce65359294aa591681
[ "MIT" ]
1
2019-02-14T00:42:28.000Z
2019-02-14T00:42:28.000Z
def main(): seed = 0x1234 e = [0x62d5, 0x7b27, 0xc5d4, 0x11c4, 0x5d67, 0xa356, 0x5f84, 0xbd67, 0xad04, 0x9a64, 0xefa6, 0x94d6, 0x2434, 0x0178] flag = "" for index in range(14): for i in range(0x7f-0x20): c = chr(0x20+i) res = encode(c, index, seed) if...
29.178571
120
0.440636
0
0
0
0
0
0
0
0
23
0.028152
96ff8d29cb8034da8d295fc63e68e0bc696f15c1
1,095
py
Python
WidgetsUnlimited/model/customer_address.py
AlanHorowitz/open-ended-capstone
80590af5b09c2245f124cec20ed7594d62cff30e
[ "MIT" ]
null
null
null
WidgetsUnlimited/model/customer_address.py
AlanHorowitz/open-ended-capstone
80590af5b09c2245f124cec20ed7594d62cff30e
[ "MIT" ]
null
null
null
WidgetsUnlimited/model/customer_address.py
AlanHorowitz/open-ended-capstone
80590af5b09c2245f124cec20ed7594d62cff30e
[ "MIT" ]
null
null
null
from psycopg2.extensions import TRANSACTION_STATUS_IDLE from .metadata import Table, Column from .customer import CustomerTable class CustomerAddressTable(Table): NAME = "customer_address" def __init__(self): super().__init__( CustomerAddressTable.NAME, Column( ...
34.21875
87
0.581735
964
0.880365
0
0
0
0
0
0
349
0.318721
8c005a68252d143c8872adac4f5fee4210c1275d
1,439
py
Python
src/data/spark/domain_length_sql.py
sheikhomar/mako
3bf0e183e63bd86c2df4eb90486726ca4194bd9b
[ "MIT" ]
null
null
null
src/data/spark/domain_length_sql.py
sheikhomar/mako
3bf0e183e63bd86c2df4eb90486726ca4194bd9b
[ "MIT" ]
null
null
null
src/data/spark/domain_length_sql.py
sheikhomar/mako
3bf0e183e63bd86c2df4eb90486726ca4194bd9b
[ "MIT" ]
null
null
null
# Command to run this script on the CTIT cluster: # $ spark-submit --master yarn --deploy-mode cluster --packages com.databricks:spark-csv_2.10:1.5.0 src/data/spark/domain_length_sql.py from pyspark import SparkContext from pyspark.sql import SQLContext from pyspark.sql.functions import udf from pyspark.sql.types im...
35.975
135
0.721334
0
0
0
0
0
0
0
0
511
0.355108
8c00e685aea15a92f852072e47de4dda8adf42a0
3,305
py
Python
api/programs/result.py
ca2315/PlasmoCount
b3c776ead5f436fa6e3ed0aca7d8f1683f5f4e49
[ "BSD-3-Clause" ]
null
null
null
api/programs/result.py
ca2315/PlasmoCount
b3c776ead5f436fa6e3ed0aca7d8f1683f5f4e49
[ "BSD-3-Clause" ]
null
null
null
api/programs/result.py
ca2315/PlasmoCount
b3c776ead5f436fa6e3ed0aca7d8f1683f5f4e49
[ "BSD-3-Clause" ]
null
null
null
from programs.viz import plot_labels, make_crop import pandas as pd from pathlib import Path import time class Result: def __init__( self, id, fname, img, pred, n_digits=2, color_dict={ 'uninfected': '#808080', ...
34.789474
79
0.540393
3,197
0.967322
0
0
0
0
0
0
582
0.176097
8c00e8ea0f7d20261110718e7a74f0319ddcdebd
1,107
py
Python
tpp_twitter/twitter.py
SuperSonicHub1/twitter_plays_pyboy
2818245fac2faeb10fca593bdbc13d211ab7e807
[ "Unlicense" ]
null
null
null
tpp_twitter/twitter.py
SuperSonicHub1/twitter_plays_pyboy
2818245fac2faeb10fca593bdbc13d211ab7e807
[ "Unlicense" ]
null
null
null
tpp_twitter/twitter.py
SuperSonicHub1/twitter_plays_pyboy
2818245fac2faeb10fca593bdbc13d211ab7e807
[ "Unlicense" ]
null
null
null
from dotenv import load_dotenv import tweepy from os import getenv from typing import BinaryIO BASE_BIO = "Inspired by @screenshakes. Powered by PyBoy: http://github.com/Baekalfen/PyBoy\n" load_dotenv() auth = tweepy.OAuthHandler(getenv('TWITTER_KEY'), getenv('TWITTER_SECRET')) auth.set_access_token(getenv('TWITTER_...
41
117
0.754291
0
0
0
0
0
0
0
0
344
0.31075
8c0125ee7bfc57b4ed925dd722dd6fef3d05f11f
1,805
py
Python
ListNode.py
xinming365/LeetCode
e56097a60ddd1b5ddba7f15a726661c2aa6633e7
[ "Apache-2.0" ]
null
null
null
ListNode.py
xinming365/LeetCode
e56097a60ddd1b5ddba7f15a726661c2aa6633e7
[ "Apache-2.0" ]
null
null
null
ListNode.py
xinming365/LeetCode
e56097a60ddd1b5ddba7f15a726661c2aa6633e7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2022/2/2 10:08 上午 # @Author : xinming # @File : ListNode.py class ListNode: def __init__(self, x): self.val = x self.next = None class MyLinkedList: def __init__(self): self.size = 0 self.dummy_head = ListNode(0) ...
23.75
58
0.547368
1,678
0.927584
0
0
0
0
0
0
355
0.196241
8c0191528bb4a7ba7c5f50c6c5ad4f4b78812839
8,295
py
Python
samples/waitforupdates.py
ArpitSharma2800/pyvmomi-community-samples
68a0ef912cbb48f2fa498c14fbeb1bcda2ede9d8
[ "Apache-2.0" ]
931
2015-01-13T09:18:06.000Z
2022-03-29T00:08:40.000Z
samples/waitforupdates.py
ArpitSharma2800/pyvmomi-community-samples
68a0ef912cbb48f2fa498c14fbeb1bcda2ede9d8
[ "Apache-2.0" ]
494
2015-01-01T02:42:04.000Z
2022-03-10T10:00:44.000Z
samples/waitforupdates.py
ArpitSharma2800/pyvmomi-community-samples
68a0ef912cbb48f2fa498c14fbeb1bcda2ede9d8
[ "Apache-2.0" ]
976
2015-01-04T19:50:37.000Z
2022-03-18T15:14:04.000Z
#!/usr/bin/env python # # VMware vSphere Python SDK # Copyright (c) 2008-2021 VMware, Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/l...
33.857143
91
0.599879
0
0
0
0
0
0
0
0
3,221
0.388306
8c021ebbd6408b7ecf94c20aa0fa0bab32c3828d
1,159
py
Python
src/tests/cli/hypergol_create_test_case.py
hypergol/hypergol
0beee71c8f72d517ef376030baff9c840a2f7eeb
[ "MIT" ]
49
2020-07-09T10:22:25.000Z
2022-02-21T16:55:34.000Z
src/tests/cli/hypergol_create_test_case.py
hypergol/hypergol
0beee71c8f72d517ef376030baff9c840a2f7eeb
[ "MIT" ]
16
2020-08-18T17:06:05.000Z
2022-02-19T16:30:04.000Z
src/tests/cli/hypergol_create_test_case.py
hypergol/hypergol
0beee71c8f72d517ef376030baff9c840a2f7eeb
[ "MIT" ]
3
2020-07-16T08:42:09.000Z
2021-03-06T15:09:13.000Z
import os import glob from pathlib import Path from unittest import TestCase from hypergol.name_string import NameString def delete_if_exists(filePath): if os.path.exists(filePath): if os.path.isdir(filePath): os.rmdir(filePath) else: os.remove(filePath) class HypergolCr...
27.595238
78
0.633305
854
0.736842
0
0
0
0
0
0
52
0.044866
8c05b81bf47ea60ca797bd79f44d7a048d6eca52
223
py
Python
examples/load_from_file/main.py
viniciuschiele/configd
f9b405cd2254f79152a13e57e2be907550ef83ed
[ "MIT" ]
3
2017-03-17T15:44:26.000Z
2021-08-31T02:45:52.000Z
examples/load_from_file/main.py
viniciuschiele/configd
f9b405cd2254f79152a13e57e2be907550ef83ed
[ "MIT" ]
1
2017-07-28T23:20:15.000Z
2017-07-29T11:13:49.000Z
examples/load_from_file/main.py
viniciuschiele/configd
f9b405cd2254f79152a13e57e2be907550ef83ed
[ "MIT" ]
2
2021-06-26T20:57:24.000Z
2021-11-21T19:29:39.000Z
from central.config.file import FileConfig config = FileConfig('config.json') config.load() print(config.get('timeout')) print(config.get('database')) print(config.get('database.host')) print(config.get('database.port'))
22.3
42
0.753363
0
0
0
0
0
0
0
0
62
0.278027
8c08b48a4d80e079c5239a8398068125f720f5ce
2,637
py
Python
fbapp/views.py
shashank-sharma/facebook-comments
bed74d488cfbada00445d840027de89e5f005c84
[ "MIT" ]
null
null
null
fbapp/views.py
shashank-sharma/facebook-comments
bed74d488cfbada00445d840027de89e5f005c84
[ "MIT" ]
3
2017-08-14T11:21:14.000Z
2017-08-26T12:57:33.000Z
fbapp/views.py
shashank-sharma/facebook-comments
bed74d488cfbada00445d840027de89e5f005c84
[ "MIT" ]
null
null
null
from django.shortcuts import render from getpage import * from fbapp.models import Search, Clap from django.http import Http404, HttpResponse import json # Create your views here. def clap(request): if request.is_ajax(): keyword = request.GET['keyword'] clap = Clap.objects.all() if(len(clap) == 0): clap = C...
27.185567
68
0.630641
0
0
0
0
0
0
0
0
221
0.083807
8c08c4a6650e9ba67c915b77a4490106eafe823c
1,017
py
Python
Text_B_ocr_crnn_model_file/crnn/network_dnn.py
HAIbingshuai/chinese_ocr
36c06226b3762b2e516427579f2c2614770e60ae
[ "MIT" ]
21
2019-11-16T15:12:17.000Z
2022-02-24T03:08:44.000Z
Text_B_ocr_crnn_model_file/crnn/network_dnn.py
HAIbingshuai/chinese_ocr
36c06226b3762b2e516427579f2c2614770e60ae
[ "MIT" ]
1
2019-12-03T00:41:09.000Z
2020-10-16T13:46:11.000Z
Text_B_ocr_crnn_model_file/crnn/network_dnn.py
HAIbingshuai/chinese_ocr
36c06226b3762b2e516427579f2c2614770e60ae
[ "MIT" ]
3
2019-12-10T02:43:20.000Z
2021-05-12T07:31:41.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import numpy as np import cv2 from Text_B_ocr_crnn_model_file.crnn.util import resizeNormalize, strLabelConverter class CRNN: def __init__(self, alphabet=None): self.alphabet = alphabet def load_weights(self, path): ocrPath = path ocrPat...
29.057143
83
0.613569
852
0.837758
0
0
0
0
0
0
69
0.067847
8c094ff4339e6253f78275942a72ff3cc8c9f8a5
1,724
py
Python
venta/admin.py
darkdrei/Inventario
dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c
[ "MIT" ]
null
null
null
venta/admin.py
darkdrei/Inventario
dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c
[ "MIT" ]
null
null
null
venta/admin.py
darkdrei/Inventario
dc2dcc830be5a49ba602c242d8c7d5d9c24c7b5c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin import models import forms from inventario import models as inventario # Register your models here. class DetalleInline(admin.StackedInline): model = models.Detalle form = forms.DetalleForm extra = 1 # end cla...
32.528302
97
0.654872
1,383
0.802204
0
0
0
0
0
0
434
0.25174
8c09cfaddc4d9d32bda49a28af781c40e36a6a23
83
py
Python
Recipes/rcps/apps.py
ADKosm/Recipes
39b81091d8c5b91eeabdb99412c437a62ca5e1aa
[ "MIT" ]
null
null
null
Recipes/rcps/apps.py
ADKosm/Recipes
39b81091d8c5b91eeabdb99412c437a62ca5e1aa
[ "MIT" ]
1
2016-12-17T07:08:16.000Z
2016-12-17T07:08:16.000Z
Recipes/rcps/apps.py
ADKosm/Recipes
39b81091d8c5b91eeabdb99412c437a62ca5e1aa
[ "MIT" ]
null
null
null
from django.apps import AppConfig class RcpsConfig(AppConfig): name = 'rcps'
13.833333
33
0.73494
46
0.554217
0
0
0
0
0
0
6
0.072289
8c0a58b707f6e1b5cb769898d9e99e268749f4f1
1,324
py
Python
tests/test_dotdict.py
datakortet/dkbuild-apacheconf
740bed45a33631144c967af5e5fc4288b33d537d
[ "Apache-2.0" ]
null
null
null
tests/test_dotdict.py
datakortet/dkbuild-apacheconf
740bed45a33631144c967af5e5fc4288b33d537d
[ "Apache-2.0" ]
1
2020-05-06T13:51:24.000Z
2020-05-10T10:46:46.000Z
tests/test_dotdict.py
datakortet/dkbuild-apacheconf
740bed45a33631144c967af5e5fc4288b33d537d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import textwrap import pytest from dkbuild_apacheconf.dotdict import dotdict def test_add_depth1(): dd = dotdict() dd['hello'] = 42 print(dd) assert dd.ctx == { 'hello': 42 } def test_add_depth2(): dd = dotdict() dd['hello.world'] = 42 print(dd) assert dd.ct...
18.136986
46
0.508308
0
0
0
0
0
0
0
0
368
0.277946
8c0a62c8b3bc8944696a2c3153f41db04a0511f7
1,056
py
Python
EM_GUI/parser5(void).py
AmirKavousi/EMspice
6799981783afa410b39f5227e7c435d106c61e6c
[ "BSD-3-Clause" ]
2
2020-07-15T21:20:32.000Z
2021-11-24T08:26:19.000Z
EM_GUI/parser5(void).py
AmirKavousi/EMspice
6799981783afa410b39f5227e7c435d106c61e6c
[ "BSD-3-Clause" ]
1
2020-11-30T06:33:23.000Z
2020-11-30T06:33:23.000Z
EM_GUI/parser5(void).py
AmirKavousi/EMspice
6799981783afa410b39f5227e7c435d106c61e6c
[ "BSD-3-Clause" ]
3
2020-07-03T19:49:36.000Z
2021-04-07T20:32:16.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- file1=open('data/u_Lvoid_20.txt',encoding='utf-8') file2=open('temp2/void.txt','w',encoding='utf-8') count=0 for line in file1: count=count+1 if(line[0]=='R'):# 'line' here is a string line_list=line.split( ) # 'line_list' is a list of small strings=['R4...
34.064516
133
0.578598
0
0
0
0
0
0
0
0
418
0.395833
8c0deaf91737a4e2d3e5ee024b0d61a03cfcd0d1
5,230
py
Python
ebi_eva_common_pyutils/variation/contig_utils.py
itsroops/eva-common-pyutils
4226e3800a95e8a50ff2735792382fe1a6ca4efc
[ "Apache-2.0" ]
null
null
null
ebi_eva_common_pyutils/variation/contig_utils.py
itsroops/eva-common-pyutils
4226e3800a95e8a50ff2735792382fe1a6ca4efc
[ "Apache-2.0" ]
4
2020-09-11T12:02:49.000Z
2021-06-23T14:44:36.000Z
ebi_eva_common_pyutils/variation/contig_utils.py
itsroops/eva-common-pyutils
4226e3800a95e8a50ff2735792382fe1a6ca4efc
[ "Apache-2.0" ]
6
2020-07-18T21:06:10.000Z
2022-01-11T08:00:26.000Z
# Copyright 2020 EMBL - European Bioinformatics Institute # # 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...
45.877193
115
0.68413
0
0
0
0
3,017
0.576864
0
0
2,753
0.526386
8c0e97f1acefec6e12b9b45266f9d330feb11b47
355
py
Python
pswalker/sim/sim.py
ZLLentz/pswalker
9642489e6add37906998f09cc88290bc95686ac9
[ "BSD-3-Clause-LBNL" ]
null
null
null
pswalker/sim/sim.py
ZLLentz/pswalker
9642489e6add37906998f09cc88290bc95686ac9
[ "BSD-3-Clause-LBNL" ]
8
2018-04-20T21:26:02.000Z
2021-01-11T19:31:08.000Z
pswalker/sim/sim.py
ZLLentz/pswalker
9642489e6add37906998f09cc88290bc95686ac9
[ "BSD-3-Clause-LBNL" ]
2
2018-06-26T00:09:27.000Z
2018-11-29T19:40:04.000Z
""" Simulated device classes """ from ophyd.device import Device, Component from .signal import FakeSignal class SimDevice(Device): """ Class to house components and methods common to all simulated devices. """ sim_x = Component(FakeSignal, value=0) sim_y = Component(FakeSignal, value=0) sim_...
22.1875
74
0.712676
244
0.687324
0
0
0
0
0
0
118
0.332394
8c11280fc4fa1a1f5cf0b54ef39c72d2dd65d7b4
7,824
py
Python
clearKeys.py
kylephan/Utilities
21b025a1cf71b4ced95243cc0cf1a8be4d316f5e
[ "MIT" ]
null
null
null
clearKeys.py
kylephan/Utilities
21b025a1cf71b4ced95243cc0cf1a8be4d316f5e
[ "MIT" ]
null
null
null
clearKeys.py
kylephan/Utilities
21b025a1cf71b4ced95243cc0cf1a8be4d316f5e
[ "MIT" ]
null
null
null
import maya.cmds as mc def letsClear(*args): obj = mc.ls(sl=True) if all == True: for o in obj: clearTX(o) clearTY(o) clearTZ(o) clearRX(o) clearRY(o) clearRZ(o) else: for o in obj: ...
32.330579
107
0.484279
0
0
0
0
0
0
0
0
569
0.072725
8c12046b606eeaab0b8c35a25777e9fe98b1e5b5
1,067
py
Python
server.py
boyuhou/security-data
31bd1f0e9577d46124512102c4c4bf995cf36f95
[ "Apache-2.0" ]
null
null
null
server.py
boyuhou/security-data
31bd1f0e9577d46124512102c4c4bf995cf36f95
[ "Apache-2.0" ]
3
2017-11-30T01:22:12.000Z
2017-12-02T22:47:39.000Z
server.py
boyuhou/security-data
31bd1f0e9577d46124512102c4c4bf995cf36f95
[ "Apache-2.0" ]
null
null
null
import click import logging import datetime import pandas as pd from security_data import SecurityService DATE_FORMAT = '%Y%m%d' logging.basicConfig(format='%(asctime)s:%(levelname)s:%(message)s', level=logging.DEBUG, datefmt='%Y-%m-%d %I:%M:%S') logger = logging.getLogger(__name__) @click.command() @click.option('-...
34.419355
117
0.738519
0
0
0
0
648
0.60731
0
0
281
0.263355
8c1228dad2ddec0f512667f55e56e57c66f03a49
3,731
py
Python
chemlib.py
nano-bio/fitlib
299703dbc9ecafa528b965ccac538173801923b2
[ "BSD-3-Clause" ]
null
null
null
chemlib.py
nano-bio/fitlib
299703dbc9ecafa528b965ccac538173801923b2
[ "BSD-3-Clause" ]
null
null
null
chemlib.py
nano-bio/fitlib
299703dbc9ecafa528b965ccac538173801923b2
[ "BSD-3-Clause" ]
null
null
null
from suds.client import Client import suds import time import helplib as hl #be aware that you need a chemspider_token.txt in the directory for the app to work #the chemspider_token.txt should only contain the token (available online for free) class ChemicalObject(): def __init__(self, name = '', cas = '', inchi...
33.918182
115
0.582418
3,483
0.93353
0
0
0
0
0
0
1,226
0.328598
8c12a700a732ea2822524f81a70b50cd9e629e1d
4,115
py
Python
src/lib/hxPy/py/hxpy/hxpy/hxpy.py
jamesdgessel/hxpy_adjustments
25010dd023bdc36cc08e1afc08ac16159aba5646
[ "AFL-3.0" ]
35
2021-05-04T18:50:16.000Z
2022-02-27T05:15:35.000Z
src/lib/hxPy/py/hxpy/hxpy/hxpy.py
jamesdgessel/hxpy_adjustments
25010dd023bdc36cc08e1afc08ac16159aba5646
[ "AFL-3.0" ]
7
2021-07-12T08:06:14.000Z
2022-03-19T08:46:08.000Z
src/lib/hxPy/py/hxpy/hxpy/hxpy.py
jamesdgessel/hxpy_adjustments
25010dd023bdc36cc08e1afc08ac16159aba5646
[ "AFL-3.0" ]
4
2021-05-11T18:53:16.000Z
2022-03-17T04:15:48.000Z
# -*- coding: utf-8 -*- # # Copyright (c) 2021, SkyFoundry LLC # Licensed under the Academic Free License version 3.0 # # History: # 23 Jul 2021 Matthew Giannini Creation # import socket import struct import traceback from . import brio from .haystack import Marker from .haystack import GridBuilder class HxPy: ...
30.481481
121
0.509356
3,799
0.923208
0
0
0
0
0
0
966
0.234751
8c139b694a21d0428d056ef4776c840e99b1f37e
10,727
py
Python
util/legacypgsql.py
twonds/palaver
fcaa1884bc206e0aba7c88d9614e38b492c59285
[ "MIT" ]
4
2015-01-20T17:25:12.000Z
2020-02-12T08:24:05.000Z
util/legacypgsql.py
twonds/palaver
fcaa1884bc206e0aba7c88d9614e38b492c59285
[ "MIT" ]
1
2016-01-27T16:13:18.000Z
2016-01-27T19:11:21.000Z
util/legacypgsql.py
twonds/palaver
fcaa1884bc206e0aba7c88d9614e38b492c59285
[ "MIT" ]
null
null
null
# Copyright (c) 2007 Christopher Zorn, OGG, LLC # See LICENSE.txt for details # Converts the legacy muc spool to the new dirDBM one import sys from twisted.words.xish import domish, xpath from twisted.words.protocols.jabber import jid from twisted.enterprise import adbapi from palaver import palaver, pgsql_storage f...
34.38141
108
0.43535
4,389
0.409154
0
0
0
0
0
0
3,336
0.310991
8c1485cf8e092dcb4f7018714e075d4893a7a7a6
11,425
py
Python
gems/simple_args.py
Beatnukem/python-gems
fa9f2c66d969e8ca7d9913c772d0c4ea3e45f930
[ "MIT" ]
null
null
null
gems/simple_args.py
Beatnukem/python-gems
fa9f2c66d969e8ca7d9913c772d0c4ea3e45f930
[ "MIT" ]
null
null
null
gems/simple_args.py
Beatnukem/python-gems
fa9f2c66d969e8ca7d9913c772d0c4ea3e45f930
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Paul Reindell # # 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, modify, merge, publish, dist...
39.261168
183
0.482451
0
0
0
0
0
0
0
0
2,742
0.24
8c148fde88203756452378cb9e839f75242a5e32
16,209
py
Python
teetool/visual_2d.py
sfo/teetool
24fa8691449b733f9d07d9a8f96bd40b0e50c2a5
[ "MIT" ]
9
2017-04-26T13:08:07.000Z
2021-01-29T08:52:15.000Z
teetool/visual_2d.py
sfo/teetool
24fa8691449b733f9d07d9a8f96bd40b0e50c2a5
[ "MIT" ]
1
2017-04-12T22:31:41.000Z
2017-04-14T16:05:30.000Z
teetool/visual_2d.py
sfo/teetool
24fa8691449b733f9d07d9a8f96bd40b0e50c2a5
[ "MIT" ]
7
2016-10-25T13:48:52.000Z
2022-02-27T06:38:40.000Z
## @package teetool # This module contains the Visual_2d class # # See Visual_2d class for more details import numpy as np from scipy.interpolate import griddata import matplotlib.pyplot as plt import teetool as tt ## Visual_2d class generates the 2d output using Matplotlib # # Even 3-dimensional trajectories can...
36.02
161
0.516256
15,862
0.978592
0
0
0
0
0
0
5,338
0.329323
8c16f46acf3c76645280b368240ee645781f645e
248
py
Python
Algorithms/2. Implementation/18 - Climbing the Leaderboard.py
rosiejh/HackerRank
bfb07b8add04d3f3b67a61754db483f88a79e5a5
[ "Apache-2.0" ]
null
null
null
Algorithms/2. Implementation/18 - Climbing the Leaderboard.py
rosiejh/HackerRank
bfb07b8add04d3f3b67a61754db483f88a79e5a5
[ "Apache-2.0" ]
null
null
null
Algorithms/2. Implementation/18 - Climbing the Leaderboard.py
rosiejh/HackerRank
bfb07b8add04d3f3b67a61754db483f88a79e5a5
[ "Apache-2.0" ]
null
null
null
def climbingLeaderboard(scores, alice): scores = list(reversed(sorted(set(scores)))) r, rank = len(scores), [] for a in alice: while (r > 0) and (a >= scores[r - 1]): r -= 1 rank.append(r + 1) return rank
31
48
0.540323
0
0
0
0
0
0
0
0
0
0
8c16f8302199537857c9b354ec984440477f9e4f
1,417
py
Python
endsem/component_1/initial_parameters_estimator.py
maher460/cmu10601
108811a648aa5128a1e44e269a1e6e8802e3f100
[ "MIT" ]
1
2019-04-17T14:05:35.000Z
2019-04-17T14:05:35.000Z
endsem/component_1/initial_parameters_estimator.py
maher460/cmu10601
108811a648aa5128a1e44e269a1e6e8802e3f100
[ "MIT" ]
null
null
null
endsem/component_1/initial_parameters_estimator.py
maher460/cmu10601
108811a648aa5128a1e44e269a1e6e8802e3f100
[ "MIT" ]
null
null
null
import kmeans import json import numpy as np NUM_GAUSSIANS = 32 DO_KMEANS = False DEBUG = True mixture_weights = [1.0/NUM_GAUSSIANS] * NUM_GAUSSIANS if DEBUG: print ("mixture_weights: ", mixture_weights) print("Loading parsed data...") traindata_processed_file = open("parsed_data/data1.universalenrollparsed", "...
27.784314
80
0.694425
0
0
0
0
0
0
0
0
375
0.264644
8c17fa8708bb9e41eb65c6fabc304aa1f4620e52
492
py
Python
backend/server/apps/endpoints/tests.py
BetikuOluwatobi/tweets_sentiment-analysis
b6a86ebbd281c1e4550211c6ff2788006728af8f
[ "MIT" ]
1
2021-09-23T20:20:27.000Z
2021-09-23T20:20:27.000Z
backend/server/apps/endpoints/tests.py
BetikuOluwatobi/tweets_sentiment-analysis
b6a86ebbd281c1e4550211c6ff2788006728af8f
[ "MIT" ]
null
null
null
backend/server/apps/endpoints/tests.py
BetikuOluwatobi/tweets_sentiment-analysis
b6a86ebbd281c1e4550211c6ff2788006728af8f
[ "MIT" ]
null
null
null
from django.test import TestCase from .algorithm import Logistic_Regression # Create your tests here. class TestModelPredictions(TestCase): def testPositive(self): input = 'I am very happy today :)' model = Logistic_Regression() pred = model.predict_tweet(input) self.assertEqual('positive',pred) ...
28.941176
42
0.719512
388
0.788618
0
0
0
0
0
0
95
0.193089
8c1b1007e7ce83e67bed0e618b9207e4eb8ea15f
9,369
py
Python
githubly.py
kumaranvpl/githubly
0261af92f375ad06105e2969c5e62a0db6d4b095
[ "MIT" ]
null
null
null
githubly.py
kumaranvpl/githubly
0261af92f375ad06105e2969c5e62a0db6d4b095
[ "MIT" ]
4
2016-10-24T18:40:54.000Z
2016-10-25T02:34:44.000Z
githubly.py
kumaranvpl/githubly
0261af92f375ad06105e2969c5e62a0db6d4b095
[ "MIT" ]
null
null
null
import csv import getpass import json import requests import sys from requests.auth import HTTPBasicAuth class GithublyException(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class Githubly: def __init__(self, username, password): ...
41.455752
132
0.582026
7,846
0.837443
0
0
0
0
0
0
2,471
0.263742
8c1b30fbf9e603403e818a12412369bae43a8ccb
5,562
py
Python
heat/engine/resources/neutron/floatingip.py
NeCTAR-RC/heat
b152817f192a7b46514793633ddc968c1fe1ebf8
[ "Apache-2.0" ]
1
2015-02-26T03:23:23.000Z
2015-02-26T03:23:23.000Z
heat/engine/resources/neutron/floatingip.py
NeCTAR-RC/heat
b152817f192a7b46514793633ddc968c1fe1ebf8
[ "Apache-2.0" ]
null
null
null
heat/engine/resources/neutron/floatingip.py
NeCTAR-RC/heat
b152817f192a7b46514793633ddc968c1fe1ebf8
[ "Apache-2.0" ]
null
null
null
# # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
36.116883
79
0.627292
4,399
0.790903
0
0
0
0
0
0
1,876
0.337289
8c1b7857206e2478990b4e2756556816497cca42
1,537
py
Python
netgpibdata/netgpibcmd.py
daccordeon/summerSHG
4e9254b408bb04ddd7b4b5ae1c8db0d23c72f88f
[ "BSD-3-Clause" ]
1
2020-12-06T23:40:21.000Z
2020-12-06T23:40:21.000Z
netgpibdata/netgpibcmd.py
daccordeon/summerSHG
4e9254b408bb04ddd7b4b5ae1c8db0d23c72f88f
[ "BSD-3-Clause" ]
null
null
null
netgpibdata/netgpibcmd.py
daccordeon/summerSHG
4e9254b408bb04ddd7b4b5ae1c8db0d23c72f88f
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python import sys import optparse import netgpib # Usage text usage = """usage: %prog [options] CMD Issue a command or query from a network-connected GPIB device. example: %prog -i 192.168.113.105 -d AG4395A -a 10 'POIN?'""" # Parse options parser = optparse.OptionParser(usage=usage) parser.add_opt...
26.964912
65
0.56864
0
0
0
0
0
0
0
0
623
0.405335
8c1bd682f752834d77fb93966c012c2997c2b56d
784
py
Python
microcosm_postgres/tests/test_toposort.py
globality-corp/microcosm-postgres
5530a0cb3e022dfb6a93808e3397bf8beaa45b66
[ "Apache-2.0" ]
2
2018-08-17T14:52:41.000Z
2018-09-20T01:39:21.000Z
microcosm_postgres/tests/test_toposort.py
globality-corp/microcosm-postgres
5530a0cb3e022dfb6a93808e3397bf8beaa45b66
[ "Apache-2.0" ]
37
2016-03-08T05:34:28.000Z
2021-04-21T03:20:18.000Z
microcosm_postgres/tests/test_toposort.py
globality-corp/microcosm-postgres
5530a0cb3e022dfb6a93808e3397bf8beaa45b66
[ "Apache-2.0" ]
6
2016-11-16T07:30:35.000Z
2019-06-24T19:27:33.000Z
""" Test topological sort. """ from hamcrest import assert_that, contains from microcosm_postgres.dag import Edge from microcosm_postgres.toposort import toposorted class Node: def __init__(self, id): self.id = id def test_toposort(): nodes = dict( one=Node(id="one"), two=Node(id="...
20.102564
50
0.540816
60
0.076531
0
0
0
0
0
0
124
0.158163
8c1dba83b34a1c4ed784910f891d161f756f6131
905
py
Python
examples/accessing_variables.py
Rory-Sullivan/yrlocationforecast
26b66834cac4569704daf0009a9d2bba39dbfb75
[ "MIT" ]
13
2020-07-28T17:47:42.000Z
2022-03-30T13:35:12.000Z
examples/accessing_variables.py
Rory-Sullivan/yrlocationforecast
26b66834cac4569704daf0009a9d2bba39dbfb75
[ "MIT" ]
5
2020-10-14T11:10:13.000Z
2022-01-01T17:35:19.000Z
examples/accessing_variables.py
Rory-Sullivan/yrlocationforecast
26b66834cac4569704daf0009a9d2bba39dbfb75
[ "MIT" ]
6
2020-10-16T12:30:07.000Z
2022-02-18T07:13:21.000Z
"""An example of accessing individual forecast variables.""" from metno_locationforecast import Place, Forecast USER_AGENT = "metno_locationforecast/1.0 https://github.com/Rory-Sullivan/yrlocationforecast" new_york = Place("New York", 40.7, -74.0, 10) new_york_forecast = Forecast(new_york, USER_AGENT, "complete") ne...
30.166667
93
0.781215
0
0
0
0
0
0
0
0
515
0.569061
8c1fd8a545034c6706874c719b97ff2d1685083f
1,216
py
Python
photometry/run_simulateFITS.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/run_simulateFITS.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
photometry/run_simulateFITS.py
aditya-sengupta/tesscomp-prototyping
93da86cd139c240ba5f59f187bcbc47e899c3519
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Command-line utility to simulate TESS FITS images for the photometry pipeline. Structure inspired by `run_tessphot` by Rasmus Handberg. .. codeauthor:: Jonas Svenstrup Hansen <jonas.svenstrup@gmail.com> """ #import os import argparse #import logging from simulation....
33.777778
108
0.739309
0
0
0
0
0
0
0
0
753
0.619243
8c1ffb243fbd46c27878c213979b249291696cf1
7,083
py
Python
src/pythonScripts/DrivePart/download.py
sahilbest999/FVS-GIT-CLONE
428ad5726a8b04d4fcd79eac22bec4395f3e2422
[ "MIT" ]
null
null
null
src/pythonScripts/DrivePart/download.py
sahilbest999/FVS-GIT-CLONE
428ad5726a8b04d4fcd79eac22bec4395f3e2422
[ "MIT" ]
1
2021-02-11T15:47:55.000Z
2021-03-22T03:35:46.000Z
src/pythonScripts/DrivePart/download.py
sahilbest999/FVS-GIT-CLONE
428ad5726a8b04d4fcd79eac22bec4395f3e2422
[ "MIT" ]
1
2020-08-12T18:32:38.000Z
2020-08-12T18:32:38.000Z
import pickle import os import re import io import response import upload import authenticate from googleapiclient.errors import HttpError from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from googleapiclient.http impo...
33.410377
159
0.652266
0
0
0
0
0
0
0
0
3,752
0.529644
8c22ac32d9e86be7204e958a46ee2baa1ce5b423
602
py
Python
MakeRelativePaths.py
Ccantey/ArcGIS-Scripting
464ed20e4365c5518ff6e226fb9b209de422f0dc
[ "Unlicense" ]
11
2015-06-08T08:35:46.000Z
2021-07-29T22:45:23.000Z
MakeRelativePaths.py
Ccantey/ArcGIS-Scripting
464ed20e4365c5518ff6e226fb9b209de422f0dc
[ "Unlicense" ]
null
null
null
MakeRelativePaths.py
Ccantey/ArcGIS-Scripting
464ed20e4365c5518ff6e226fb9b209de422f0dc
[ "Unlicense" ]
5
2016-11-22T19:24:59.000Z
2018-05-02T13:03:43.000Z
import arcpy, os #walk through all subdirectories and change mxd to store relative paths for root, dirs, files in os.walk(r"Q:\Geodata\shape"): for f in files: if f.endswith(".mxd"): filepath = root + '\\' + f print filepath try: ...
28.666667
71
0.463455
0
0
0
0
0
0
0
0
137
0.227575
8c23261bdfd7bedf3419eb6c6b69a2ddfc65fe75
376
py
Python
ind3.py
Nebula139/Sky3
16ece8db297966bc016ae6e0bbfee4e2998d1e16
[ "MIT" ]
null
null
null
ind3.py
Nebula139/Sky3
16ece8db297966bc016ae6e0bbfee4e2998d1e16
[ "MIT" ]
null
null
null
ind3.py
Nebula139/Sky3
16ece8db297966bc016ae6e0bbfee4e2998d1e16
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import math if __name__ == '__main__': a = input('Введите время: ') t = 0 A = 1 V = int(int(a)/3) if V == 0: print('Ошибка') else: while t < int(a): t = t + 3 A *= 2 pri...
18.8
66
0.420213
0
0
0
0
0
0
0
0
151
0.364734
8c23962ece1baf380f89499b984bcb0464883878
9,971
py
Python
src/k8s-extension/azext_k8s_extension/custom.py
anagg929/azure-cli-extensions
5f9338bdbea4d127cde442ca1d60ee5c892aac0a
[ "MIT" ]
null
null
null
src/k8s-extension/azext_k8s_extension/custom.py
anagg929/azure-cli-extensions
5f9338bdbea4d127cde442ca1d60ee5c892aac0a
[ "MIT" ]
null
null
null
src/k8s-extension/azext_k8s_extension/custom.py
anagg929/azure-cli-extensions
5f9338bdbea4d127cde442ca1d60ee5c892aac0a
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
46.162037
119
0.684986
0
0
0
0
0
0
0
0
2,640
0.264768
8c27dc6bc871f7889ddc494ac9e16b08fd6a4764
248
py
Python
settings.py
arakilian0/calcupy
c0091c840cae982c9bf8816f1f8ec630dbb305ae
[ "MIT" ]
1
2021-07-22T03:07:16.000Z
2021-07-22T03:07:16.000Z
settings.py
arakilian0/calcupy
c0091c840cae982c9bf8816f1f8ec630dbb305ae
[ "MIT" ]
null
null
null
settings.py
arakilian0/calcupy
c0091c840cae982c9bf8816f1f8ec630dbb305ae
[ "MIT" ]
1
2020-01-24T11:51:47.000Z
2020-01-24T11:51:47.000Z
screen = { "bg": "blue", "rows": 0, "columns": 0, "columnspan": 4, "padx": 5, "pady": 5, } input = { "bg": "blue", "fg": "red", "fs": "20px", } button = { "bg": "blue", "fg": "red", "fs": "20px", }
11.809524
20
0.366935
0
0
0
0
0
0
0
0
107
0.431452
8c28212a9787a533451cf08af6ca4192b14942e2
7,203
py
Python
pymcuprog/nvmpic.py
xthanhn/mcuprog
84eb4baf82dcefe696d5d50344d7d5ca155cbefd
[ "MIT" ]
1
2021-08-25T08:59:33.000Z
2021-08-25T08:59:33.000Z
pymcuprog/nvmpic.py
xthanhn/mcuprog
84eb4baf82dcefe696d5d50344d7d5ca155cbefd
[ "MIT" ]
null
null
null
pymcuprog/nvmpic.py
xthanhn/mcuprog
84eb4baf82dcefe696d5d50344d7d5ca155cbefd
[ "MIT" ]
null
null
null
""" PIC NVM implementation """ import os import sys from pyedbglib.util import binary from pymcuprog import utils from pymcuprog.nvm import NvmAccessProviderCmsisDapTool from pymcuprog.pymcuprog_errors import PymcuprogNotSupportedError from pymcuprog.deviceinfo.memorynames import MemoryNames from pymcuprog.deviceinfo...
40.240223
119
0.627377
6,820
0.946828
0
0
0
0
0
0
2,402
0.333472
8c28407a573c7236354b86016987c0975cf4f3c6
502
py
Python
03-Simple-Neuron-Layer(Looping).py
KisanThapa/Neural-Networks-Scratch-
4a78c2042e8575bbadaba709e50e7ad4070963f8
[ "Apache-2.0" ]
null
null
null
03-Simple-Neuron-Layer(Looping).py
KisanThapa/Neural-Networks-Scratch-
4a78c2042e8575bbadaba709e50e7ad4070963f8
[ "Apache-2.0" ]
null
null
null
03-Simple-Neuron-Layer(Looping).py
KisanThapa/Neural-Networks-Scratch-
4a78c2042e8575bbadaba709e50e7ad4070963f8
[ "Apache-2.0" ]
null
null
null
# 3. Single layered 4 inputs and 3 outputs(Looping) mInputs = [3, 4, 1, 2] mWeights = [[0.2, -0.4, 0.6, 0.4], [0.4, 0.3, -0.1, 0.8], [0.7, 0.6, 0.3, -0.3]] mBias1 = [3, 4, 2] layer_output = [] for neuron_weights, neuron_bias in zip(mWeights, mBias1): neuron_output = 0 for n_inputs, ...
21.826087
60
0.621514
0
0
0
0
0
0
0
0
51
0.101594
8c29f01f7753be2f1ec266b967456193a850ecb8
2,733
py
Python
doubly_stochastic_dgp/layer_initializations.py
ayush29/Doubly-Stochastic-DGP
5bf96b57a7571fe367083c8fd95e61bd1d534f55
[ "Apache-2.0" ]
126
2017-05-26T07:10:58.000Z
2021-12-24T07:56:36.000Z
doubly_stochastic_dgp/layer_initializations.py
SourangshuGhosh/Doubly-Stochastic-DGP
e22f5c94b1a60ee04e3ebca9eb140510eab54724
[ "Apache-2.0" ]
39
2017-08-04T11:29:13.000Z
2021-02-16T09:52:29.000Z
doubly_stochastic_dgp/layer_initializations.py
SourangshuGhosh/Doubly-Stochastic-DGP
e22f5c94b1a60ee04e3ebca9eb140510eab54724
[ "Apache-2.0" ]
56
2017-05-29T11:48:47.000Z
2021-09-09T15:19:46.000Z
import tensorflow as tf import numpy as np from gpflow.params import DataHolder, Minibatch from gpflow import autoflow, params_as_tensors, ParamList from gpflow.models.model import Model from gpflow.mean_functions import Identity, Linear from gpflow.mean_functions import Zero from gpflow.quadrature import mvhermgauss...
34.1625
95
0.608855
0
0
0
0
0
0
0
0
89
0.032565
8c2a807f43d6eef105689c63e12efd6dbb33bdcb
2,099
py
Python
backend_django/login_api/serializers.py
oereo/cau-lion-server
58ae08bba739387796a814f03c193a1eeea1b8a6
[ "MIT" ]
2
2020-04-17T07:22:55.000Z
2020-04-20T16:45:38.000Z
backend_django/login_api/serializers.py
oereo/cau-lion-server
58ae08bba739387796a814f03c193a1eeea1b8a6
[ "MIT" ]
17
2020-04-25T12:01:16.000Z
2022-03-12T00:32:42.000Z
backend_django/login_api/serializers.py
minseungseon/cau-lion-server
705d892df4746f658f903bc30e1622da35e81e69
[ "MIT" ]
3
2020-04-16T06:20:53.000Z
2020-04-19T01:47:20.000Z
#2020-04-20 minseung seon created. #serializer는 모두 ModelSerializer로 간단히 처리함 from rest_framework import serializers from django.contrib.auth.models import User from django.contrib.auth import authenticate from .models import Profile #Sign Up 회원가입 class UserSerializer(serializers.ModelSerializer): class meta: ...
26.56962
72
0.613626
1,769
0.798646
0
0
0
0
0
0
960
0.433409
8c2cb46531652620ec234711640343b0c737574c
10,157
py
Python
menu_view.py
MCOxford/tile_miner
eefa0c8a31cf44e9b25ee3e779bc21b7ee79212e
[ "MIT" ]
null
null
null
menu_view.py
MCOxford/tile_miner
eefa0c8a31cf44e9b25ee3e779bc21b7ee79212e
[ "MIT" ]
null
null
null
menu_view.py
MCOxford/tile_miner
eefa0c8a31cf44e9b25ee3e779bc21b7ee79212e
[ "MIT" ]
null
null
null
import arcade import arcade.gui from arcade.gui import UIManager from constants import * import os dirname = os.path.dirname(__file__) button_normal = arcade.load_texture(os.path.join(dirname, 'images/red_button_normal.png')) hovered_texture = arcade.load_texture(os.path.join(dirname, 'images/red_button_hover.png')) p...
37.341912
115
0.608743
9,535
0.938761
0
0
1,470
0.144728
0
0
1,795
0.176725
8c2d9c7411c316a5fdbc00d27ddd1f859de4e57c
4,645
py
Python
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
null
null
null
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
1
2018-06-08T06:45:16.000Z
2018-06-08T06:45:16.000Z
Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/TypeInfo/FundamentalTypes/All.py
davidbrownell/v3-Common_Environment
8f42f256e573cbd83cbf9813db9958025ddf12f2
[ "BSL-1.0" ]
1
2018-06-08T04:15:17.000Z
2018-06-08T04:15:17.000Z
# ---------------------------------------------------------------------- # | # | All.py # | # | David Brownell <db@DavidBrownell.com> # | 2018-04-23 10:05:42 # | # ---------------------------------------------------------------------- # | # | Copyright David Brownell 2018-22. # | Distributed ...
46.919192
103
0.475996
0
0
0
0
0
0
0
0
1,420
0.305705
8c2dc756bd57296e610b4f8de275d1147bb68d78
6,783
py
Python
train.py
runhani/person-classification
40d5199a770f40f8eea5d818645860baeb76bce7
[ "MIT" ]
null
null
null
train.py
runhani/person-classification
40d5199a770f40f8eea5d818645860baeb76bce7
[ "MIT" ]
null
null
null
train.py
runhani/person-classification
40d5199a770f40f8eea5d818645860baeb76bce7
[ "MIT" ]
null
null
null
import os import matplotlib.pyplot as plt from keras import applications from keras.preprocessing.image import ImageDataGenerator, load_img from keras import optimizers from keras.models import Sequential, Model, load_model from keras.layers import Dropout, Flatten, Dense, MaxPooling2D from keras.regularizers import ...
34.257576
162
0.65502
0
0
0
0
0
0
0
0
1,866
0.2751
8c2f157870a65c3393becd00864f981eb90091df
691
py
Python
custom_config.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
custom_config.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
custom_config.py
prise-3d/Thesis-NoiseDetection-rfe-attributes
f5062a03876e8f270f79c3d811bf7ba1ec7d9ba1
[ "MIT" ]
null
null
null
from modules.config.attributes_config import * # store all variables from global config context_vars = vars() # folders logs_folder = 'logs' backup_folder = 'backups' ## min_max_custom_folder = 'custom_norm' ## correlation_indices_folder = 'corr_in...
32.904762
112
0.617945
0
0
0
0
0
0
0
0
426
0.616498
8c2f47b6bc6e992abed62a2818205e164178fdb1
7,969
py
Python
optable_submission/optable_package/optable/manipulations/target_encodings/hist_neighborhood_target_encoding.py
pfnet-research/KDD-Cup-AutoML-5
54202eb6aa414316a70faa8e07a68e1c8ca7bd1b
[ "MIT" ]
18
2019-07-22T06:35:37.000Z
2021-03-20T08:37:56.000Z
optable_submission/optable_package/optable/manipulations/target_encodings/hist_neighborhood_target_encoding.py
pfnet-research/KDD-Cup-AutoML-5
54202eb6aa414316a70faa8e07a68e1c8ca7bd1b
[ "MIT" ]
1
2020-03-22T21:06:57.000Z
2020-03-22T21:06:57.000Z
optable_submission/optable_package/optable/manipulations/target_encodings/hist_neighborhood_target_encoding.py
pfnet-research/KDD-Cup-AutoML-5
54202eb6aa414316a70faa8e07a68e1c8ca7bd1b
[ "MIT" ]
11
2019-07-23T04:06:08.000Z
2020-05-12T08:44:01.000Z
import numpy as np from scipy import stats from sklearn import metrics from optable.synthesis import manipulation from optable.synthesis import manipulation_candidate from optable.dataset import feature_types from optable import _core # TODO: もうちょっとto-many, to-oneうまく扱う、このままだと抜けが出てくる # TODO: dstのlenで判断しているのもよくない cl...
37.413146
79
0.598695
7,647
0.950292
0
0
172
0.021374
0
0
514
0.063875
8c3007d2f608b3d77db169c4425877d373ee00f3
3,798
py
Python
PullVectorsFromSQLandRunSimilarity.py
aktivkohle/youtube-curation
1651eae7af29f60dc3e87bd696712b7e3848217e
[ "MIT" ]
4
2017-11-14T13:30:07.000Z
2019-06-12T16:01:15.000Z
PullVectorsFromSQLandRunSimilarity.py
aktivkohle/youtube-curation
1651eae7af29f60dc3e87bd696712b7e3848217e
[ "MIT" ]
null
null
null
PullVectorsFromSQLandRunSimilarity.py
aktivkohle/youtube-curation
1651eae7af29f60dc3e87bd696712b7e3848217e
[ "MIT" ]
1
2019-12-03T08:57:05.000Z
2019-12-03T08:57:05.000Z
import sys sys.path.append('../') import config import pymysql.cursors import pandas as pd import numpy as np from scipy import io as scipyio from tempfile import SpooledTemporaryFile from scipy.sparse import vstack as vstack_sparse_matrices # Function to reassemble the p matrix from the vectors def reconstitute_vect...
37.98
138
0.650079
0
0
0
0
0
0
0
0
1,790
0.471301
8c321b723875c29f1ae6ed62908243de66570a8e
3,430
py
Python
core/views.py
lcs-amorim/OPE-EasyParty
b3439bf21523d7f3fb19b12283c24f364bf54388
[ "Apache-2.0" ]
null
null
null
core/views.py
lcs-amorim/OPE-EasyParty
b3439bf21523d7f3fb19b12283c24f364bf54388
[ "Apache-2.0" ]
4
2020-06-05T18:01:15.000Z
2021-09-07T23:51:04.000Z
core/views.py
lcs-amorim/OPE-EasyParty
b3439bf21523d7f3fb19b12283c24f364bf54388
[ "Apache-2.0" ]
1
2018-10-02T23:45:15.000Z
2018-10-02T23:45:15.000Z
from django.shortcuts import render, redirect , HttpResponseRedirect, get_object_or_404 from django.contrib.auth.decorators import login_required, user_passes_test from django.contrib.auth.forms import UserCreationForm, PasswordChangeForm from django.views.generic import View, TemplateView, CreateView, UpdateView from ...
27.886179
121
0.625656
0
0
0
0
1,133
0.329936
0
0
941
0.274024
8c32b849026f787dad3dce205fac98d12cb8e86b
478
py
Python
adminlte_log/tests.py
beastbikes/django-only-admin
c89b782b92edbb1f75151e71163c0708afacd4f9
[ "MIT" ]
32
2016-11-24T08:33:10.000Z
2017-12-18T00:25:00.000Z
adminlte_log/tests.py
beastbikes/django-only-admin
c89b782b92edbb1f75151e71163c0708afacd4f9
[ "MIT" ]
15
2016-11-30T08:28:56.000Z
2017-09-20T15:54:18.000Z
adminlte_log/tests.py
beastbikes/django-only-admin
c89b782b92edbb1f75151e71163c0708afacd4f9
[ "MIT" ]
9
2016-11-25T02:14:24.000Z
2017-12-06T13:22:51.000Z
from django.contrib.auth.models import User from django.test import TestCase from adminlte_log.models import AdminlteLogType, AdminlteLog class AdminlteLogTest(TestCase): def setUp(self): AdminlteLogType.objects.create(name='test', code='test') self.user = User.objects.create_user(username='boha...
29.875
92
0.713389
336
0.702929
0
0
0
0
0
0
45
0.094142
8c3305c5267a989ec6a70f3ec4b12d3cf6b4ba05
9,607
py
Python
pygmt/tests/test_text.py
tawandamoyo/pygmt
4ef90382bfd84dfa47ce2422d2937a9b803de214
[ "BSD-3-Clause" ]
null
null
null
pygmt/tests/test_text.py
tawandamoyo/pygmt
4ef90382bfd84dfa47ce2422d2937a9b803de214
[ "BSD-3-Clause" ]
24
2021-02-12T08:12:30.000Z
2022-02-08T13:04:23.000Z
pygmt/tests/test_text.py
tawandamoyo/pygmt
4ef90382bfd84dfa47ce2422d2937a9b803de214
[ "BSD-3-Clause" ]
1
2022-01-12T20:52:52.000Z
2022-01-12T20:52:52.000Z
# pylint: disable=redefined-outer-name """ Tests text. """ import os import numpy as np import pytest from pygmt import Figure from pygmt.exceptions import GMTCLibError, GMTInvalidInput from pygmt.helpers import GMTTempFile from pygmt.helpers.testing import check_figures_equal TEST_DATA_DIR = os.path.join(os.path.dir...
25.618667
85
0.616634
0
0
0
0
8,265
0.86031
0
0
2,928
0.304778
8c3337efda806d1e98b40346af81d2a58586f5fc
658
py
Python
Python/count-primes.py
xtt129/LeetCode
1afa893d38e2fce68e4677b34169c0f0262b6fac
[ "MIT" ]
2
2020-04-08T17:57:43.000Z
2021-11-07T09:11:51.000Z
Python/count-primes.py
xtt129/LeetCode
1afa893d38e2fce68e4677b34169c0f0262b6fac
[ "MIT" ]
null
null
null
Python/count-primes.py
xtt129/LeetCode
1afa893d38e2fce68e4677b34169c0f0262b6fac
[ "MIT" ]
8
2018-03-13T18:20:26.000Z
2022-03-09T19:48:11.000Z
# Time: O(n) # Space: O(n) # Description: # # Count the number of prime numbers less than a non-negative number, n # # Hint: The number n could be in the order of 100,000 to 5,000,000. # from math import sqrt class Solution: # @param {integer} n # @return {integer} def countPrimes(self, n): if n ...
21.225806
70
0.468085
428
0.650456
0
0
0
0
0
0
219
0.332827
8c33eb4b835fe5ebadebb84d215778d0aae457a4
3,479
py
Python
src/mds/api/signals.py
rryan/sana.mds
d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944
[ "BSD-3-Clause" ]
null
null
null
src/mds/api/signals.py
rryan/sana.mds
d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944
[ "BSD-3-Clause" ]
null
null
null
src/mds/api/signals.py
rryan/sana.mds
d62cd7e6a3d47ce933f6ee04aa7f10c8d642c944
[ "BSD-3-Clause" ]
null
null
null
''' Created on Aug 11, 2012 :author: Sana Development Team :version: 2.0 ''' from django.dispatch import Signal class ExternalDispatch(Signal): """ Simple dispatching signal. The superclass providing_args are a 'dispatcher' key and 'data' dictionary. """ def __init__(self): Signal.__init_...
32.514019
90
0.61052
3,326
0.956022
0
0
0
0
0
0
1,739
0.499856