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
6ce9ce2dd0e46784853652492cb563b90869ae67
8,688
py
Python
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
1
2020-05-18T15:55:09.000Z
2020-05-18T15:55:09.000Z
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
null
null
null
gamestate-changes/change_statistics/other/plotChangeTypeStatistics.py
phylib/MinecraftNDN-RAFNET19
c7bfa7962707af367fafe9d879bc63637c06aec7
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from mpldatacursor import datacursor import pandas as pd class ChangeTypeStatisticPlot(): def __init__(self): self.reset() def reset(self): self.intervals = { "changedChunksAll":[], "changedChunksBlock":[], "changedChunksBl...
52.97561
155
0.674839
8,596
0.989411
0
0
0
0
0
0
3,455
0.397675
6ce9f324d55b6ae60b1dceae331b0a18c49e6cb8
606
py
Python
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
3
2018-08-06T16:08:14.000Z
2019-12-10T17:18:21.000Z
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
2
2019-06-26T19:23:04.000Z
2019-06-30T23:17:46.000Z
cpematcher/utils.py
alertot/cpematcher
3b7f1fc18988700764326e8299fffa26a0dd2cd6
[ "MIT" ]
3
2019-06-25T06:11:07.000Z
2021-11-02T13:13:37.000Z
# heavily inspired by https://stackoverflow.com/a/21882672 def split_cpe_string(string): ret = [] current = [] itr = iter(string) for ch in itr: if ch == "\\": try: # skip the next character; it has been escaped! current.append(next(itr)) e...
27.545455
63
0.50495
0
0
0
0
0
0
0
0
163
0.268977
6cea43f71d85af41272392dee594ce4cf3b7017f
4,221
py
Python
2017/17_spinlock.py
pchudzik/adventofcode
e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1
[ "MIT" ]
null
null
null
2017/17_spinlock.py
pchudzik/adventofcode
e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1
[ "MIT" ]
null
null
null
2017/17_spinlock.py
pchudzik/adventofcode
e1d6521621f6ca90f9dc53cf3d1ed5b8c5c2b7d1
[ "MIT" ]
null
null
null
""" --- Day 17: Spinlock --- Suddenly, whirling in the distance, you notice what looks like a massive, pixelated hurricane: a deadly spinlock. This spinlock isn't just consuming computing power, but memory, too; vast, digital mountains are being ripped from the ground and consumed by the vortex. If you don't move qui...
35.470588
122
0.725421
482
0.114191
0
0
0
0
0
0
3,382
0.801232
6cea4653ce149c498758ae8e65d871bbb3bdd1fb
611
py
Python
cipher_encoder_ASCII.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
3
2020-02-23T13:02:50.000Z
2020-02-25T16:54:39.000Z
cipher_encoder_ASCII.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
null
null
null
cipher_encoder_ASCII.py
rohanailoni/cipher
59baed56b95e47ea75e5f95eb26ab9ae2977da33
[ "MIT" ]
null
null
null
s=input(); k=int(input()) for i in s: elif ord(i)>=97 and ord(i)<=122: y=k%26;x=ord(i)-96; if x+y>26: print(chr(y-(26-x)+96),end="") else: print(chr(x+y+96),end="") elif ord(i)>=65 and ord(i)<=90: y = k % 26;x=ord(i)-64; if x+y>26: prin...
25.458333
42
0.412439
0
0
0
0
0
0
0
0
14
0.022913
6cea6d4c2bf84f2fcbdb49e2bfc9d402a5e6ec16
6,573
py
Python
wft_crawler.py
phulsechinmay/destiny-flavor-text-generator
a97879f892aa1bea0f1890ca4de7c28f3c366148
[ "MIT" ]
null
null
null
wft_crawler.py
phulsechinmay/destiny-flavor-text-generator
a97879f892aa1bea0f1890ca4de7c28f3c366148
[ "MIT" ]
null
null
null
wft_crawler.py
phulsechinmay/destiny-flavor-text-generator
a97879f892aa1bea0f1890ca4de7c28f3c366148
[ "MIT" ]
null
null
null
from requests import get from bs4 import BeautifulSoup import sys import re fileName = '' weaponFlavorTexts = [] weaponTitles = [] dismissedFlavorTexts = ['An Awoken gift from the Reef, marked with the Queen\'s crown.', 'A prestigious trophy earned in battle during the Trials of Osiris.', 'Executor-issued sidearm fo...
46.95
2,148
0.697855
0
0
0
0
0
0
0
0
3,064
0.466149
6ceaf7d47274756db993bf275859c1ba52925e2f
494
py
Python
datasets/KITTI/segtrack/KITTI_MOTS_info.py
DesperateMaker/TrackR-CNN
861b697c4448aac57265d4a6866bd2a0e8b2c6e5
[ "MIT" ]
null
null
null
datasets/KITTI/segtrack/KITTI_MOTS_info.py
DesperateMaker/TrackR-CNN
861b697c4448aac57265d4a6866bd2a0e8b2c6e5
[ "MIT" ]
null
null
null
datasets/KITTI/segtrack/KITTI_MOTS_info.py
DesperateMaker/TrackR-CNN
861b697c4448aac57265d4a6866bd2a0e8b2c6e5
[ "MIT" ]
1
2020-03-17T19:18:21.000Z
2020-03-17T19:18:21.000Z
SEQ_IDS_TRAIN = ["%04d" % idx for idx in [0, 1, 3, 4, 5, 9, 11, 12, 15, 17, 19, 20]] SEQ_IDS_VAL = ["%04d" % idx for idx in [2, 6, 7, 8, 10, 13, 14, 16, 18]] TIMESTEPS_PER_SEQ = {"0000": 154, "0001": 447, "0002": 233, "0003": 144, "0004": 314, "0005": 297, "0006": 270, "0007": 800, "0008": 390, "00...
82.333333
112
0.502024
0
0
0
0
0
0
0
0
138
0.279352
6cebb53641c4070903587094a84cbef7d3c86b94
1,191
py
Python
pymeera/utils/support.py
norecces/pymeera
14cfff6797b0bda231980d9329b480b2c178c803
[ "MIT" ]
null
null
null
pymeera/utils/support.py
norecces/pymeera
14cfff6797b0bda231980d9329b480b2c178c803
[ "MIT" ]
null
null
null
pymeera/utils/support.py
norecces/pymeera
14cfff6797b0bda231980d9329b480b2c178c803
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals, division def hash_index(v, group): """ Hash values to store hierarchical index :param v: index value :param group: variables from which index was derived :return: str v = [1, 2] group = ['q1', 'q2] ret...
19.85
76
0.565911
0
0
0
0
0
0
0
0
563
0.472712
6cedb3413a7ff2267fed6a64b3ccc1e501d735c0
6,186
py
Python
generators/gen_gp.py
Limacon101/EA_PODI_Library
6dee7210cd05a6112c919928fccadbd8857d7f10
[ "Apache-2.0" ]
null
null
null
generators/gen_gp.py
Limacon101/EA_PODI_Library
6dee7210cd05a6112c919928fccadbd8857d7f10
[ "Apache-2.0" ]
null
null
null
generators/gen_gp.py
Limacon101/EA_PODI_Library
6dee7210cd05a6112c919928fccadbd8857d7f10
[ "Apache-2.0" ]
null
null
null
""" Problem generator that creates random solutions for a Genetic Programming problem -- symbolic regression. Briefly, this problem involves estimating the (polynomial) line that best fits a set of data points. For testing purposes, these data points are generated from a test function, but (random) data points could b...
30.776119
93
0.623828
671
0.108471
0
0
372
0.060136
0
0
2,743
0.443421
6cee58845ea7ead95f7ea366265201b50364a581
48,355
py
Python
jenkins_jobs_addons/views.py
itaborda/jenkins-job-builder-addons
63c5bbf9e1b1c70a12ea397f001b2a13ffae27cf
[ "Apache-2.0" ]
null
null
null
jenkins_jobs_addons/views.py
itaborda/jenkins-job-builder-addons
63c5bbf9e1b1c70a12ea397f001b2a13ffae27cf
[ "Apache-2.0" ]
null
null
null
jenkins_jobs_addons/views.py
itaborda/jenkins-job-builder-addons
63c5bbf9e1b1c70a12ea397f001b2a13ffae27cf
[ "Apache-2.0" ]
null
null
null
""" Views show job status. **Component**: views :Macro: views :Entry Point: jenkins_jobs.views """ import logging import xml.etree.ElementTree as XML import jenkins_jobs.modules.base import jenkins_jobs.modules.helpers as helpers logger = logging.getLogger(__name__) def all_view(parser, xml_parent, data): ...
41.829585
80
0.599586
3,849
0.079599
0
0
0
0
0
0
23,786
0.491904
6ceeab74fac4b47e00b939e03b78599e3b6bd64d
1,602
py
Python
audioplayer/audioplayer_windows.py
mark-summerfield/AudioPlayer
1681eb9673f8cc8b26bbe646fda601c5caf3a27a
[ "MIT" ]
21
2020-07-01T20:31:25.000Z
2022-03-16T08:34:52.000Z
audioplayer/audioplayer_windows.py
Frankkkkk/AudioPlayer
5a9e666e462cd668084acc44af8eab68b1d9e2b4
[ "MIT" ]
12
2020-07-12T16:06:45.000Z
2021-12-24T17:14:36.000Z
audioplayer/audioplayer_windows.py
Frankkkkk/AudioPlayer
5a9e666e462cd668084acc44af8eab68b1d9e2b4
[ "MIT" ]
7
2020-07-12T15:49:59.000Z
2022-02-04T17:16:31.000Z
from .abstractaudioplayer import AbstractAudioPlayer, AudioPlayerError from ctypes import windll class AudioPlayerWindows(AbstractAudioPlayer): def __init__(self, filename): super().__init__(filename) self._alias = "A{}".format(id(self)) def _mciSendString(self, command): return windl...
34.826087
106
0.627341
1,506
0.937733
0
0
0
0
0
0
405
0.252179
6ceef45fd00a4fefffef3511012a9cb07586edc9
992
py
Python
1029.Two-City-Scheduling.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
18
2018-07-14T12:45:37.000Z
2022-03-26T14:51:04.000Z
1029.Two-City-Scheduling.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
null
null
null
1029.Two-City-Scheduling.py
mickey0524/leetcode
6bedeb6ff29b02a97178cca464c5fd639951801f
[ "MIT" ]
3
2019-05-29T04:09:22.000Z
2021-06-07T23:37:46.000Z
# https://leetcode.com/problems/two-city-scheduling/ # Easy (51.19%) # Total Accepted: 3,913 # Total Submissions: 7,644 import math class Solution(object): def twoCitySchedCost(self, costs): """ :type costs: List[List[int]] :rtype: int """ def comp(c1, c2): r...
24.8
75
0.403226
854
0.860887
0
0
0
0
0
0
191
0.19254
6cef0b375dc416be2c958051d5eef16f02884782
1,238
py
Python
restler/checkers/checker_log.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
1,539
2020-11-16T19:20:55.000Z
2022-03-30T16:36:49.000Z
restler/checkers/checker_log.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
282
2020-11-17T04:53:38.000Z
2022-03-31T13:16:25.000Z
restler/checkers/checker_log.py
mkleshchenok/restler-fuzzer
1bd7bc68a6c4de997e9fda9a9db5ffb0504b864c
[ "MIT" ]
171
2020-11-16T21:55:59.000Z
2022-03-28T12:56:26.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. from __future__ import print_function import os import threading import utils.logger as logger class CheckerLog(object): def __init__(self, checker_name): """ Creates a log file of a specified name @param checker_name: The...
30.95
97
0.641357
1,065
0.860258
0
0
0
0
0
0
411
0.331987
6cf28d611ee9dcd8d53d1a651cec5d7de16772e8
907
py
Python
menpofit/lucaskanade/appearance/base.py
trigeorgis/menpofit
742f4d1aeeb822a615d88ac499df40009b05795f
[ "BSD-3-Clause" ]
1
2015-07-26T18:33:56.000Z
2015-07-26T18:33:56.000Z
menpofit/lucaskanade/appearance/base.py
ersisimou/menpofit
55ec53205ba31fd42ca054b2ce07590490decb8c
[ "BSD-3-Clause" ]
null
null
null
menpofit/lucaskanade/appearance/base.py
ersisimou/menpofit
55ec53205ba31fd42ca054b2ce07590490decb8c
[ "BSD-3-Clause" ]
null
null
null
from menpofit.lucaskanade.residual import SSD from menpofit.lucaskanade.base import LucasKanade class AppearanceLucasKanade(LucasKanade): def __init__(self, model, transform, eps=10**-6): # Note that the only supported residual for Appearance LK is SSD. # This is because, in general, we don't kno...
41.227273
80
0.654906
808
0.890849
0
0
0
0
0
0
410
0.45204
6cf4283b40f2711fae51f7a72680c8eec927755d
7,672
py
Python
scrapy_httpcache/policy/rfc2616.py
nyov/scrapy-httpcache
dda4d7b3dda0f0df945d02235740c705bccc3d8a
[ "BSD-3-Clause" ]
1
2021-07-26T17:49:59.000Z
2021-07-26T17:49:59.000Z
scrapy_httpcache/policy/rfc2616.py
nyov/scrapy-httpcache
dda4d7b3dda0f0df945d02235740c705bccc3d8a
[ "BSD-3-Clause" ]
null
null
null
scrapy_httpcache/policy/rfc2616.py
nyov/scrapy-httpcache
dda4d7b3dda0f0df945d02235740c705bccc3d8a
[ "BSD-3-Clause" ]
null
null
null
from time import time from weakref import WeakKeyDictionary from scrapy.http import Response from scrapy.utils.httpobj import urlparse_cached from .base import CachePolicy, parse_cachecontrol, rfc1123_to_epoch class RFC2616Policy(CachePolicy): """ Cache Policy following RFC 2616, implementing browser-like ca...
41.247312
105
0.643639
7,458
0.972106
0
0
0
0
0
0
2,826
0.368352
6cf42f6f443c43a7f39d1f54ae917b2beaa8ef3a
4,608
py
Python
stub-generator/matrix_analytics_stub_generator/kotlin.py
matrix-org/matrix-analytics-events
a0687ca6fbdb7258543d49b99fb88b9201e900b0
[ "Apache-2.0" ]
4
2022-01-14T17:39:29.000Z
2022-02-23T20:46:48.000Z
stub-generator/matrix_analytics_stub_generator/kotlin.py
matrix-org/matrix-analytics-events
a0687ca6fbdb7258543d49b99fb88b9201e900b0
[ "Apache-2.0" ]
25
2021-11-25T22:47:58.000Z
2022-02-24T14:27:43.000Z
stub-generator/matrix_analytics_stub_generator/kotlin.py
matrix-org/matrix-analytics-events
a0687ca6fbdb7258543d49b99fb88b9201e900b0
[ "Apache-2.0" ]
1
2021-11-24T09:50:20.000Z
2021-11-24T09:50:20.000Z
from .schema import Schema, is_mobile_screen_event, first_letter_up, split_text def compute_kotlin(schema: Schema) -> str: """Compute the output for Kotlin.""" is_screen = is_mobile_screen_event(schema.klass) result = """/* * Copyright (c) 2021 New Vector Ltd * * Licensed under the Apache License, Vers...
34.646617
87
0.501085
0
0
0
0
0
0
0
0
2,164
0.469618
6cf4a417a39cb86d2babede76f44ea6d7a3ec33e
15,103
py
Python
hokudai_furima/product/views.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
1
2021-02-13T03:51:42.000Z
2021-02-13T03:51:42.000Z
hokudai_furima/product/views.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
null
null
null
hokudai_furima/product/views.py
TetsuFe/hokuma
b981a52b3bf8d7268bf791c5827bbe8af90afef6
[ "MIT" ]
1
2021-09-18T09:25:48.000Z
2021-09-18T09:25:48.000Z
from django.shortcuts import render, get_object_or_404, redirect from django.utils import timezone from .models import Product, Category from .forms import ProductForm, ProductImageForm from django.contrib import messages from django.conf import settings from hokudai_furima.chat.models import Talk, Chat from hokudai_fu...
51.19661
296
0.716877
0
0
0
0
13,074
0.821489
0
0
2,684
0.168646
6cf72264e5043c282ebf4593db79eaa46f4a6594
52
py
Python
oocgcm/plot/__init__.py
suyashbire1/oocgcm
c9616872077494b14b41915d1b6202aeea545c82
[ "Apache-2.0" ]
38
2016-04-05T06:15:42.000Z
2021-08-31T17:10:00.000Z
oocgcm/plot/__init__.py
suyashbire1/oocgcm
c9616872077494b14b41915d1b6202aeea545c82
[ "Apache-2.0" ]
42
2016-04-16T07:47:40.000Z
2022-03-10T19:42:25.000Z
oocgcm/plot/__init__.py
suyashbire1/oocgcm
c9616872077494b14b41915d1b6202aeea545c82
[ "Apache-2.0" ]
12
2016-05-09T15:15:01.000Z
2020-01-12T10:24:29.000Z
#!/usr/bin/env python __all__ = ["plot1d","plot2d"]
17.333333
29
0.653846
0
0
0
0
0
0
0
0
37
0.711538
6cf7c0d7c5e6384a67c09a07fd8d29914a976217
911
py
Python
netbox/virtualization/forms/bulk_create.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
4,994
2019-07-01T13:15:44.000Z
2022-03-31T19:55:45.000Z
netbox/virtualization/forms/bulk_create.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
4,045
2019-07-01T14:24:09.000Z
2022-03-31T16:07:39.000Z
netbox/virtualization/forms/bulk_create.py
cybarox/netbox
ea197eff5f4fe925bb354d1375912decd81752bd
[ "Apache-2.0" ]
1,225
2019-07-01T15:34:03.000Z
2022-03-31T16:47:09.000Z
from django import forms from utilities.forms import BootstrapMixin, ExpandableNameField, form_from_model from virtualization.models import VMInterface, VirtualMachine __all__ = ( 'VMInterfaceBulkCreateForm', ) class VirtualMachineBulkAddComponentForm(BootstrapMixin, forms.Form): pk = forms.ModelMultipleCho...
29.387097
113
0.726674
688
0.755214
0
0
0
0
0
0
230
0.25247
6cf8a1638dc4ca98d75efa8c572eb39e9d8d051f
168
py
Python
src/runanalysis.py
techlover10/StochasticSoundscape
6c86a3e5d671c657361ff8e1e78edc710af40c77
[ "MIT" ]
2
2017-05-02T10:40:43.000Z
2017-06-29T09:38:54.000Z
src/runanalysis.py
techlover10/StochasticSoundscape
6c86a3e5d671c657361ff8e1e78edc710af40c77
[ "MIT" ]
null
null
null
src/runanalysis.py
techlover10/StochasticSoundscape
6c86a3e5d671c657361ff8e1e78edc710af40c77
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # # Copyright © 2017 jared <jared@jared-devstation> # # Generates data based on source material import analyze markov_data = analyze.data_gen()
12.923077
49
0.738095
0
0
0
0
0
0
0
0
111
0.656805
6cf96920584f4c7107ab05ce65237ae262fac812
200
py
Python
data_collection/gazette/spiders/sc_otacilio_costa.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
3
2021-08-18T17:50:31.000Z
2021-11-12T23:36:33.000Z
data_collection/gazette/spiders/sc_otacilio_costa.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
4
2021-02-10T02:36:48.000Z
2022-03-02T14:55:34.000Z
data_collection/gazette/spiders/sc_otacilio_costa.py
Jefersonalves/diario-oficial
9a4bdfe2e31414c993d88831a67160c49a5ee657
[ "MIT" ]
null
null
null
from gazette.spiders.base import FecamGazetteSpider class ScOtacilioCostaSpider(FecamGazetteSpider): name = "sc_otacilio_costa" FECAM_QUERY = "cod_entidade:180" TERRITORY_ID = "4211751"
25
51
0.78
145
0.725
0
0
0
0
0
0
46
0.23
6cf9a05ce6bc3958bcc674a40c30311812b35c86
10,373
py
Python
example/test/L8_myClass.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
2
2021-12-18T06:34:26.000Z
2022-01-05T05:08:47.000Z
example/test/L8_myClass.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
example/test/L8_myClass.py
Michael8968/skulpt
15956a60398fac92ee1dab25bf661ffc003b2eaf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #! -*-conding:utf-8 -*- #!@Time :2018/4/11 17:14 #!@Author :@liuweqia #!@File :class.py import pygame,random from pygame.locals import * from pygame import Rect class Arrow(pygame.sprite.Sprite): def __init__(self, x, y, property=0): pygame.sprite.Sprite.__init__(self) #...
34.576667
88
0.535139
10,188
0.980653
0
0
0
0
0
0
1,124
0.108191
6cf9c6386316374c888d01ac85367c3d97ca4259
324
py
Python
app/utils/uuid.py
kanson1996/IIMS
4612e3f4ce7b3f6c49a46e26112aad8254bc0592
[ "MIT" ]
null
null
null
app/utils/uuid.py
kanson1996/IIMS
4612e3f4ce7b3f6c49a46e26112aad8254bc0592
[ "MIT" ]
null
null
null
app/utils/uuid.py
kanson1996/IIMS
4612e3f4ce7b3f6c49a46e26112aad8254bc0592
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- """ Created by Kanson on 2020/1/12 16:03. """ import random import datetime def tid_maker(): a = int (datetime.datetime.now ().timestamp ()) b = int (''.join ([str (random.randint (0, 9)) for i in range (3)])) a = str (a) b = str (b) c = a + b retur...
18
72
0.552469
0
0
0
0
0
0
0
0
89
0.274691
6cfad4e9ca5beb8a5dec6ad61e7a2d7eb72f8c12
6,016
py
Python
core_api/formats.py
jacobkaniuk/flexpipe
3b5271946d48d8a6ffe5447fb82ce4e1d57ad147
[ "MIT" ]
null
null
null
core_api/formats.py
jacobkaniuk/flexpipe
3b5271946d48d8a6ffe5447fb82ce4e1d57ad147
[ "MIT" ]
null
null
null
core_api/formats.py
jacobkaniuk/flexpipe
3b5271946d48d8a6ffe5447fb82ce4e1d57ad147
[ "MIT" ]
null
null
null
# from imageio import formats class ImageFormat(object): def __repr__(self): # attrs = list() for key, val in self.__dict__.items(): print str(key), ": ", str(val) # return str(attrs) def __init__(self, ext, bit_depth, data_space): self._extension = ext ...
31.497382
107
0.568983
5,693
0.94631
0
0
1,452
0.241356
0
0
1,952
0.324468
6cfb5bd5a18d50f9f80e29de3630c1d8c65d9055
1,194
py
Python
GolVe_Classification/GolVe+lr/make_glove_data.py
majingliang/machine_learning
cd70e3a07bd1f0803ebcffebca565e70aff96de8
[ "MIT" ]
1
2019-09-29T13:36:29.000Z
2019-09-29T13:36:29.000Z
GolVe_Classification/GolVe+lr/make_glove_data.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
GolVe_Classification/GolVe+lr/make_glove_data.py
yummydeli/machine_learning
54471182ac21ef0eee26557a7bd6f3a3dc3a09bd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import pickle train_comment_path = '/Users/slade/Documents/YMM/Code/UCGPCG/src/jobs/terror_recognition/train_model/new_model/comment_cutwords.csv' train_comment_data = pd.read_csv(open(train_comment_path, 'rU'), header=0) train_comment_data = train_comment_data.sort_values(['lab...
31.421053
132
0.70938
0
0
0
0
0
0
0
0
436
0.365159
6cfb63a64bae5ca66fd31a9408f58acd538f1711
4,215
py
Python
2021/Practice/Solution.py
Ashwin-op/Google-HashCode-2020
05b385ce9454673ecd85fe9461aa1ffde515873d
[ "MIT" ]
5
2020-03-10T08:24:27.000Z
2020-07-10T15:25:08.000Z
2021/Practice/Solution.py
Ashwin-op/Google-HashCode-2020
05b385ce9454673ecd85fe9461aa1ffde515873d
[ "MIT" ]
null
null
null
2021/Practice/Solution.py
Ashwin-op/Google-HashCode-2020
05b385ce9454673ecd85fe9461aa1ffde515873d
[ "MIT" ]
1
2020-06-29T04:29:55.000Z
2020-06-29T04:29:55.000Z
import operator import os from tqdm import tqdm PART_SIZE = 100 def solve2(teams, pizzas): if len(pizzas) < 1: return for team in tqdm(teams): if len(pizzas) < 1: break maxScore = 0 maxScoreIdx = 0 for i, pizza in enumerate(pizzas[0:PART_SIZE]): ...
27.019231
87
0.554686
1,351
0.320522
0
0
76
0.018031
0
0
479
0.113642
6cfc58827e6770ccfeb2db535c0a4dcb9fd69bd3
4,524
py
Python
day7aventcal2019.py
Capoaleman/Advent-of-code-2019
979259698113ed166453bc5eee843317e12fa622
[ "MIT" ]
null
null
null
day7aventcal2019.py
Capoaleman/Advent-of-code-2019
979259698113ed166453bc5eee843317e12fa622
[ "MIT" ]
null
null
null
day7aventcal2019.py
Capoaleman/Advent-of-code-2019
979259698113ed166453bc5eee843317e12fa622
[ "MIT" ]
null
null
null
# Advent of Code 2019 # challenge day 7 # https://adventofcode.com/2019/day/7 from itertools import permutations def grav_asis_prog(arr, entrada, output, i=0): flag = True while i <= len(arr): # Add if arr[i] % 100 == 1: par1, par2, par3 = arr[i+1:i+4] mod...
37.7
75
0.482538
0
0
0
0
0
0
0
0
343
0.075818
6cfcedada186be7e3861a66132ec8a897e608837
180
py
Python
gluon/packages/dal/pydal/__init__.py
guadaltech/web2py-ruben
45e0f4f316774e707a3075f23e3f8b9fed00c387
[ "BSD-3-Clause" ]
null
null
null
gluon/packages/dal/pydal/__init__.py
guadaltech/web2py-ruben
45e0f4f316774e707a3075f23e3f8b9fed00c387
[ "BSD-3-Clause" ]
null
null
null
gluon/packages/dal/pydal/__init__.py
guadaltech/web2py-ruben
45e0f4f316774e707a3075f23e3f8b9fed00c387
[ "BSD-3-Clause" ]
null
null
null
__version__ = '17.11' from .base import DAL from .objects import Field from .helpers.classes import SQLCustomType from .helpers.methods import geoPoint, geoLine, geoPolygon
25.714286
59
0.777778
0
0
0
0
0
0
0
0
7
0.038889
9f00027a30f6f8e9207dc52114439d0a9cb6f1a7
1,349
py
Python
belt.py
zignig/cqparts_bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
10
2018-09-18T08:09:02.000Z
2022-03-18T06:24:22.000Z
belt.py
zignig/cqparts-bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
1
2018-08-09T01:57:32.000Z
2018-08-09T01:57:32.000Z
belt.py
zignig/cqparts-bucket
9707b0948a9dd1ed514e03c291a3b96fddc4a22d
[ "Apache-2.0" ]
1
2018-12-07T20:14:04.000Z
2018-12-07T20:14:04.000Z
import cadquery as cq import cqparts from cadquery import Solid from cqparts.params import * from cqparts.display import render_props, display from cqparts.constraint import Fixed, Coincident from cqparts.constraint import Mate from cqparts.utils.geometry import CoordSystem class Belt(cqparts.Part): # Parameters ...
26.98
81
0.618977
971
0.719792
0
0
0
0
0
0
51
0.037806
9f00cc4632a0795ede88a3a5eecaae3f9f488916
1,497
py
Python
app/book/serializers.py
albamr09/django-api
e50d694f1551ea49bc74916f2e5993f47a8c60db
[ "MIT" ]
null
null
null
app/book/serializers.py
albamr09/django-api
e50d694f1551ea49bc74916f2e5993f47a8c60db
[ "MIT" ]
null
null
null
app/book/serializers.py
albamr09/django-api
e50d694f1551ea49bc74916f2e5993f47a8c60db
[ "MIT" ]
null
null
null
from rest_framework import serializers from core.models import Tag, Author, Book class TagSerializer(serializers.ModelSerializer): """Serializer for tag objects""" class Meta: model = Tag fields = ('id', 'name') read_only_fields = ('id',) class AuthorSerializer(serializers.ModelSer...
25.372881
63
0.633935
1,400
0.935204
0
0
0
0
0
0
375
0.250501
9f01cf09bb6250224e89c048f306a4cb48f65b6f
436
py
Python
bot.py
ahnaf-zamil/discord-bot-live-stream-1
10eae9e7407748f253ab46d41ebb2c68782d62ba
[ "MIT" ]
null
null
null
bot.py
ahnaf-zamil/discord-bot-live-stream-1
10eae9e7407748f253ab46d41ebb2c68782d62ba
[ "MIT" ]
null
null
null
bot.py
ahnaf-zamil/discord-bot-live-stream-1
10eae9e7407748f253ab46d41ebb2c68782d62ba
[ "MIT" ]
1
2021-04-13T03:23:31.000Z
2021-04-13T03:23:31.000Z
import discord from discord.ext import commands from config import TOKEN import os bot = commands.Bot(command_prefix=">>") @bot.event async def on_ready(): print("Ready") @bot.command() async def ping(ctx): latency = round(bot.latency * 1000, 2) # 364.98 ms await ctx.send(f"**Latency:** {latency} ms") f...
20.761905
54
0.658257
0
0
0
0
190
0.43578
164
0.376147
79
0.181193
9f02aa7f566f68a9f19eb1b1f409e1dc8ed853d5
3,335
py
Python
functions/cloudfront.py
brayest/api-control
d5a8a69ac2b50bec564a63de95fce3f4a1f9b859
[ "Apache-2.0" ]
null
null
null
functions/cloudfront.py
brayest/api-control
d5a8a69ac2b50bec564a63de95fce3f4a1f9b859
[ "Apache-2.0" ]
null
null
null
functions/cloudfront.py
brayest/api-control
d5a8a69ac2b50bec564a63de95fce3f4a1f9b859
[ "Apache-2.0" ]
null
null
null
import os import json import boto3 import botocore from datetime import date def lambda_handler(event, context): dynamodb = boto3.resource('dynamodb', region_name = 'us-east-1') dynamoTable = "oneconnect-jenkins-dev" print(event) request = event['Records'][0]['cf']['request'] headers = request['...
33.686869
120
0.564018
0
0
0
0
0
0
0
0
1,168
0.350225
9f02b7da5a23642763bd20dc71abab32b6696da4
402
py
Python
api/modules/todo/models.py
tframesqui/flask-todo-api
36749f4c74c6a256812ebec77ed05f6674f33631
[ "MIT" ]
null
null
null
api/modules/todo/models.py
tframesqui/flask-todo-api
36749f4c74c6a256812ebec77ed05f6674f33631
[ "MIT" ]
null
null
null
api/modules/todo/models.py
tframesqui/flask-todo-api
36749f4c74c6a256812ebec77ed05f6674f33631
[ "MIT" ]
null
null
null
from api import db class Base(db.Model): __abstract__=True id = db.Column(db.Integer, primary_key=True) date_created = db.Column(db.DateTime) date_modified = db.Column(db.DateTime) class Item(Base): __tablename__ = 'Item' def __init__(self, name): self.name = name name = db.Colum...
25.125
52
0.679104
380
0.945274
0
0
0
0
0
0
6
0.014925
9f034d514b4b28895e441e4548cccf532da11adc
294
py
Python
simp-py-code/task5.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
simp-py-code/task5.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
simp-py-code/task5.py
Michaeloye/python-journey
ff8ce0e8796a129994f9a9a9dbb80340fa5790dc
[ "MIT" ]
null
null
null
# Given 2 strings, give a new string made of the fist, middle and last character #each string string1 = "david" string2 = "fishe" middle1 = int((len(string1)/2)) middle2 = int((len(string2)/2)) print(string1[0] + string2[0] + string1[middle1] + string2[middle2] + string1[-1:] + string2[-1:])
32.666667
98
0.690476
0
0
0
0
0
0
0
0
106
0.360544
9f03631cd0c8812d3995b35506c5d1ad803b2fe9
49
py
Python
src/chemical_roles/export/__init__.py
bgyori/chemical-roles
31a917e911075e3be7eea509e143d3ff48e942cc
[ "MIT" ]
5
2021-02-05T01:27:53.000Z
2021-07-12T15:47:08.000Z
src/chemical_roles/export/__init__.py
bgyori/chemical-roles
31a917e911075e3be7eea509e143d3ff48e942cc
[ "MIT" ]
8
2019-10-10T13:02:18.000Z
2020-05-11T18:41:56.000Z
src/chemical_roles/export/__init__.py
bgyori/chemical-roles
31a917e911075e3be7eea509e143d3ff48e942cc
[ "MIT" ]
5
2020-06-07T13:11:34.000Z
2021-07-12T14:24:01.000Z
# -*- coding: utf-8 -*- """Export utilities."""
12.25
23
0.510204
0
0
0
0
0
0
0
0
46
0.938776
9f03e4f4beaaf3e803e2cf26c72bfb4df5751fad
669
py
Python
tests/test_load_data.py
brianrice2/pitchfork
07978a5ab7b0fccf23f2e9ded11b99a39ce59410
[ "MIT" ]
1
2021-04-07T00:37:19.000Z
2021-04-07T00:37:19.000Z
tests/test_load_data.py
brianrice2/pitchfork
07978a5ab7b0fccf23f2e9ded11b99a39ce59410
[ "MIT" ]
2
2021-04-07T21:42:31.000Z
2021-05-21T23:07:32.000Z
tests/test_load_data.py
brianrice2/pitchfork
07978a5ab7b0fccf23f2e9ded11b99a39ce59410
[ "MIT" ]
1
2021-06-16T01:24:44.000Z
2021-06-16T01:24:44.000Z
""" Test load_data.py module. """ import pytest from src import load_data def test_parse_s3(): """Correctly splits bucket and path.""" bucket, path = load_data.parse_s3("s3://my-bucket/my-path") assert bucket == "my-bucket" assert path == "my-path" def test_parse_s3_long_path(): """Correctly sp...
24.777778
74
0.665172
0
0
0
0
0
0
0
0
291
0.434978
9f0427d0e9802767838aefea49771e89e6832915
1,041
py
Python
test/dom/ext/test_memory.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
test/dom/ext/test_memory.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
test/dom/ext/test_memory.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
import Cyclops,sys from xml.dom.ext.reader import Sax2 from xml.dom import ext def test(): data = sys.stdin.read() doc = Sax2.FromXml(data) b1 = doc.createElementNS("http://foo.com","foo:branch") c1 = doc.createElementNS("http://foo.com","foo:child1") c2 = doc.createElementNS("http://foo.com","f...
21.244898
60
0.652257
0
0
0
0
0
0
0
0
197
0.189241
9f0637f31c936135c46b83977efac7d7ce44ca3c
20,957
py
Python
dataset.py
BalinLin/attention-target-detection
fd69aaddc07256ebef5036f668c3cf8cbbe4a923
[ "MIT" ]
1
2022-02-09T18:45:09.000Z
2022-02-09T18:45:09.000Z
dataset.py
BalinLin/attention-target-detection
fd69aaddc07256ebef5036f668c3cf8cbbe4a923
[ "MIT" ]
null
null
null
dataset.py
BalinLin/attention-target-detection
fd69aaddc07256ebef5036f668c3cf8cbbe4a923
[ "MIT" ]
null
null
null
import torch from torch.utils.data.dataset import Dataset from torchvision import transforms import torchvision.transforms.functional as TF import numpy as np from PIL import Image, ImageFilter, ImageDraw import pandas as pd import matplotlib as mpl mpl.use('Agg') from matplotlib import cm import matplotlib.pyplot a...
46.059341
135
0.549602
20,429
0.974806
0
0
0
0
0
0
3,337
0.159231
9f068949b8d532400d0c62a6e21fcf94df34dbea
1,678
py
Python
src/bob/handlers.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/bob/handlers.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/bob/handlers.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
33.56
74
0.740167
419
0.249702
0
0
0
0
0
0
711
0.423719
9f08003aeaa8031b3780b693184f29506dd94f39
634
py
Python
migrations/versions/3fe295f88b49_.py
EricSchles/investigator
88b4215667b24483efbd9aba690e7c3a231539f6
[ "MIT" ]
17
2016-06-17T23:42:42.000Z
2020-06-29T19:17:09.000Z
migrations/versions/3fe295f88b49_.py
EricSchles/investigator
88b4215667b24483efbd9aba690e7c3a231539f6
[ "MIT" ]
6
2016-06-16T18:46:45.000Z
2017-07-02T16:41:45.000Z
migrations/versions/3fe295f88b49_.py
EricSchles/investigator
88b4215667b24483efbd9aba690e7c3a231539f6
[ "MIT" ]
11
2016-06-21T21:17:46.000Z
2020-06-30T05:25:36.000Z
"""empty message Revision ID: 3fe295f88b49 Revises: 907bade2acf1 Create Date: 2017-05-23 15:06:40.128657 """ # revision identifiers, used by Alembic. revision = '3fe295f88b49' down_revision = '907bade2acf1' from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto generated by Alembic ...
23.481481
87
0.694006
0
0
0
0
0
0
0
0
414
0.652997
9f085ce02f28aef0b1c7ea16f1fd47d0c2730891
2,053
py
Python
swagger_server/controllers/bill_controller.py
BlockChainProj/Server
d0ecc25146c9cc987861b9b3fd0473e975865bb7
[ "MIT" ]
null
null
null
swagger_server/controllers/bill_controller.py
BlockChainProj/Server
d0ecc25146c9cc987861b9b3fd0473e975865bb7
[ "MIT" ]
null
null
null
swagger_server/controllers/bill_controller.py
BlockChainProj/Server
d0ecc25146c9cc987861b9b3fd0473e975865bb7
[ "MIT" ]
null
null
null
import connexion import six from swagger_server.models.bill_list import BillList # noqa: E501 from swagger_server import util from client import bcosclient as bcos import json from client.datatype_parser import DatatypeParser from client.common import transaction_common # #找到abi文件 # def default_abi_file(contractn...
31.584615
121
0.715051
0
0
0
0
0
0
0
0
1,258
0.603357
9f08b75d36a9d33cd574cf93abd2c6e9f072616b
5,531
py
Python
src/the_tale/the_tale/linguistics/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
1
2020-04-02T11:51:20.000Z
2020-04-02T11:51:20.000Z
src/the_tale/the_tale/linguistics/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/linguistics/migrations/0001_initial.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import models, migrations import rels.django import django.db.models.deletion from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migr...
48.946903
231
0.590309
5,376
0.971976
0
0
0
0
0
0
1,089
0.19689
9f08da1b252077f73e7d95a8c812bb528e37fbec
1,197
py
Python
exec_analyze.py
hibibol/PriLog_web
d15a8111424e3b3b5bd8d786ef8bb8949c9c8d90
[ "MIT" ]
null
null
null
exec_analyze.py
hibibol/PriLog_web
d15a8111424e3b3b5bd8d786ef8bb8949c9c8d90
[ "MIT" ]
null
null
null
exec_analyze.py
hibibol/PriLog_web
d15a8111424e3b3b5bd8d786ef8bb8949c9c8d90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys import analyze as al import common as cm import app as ap def do_analyze(): # 変数不足時は終了 if not sys.argv[1]: return youtube_url = sys.argv[1] # ID部分の取り出し youtube_id = al.get_youtube_id(youtube_url) if not youtube_id: return queue_path = a...
25.468085
128
0.674185
0
0
0
0
0
0
0
0
209
0.16139
9f09f3b54f59153ab1824409e91b4c34b9e4168e
857
py
Python
scrubcam/lora.py
icr-ctl/scrubcam
4ee1b20d2b68558ccd6ab408eae12e467079f25e
[ "MIT" ]
2
2021-11-18T17:02:26.000Z
2022-01-18T18:53:45.000Z
scrubcam/lora.py
icr-ctl/scrubcam
4ee1b20d2b68558ccd6ab408eae12e467079f25e
[ "MIT" ]
8
2021-11-07T20:44:21.000Z
2022-03-11T23:41:11.000Z
scrubcam/lora.py
icr-ctl/scrubcam
4ee1b20d2b68558ccd6ab408eae12e467079f25e
[ "MIT" ]
null
null
null
import busio from digitalio import DigitalInOut import board import adafruit_rfm9x class LoRaSender(): """Manages sending messages on LoRa radio Specifically interfaces with the RFM9x module that we are currently connecting to the ScrubCam as part of the Adafruit Radio+OLED Bonnet. """ def ...
24.485714
68
0.631272
771
0.89965
0
0
0
0
0
0
372
0.434072
9f0b5e38de3ec452d91acd08493b31ff6bf47813
4,130
py
Python
Chessnut/variant/moves4p.py
redfox-gx/Chessnut
a9e2cf97193713dfeb36be799e44461abfb8600d
[ "Unlicense" ]
null
null
null
Chessnut/variant/moves4p.py
redfox-gx/Chessnut
a9e2cf97193713dfeb36be799e44461abfb8600d
[ "Unlicense" ]
null
null
null
Chessnut/variant/moves4p.py
redfox-gx/Chessnut
a9e2cf97193713dfeb36be799e44461abfb8600d
[ "Unlicense" ]
null
null
null
""" Generates and returns a dictionary containing the superset of (i.e., all) legal moves on a four player chessboard. """ from math import atan2 from copy import deepcopy row_size = 14 raster_size = row_size * row_size DIRECTIONS = [(1, 0), (1, 1), (0, 1), (-1, 1), # straight lines (-1, 0), (-1, -1), ...
37.545455
102
0.530024
0
0
0
0
0
0
0
0
1,148
0.277966
9f0cb8deae5b4ddff9e533d2eb1bff8765df92fd
719
py
Python
src/toil/test/docs/scripts/tutorial_managing.py
jeffrey856/toil
2447cece3b0fae6f103322b3d9e4ff3bd7a9f7bf
[ "Apache-2.0" ]
null
null
null
src/toil/test/docs/scripts/tutorial_managing.py
jeffrey856/toil
2447cece3b0fae6f103322b3d9e4ff3bd7a9f7bf
[ "Apache-2.0" ]
null
null
null
src/toil/test/docs/scripts/tutorial_managing.py
jeffrey856/toil
2447cece3b0fae6f103322b3d9e4ff3bd7a9f7bf
[ "Apache-2.0" ]
null
null
null
from toil.common import Toil from toil.job import Job class LocalFileStoreJob(Job): def run(self, fileStore): # self.TempDir will always contain the name of a directory within the allocated disk space reserved for the job scratchDir = self.tempDir # Similarly create a temporary file. ...
32.681818
119
0.702364
310
0.431154
0
0
0
0
0
0
296
0.411683
9f0e6d94143fc7d74f115a60ca4ceb0ad9baa180
2,527
py
Python
PTO-yelp/LM/dataloaders/yelp.py
LegendTianjin/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
50
2019-06-06T05:30:32.000Z
2021-11-18T07:24:36.000Z
PTO-yelp/LM/dataloaders/yelp.py
lancopku/Point-Then-Operate
1c04ec326b52fc65f97f5610a6f16f6e938d583e
[ "Apache-2.0" ]
2
2019-08-30T09:49:26.000Z
2020-01-17T04:20:53.000Z
PTO-yelp/LM/dataloaders/yelp.py
ChenWu98/Point-Then-Operate
a6b0818343bc34c468738ab91ecea89dd03a9535
[ "Apache-2.0" ]
7
2019-06-17T06:20:47.000Z
2020-10-26T03:19:44.000Z
from torch.utils import data import torch import os from collections import defaultdict import numpy as np from utils.vocab import Vocabulary, build_vocab import random from nltk import word_tokenize from LM.lm_config import Config config = Config() class Yelp(object): """The Yelp dataset.""" def __init__(s...
31.987342
100
0.574594
1,460
0.57776
0
0
0
0
0
0
525
0.207756
9f0f96d2aabdded6e0c0f1238414633dcb1bdc2c
770
py
Python
spug_api/apps/account/models.py
lucasaytt/arena_platform
16a8c682e71d90b62c746da126cafc8e6444fe5f
[ "MIT" ]
null
null
null
spug_api/apps/account/models.py
lucasaytt/arena_platform
16a8c682e71d90b62c746da126cafc8e6444fe5f
[ "MIT" ]
null
null
null
spug_api/apps/account/models.py
lucasaytt/arena_platform
16a8c682e71d90b62c746da126cafc8e6444fe5f
[ "MIT" ]
null
null
null
from public import db from libs.model import ModelMixin from sqlalchemy import text, func from flask_login import UserMixin, login_manager class User(db.Model, ModelMixin, UserMixin): __tablename__ = 'account_users' id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(50), unique=T...
42.777778
110
0.724675
645
0.820611
0
0
0
0
0
0
90
0.114504
9f1188116527b153204f675fd8c1236c5b715be8
295
py
Python
qatrack/contacts/models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
20
2021-03-11T18:37:32.000Z
2022-03-23T19:38:07.000Z
qatrack/contacts/models.py
crcrewso/qatrackplus
b9da3bc542d9e3eca8b7291bb631d1c7255d528e
[ "MIT" ]
75
2021-02-12T02:37:33.000Z
2022-03-29T20:56:16.000Z
qatrack/contacts/models.py
randlet/qatrackplus-ci
ba11d39a07382b11394aaffd0df692b4ddc6239b
[ "MIT" ]
5
2021-04-07T15:46:53.000Z
2021-09-18T16:55:00.000Z
from django.db import models class Contact(models.Model): """basic contact number""" name = models.CharField(max_length=256) number = models.CharField(max_length=256) description = models.TextField() def __str__(self): return "%s : %s " % (self.name, self.number)
24.583333
52
0.667797
263
0.891525
0
0
0
0
0
0
36
0.122034
9f1197dd664a9ad2b1d58438a66a2af11118261c
511,100
py
Python
pypsexec/paexec.py
0v3rride/pypsexec_mod
71f047744d3b416aa7ddb83cee06ef165984fb05
[ "MIT" ]
null
null
null
pypsexec/paexec.py
0v3rride/pypsexec_mod
71f047744d3b416aa7ddb83cee06ef165984fb05
[ "MIT" ]
null
null
null
pypsexec/paexec.py
0v3rride/pypsexec_mod
71f047744d3b416aa7ddb83cee06ef165984fb05
[ "MIT" ]
null
null
null
import binascii import os import struct from smbprotocol.structure import BoolField, BytesField, EnumField, \ IntField, ListField, Structure, StructureField, DateTimeField from pypsexec.exceptions import PAExecException try: from collections import OrderedDict except ImportError: # pragma: no cover from...
77.322239
83
0.757498
13,095
0.025621
453
0.000886
0
0
0
0
396,287
0.775361
9f11e57396b78a9599a9ab2485f5ab7774dae8f3
1,026
py
Python
elicit/all.py
pycopia/elicit
132eb9198b7dd7fc445567d9e98910f466b72fbc
[ "Apache-2.0" ]
3
2017-06-10T13:27:50.000Z
2020-03-19T19:28:26.000Z
elicit/all.py
pycopia/elicit
132eb9198b7dd7fc445567d9e98910f466b72fbc
[ "Apache-2.0" ]
1
2019-01-10T19:15:57.000Z
2019-01-10T19:15:57.000Z
elicit/all.py
kdart/elicit
132eb9198b7dd7fc445567d9e98910f466b72fbc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # 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 ...
30.176471
74
0.746589
0
0
0
0
0
0
0
0
798
0.777778
9f125cf42ff10da630e5eecfb8fb74a032107eeb
60,224
py
Python
ocr-20191230/python/alibabacloud_ocr20191230/client.py
atptro/alibabacloud-sdk
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
[ "Apache-2.0" ]
null
null
null
ocr-20191230/python/alibabacloud_ocr20191230/client.py
atptro/alibabacloud-sdk
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
[ "Apache-2.0" ]
null
null
null
ocr-20191230/python/alibabacloud_ocr20191230/client.py
atptro/alibabacloud-sdk
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
[ "Apache-2.0" ]
null
null
null
# This file is auto-generated, don't edit it. Thanks. from alibabacloud_tea_rpc.client import Client as RPCClient from alibabacloud_ocr20191230 import models as ocr_20191230_models from alibabacloud_tea_util import models as util_models from alibabacloud_tea_util.client import Client as UtilClient from alibabacloud_tea...
45.624242
195
0.680808
59,329
0.985139
0
0
0
0
0
0
4,552
0.075584
9f1288ee8767cffcef0b23927489a5e97f96cee5
1,639
py
Python
adjust_n_clusters.py
Ting-Wu0701/Clustering-Ensemble
2583fcfbacce6c2ffb1314802cdba7a73d5f6271
[ "Apache-2.0" ]
2
2021-03-16T01:41:57.000Z
2021-04-17T01:44:39.000Z
adjust_n_clusters.py
Ting-Wu0701/Clustering-Ensemble
2583fcfbacce6c2ffb1314802cdba7a73d5f6271
[ "Apache-2.0" ]
null
null
null
adjust_n_clusters.py
Ting-Wu0701/Clustering-Ensemble
2583fcfbacce6c2ffb1314802cdba7a73d5f6271
[ "Apache-2.0" ]
1
2021-03-16T01:41:28.000Z
2021-03-16T01:41:28.000Z
""" 当我们获取的预结构的聚类数大于实际的聚类数时,我们需要对预结构中的簇进行调整(合并) 此处我们选用k-means算法进行簇与簇之间的合并 """ from sklearn.cluster import KMeans import numpy as np import pandas as pd # 假设簇核集样本为第1、3、4、5个样本 core = [0, 2, 3, 4] # 假设簇环集样本为第2、6个样本 halo = [1, 5] # 如果能将halo中的样本的类别标记为[1,2]则说明标记对了 # 假设核结构为【1 3 4 2】 core_structure = [1, 3, 4, 2] pre_structur...
24.102941
77
0.680903
0
0
0
0
0
0
0
0
844
0.399432
9f1319577b2a421c92d2899f666ae92db73d23c5
22,408
py
Python
tube_network/src/migration.py
rpatil524/examples
44d195615dba4fc320e041e1e552333e114b24a7
[ "Apache-2.0" ]
77
2018-09-26T20:28:27.000Z
2021-04-17T14:38:52.000Z
tube_network/src/migration.py
rpatil524/examples
44d195615dba4fc320e041e1e552333e114b24a7
[ "Apache-2.0" ]
53
2018-09-17T20:02:10.000Z
2021-01-21T16:29:29.000Z
tube_network/src/migration.py
rpatil524/examples
44d195615dba4fc320e041e1e552333e114b24a7
[ "Apache-2.0" ]
44
2018-10-08T11:53:03.000Z
2021-02-06T13:23:41.000Z
# Copyright 2021 Vaticle # # 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, soft...
50.696833
171
0.315691
0
0
0
0
0
0
0
0
4,082
0.182167
9f146a59cdcde0391b1020058df14e6cdb41cb50
7,545
py
Python
helper.py
szilaga/investment_ml
c27fe06239dc7c56fabb876c950d60378fe9c8b2
[ "RSA-MD" ]
null
null
null
helper.py
szilaga/investment_ml
c27fe06239dc7c56fabb876c950d60378fe9c8b2
[ "RSA-MD" ]
null
null
null
helper.py
szilaga/investment_ml
c27fe06239dc7c56fabb876c950d60378fe9c8b2
[ "RSA-MD" ]
null
null
null
from pandas_datareader import data as pdr import pandas as pd import numpy as np from datetime import timedelta from get_all_tickers import get_tickers as gt import ipywidgets as widgets import requests class Helper: def getParameters(self): forecast = widgets.Text( value='7;14;30', ...
29.244186
111
0.570577
7,338
0.972565
0
0
0
0
0
0
3,047
0.403844
9f151973048e707c76e9ac8951cabfb49a90e449
10,592
py
Python
pos_tagger.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
pos_tagger.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
pos_tagger.py
aldoram5/NLP-Utils
41b8f78c91ba32e44caace0f04142ffef96021e2
[ "MIT" ]
null
null
null
# # This Python script is a combination of various scripts and a pickle found at # https://github.com/sloria/textblob-aptagger which are licensed under # the MIT License https://github.com/sloria/textblob-aptagger/blob/dev/LICENSE # for those scripts: Copyright 2013 Matthew Honnibal # # more in detail explanation of ho...
36.524138
110
0.57213
8,692
0.820619
847
0.079966
0
0
0
0
3,424
0.323263
9f1523e42854f087d407db9159bffbe7608c4089
3,374
py
Python
cocoa_folder/mutualfriends/scripts/generate_inverse_lexicon_data.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
12
2021-03-17T05:15:33.000Z
2022-01-19T06:09:21.000Z
cocoa_folder/mutualfriends/scripts/generate_inverse_lexicon_data.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
2
2021-05-25T07:28:46.000Z
2022-02-11T01:54:43.000Z
cocoa_folder/mutualfriends/scripts/generate_inverse_lexicon_data.py
s-akanksha/DialoGraph_ICLR21
d5bbc10b2623c9f84d21a99a5e54e7dcfdfb1bcc
[ "Apache-2.0" ]
4
2021-10-11T03:39:38.000Z
2022-02-01T23:58:50.000Z
import argparse import json import re import sys sys.path.append("..") from src.core.lexicon import Lexicon, add_lexicon_arguments from src.core.schema import Schema from stop_words import get_stop_words from src.core.event import Event from src.model.vocab import is_entity from src.model.preprocess import Preprocesso...
36.27957
134
0.61144
0
0
0
0
0
0
0
0
821
0.243331
9f1760aab4578c4b1571e99fb2068552c3c6cb17
562
py
Python
forms/job.py
jakobadam/iftek-paas
787f1baf881f934a8073702605c2aa9253a17650
[ "MIT" ]
null
null
null
forms/job.py
jakobadam/iftek-paas
787f1baf881f934a8073702605c2aa9253a17650
[ "MIT" ]
null
null
null
forms/job.py
jakobadam/iftek-paas
787f1baf881f934a8073702605c2aa9253a17650
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2011, Cabo Communications A/S # All rights reserved. # import models from flaskext import wtf class JobForm(wtf.Form): url = wtf.html5.URLField('URL', [ wtf.Required('Hmm, husk du skal at indtaste en URL'), wtf.URL('Hey, URLen er ikke gyldig!') ]) ...
21.615385
77
0.631673
421
0.74778
0
0
0
0
0
0
261
0.463588
9f17ef59602730d8c0bb836e44c516b50c316c8c
5,157
py
Python
src/ufoRig.py
kateliev/ufoRig
bd32cf868cc28c822f1351e9c509853e8a0ec7c7
[ "MIT" ]
null
null
null
src/ufoRig.py
kateliev/ufoRig
bd32cf868cc28c822f1351e9c509853e8a0ec7c7
[ "MIT" ]
null
null
null
src/ufoRig.py
kateliev/ufoRig
bd32cf868cc28c822f1351e9c509853e8a0ec7c7
[ "MIT" ]
null
null
null
# SCRIPT: ufoRig # DESCRIPTION: A GUI based low level tool for editing # DESCRIPTION: Unified Font Object (.UFO) files # ----------------------------------------------------------- # (C) Vassil Kateliev, 2021 (http://www.kateliev.com) # ------------------------------------------------------------ # https://github.c...
35.321918
124
0.674229
4,116
0.798138
0
0
0
0
0
0
1,210
0.234633
9f194ca308c8c0faee1fc38bb910852f3f743fc1
7,290
py
Python
covid_flask_app.py
Spooks075/course-work-1
ae2c90930ba313ff05917df0684fc732896ad038
[ "MIT" ]
null
null
null
covid_flask_app.py
Spooks075/course-work-1
ae2c90930ba313ff05917df0684fc732896ad038
[ "MIT" ]
null
null
null
covid_flask_app.py
Spooks075/course-work-1
ae2c90930ba313ff05917df0684fc732896ad038
[ "MIT" ]
null
null
null
''' Description: displays covid data for local and national, covid news articles with links to those articles and scheduled updates. Takes input data and then uses it to schedule updates. updates data when scheduled. ''' import json import sched import time import logging from typing import Callabl...
28.700787
94
0.631962
0
0
0
0
3,630
0.497942
0
0
3,495
0.479424
9f1aaae7e9c44b4e86e4485ef6b9af68555ad619
184
py
Python
demos/19.01.30/10am/problem_3.py
joeparis/CS161-Demos-Winter-19
613a93de9169fa4ee62538ff0ac93a9930b75fef
[ "MIT" ]
null
null
null
demos/19.01.30/10am/problem_3.py
joeparis/CS161-Demos-Winter-19
613a93de9169fa4ee62538ff0ac93a9930b75fef
[ "MIT" ]
null
null
null
demos/19.01.30/10am/problem_3.py
joeparis/CS161-Demos-Winter-19
613a93de9169fa4ee62538ff0ac93a9930b75fef
[ "MIT" ]
null
null
null
user_input = input("Please enter a string ") # length = len(user_input) # print(user_input[length::-1]) # l = "".join(list(reversed(user_input))) # print(l) print(user_input[::-1])
18.4
44
0.668478
0
0
0
0
0
0
0
0
132
0.717391
9f1ab0c0e4bda659a77a776c2e10f4a4ca0c2b90
10,454
py
Python
benchmarks/bench_cuda.py
abitrolly/numba-benchmark
4bea9c23276fd0399df26452d19f13810a6496c7
[ "BSD-2-Clause" ]
6
2015-10-19T09:18:50.000Z
2021-11-29T10:37:10.000Z
benchmarks/bench_cuda.py
abitrolly/numba-benchmark
4bea9c23276fd0399df26452d19f13810a6496c7
[ "BSD-2-Clause" ]
9
2015-03-03T09:50:56.000Z
2021-10-13T08:34:06.000Z
benchmarks/bench_cuda.py
abitrolly/numba-benchmark
4bea9c23276fd0399df26452d19f13810a6496c7
[ "BSD-2-Clause" ]
7
2015-09-09T17:38:11.000Z
2021-09-24T15:06:19.000Z
""" Benchmarks for the CUDA backend. """ from __future__ import division import math import sys import numpy as np def _jit_setup1(): from numba import cuda, float32, float64 def addmul(x, y, out): i = cuda.threadIdx.x + cuda.blockIdx.x * cuda.blockDim.x if i >= x.shape[0]: ret...
31.969419
92
0.619093
5,218
0.499139
0
0
1,806
0.172757
0
0
908
0.086857
9f1ed6c82dc6d14142fa3136ab7c90abe39d6582
4,256
py
Python
src/app/routers/user.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
src/app/routers/user.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
src/app/routers/user.py
Ra-Ni/Conupedia
165d0b43098edcdf1058e244c1751c09e53f741c
[ "MIT" ]
null
null
null
from typing import Optional import httpx import shortuuid from fastapi import Response from starlette import status from starlette.responses import JSONResponse from ..dependencies import core from ..dependencies.models.user import User from ..internals.globals import SSU async def get(id: str): user = User(id=...
30.184397
84
0.577538
0
0
0
0
0
0
3,966
0.931861
318
0.074718
9f203eaaafb7603c5af08d8251f48283e8b44249
2,161
py
Python
tests/item_test.py
eraustud/supermarket_exercise
33ea35875f07694fa982c475bded6da1319b0624
[ "Apache-2.0" ]
null
null
null
tests/item_test.py
eraustud/supermarket_exercise
33ea35875f07694fa982c475bded6da1319b0624
[ "Apache-2.0" ]
null
null
null
tests/item_test.py
eraustud/supermarket_exercise
33ea35875f07694fa982c475bded6da1319b0624
[ "Apache-2.0" ]
null
null
null
import unittest from src.supermarket import * from test_helpers import * import sqlite3 class TestItem(unittest.TestCase): def setup(self): self.database_path = 'example.db' init_empty_database(self.database_path) database.Database.database_path = self.database_path def teardown(self)...
33.246154
102
0.65988
2,023
0.936141
0
0
0
0
0
0
512
0.236927
9f20ad820250a8e83bcc8a69473c0a9c8790307e
361
py
Python
cpp-tensorflow-2.3.1/Docker/Dockerfile.py
p-geon/DockerBonsai
1b1deafe228438e5ce3b4a41026aef4748f98573
[ "MIT" ]
1
2021-11-28T13:27:41.000Z
2021-11-28T13:27:41.000Z
docker-cpp_tensorflow-2.3.1/Docker/Dockerfile.py
p-geon/DockerBonsai
1b1deafe228438e5ce3b4a41026aef4748f98573
[ "MIT" ]
8
2021-02-19T12:54:22.000Z
2021-02-25T02:32:23.000Z
docker-cpp_tensorflow-2.3.1/Docker/Dockerfile.py
p-geon/DockerBonsai
1b1deafe228438e5ce3b4a41026aef4748f98573
[ "MIT" ]
null
null
null
FROM tensorflow/tensorflow:2.3.1-gpu #ENV version_tf=2.4.0 ENV version_tf=2.3.1 RUN apt-get update && apt-get install -y --quiet --no-install-recommends \ vim \ wget # python RUN pip install -q --upgrade pip COPY ./requirements.txt ./ RUN pip install -r requirements.txt -q WORKDIR /work #ENTRYPOINT ["/bin/bash"] ...
24.066667
74
0.717452
0
0
0
0
0
0
0
0
80
0.221607
9f2138c601fef6d54882fdc4e74d4f8bba613f99
1,515
py
Python
backend-flask-sqlalchemy/exemplo_tech_store/test.py
santiagosilas/dweb20192-vuejs
d6b322c075682247ca2e1eb70c9c64d27d741fa2
[ "MIT" ]
1
2020-11-12T15:27:20.000Z
2020-11-12T15:27:20.000Z
cap_07_flask_sqlalchemy/exemplo_tech_store/test.py
santiagosilas/BasicoFlaskDevWeb
de7b952427e453b365c84a7f26882174d5cb13ae
[ "MIT" ]
36
2019-12-05T10:39:07.000Z
2022-02-27T10:34:55.000Z
backend-flask-sqlalchemy/exemplo_tech_store/test.py
santiagosilas/dweb20192-vuejs
d6b322c075682247ca2e1eb70c9c64d27d741fa2
[ "MIT" ]
null
null
null
from TechApp import db, models from TechApp.models import Loja import unittest class TechAppTestCase(unittest.TestCase): def setUp(self): # create the database db.drop_all() db.create_all() def test_obter_lojas(self): db.session.add(Loja('Macavi')) db.session.add(Loja('Casas Bahia'))...
30.918367
66
0.631683
1,389
0.916832
0
0
0
0
0
0
130
0.085809
9f2385e221d060983e4faaa9a41fbc655123a8e5
2,263
py
Python
core/regex.py
evandrocoan/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
142
2015-01-11T19:43:17.000Z
2021-11-15T11:44:56.000Z
core/regex.py
evandroforks/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
46
2015-01-02T20:29:37.000Z
2018-09-15T05:12:52.000Z
core/regex.py
evandroforks/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
25
2015-01-16T01:33:39.000Z
2022-01-07T11:12:43.000Z
import re from .settings import Settings class _RE: """ Regular Expressions wrapper """ @classmethod def instance(cls): if not hasattr(cls, "_instance"): cls._instance = cls() return cls._instance def __init__(self): self.patterns = {} def get(self, ...
28.2875
76
0.596995
2,181
0.963765
0
0
140
0.061865
0
0
1,104
0.487848
9f25b927331a31d4410e202039b6adfe5e308a0e
14,959
py
Python
src/vision_transformer.py
sail-sg/mugs
7652939078b256dc9aadc09c67d1e310253d49b9
[ "Apache-2.0" ]
7
2022-03-29T09:58:42.000Z
2022-03-31T10:46:09.000Z
src/vision_transformer.py
sail-sg/mugs
7652939078b256dc9aadc09c67d1e310253d49b9
[ "Apache-2.0" ]
null
null
null
src/vision_transformer.py
sail-sg/mugs
7652939078b256dc9aadc09c67d1e310253d49b9
[ "Apache-2.0" ]
1
2022-03-30T07:28:28.000Z
2022-03-30T07:28:28.000Z
# Copyright 2022 Garena Online Private Limited # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
30.404472
95
0.569891
10,671
0.71335
0
0
90
0.006016
0
0
2,459
0.164383
9f27bf02f4f6f6db10eead707b878e9ab5ae68be
333
py
Python
datetime2.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
datetime2.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
datetime2.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
from datetime import datetime time = datetime.now() print(time, type(time)) print("----------------------") time = str(time) print(time, type(time)) print("----------------------") time = datetime.now() # time = "1618815060" print(time, type(time)) time = time.strftime('%Y-%m-%d %H:%M:%S') print(time, ...
20.8125
42
0.543544
0
0
0
0
0
0
0
0
89
0.267267
9f284f75c05306f2abe0175c1df6648a3036c43a
155
py
Python
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
null
null
null
run.py
ganggas95/E-Wisata
fb66fc7d3d4cc5a45ad9acea42fb306140a6449f
[ "Apache-2.0" ]
1
2020-02-12T09:21:15.000Z
2020-02-12T09:21:15.000Z
from app import app if __name__ == '__main__': app.run( app.config['HOST'], app.config['PORT'], app.config['DEBUG'] )
17.222222
27
0.516129
0
0
0
0
0
0
0
0
29
0.187097
9f28f7fa6f337b07ffe36d2b5fe9306bf0454618
3,024
py
Python
btc_payment/views.py
davit-gh/ecommerce
2dd2f31fdb4e037e5a5daaa380ee11ed5a83d8e9
[ "MIT" ]
22
2018-05-11T03:03:25.000Z
2022-02-24T17:11:20.000Z
btc_payment/views.py
morshedmasud/ecommerce
e3798f116b26f24a1a4a40dc3bd8497ba1539de1
[ "MIT" ]
14
2018-05-14T02:08:57.000Z
2022-03-11T23:20:39.000Z
btc_payment/views.py
morshedmasud/ecommerce
e3798f116b26f24a1a4a40dc3bd8497ba1539de1
[ "MIT" ]
5
2018-11-11T11:17:11.000Z
2022-01-17T13:11:24.000Z
import datetime, pytz from django.shortcuts import get_object_or_404 from django.http import HttpResponse from django.http import HttpResponseServerError from django.http import HttpResponseBadRequest from django.urls import reverse from blockchain.blockexplorer import get_address from blockchain.v2.receive import rece...
35.576471
80
0.700066
0
0
0
0
0
0
0
0
484
0.160053
9f2b59f05d5a6b83fb7fd5d45a4705ada5d9bf11
21,194
py
Python
tandyberg/tandylayout.py
callumsnowden/tandyberg
45515f102ab5ac983778787ea07658f8c7d214c4
[ "MIT" ]
11
2020-10-11T03:16:04.000Z
2021-11-26T09:12:46.000Z
tandyberg/tandylayout.py
callumsnowden/tandyberg
45515f102ab5ac983778787ea07658f8c7d214c4
[ "MIT" ]
1
2021-02-19T12:52:27.000Z
2021-12-26T17:59:53.000Z
tandyberg/tandylayout.py
callumsnowden/tandyberg
45515f102ab5ac983778787ea07658f8c7d214c4
[ "MIT" ]
3
2021-01-26T00:06:34.000Z
2021-06-01T20:25:43.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'tandylayout.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, ...
55.192708
100
0.701991
20,868
0.983968
0
0
0
0
0
0
2,555
0.120473
9f2c444d7136697719e38631114d31c237cd7861
656
py
Python
python-algorithm/leetcode/problem_599.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
5
2017-06-11T09:19:34.000Z
2019-01-16T16:58:31.000Z
python-algorithm/leetcode/problem_599.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
null
null
null
python-algorithm/leetcode/problem_599.py
isudox/leetcode-solution
60085e64deaf396a171367affc94b18114565c43
[ "MIT" ]
1
2019-03-02T15:50:43.000Z
2019-03-02T15:50:43.000Z
"""599. Minimum Index Sum of Two Lists https://leetcode.com/problems/minimum-index-sum-of-two-lists/ """ from typing import List class Solution: def findRestaurant(self, list1: List[str], list2: List[str]) -> List[str]: ans = [] idx_sum = 2000 store = dict() for i, v in enumerate(l...
28.521739
78
0.501524
524
0.79878
0
0
0
0
0
0
104
0.158537
9f2d23c2c06b9bee99b5654eed887dc647598cdb
431
py
Python
Dataset/Leetcode/train/58/642.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/58/642.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/train/58/642.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution: def XXX(self, s: str) -> int: n = len(s) start, end = 0, -1 for i in range(n): if i == 0 and s[i] != " ": start = i if s[i] != " " and s[i-1] == " ": start = i if s[i] == " " and s[i-1] != " ": ...
26.9375
45
0.306265
429
0.99536
0
0
0
0
0
0
18
0.041763
9f2e1f309463ac4d74344bf610a616e724a8db09
13,793
py
Python
backmarker/migrations/0001_initial.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
backmarker/migrations/0001_initial.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
backmarker/migrations/0001_initial.py
jmp/backmarker
e12a094d92dec798ad10aa8890fabe84f946c303
[ "MIT" ]
null
null
null
# Generated by Django 3.2.2 on 2021-05-15 15:45 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="Circuit", fields=[ ...
36.297368
83
0.38418
13,667
0.990865
0
0
0
0
0
0
1,427
0.103458
9f2e620e596f0649ecd172fa63f3f53ec411bfad
159
py
Python
URI_online/Problema_1038_lanche.py
BrunoIaneczek/Estudo-na-linguagem-Python
88100056f6ddf6b5df759ad92300f867d9052047
[ "MIT" ]
1
2021-10-01T01:28:14.000Z
2021-10-01T01:28:14.000Z
URI_online/Problema_1038_lanche.py
BrunoIaneczek/Estudo-na-linguagem-Python
88100056f6ddf6b5df759ad92300f867d9052047
[ "MIT" ]
null
null
null
URI_online/Problema_1038_lanche.py
BrunoIaneczek/Estudo-na-linguagem-Python
88100056f6ddf6b5df759ad92300f867d9052047
[ "MIT" ]
null
null
null
precos = [0,4.00,4.50,5.00,2.00,1.50] codigo, quantidade = input().split(' ') valor = precos[int(codigo)] * float(quantidade) print(f'Total: R$ {valor:.2f}')
26.5
47
0.641509
0
0
0
0
0
0
0
0
27
0.169811
9f2f7ca7d678d2afb51d07068b7522de5b5d1b3d
1,009
py
Python
blackcat/test/test_post_processor.py
pluralsight/BlackCat
b071fef95f9d8162696556bb25ceb5b208d150cf
[ "Apache-2.0" ]
4
2019-11-21T20:35:39.000Z
2022-01-11T18:40:55.000Z
blackcat/test/test_post_processor.py
Plazmaz/BlackCat
b071fef95f9d8162696556bb25ceb5b208d150cf
[ "Apache-2.0" ]
null
null
null
blackcat/test/test_post_processor.py
Plazmaz/BlackCat
b071fef95f9d8162696556bb25ceb5b208d150cf
[ "Apache-2.0" ]
2
2020-03-06T19:42:20.000Z
2021-06-29T12:14:24.000Z
from blackcat.postprocessing.post_processor import BlackCatPostProcessor from blackcat.postprocessing.steps.trim_to_relevant_data import PostStepFlattenRelevantData class TestPostProcessor(object): TEST_OBJ = { 'node': { 'securityVulnerability': {'test-field': True}, 'dismisser': '...
36.035714
95
0.611497
841
0.833499
0
0
0
0
0
0
354
0.350842
9f3087562e326eb4b0b0cc4627694d7b9845ddcb
70
py
Python
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
13
2020-07-08T17:23:18.000Z
2022-02-13T09:19:42.000Z
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
16
2020-07-19T22:14:20.000Z
2022-03-24T02:57:45.000Z
stores/__init__.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
6
2020-07-21T01:37:54.000Z
2022-01-01T19:28:54.000Z
from .django_cache import DjangoCache from .omnistone import Omnistone
35
37
0.871429
0
0
0
0
0
0
0
0
0
0
9f3169c25b4b95c77a42d2fd7ae104ae75bfa518
480
py
Python
app/forms.py
EddyCodeIt/SPA_Project_2016_Data_Rep-Quering
1a23e14ecf41117aaaeedb277d6c5b17a03bab56
[ "Apache-2.0" ]
null
null
null
app/forms.py
EddyCodeIt/SPA_Project_2016_Data_Rep-Quering
1a23e14ecf41117aaaeedb277d6c5b17a03bab56
[ "Apache-2.0" ]
null
null
null
app/forms.py
EddyCodeIt/SPA_Project_2016_Data_Rep-Quering
1a23e14ecf41117aaaeedb277d6c5b17a03bab56
[ "Apache-2.0" ]
null
null
null
#from flask_wtf import FlaskForm from wtforms import Form, StringField, PasswordField, validators class RegistrationForm(Form): username = StringField('Username', [validators.Length(min = 4, max = 20), validators.Required()], id = "input_fields") password = PasswordField('New Password', [validators.DataRequire...
60
159
0.74375
380
0.791667
0
0
0
0
0
0
146
0.304167
9f330abfc4ce7d2b28f1acc8b042f2e7489fb0bb
1,881
py
Python
foreshadow/concrete/internals/tfidf.py
adithyabsk/foreshadow
ca2e927c396ae0d61923b287d6e32e142f3ba96f
[ "Apache-2.0" ]
25
2018-07-26T17:30:31.000Z
2021-02-23T22:54:01.000Z
foreshadow/concrete/internals/tfidf.py
adithyabsk/foreshadow
ca2e927c396ae0d61923b287d6e32e142f3ba96f
[ "Apache-2.0" ]
150
2018-11-02T18:09:12.000Z
2020-05-15T01:01:35.000Z
foreshadow/concrete/internals/tfidf.py
adithyabsk/foreshadow
ca2e927c396ae0d61923b287d6e32e142f3ba96f
[ "Apache-2.0" ]
1
2019-02-20T22:24:00.000Z
2019-02-20T22:24:00.000Z
"""FixedTfidfVectorizer.""" import numpy as np from sklearn.feature_extraction.text import ( TfidfVectorizer as SklearnTfidfVectorizer, VectorizerMixin, ) from sklearn.utils import check_array from foreshadow.base import BaseEstimator from foreshadow.wrapper import pandas_wrap @pandas_wrap class FixedTfidfV...
23.5125
77
0.599149
1,577
0.838384
0
0
1,590
0.845295
0
0
718
0.381712
9f351210093652493854833e64bf843a7091de0b
771
py
Python
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
base/middleware.py
mhhabib/Django-custom-registration
97c30d25e1efc08e515dcad1b02f084eb1996894
[ "MIT" ]
null
null
null
from django.contrib.auth import logout import datetime from settings import SESSION_IDLE_TIMEOUT class SessionIdleTimeout(object): def __init__(self, get_response): self.get_response = get_response def __call__(self, request): if request.user.is_authenticated: current_datetime = d...
35.045455
75
0.652399
671
0.870298
0
0
0
0
0
0
71
0.092088
9f3782e517f1dea43774318f5bb70c4ddf3ecdf0
3,828
py
Python
Line-1/main.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
Line-1/main.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
Line-1/main.py
Manu-Fraile/Network-Representation-Learning
d84414c144cc6146d406e606ed5be8120d4244a9
[ "MIT" ]
null
null
null
# Network representation learning with Line algorithm # Author: Sebastian Haslebacher 2021-12-22 import networkx as nx # https://networkx.org/documentation/stable/tutorial.html import numpy as np import random import argparse import pickle class Sampler: """ Maintains data-structure for negative sampling. ...
33.286957
91
0.576019
681
0.1779
0
0
0
0
0
0
1,158
0.302508
9f384e2e63d619a327ec19ad8701a5dc65afe3e5
777
py
Python
src/main.py
Jogius/devolo-reader
2601b17d9b2dc2ab18756b2dbdc919229544df93
[ "MIT" ]
null
null
null
src/main.py
Jogius/devolo-reader
2601b17d9b2dc2ab18756b2dbdc919229544df93
[ "MIT" ]
null
null
null
src/main.py
Jogius/devolo-reader
2601b17d9b2dc2ab18756b2dbdc919229544df93
[ "MIT" ]
null
null
null
from sys import argv if len(argv) < 3: exit(1) device_id = argv[1] sensor_type = argv[2] import logging import os from dotenv import load_dotenv from devolo_home_control_api.homecontrol import HomeControl from devolo_home_control_api.mydevolo import Mydevolo load_dotenv() logging.disable() mydevolo = Mydevolo(...
21.583333
84
0.76834
0
0
0
0
0
0
0
0
50
0.06435
9f391f0367b52d2be2418d658beed188949eecf8
779
py
Python
setup.py
asanka9/singlish
0ebed2a0524f2b8e206e2a61eaec18d70d6e3086
[ "MIT" ]
null
null
null
setup.py
asanka9/singlish
0ebed2a0524f2b8e206e2a61eaec18d70d6e3086
[ "MIT" ]
null
null
null
setup.py
asanka9/singlish
0ebed2a0524f2b8e206e2a61eaec18d70d6e3086
[ "MIT" ]
null
null
null
import setuptools classifiers = [ 'Development Status :: 5 - Production/Stable', 'Intended Audience :: Education', 'Operating System :: Microsoft :: Windows :: Windows 10', 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 3' ] with open('README.md', 'r') as fh: long_descri...
26.862069
59
0.686778
0
0
0
0
0
0
0
0
384
0.49294
9f3933a542bbcfcc42bbaad796882f545f62d83a
1,399
py
Python
orders/models/orders.py
julianarchila/ecommerce-django-api
d0665745c2a16dc8bc1acb54ead66f69da129271
[ "MIT" ]
null
null
null
orders/models/orders.py
julianarchila/ecommerce-django-api
d0665745c2a16dc8bc1acb54ead66f69da129271
[ "MIT" ]
null
null
null
orders/models/orders.py
julianarchila/ecommerce-django-api
d0665745c2a16dc8bc1acb54ead66f69da129271
[ "MIT" ]
null
null
null
""" Order model. """ # Django from django.db import models class Order(models.Model): # Model b """ Order model. """ # User information user = models.ForeignKey("users.User", on_delete=models.CASCADE, related_name="orders") first_name = models.CharField(max_length=100) last_name = models.Char...
29.145833
92
0.692638
1,328
0.949249
0
0
0
0
0
0
261
0.186562
9f3aee08921868b3c16d3ab5f75aec2bc6c2c29f
1,424
py
Python
CreateScopes.py
InsightSSG/CiscoSecureWorkload
075403f2b2688f2216fa76889ad2e60d6b228e07
[ "Unlicense" ]
null
null
null
CreateScopes.py
InsightSSG/CiscoSecureWorkload
075403f2b2688f2216fa76889ad2e60d6b228e07
[ "Unlicense" ]
null
null
null
CreateScopes.py
InsightSSG/CiscoSecureWorkload
075403f2b2688f2216fa76889ad2e60d6b228e07
[ "Unlicense" ]
1
2022-02-09T14:17:17.000Z
2022-02-09T14:17:17.000Z
import json from csv import reader from tetpyclient import RestClient #Tetration IP address API_ENDPOINT="https://x.x.x.x" csvName="apps.csv" restclient = RestClient(API_ENDPOINT, credentials_file='credentials.json', verify=False) #Scope ID's that are used most Frequently, the ID can be found in the GUI by clicking th...
40.685714
145
0.639747
0
0
0
0
0
0
0
0
751
0.527388
9f3b55ac7f32bd3ddaf3293cdb9606d38fbb2474
2,893
py
Python
hamgr/hamgr/logger.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
11
2016-09-06T09:59:29.000Z
2021-10-02T07:24:07.000Z
hamgr/hamgr/logger.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
5
2017-10-16T06:47:14.000Z
2020-07-06T07:20:13.000Z
hamgr/hamgr/logger.py
platform9/pf9-ha
7d64f9fe6b72fb4c1e5ed5d23e372a62c9e218a8
[ "Apache-2.0" ]
3
2016-09-01T06:20:51.000Z
2017-10-16T02:27:07.000Z
# Copyright (c) 2019 Platform9 Systems 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 ...
38.065789
88
0.665054
0
0
0
0
0
0
0
0
1,037
0.358451
9f3fe129f4caca377cee59996a7e8818c5d8030b
2,440
py
Python
tveebot_organizer/filter.py
tveebot/organizer
8c0aca7e22a34f91968f961cfc0e5195b69a7242
[ "MIT" ]
null
null
null
tveebot_organizer/filter.py
tveebot/organizer
8c0aca7e22a34f91968f961cfc0e5195b69a7242
[ "MIT" ]
null
null
null
tveebot_organizer/filter.py
tveebot/organizer
8c0aca7e22a34f91968f961cfc0e5195b69a7242
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Optional class Filter: """ The filter is one of the sub-components of the *Organizer*. An organizer is associated with a single filter. The organizer relies on the filter to filter out files that do not correspond to episode files. Thus, it calls the filter ...
39.354839
97
0.635246
2,384
0.977049
0
0
308
0.12623
0
0
1,556
0.637705
9f40be08084a7777ee0f686ac1b38e4ced24077a
3,243
py
Python
ooobuild/lo/text/text_column.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/text/text_column.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/text/text_column.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # 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...
28.955357
141
0.626272
2,423
0.747148
0
0
930
0.286772
0
0
1,760
0.542707
9f40cf84457f15ced75ad819eccacbe7de3900ca
12,805
py
Python
venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/monitoring/plugin/event_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: spaceone/api/monitoring/plugin/event.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _r...
43.260135
1,277
0.764467
0
0
0
0
0
0
0
0
3,380
0.263959
9f41f73600157cb06a7b8994ef68c50d5f1ec0c3
6,783
py
Python
GPy/testing/link_function_tests.py
PAC-Bayesian/GPy
7fe76385dc832de7cf9e4ce37832902c4d35593f
[ "BSD-3-Clause" ]
9
2019-06-16T01:18:52.000Z
2021-11-03T15:43:55.000Z
GPy/testing/link_function_tests.py
PAC-Bayesian/GPy
7fe76385dc832de7cf9e4ce37832902c4d35593f
[ "BSD-3-Clause" ]
3
2020-09-09T06:12:51.000Z
2021-06-01T23:46:18.000Z
GPy/testing/link_function_tests.py
PAC-Bayesian/GPy
7fe76385dc832de7cf9e4ce37832902c4d35593f
[ "BSD-3-Clause" ]
5
2019-07-07T13:17:44.000Z
2020-09-09T06:06:17.000Z
import numpy as np import scipy from scipy.special import cbrt from GPy.models import GradientChecker _lim_val = np.finfo(np.float64).max _lim_val_exp = np.log(_lim_val) _lim_val_square = np.sqrt(_lim_val) _lim_val_cube = cbrt(_lim_val) from GPy.likelihoods.link_functions import Identity, Probit, Cloglog, Log, Log_ex_1...
47.433566
115
0.703671
6,437
0.94899
0
0
0
0
0
0
675
0.099513
9f432504ee87116b087e943679129ed7b61d0265
2,510
py
Python
scripts/light_controller.py
dniewinski/fancy_lights
7c505072a641bef71bb27dcb86ac2f292789fe38
[ "MIT" ]
null
null
null
scripts/light_controller.py
dniewinski/fancy_lights
7c505072a641bef71bb27dcb86ac2f292789fe38
[ "MIT" ]
null
null
null
scripts/light_controller.py
dniewinski/fancy_lights
7c505072a641bef71bb27dcb86ac2f292789fe38
[ "MIT" ]
null
null
null
#!/usr/bin/env python from ridgeback_msgs.msg import * from warthog_msgs.msg import * import rospy from std_msgs.msg import * from colour import Color import lightPatterns STATE = "IDLE" def RAINBOWS(): global STATE node = rospy.init_node('platform_indicator_light_controller') rate = rospy.get_param('~u...
31.772152
193
0.623506
0
0
0
0
0
0
0
0
381
0.151793
9f44061095db981eb348e3387e2f8f47d1cc4b47
1,161
py
Python
platypush/plugins/switch/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
platypush/plugins/switch/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
platypush/plugins/switch/__init__.py
RichardChiang/platypush
1777ebb0516118cdef20046a92caab496fa7c6cb
[ "MIT" ]
null
null
null
from platypush.plugins import Plugin, action class SwitchPlugin(Plugin): """ Abstract class for interacting with switch devices """ def __init__(self, **kwargs): super().__init__(**kwargs) @action def on(self, device, *args, **kwargs): """ Turn the device on """ raise...
25.23913
99
0.577089
1,091
0.939707
0
0
893
0.769165
0
0
275
0.236865
9f44dcb36faf44616df69046b0b6b98feb411427
115,957
py
Python
tests/pipeline/test_quarters_estimates.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
254
2021-03-29T16:18:39.000Z
2022-03-31T22:06:01.000Z
tests/pipeline/test_quarters_estimates.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
52
2021-04-06T01:46:24.000Z
2022-03-29T20:54:19.000Z
tests/pipeline/test_quarters_estimates.py
Hertz-and-Alpha/zipline-reloaded
eea4a2ccfc03d7fa4946defcb3cdf23469e4ae39
[ "Apache-2.0" ]
53
2021-04-05T14:43:29.000Z
2022-03-31T22:06:04.000Z
from datetime import timedelta from functools import partial import itertools from parameterized import parameterized import numpy as np from numpy.testing import assert_array_equal, assert_almost_equal import pandas as pd from toolz import merge from zipline.pipeline import SimplePipelineEngine, Pipeline, CustomFacto...
39.121795
88
0.491881
113,117
0.975508
0
0
87,140
0.751485
0
0
24,993
0.215537
9f451c92b7dac95c814165b7df6b2c381a7e95ca
1,407
py
Python
python/463.island-perimeter.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
1
2019-04-11T12:34:55.000Z
2019-04-11T12:34:55.000Z
python/463.island-perimeter.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
null
null
null
python/463.island-perimeter.py
fengbaoheng/leetcode
2b6ec9adea383503acc23622ca5623161f7ca520
[ "MIT" ]
null
null
null
# # @lc app=leetcode.cn id=463 lang=python3 # # [463] 岛屿的周长 # # https://leetcode-cn.com/problems/island-perimeter/description/ # # algorithms # Easy (59.76%) # Total Accepted: 5.4K # Total Submissions: 9K # Testcase Example: '[[0,1,0,0],[1,1,1,0],[0,1,0,0],[1,1,0,0]]' # # 给定一个包含 0 和 1 的二维网格地图,其中 1 表示陆地 0 表示水域。 # # ...
22.333333
85
0.510306
810
0.435953
0
0
0
0
0
0
1,046
0.562971
9f45923bf32c54dc1d821bc697cfd96aa4870fdd
3,411
py
Python
MarkerMotionSimulation/simMarkMotionField.py
CMURoboTouch/Taxim
d067cc63892fab8de736a1d3f449d01368b32205
[ "MIT" ]
19
2021-10-04T22:14:23.000Z
2022-03-28T08:12:33.000Z
MarkerMotionSimulation/simMarkMotionField.py
radhen/Taxim
d067cc63892fab8de736a1d3f449d01368b32205
[ "MIT" ]
null
null
null
MarkerMotionSimulation/simMarkMotionField.py
radhen/Taxim
d067cc63892fab8de736a1d3f449d01368b32205
[ "MIT" ]
3
2021-12-23T00:39:20.000Z
2022-02-02T13:22:46.000Z
import matplotlib.pyplot as plt import numpy as np import os from os import path as osp import argparse import sys sys.path.append("..") import Basics.sensorParams as psp from compose.dataLoader import dataLoader from compose.superposition import SuperPosition, fill_blank, cropMap parser = argparse.ArgumentParser() pa...
35.164948
101
0.668426
0
0
0
0
0
0
0
0
660
0.193492
9f46438dbabd7f10447a58a987f3988c1715e25a
3,285
py
Python
ImageCaptioning/reader.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
2
2020-09-09T16:33:47.000Z
2021-02-27T17:58:52.000Z
ImageCaptioning/reader.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
1
2020-06-12T12:11:59.000Z
2020-06-12T12:11:59.000Z
ImageCaptioning/reader.py
GT-AcerZhang/MyImageCaptioningModel
83ccda0fb2b542d5c6693270247435f68a242629
[ "Apache-2.0" ]
1
2021-03-05T11:07:17.000Z
2021-03-05T11:07:17.000Z
from paddle import fluid import numpy as np import os from PIL import Image import config from tools import hdf5_manager _image_mean = np.array(config.dc['ImageMean'], dtype='float32').reshape((3, 1, 1)) _image_std = np.array(config.dc['ImageStd'], dtype='float32').reshape((3, 1, 1)) def process_image(img): if ...
32.85
108
0.617656
2,463
0.742538
1,166
0.351522
696
0.209828
0
0
379
0.11426
9f497ba3c59044df0c76a764ab13eed689b22d42
2,791
py
Python
getData.py
SamGalanakis/SimilarSummonersGraph
26bb6448e8bbf3c7398fdc3638998d0998cfc25e
[ "MIT" ]
null
null
null
getData.py
SamGalanakis/SimilarSummonersGraph
26bb6448e8bbf3c7398fdc3638998d0998cfc25e
[ "MIT" ]
5
2021-06-08T22:16:33.000Z
2022-03-12T00:46:02.000Z
getData.py
SamGalanakis/SimilarSummonersGraph
26bb6448e8bbf3c7398fdc3638998d0998cfc25e
[ "MIT" ]
null
null
null
import cassiopeia as cass from cassiopeia import Summoner import csv import collections import pandas as pd import random with open("api_key.txt","r") as f: api_key=f.read() #settings settings = cass.get_default_config() settings["pipeline"]["RiotAPI"]["api_key"]=api_key settings["logging"]["print_calls"]=Fal...
32.08046
136
0.640272
0
0
0
0
0
0
0
0
540
0.193479
9f49ad55c69ff7b0e8aedc0c69d313b374a69ec7
8,161
py
Python
src/shell/analysis/type.py
Frky/scat
551c3a155dd3804d78d6efb96ecdace430bd6473
[ "MIT" ]
77
2015-10-10T19:59:47.000Z
2021-12-10T06:59:35.000Z
src/shell/analysis/type.py
Frky/scat
551c3a155dd3804d78d6efb96ecdace430bd6473
[ "MIT" ]
19
2017-02-23T15:59:01.000Z
2017-06-14T11:41:36.000Z
src/shell/analysis/type.py
Frky/scat
551c3a155dd3804d78d6efb96ecdace430bd6473
[ "MIT" ]
12
2015-12-08T17:57:49.000Z
2021-04-16T07:42:31.000Z
#-*- coding: utf-8 -*- from datetime import datetime import re from analysis import Analysis from src.shell.parser.type import TypeLogParser class TypeAnalysis(Analysis): def __init__(self, pgm, logfile, data=None): Analysis.__init__(self, pgm, logfile) self.data = data if data == None: ...
32.256917
111
0.463669
8,016
0.982233
0
0
0
0
0
0
822
0.100723
9f4c175b8a74c627aeeca1320d7e505c42821ba2
7,771
py
Python
lib/evernote/edam/limits/constants.py
McAlyster/evergraph
44d8485a21a29ab242321c0761258b89ad0bae4d
[ "Apache-2.0", "BSD-2-Clause" ]
131
2015-01-08T17:25:47.000Z
2022-03-25T16:24:04.000Z
lib/evernote/edam/limits/constants.py
McAlyster/evergraph
44d8485a21a29ab242321c0761258b89ad0bae4d
[ "Apache-2.0", "BSD-2-Clause" ]
15
2015-01-09T10:11:41.000Z
2018-11-30T23:15:43.000Z
lib/evernote/edam/limits/constants.py
McAlyster/evergraph
44d8485a21a29ab242321c0761258b89ad0bae4d
[ "Apache-2.0", "BSD-2-Clause" ]
46
2015-01-20T07:18:04.000Z
2021-12-16T06:46:21.000Z
# # Autogenerated by Thrift Compiler # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py:new_style # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from ttypes import * EDAM_ATTRIBUTE_LEN_MIN = 1 EDAM_ATTRIBUTE_LEN_MAX = 4096 EDAM_ATTRIBUTE_RE...
42.697802
553
0.725261
0
0
0
0
0
0
0
0
3,079
0.396217
9f4c3bd669ebe4b7d15081f8ab2ae582b7d993d4
1,998
py
Python
home/views.py
Vlad-404/phot-portfolio
ff3fba512645c0781755bf5b6f7cc455f09b3c5b
[ "BSD-Source-Code" ]
1
2021-01-05T15:52:19.000Z
2021-01-05T15:52:19.000Z
home/views.py
Vlad-404/phot-portfolio
ff3fba512645c0781755bf5b6f7cc455f09b3c5b
[ "BSD-Source-Code" ]
null
null
null
home/views.py
Vlad-404/phot-portfolio
ff3fba512645c0781755bf5b6f7cc455f09b3c5b
[ "BSD-Source-Code" ]
1
2021-01-05T18:44:47.000Z
2021-01-05T18:44:47.000Z
from django.shortcuts import render from .models import Categories, SocialMedia from django.contrib import messages from django.core.mail import send_mail from django.conf import settings from django.template.loader import render_to_string # Create your views here. def index(request): media_links = SocialMedia.ob...
32.225806
87
0.608609
0
0
0
0
0
0
0
0
653
0.326827