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
ba247ac7c75341abffe46b2c862326f4b1bcfefb
275
py
Python
COPS.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
2
2021-07-26T03:32:24.000Z
2021-07-31T02:32:14.000Z
COPS.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
null
null
null
COPS.py
abphilip-codes/Codechef_Practice
21fd52e03df8a0f72a08b0e2a0b48dbd508aac95
[ "MIT" ]
1
2021-07-14T17:45:33.000Z
2021-07-14T17:45:33.000Z
# https://www.codechef.com/problems/COPS for T in range(int(input())): M,x,y=map(int,input().split()) m,a = list(map(int,input().split())),list(range(1,101)) for i in m: for j in range(i-x*y,i+1+x*y): if(j in a): a.remove(j) print(len(a))
30.555556
59
0.552727
0
0
0
0
0
0
0
0
40
0.145455
ba25057c6b3ececb19513f93d3dbe767448d9d9b
458
py
Python
Python Fundamentals/Regular Expressions/More Exercise/Task02_03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
1
2022-03-16T10:23:04.000Z
2022-03-16T10:23:04.000Z
Python Fundamentals/Regular Expressions/More Exercise/Task02_03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
Python Fundamentals/Regular Expressions/More Exercise/Task02_03.py
IvanTodorovBG/SoftUni
7b667f6905d9f695ab1484efbb02b6715f6d569e
[ "MIT" ]
null
null
null
import re data = input() pattern = r"%([A-Z][a-z]+)%([^|$%.]+)?<(\w+)>([^|$%.]+)?\|(\d+)\|([^|$%.0-9]+)?([0-9]+(\.[0-9]+)?)\$" total_income = 0 while data != "end of shift": for match in re.finditer(pattern, data): print(f"{match.group(1)}: {match.group(3)} - {int(match.group(5)) * float(match.group(7)):...
30.533333
104
0.528384
0
0
0
0
0
0
0
0
229
0.5
ba26e1fd3bf707b269e72c095f6fc249a64b024e
319
py
Python
sky/migrations/0008_remove_news_label.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
sky/migrations/0008_remove_news_label.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
null
null
null
sky/migrations/0008_remove_news_label.py
eethan1/IMnight2018_Backend
39780f737e57763fdfb171c4687a375d3c5a4bb0
[ "Apache-2.0" ]
4
2018-01-27T06:01:41.000Z
2018-02-21T12:18:35.000Z
# Generated by Django 2.0 on 2018-02-24 11:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('sky', '0007_auto_20180224_1120'), ] operations = [ migrations.RemoveField( model_name='news', name='label', ), ]
17.722222
45
0.583072
236
0.739812
0
0
0
0
0
0
88
0.275862
ba2734de58f77351686c44deeb925ba874e74299
8,884
py
Python
mealpy/utils/visualize/linechart.py
thieu1995/mealpy
7694c18e1514909f6727163a3e0899dd36822867
[ "MIT" ]
162
2020-08-31T10:13:06.000Z
2022-03-31T09:38:19.000Z
mealpy/utils/visualize/linechart.py
thieu1995/mealpy
7694c18e1514909f6727163a3e0899dd36822867
[ "MIT" ]
51
2020-09-13T10:46:31.000Z
2022-03-30T06:12:08.000Z
mealpy/utils/visualize/linechart.py
thieu1995/mealpy
7694c18e1514909f6727163a3e0899dd36822867
[ "MIT" ]
58
2020-09-12T13:29:18.000Z
2022-03-31T09:38:21.000Z
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu" at 17:12, 09/07/2021 % # ...
44.199005
142
0.582058
0
0
0
0
0
0
0
0
2,183
0.245723
ba273db5f7c2ad5232a853fc86d336a611f90e78
1,109
py
Python
graphs/functions/scores.py
CSI-BennettUniversity/Sample-Project-1
23197352372b7ad00a026683477b5a95a4178e35
[ "MIT" ]
5
2020-07-30T16:47:30.000Z
2021-02-15T16:44:59.000Z
graphs/functions/scores.py
CSI-BennettUniversity/Sample-Project-1
23197352372b7ad00a026683477b5a95a4178e35
[ "MIT" ]
4
2021-06-04T23:42:41.000Z
2021-09-11T03:17:12.000Z
graphs/functions/scores.py
CSI-BennettUniversity/Sample-Project-1
23197352372b7ad00a026683477b5a95a4178e35
[ "MIT" ]
7
2020-07-05T14:29:17.000Z
2021-06-05T14:34:20.000Z
import json from interactions.models import ( SelfAnswerGroup, ) def update_dict_with_score(valid_dict: list) -> list: """ Updates the dict (from single and multiple_result_view) with the scores of each user present in the list, by calculating their ``answer_choice`` and multiplying them with corresp...
29.972973
69
0.671776
0
0
0
0
0
0
0
0
291
0.262399
ba2ae5c00bc2049ab803532fa3e9a36db8f45a24
288
py
Python
authenticationApp/EmailHandler.py
George-Okumu/IReporter-Django
5962984ce0069cdf048dbf91686377568a7cf55b
[ "MIT" ]
null
null
null
authenticationApp/EmailHandler.py
George-Okumu/IReporter-Django
5962984ce0069cdf048dbf91686377568a7cf55b
[ "MIT" ]
1
2021-10-06T20:15:11.000Z
2021-10-06T20:15:11.000Z
authenticationApp/EmailHandler.py
George-Okumu/IReporter-Django
5962984ce0069cdf048dbf91686377568a7cf55b
[ "MIT" ]
null
null
null
from django.core.mail import EmailMessage, message class EmailHandlerClass: @staticmethod def sendEmail(data): email = EmailMessage(subject=data['email_subject'], body=data['email_body'], to=[data['email_to']]) email.send() # email.send()
32
107
0.638889
219
0.760417
0
0
190
0.659722
0
0
51
0.177083
ba2b10e7983f50e892222f03799fc1c092cbda9b
495
py
Python
checkdns.py
delcacho/DataSciencePlatform
c19ac4c1aba54bafc0fed05cc534bb447ab3b631
[ "BSD-3-Clause" ]
null
null
null
checkdns.py
delcacho/DataSciencePlatform
c19ac4c1aba54bafc0fed05cc534bb447ab3b631
[ "BSD-3-Clause" ]
null
null
null
checkdns.py
delcacho/DataSciencePlatform
c19ac4c1aba54bafc0fed05cc534bb447ab3b631
[ "BSD-3-Clause" ]
null
null
null
from area53 import route53 from boto.route53.exception import DNSServerError from kubernetes import client, config from datetime import datetime import socket import time # Ensure cluster is running consec = 0 while consec < 10: try: ip = socket.gethostbyname("http://api.k8s.dev.bayescluster.com") cpnsec +=...
23.571429
68
0.717172
0
0
0
0
0
0
0
0
140
0.282828
ba2b2f46854a6061db7ab4dc16a1519a9222534e
2,339
py
Python
config/urls.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
config/urls.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
config/urls.py
ISI-MIP/isimip
c2a78c727337e38f3695031e00afd607da7d6dcb
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views import defaults as default_views from wagtail.admin import urls as wagtailadmin_urls from wagtail.core import ...
41.767857
110
0.734929
0
0
0
0
0
0
0
0
575
0.245832
ba2c60c5a4a95231943f7de20a48e3d6d869c8ea
31,645
py
Python
eyesore/decision_graph/graph.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
2
2019-11-07T02:55:40.000Z
2021-12-30T01:37:43.000Z
eyesore/decision_graph/graph.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
null
null
null
eyesore/decision_graph/graph.py
twizmwazin/hacrs
3c9386b0fa5f5ea6b93b2bc8b3c4eed6abceec6a
[ "BSD-2-Clause" ]
2
2019-09-27T12:01:50.000Z
2019-10-09T21:39:52.000Z
from collections import defaultdict, namedtuple import re class DiGraph(object): """Implementation of directed graph""" # Stand for a cell in a dot node rendering DotCellDescription = namedtuple("DotCellDescription", ["text", "attr"]) def __init__(self): ...
34.173866
87
0.545679
31,575
0.997788
9,442
0.298373
4,149
0.131111
0
0
10,863
0.343277
ba2df7bb990808dc2a091788ac5a88823c2f2250
9,466
py
Python
variation/multiplex.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
null
null
null
variation/multiplex.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
null
null
null
variation/multiplex.py
FCG-LLC/snmpsim
a55ecde4cde65d2364ea334ab85df4cd1bb21f3b
[ "BSD-2-Clause" ]
1
2019-12-16T09:51:38.000Z
2019-12-16T09:51:38.000Z
# # This file is part of snmpsim software. # # Copyright (c) 2010-2017, Ilya Etingof <etingof@gmail.com> # License: http://snmpsim.sf.net/license.html # # Managed value variation module: simulate a live Agent using # a series of snapshots. # import os, time, bisect from pyasn1.compat.octets import str2octs from pysnmp....
39.940928
117
0.584619
0
0
0
0
0
0
0
0
2,283
0.241179
e839fbe3bff22b6a6dd9a48e9fd2bca0767aa7c7
2,254
py
Python
migrations/versions/ac4799fb0cd3_.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
1
2021-11-28T05:46:45.000Z
2021-11-28T05:46:45.000Z
migrations/versions/ac4799fb0cd3_.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
migrations/versions/ac4799fb0cd3_.py
anngle/t923
078d2c566c77afa2ca1be7663d3c23c9f0ecddac
[ "BSD-3-Clause" ]
null
null
null
"""empty message Revision ID: ac4799fb0cd3 Revises: 3b042c12d85e Create Date: 2018-12-12 22:47:40.070151 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import mysql # revision identifiers, used by Alembic. revision = 'ac4799fb0cd3' down_revision = '3b042c12d85e' branch_labels = None depe...
36.95082
100
0.697427
0
0
0
0
0
0
0
0
727
0.322538
e83a10c3bd7787fb995d7f3409fbe97fa6a48414
7,597
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_fretta_bcm_dpa_drop_stats_oper.py
tkamata-test/ydk-py
b637e7853a8edbbd31fbc05afa3aa4110b31c5f9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import re import collections from enum import Enum from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum from ydk.types import Empty, YList, YLeafList, DELETE, Decimal64, FixedBitsDict from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_CLASS, REFERENCE_LIST, REFERENCE_LEAFLI...
49.012903
258
0.576938
0
0
0
0
0
0
0
0
4,176
0.549691
e83b70a19e325c708c84cceef919e66e323c5dc3
2,403
py
Python
main.py
Dinxor/tstore
ff2bb229ad2169926046076022b5a37025e98877
[ "MIT" ]
null
null
null
main.py
Dinxor/tstore
ff2bb229ad2169926046076022b5a37025e98877
[ "MIT" ]
null
null
null
main.py
Dinxor/tstore
ff2bb229ad2169926046076022b5a37025e98877
[ "MIT" ]
null
null
null
from tkinter import Tk, Button, Label from threading import Thread from queue import Queue import configparser import sys import os def init_config(path): config.optionxform = str config.read(path) def maingui(): for name in tt['modules'].keys(): tt[name]['label'].config(text=str(tt[name].get('c...
30.0375
97
0.574698
0
0
0
0
0
0
0
0
300
0.124844
e83c09d5b0c0d2913540a96c620e7e78f88f46ec
1,182
py
Python
titan/logger.py
KhaosResearch/TITAN-API
98a66b211792f4b42680828644938b062de42579
[ "MIT" ]
null
null
null
titan/logger.py
KhaosResearch/TITAN-API
98a66b211792f4b42680828644938b062de42579
[ "MIT" ]
null
null
null
titan/logger.py
KhaosResearch/TITAN-API
98a66b211792f4b42680828644938b062de42579
[ "MIT" ]
null
null
null
import logging.config def configure_logging(): DEFAULT_LOGGING_CONFIG = { "version": 1, "disable_existing_loggers": False, "formatters": { "basic": { "format": "[%(asctime)s] [%(name)s] [%(levelname)s] %(message)s", "datefmt": "%Y-%m-%d %H:%M:%S"...
26.266667
81
0.416244
0
0
0
0
0
0
0
0
434
0.367174
e83cbc6b6ef32b4ad9eb6c2026f3ac57e6c46439
386
py
Python
Raia2011/model/name2idx/species.py
okadalabipr/cancer_signaling
a41820c273c964c5df4d24fec2d1c60ae2cdfd72
[ "MIT" ]
1
2019-08-18T10:26:04.000Z
2019-08-18T10:26:04.000Z
Raia2011/model/name2idx/species.py
okadalabipr/cancer_signaling
a41820c273c964c5df4d24fec2d1c60ae2cdfd72
[ "MIT" ]
null
null
null
Raia2011/model/name2idx/species.py
okadalabipr/cancer_signaling
a41820c273c964c5df4d24fec2d1c60ae2cdfd72
[ "MIT" ]
3
2019-12-23T06:55:10.000Z
2020-08-31T08:09:05.000Z
NAMES = [ 'IL13stimulation', 'Rec', 'Rec_i', 'IL13_Rec', 'p_IL13_Rec', 'p_IL13_Rec_i', 'JAK2', 'pJAK2', 'SHP1', 'STAT5', 'pSTAT5', 'SOCS3mRNA', 'DecoyR', 'IL13_DecoyR', 'SOCS3', 'CD274mRNA', ] for idx, name in enumerate(NAMES): exec( '{} = {:d...
14.296296
34
0.458549
0
0
0
0
0
0
0
0
160
0.414508
e83e35480e03fbc96372bcc220d34b49bf9a9cba
2,149
py
Python
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/map_buffer_range.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/map_buffer_range.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/GL/ARB/map_buffer_range.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
'''OpenGL extension ARB.map_buffer_range This module customises the behaviour of the OpenGL.raw.GL.ARB.map_buffer_range to provide a more Python-friendly API Overview (from the spec) ARB_map_buffer_range expands the buffer object API to allow greater performance when a client application only needs to ...
42.98
77
0.790135
0
0
0
0
0
0
0
0
1,752
0.815263
e83e7031289be7e749092a0b52442c696186785d
5,091
py
Python
src/python/src/grpc/framework/foundation/_later_test.py
iMilind/grpc
f5b20ce8ec0c1dde684840f6ea8dcf80822bbb1d
[ "BSD-3-Clause" ]
1
2021-04-24T08:18:15.000Z
2021-04-24T08:18:15.000Z
src/python/src/grpc/framework/foundation/_later_test.py
iMilind/grpc
f5b20ce8ec0c1dde684840f6ea8dcf80822bbb1d
[ "BSD-3-Clause" ]
3
2020-12-31T09:08:34.000Z
2021-09-28T05:42:02.000Z
third_party/grpc/src/python/src/grpc/framework/foundation/_later_test.py
acidburn0zzz/kythe
6cd4e9c81a1158de43ec783607a4d7edd9b7e4a0
[ "Apache-2.0" ]
1
2022-01-14T04:25:02.000Z
2022-01-14T04:25:02.000Z
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
33.493421
80
0.719112
3,377
0.663327
0
0
0
0
0
0
1,600
0.31428
e83fb918ef967c55aa6401be077593fddf740b8a
1,179
py
Python
tests/test_stage.py
bytedance/raylink
cd83a4377fede1ac645037df567010f2ddac5a69
[ "Apache-2.0" ]
17
2021-10-11T06:52:09.000Z
2022-01-12T01:04:59.000Z
tests/test_stage.py
bytedance/raylink
cd83a4377fede1ac645037df567010f2ddac5a69
[ "Apache-2.0" ]
null
null
null
tests/test_stage.py
bytedance/raylink
cd83a4377fede1ac645037df567010f2ddac5a69
[ "Apache-2.0" ]
2
2021-10-11T08:19:04.000Z
2021-12-04T02:48:13.000Z
from unittest import TestCase from raylink.data.stage import GPUStage import numpy as np import torch import time class TestStage(TestCase): @classmethod def setUpClass(cls) -> None: cls.shape = [20, 1024, 1024] cls.num = 50 cls.zero = np.zeros(cls.shape) cls.array = [np.empty(...
26.2
65
0.554707
1,062
0.900763
0
0
247
0.2095
0
0
110
0.093299
e8404984e29c624bea38b2217947473bb1186bbd
4,035
py
Python
forgetPass.py
goyal705/Hotel-Management-System
8ea3598915f4062a7ae65c634e656d0f25b961f0
[ "Apache-2.0" ]
1
2021-09-10T11:39:23.000Z
2021-09-10T11:39:23.000Z
forgetPass.py
goyal705/Hotel-Management-System
8ea3598915f4062a7ae65c634e656d0f25b961f0
[ "Apache-2.0" ]
null
null
null
forgetPass.py
goyal705/Hotel-Management-System
8ea3598915f4062a7ae65c634e656d0f25b961f0
[ "Apache-2.0" ]
null
null
null
from tkinter import * from tkinter import ttk from tkinter import messagebox import mysql.connector from login_new import Small_login_win class Forget_pass_win: def __init__(self, root): self.root = root self.root.title("Forget Password") self.root.geometry('300x400+520+130') ...
49.207317
122
0.607187
3,785
0.938042
0
0
0
0
0
0
852
0.211152
e8406c99552679a5a4646ded93380dc3a080a4b0
2,945
py
Python
mmdet/models/rroi_extractors/arbox_multi_levels.py
ZZR8066/AerialDetection
34c732b61d7df9a832a2a072e8b6abbe8031cb07
[ "Apache-2.0" ]
6
2020-07-30T02:45:35.000Z
2022-02-08T13:47:26.000Z
mmdet/models/rroi_extractors/arbox_multi_levels.py
ZZR8066/AerialDetection_and_Segmenation
34c732b61d7df9a832a2a072e8b6abbe8031cb07
[ "Apache-2.0" ]
1
2020-07-25T12:51:10.000Z
2021-12-26T22:28:08.000Z
mmdet/models/rroi_extractors/arbox_multi_levels.py
ZZR8066/AerialDetection_and_Segmenation
34c732b61d7df9a832a2a072e8b6abbe8031cb07
[ "Apache-2.0" ]
3
2020-11-09T03:11:16.000Z
2021-11-02T09:30:39.000Z
from __future__ import division import torch import torch.nn as nn from mmdet import ops from ..registry import ROI_EXTRACTORS import pdb @ROI_EXTRACTORS.register_module class ARboxMultiRoIExtractor(nn.Module): """Extract RoI features from a single level feature map. If there are mulitple input feature leve...
32.722222
77
0.612564
2,772
0.941256
0
0
2,804
0.952122
0
0
486
0.165025
e840e5bc9763698d91cf0375b1df8b3f61aea666
1,449
py
Python
docs/podstawy/przyklady/ocenyfun.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
44
2015-02-11T19:10:37.000Z
2021-11-11T09:45:43.000Z
docs/podstawy/przyklady/ocenyfun.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
9
2015-02-06T21:26:25.000Z
2022-03-31T10:44:22.000Z
docs/podstawy/przyklady/ocenyfun.py
damiankarol7/python101
1978a9402a8fb0f20c4ca7bd542cb8d7d4501b9b
[ "MIT" ]
172
2015-06-13T07:16:24.000Z
2022-03-30T20:41:11.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- """ Moduł ocenyfun zawiera funkcje wykorzystywane w pliku 05_oceny_03.py """ import math # zaimportuj moduł matematyczny def drukuj(co, kom="Sekwencja zawiera: "): print(kom) for i in co: print(i, end=" ") def srednia(oceny): suma = sum(ocen...
25.421053
72
0.619738
0
0
0
0
0
0
0
0
817
0.552774
e8417c90203dc931182a576771783829d860eca2
608
py
Python
kubernetes_typed/client/models/v2beta2_metric_status.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
22
2020-12-10T13:06:02.000Z
2022-02-13T21:58:15.000Z
kubernetes_typed/client/models/v2beta2_metric_status.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
4
2021-03-08T07:06:12.000Z
2022-03-29T23:41:45.000Z
kubernetes_typed/client/models/v2beta2_metric_status.py
sobolevn/kubernetes-typed
5f0a770631c73a9831fbeaeebac188e8f4a52c54
[ "Apache-2.0" ]
2
2021-09-05T19:18:28.000Z
2022-03-14T02:56:17.000Z
# Code generated by `typeddictgen`. DO NOT EDIT. """V2beta2MetricStatusDict generated type.""" from typing import TypedDict from kubernetes_typed.client import V2beta2ExternalMetricStatusDict, V2beta2ObjectMetricStatusDict, V2beta2PodsMetricStatusDict, V2beta2ResourceMetricStatusDict V2beta2MetricStatusDict = TypedDi...
33.777778
160
0.761513
0
0
0
0
0
0
0
0
158
0.259868
e8424a7118017635f1b1c7ef3d7daf970569e6bf
1,865
py
Python
tests/test_env_runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
4
2021-08-19T21:41:34.000Z
2022-02-03T00:44:43.000Z
tests/test_env_runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
null
null
null
tests/test_env_runner.py
pistarlab/simpleland
e1d5f65ef6ffaf9e32536d46aa3a2526d3b57801
[ "MIT" ]
null
null
null
import pytest from landia.env import LandiaEnv, LandiaEnvSingle import time from landia.clock import clock def test_env(): agent_map = {str(i):{} for i in range(4)} env = LandiaEnv(agent_map=agent_map,dry_run=False) start_time = time.time() max_steps = 2000 dones = {"__all__":True} episode_co...
28.257576
92
0.631635
0
0
0
0
0
0
0
0
266
0.142627
e842c41ef1221729334421753ca406d26117e384
8,211
py
Python
helpers/simulation_helpers/scripts/simulated_robot_driver.py
GT-RAIL/assistance_arbitration
84d7cfb6e08f0dd23de9fa106264726f19ef82ea
[ "MIT" ]
null
null
null
helpers/simulation_helpers/scripts/simulated_robot_driver.py
GT-RAIL/assistance_arbitration
84d7cfb6e08f0dd23de9fa106264726f19ef82ea
[ "MIT" ]
32
2018-09-11T12:34:06.000Z
2020-08-25T19:57:26.000Z
helpers/simulation_helpers/scripts/simulated_robot_driver.py
GT-RAIL/assistance_arbitration
84d7cfb6e08f0dd23de9fa106264726f19ef82ea
[ "MIT" ]
2
2020-02-21T03:16:41.000Z
2021-08-01T17:29:43.000Z
#!/usr/bin/env python # Simulate the /robot_driver so that interfaces to it can operate the same on # the real robot and in simulation from __future__ import print_function, division from threading import Lock import rospy import diagnostic_updater from diagnostic_msgs.msg import DiagnosticStatus from fetch_driver_...
40.850746
121
0.677749
6,989
0.851175
0
0
0
0
0
0
1,274
0.155158
e8446ce2f4061635de45065908f670220fac78c6
3,012
py
Python
docs/source/conf.py
suzil/awsstepfuncs
dd195b54bf8eaa381ea07244b276db6a1e82007b
[ "MIT" ]
3
2020-11-29T18:31:50.000Z
2021-01-14T07:46:40.000Z
docs/source/conf.py
suzil/aws-step-functions
dd195b54bf8eaa381ea07244b276db6a1e82007b
[ "MIT" ]
54
2020-10-17T13:30:05.000Z
2020-10-28T01:46:59.000Z
docs/source/conf.py
suzil/aws-step-functions
dd195b54bf8eaa381ea07244b276db6a1e82007b
[ "MIT" ]
1
2021-08-04T04:40:27.000Z
2021-08-04T04:40:27.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
28.415094
79
0.658367
0
0
0
0
0
0
0
0
2,080
0.690113
e8449bc93dc7b2136a3c89b249e0217f67fedec5
723
py
Python
day-07.py
analuisadev/100-Days-Of-Code
b1dafabc335cd2c3c9b1cecd50597b42d8959d4a
[ "MIT" ]
2
2021-01-08T22:13:21.000Z
2021-03-17T10:44:12.000Z
day-07.py
analuisadev/100-Days-Of-Code
b1dafabc335cd2c3c9b1cecd50597b42d8959d4a
[ "MIT" ]
null
null
null
day-07.py
analuisadev/100-Days-Of-Code
b1dafabc335cd2c3c9b1cecd50597b42d8959d4a
[ "MIT" ]
null
null
null
from random import randint from time import sleep print ('=' * 18) print ('\033[1mSTONE PAPER AND SCISSORS\033[m') print ('=' * 18) print ('I already chose mine now missing you') sleep (1) computer = randint (1, 3) player = int(input('\033[1mChoose between\033[m \033[1;33m1) Stone 2) Paper and 3) Scissors\033[m : '))...
36.15
104
0.658368
0
0
0
0
0
0
0
0
374
0.516575
e84512b0da871bd7cbe1284df91d047dbdd1a5e5
303
py
Python
tmdb/three/reviews.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
4
2017-05-16T02:30:52.000Z
2021-07-01T13:21:27.000Z
tmdb/three/reviews.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
4
2020-09-03T03:19:49.000Z
2021-12-21T05:24:04.000Z
tmdb/three/reviews.py
Cologler/ezapi-tmdb
6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6
[ "MIT" ]
3
2021-02-15T18:13:08.000Z
2021-04-10T03:53:58.000Z
from .base import ENDPOINT, process_response class ReviewsMixin: @process_response def get_review_details(self, review_id, **kwargs): """ GET /review/{review_id} """ url = f"{ENDPOINT}/3/review/{review_id}" return self.make_request("GET", url, kwargs)
23.307692
54
0.630363
255
0.841584
0
0
231
0.762376
0
0
86
0.283828
e8459f0fc13fb8e816c864fc35cd8a3cb0f01468
739
py
Python
app/models/domain/position.py
Chaoyingz/paper_trading
cd3af81c932e8f4b1586f2b9bf86b5b252bec896
[ "MIT" ]
null
null
null
app/models/domain/position.py
Chaoyingz/paper_trading
cd3af81c932e8f4b1586f2b9bf86b5b252bec896
[ "MIT" ]
null
null
null
app/models/domain/position.py
Chaoyingz/paper_trading
cd3af81c932e8f4b1586f2b9bf86b5b252bec896
[ "MIT" ]
null
null
null
from datetime import datetime from pydantic import Field from app.models.base import DBModelMixin from app.models.domain.stocks import Stock from app.models.types import PyDecimal, PyObjectId class Position(Stock): """持仓股票""" volume: int = Field(..., description="持仓量") available_volume: int = Field(......
30.791667
64
0.711773
607
0.752169
0
0
0
0
0
0
126
0.156134
e845a7e7d6017dc01966f517fbcf29e5fc29bd30
2,644
py
Python
drink_partners/middlewares/tests/test_exception_handler.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
null
null
null
drink_partners/middlewares/tests/test_exception_handler.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
22
2020-05-02T19:32:24.000Z
2021-10-17T21:19:46.000Z
drink_partners/middlewares/tests/test_exception_handler.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
null
null
null
import json import pytest from aiohttp.web import HTTPGatewayTimeout from drink_partners.contrib.exceptions import APIException from drink_partners.contrib.response import JSONResponse from drink_partners.middlewares.exception_handler import ( exception_handler_middleware ) httperror_message = 'Http error messag...
28.430108
79
0.693268
1,987
0.751513
0
0
175
0.066188
2,064
0.780635
221
0.083585
e84653cc7074215f83e285dd13f1f44ac93d694e
899
py
Python
tase/telegram/inline_buttons/choose_language_button.py
soran-ghaderi/Chromusic_search_engine
e811401fee39ff4cb184750fcbde55053c69453d
[ "Apache-2.0" ]
4
2022-02-21T06:56:16.000Z
2022-03-07T21:10:19.000Z
tase/telegram/inline_buttons/choose_language_button.py
soran-ghaderi/Chromusic_search_engine
e811401fee39ff4cb184750fcbde55053c69453d
[ "Apache-2.0" ]
null
null
null
tase/telegram/inline_buttons/choose_language_button.py
soran-ghaderi/Chromusic_search_engine
e811401fee39ff4cb184750fcbde55053c69453d
[ "Apache-2.0" ]
1
2022-03-07T21:10:02.000Z
2022-03-07T21:10:02.000Z
import pyrogram from .inline_button import InlineButton from ..telegram_client import TelegramClient # from ..handlers import BaseHandler from ...db import DatabaseClient, graph_models from ...utils import _trans class ChooseLanguageInlineButton(InlineButton): name = "choose_language" def on_callback_query(...
33.296296
71
0.68743
682
0.758621
0
0
0
0
0
0
181
0.201335
e84af8b6f01102abd58e768944863261e63306d5
565
py
Python
blog/forms.py
Ukyply/Ukyply-SQLite
3c1c550b32b2f969c8964f806bf8578fbeeb7d4b
[ "MIT" ]
null
null
null
blog/forms.py
Ukyply/Ukyply-SQLite
3c1c550b32b2f969c8964f806bf8578fbeeb7d4b
[ "MIT" ]
null
null
null
blog/forms.py
Ukyply/Ukyply-SQLite
3c1c550b32b2f969c8964f806bf8578fbeeb7d4b
[ "MIT" ]
null
null
null
from django import forms from blog.models import Post class PostForm(forms.ModelForm): class Meta: model= Post fields = ('title','text') labels = { 'title':'Söz Başy', 'text':'Hat', } def save_form(self, request, instance, form, change): user = ...
24.565217
57
0.569912
511
0.901235
0
0
0
0
0
0
43
0.075838
e84b2f2fe83a3e28896f1f56e30847e498d1d2a1
648
py
Python
rules/tamper/wordpress.py
lavon321/Kunlun-M
792548536d67f648c92324ecc153d7f206623e31
[ "MIT" ]
1,059
2020-08-06T13:32:10.000Z
2022-03-31T07:20:27.000Z
rules/tamper/wordpress.py
lavon321/Kunlun-M
792548536d67f648c92324ecc153d7f206623e31
[ "MIT" ]
87
2020-09-08T06:34:45.000Z
2022-03-28T05:52:36.000Z
rules/tamper/wordpress.py
lavon321/Kunlun-M
792548536d67f648c92324ecc153d7f206623e31
[ "MIT" ]
171
2020-08-13T11:53:47.000Z
2022-03-30T03:23:07.000Z
# -*- coding: utf-8 -*- """ wordpress ~~~~ tamper for wordpress :author: LoRexxar <LoRexxar@gmail.com> :homepage: https://github.com/LoRexxar/Kunlun-M :license: MIT, see LICENSE for more details. :copyright: Copyright (c) 2017 LoRexxar. All rights reserved """ wordpress = { "es...
24
64
0.606481
0
0
0
0
0
0
0
0
381
0.587963
e84d152037bd2e3dced364c3e47b92c7a6bfda36
210
py
Python
tests/test_utils.py
szarnyasg/pygraphblas
7465ef6fcc77c9901869b70ddf1d77a86570c336
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
szarnyasg/pygraphblas
7465ef6fcc77c9901869b70ddf1d77a86570c336
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
szarnyasg/pygraphblas
7465ef6fcc77c9901869b70ddf1d77a86570c336
[ "Apache-2.0" ]
null
null
null
from pygraphblas import * def test_add_identity(): A = Matrix.sparse(INT8, 10, 10) assert add_identity(A) == 10 A = Matrix.sparse(INT8, 10, 10) A[5,5] = 42 assert add_identity(A) == 9
21
35
0.614286
0
0
0
0
0
0
0
0
0
0
e84d4a5decc6c49e64831cb5acb6bf62262b9049
276
py
Python
bentoml/paddle.py
francoisserra/BentoML
213e9e9b39e055286f2649c733907df88e6d2503
[ "Apache-2.0" ]
1
2021-06-12T17:04:07.000Z
2021-06-12T17:04:07.000Z
bentoml/paddle.py
francoisserra/BentoML
213e9e9b39e055286f2649c733907df88e6d2503
[ "Apache-2.0" ]
4
2021-05-16T08:06:25.000Z
2021-11-13T08:46:36.000Z
bentoml/paddle.py
francoisserra/BentoML
213e9e9b39e055286f2649c733907df88e6d2503
[ "Apache-2.0" ]
null
null
null
from ._internal.frameworks.paddle import load from ._internal.frameworks.paddle import save from ._internal.frameworks.paddle import load_runner from ._internal.frameworks.paddle import import_from_paddlehub __all__ = ["import_from_paddlehub", "load", "load_runner", "save"]
39.428571
66
0.822464
0
0
0
0
0
0
0
0
48
0.173913
e84dcacd54181e2d83fb3b996dbdf8ae1ae4b89c
1,649
py
Python
src/leetcode_1673_find_the_most_competitive_subsequence.py
yurirocha15/coding_practice
952506932c47414da689454853ee745637413160
[ "MIT" ]
2
2020-12-08T13:59:10.000Z
2021-05-01T05:07:39.000Z
src/leetcode_1673_find_the_most_competitive_subsequence.py
yurirocha15/coding_practice
952506932c47414da689454853ee745637413160
[ "MIT" ]
null
null
null
src/leetcode_1673_find_the_most_competitive_subsequence.py
yurirocha15/coding_practice
952506932c47414da689454853ee745637413160
[ "MIT" ]
1
2021-05-02T17:42:02.000Z
2021-05-02T17:42:02.000Z
# @l2g 1673 python3 # [1673] Find the Most Competitive Subsequence # Difficulty: Medium # https://leetcode.com/problems/find-the-most-competitive-subsequence # # Given an integer array nums and a positive integer k, # return the most competitive subsequence of nums of size k. # An array's subsequence is a resulting seq...
28.431034
141
0.614918
380
0.230443
0
0
0
0
0
0
1,119
0.678593
e84df9dae610f2465c8309e92c32430fc6ed2e22
1,955
py
Python
data/compress.py
Catosine/GDAS
da047fe30b5aeeb1121861458ad61fd7c171874e
[ "MIT" ]
20
2019-10-10T07:13:27.000Z
2022-03-25T11:33:16.000Z
data/compress.py
BaiYuYuan/GDAS
5eed8101a78d223a20a43494176051298b24ac3a
[ "MIT" ]
null
null
null
data/compress.py
BaiYuYuan/GDAS
5eed8101a78d223a20a43494176051298b24ac3a
[ "MIT" ]
6
2020-04-21T14:52:02.000Z
2021-08-05T15:00:22.000Z
# python ./data/compress.py $TORCH_HOME/ILSVRC2012/ $TORCH_HOME/ILSVRC2012-TAR tar # python ./data/compress.py $TORCH_HOME/ILSVRC2012/ $TORCH_HOME/ILSVRC2012-ZIP zip import os, sys from pathlib import Path def command(prefix, cmd): print ('{:}{:}'.format(prefix, cmd)) os.system(cmd) def main(source, destination...
50.128205
183
0.652174
0
0
0
0
0
0
0
0
659
0.337084
e84e6fa0496c3c3dbf9e461be30523e0845b42ec
2,920
py
Python
tests/test_fastly_logging_s3.py
Jimdo/ansible-role-fastly
c2e2675c052c9e9a7542e8d51410632a0fbae4d0
[ "MIT" ]
12
2016-06-17T15:51:10.000Z
2021-01-22T09:15:52.000Z
tests/test_fastly_logging_s3.py
Jimdo/ansible-role-fastly
c2e2675c052c9e9a7542e8d51410632a0fbae4d0
[ "MIT" ]
20
2016-06-17T15:46:12.000Z
2018-06-01T07:43:49.000Z
tests/test_fastly_logging_s3.py
Jimdo/ansible-role-fastly
c2e2675c052c9e9a7542e8d51410632a0fbae4d0
[ "MIT" ]
12
2016-06-17T15:51:00.000Z
2022-03-18T18:17:17.000Z
#!/usr/bin/env python import os import unittest import sys from test_common import TestCommon sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'library')) from fastly_service import FastlyConfiguration class TestFastlyLoggingS3(TestCommon): @TestCommon.vcr.use_cassette() def test_fastly_s3s(sel...
40
141
0.630137
2,651
0.907877
0
0
2,601
0.890753
0
0
471
0.161301
e84e84870d1e2d1d36aeaad23e19573cd282d144
1,230
py
Python
高频120_Lint/Reverse Nodes in k-Group.py
lixiaoruiusa/Rui7272
fbdb87104353138d3af7f3fe2cb3c0f00ff9e449
[ "MIT" ]
null
null
null
高频120_Lint/Reverse Nodes in k-Group.py
lixiaoruiusa/Rui7272
fbdb87104353138d3af7f3fe2cb3c0f00ff9e449
[ "MIT" ]
null
null
null
高频120_Lint/Reverse Nodes in k-Group.py
lixiaoruiusa/Rui7272
fbdb87104353138d3af7f3fe2cb3c0f00ff9e449
[ "MIT" ]
null
null
null
""" Definition of ListNode class ListNode(object): def __init__(self, val, next=None): self.val = val self.next = next """ class Solution: """ @param head: a ListNode @param k: An integer @return: a ListNode @ O(n) time | O(1) space """ def reverseKGroup(self, head, k)...
21.964286
80
0.471545
886
0.720325
0
0
0
0
0
0
576
0.468293
e84f7ec1d7eb75e5b190a746b5e84c8c1dc54889
241
py
Python
C21/test.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
2
2020-10-20T10:18:48.000Z
2020-12-02T09:41:18.000Z
C21/test.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
null
null
null
C21/test.py
jpch89/learningpython
47e78041e519ecd2e00de1b32f6416b56ce2616c
[ "MIT" ]
1
2020-12-02T10:03:29.000Z
2020-12-02T10:03:29.000Z
'求平方根' from math import sqrt li = [2, 4, 9, 16, 25] # for 循环版本 res = [] for i in li: res.append(sqrt(i)) print(res) # map 版本 print(list(map(sqrt, li))) # 列表推导式版本 print([sqrt(i) for i in li]) # 生成器版本 print(list(sqrt(i) for i in li))
12.05
32
0.605809
0
0
0
0
0
0
0
0
84
0.294737
e84fc770fc649fef802bd411dc55a7c207a9b6f1
1,981
py
Python
tests/links_tests/model_tests/yolo_tests/test_yolo_v3.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
1,600
2017-06-01T15:37:52.000Z
2022-03-09T08:39:09.000Z
tests/links_tests/model_tests/yolo_tests/test_yolo_v3.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
547
2017-06-01T06:43:16.000Z
2021-05-28T17:14:05.000Z
tests/links_tests/model_tests/yolo_tests/test_yolo_v3.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
376
2017-06-02T01:29:10.000Z
2022-03-13T11:19:59.000Z
import numpy as np import unittest import chainer from chainer import testing from chainer.testing import attr from chainercv.links import YOLOv3 @testing.parameterize(*testing.product({ 'n_fg_class': [1, 5, 20], })) class TestYOLOv3(unittest.TestCase): def setUp(self): self.link = YOLOv3(n_fg_clas...
26.413333
76
0.631499
1,595
0.805149
0
0
1,786
0.901565
0
0
90
0.045432
e8507d06490cbd085cac36479e442057aa3863d2
28,595
py
Python
src/training/train.py
KinanZ/open_clip
6e76ee3b3a15ee6c4a187853fd123c967721c32b
[ "MIT" ]
null
null
null
src/training/train.py
KinanZ/open_clip
6e76ee3b3a15ee6c4a187853fd123c967721c32b
[ "MIT" ]
null
null
null
src/training/train.py
KinanZ/open_clip
6e76ee3b3a15ee6c4a187853fd123c967721c32b
[ "MIT" ]
null
null
null
import os import time import json import numpy as np import torch import torch.nn as nn from sklearn import decomposition from torch.cuda.amp import autocast import torch.distributed as dist import sys sys.path.append('/misc/student/alzouabk/Thesis/self_supervised_pretraining/open_clip_thesis/src/') from training.ze...
45.606061
166
0.602168
0
0
0
0
0
0
0
0
3,993
0.13964
e85178ac252a4d1563a5cddd6910ff2818bf8e27
3,226
py
Python
jade_utils.py
gimenete/jade-utils-sublime
0ab6467b04a67245e773d9accf7f504c41f323f6
[ "MIT" ]
null
null
null
jade_utils.py
gimenete/jade-utils-sublime
0ab6467b04a67245e773d9accf7f504c41f323f6
[ "MIT" ]
null
null
null
jade_utils.py
gimenete/jade-utils-sublime
0ab6467b04a67245e773d9accf7f504c41f323f6
[ "MIT" ]
null
null
null
from HTMLParser import HTMLParser import sublime, sublime_plugin void_elements = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"] class JadeUtilsHtml(sublime_plugin.TextCommand): def run(self, edit): html = subli...
31.320388
97
0.50248
2,729
0.845939
0
0
0
0
0
0
524
0.16243
e85331900c6459687504959fb943368a54bbdd9f
2,908
py
Python
modules/MessageWatcher/MessageWatcher.py
ediril/BCI
f211ba70d6d75a9badff6872f86416b065f6192b
[ "BSD-2-Clause" ]
6
2016-12-30T03:43:49.000Z
2020-04-19T16:04:37.000Z
modules/MessageWatcher/MessageWatcher.py
hongweimao/BCI
49b7e8137bd5f9d18e3efdbd94a112cde5d16c4c
[ "BSD-2-Clause" ]
1
2022-03-08T09:16:10.000Z
2022-03-08T09:16:10.000Z
modules/MessageWatcher/MessageWatcher.py
ediril/BCI
f211ba70d6d75a9badff6872f86416b065f6192b
[ "BSD-2-Clause" ]
2
2015-06-16T02:46:03.000Z
2018-12-20T20:07:59.000Z
import numpy as np import Dragonfly_config as rc from argparse import ArgumentParser from ConfigParser import SafeConfigParser from PyDragonfly import Dragonfly_Module, CMessage, copy_to_msg, copy_from_msg from time import time class MessageWatcher(object): # msg_types = ['GROBOT_RAW_FEEDBACK', # ...
36.810127
83
0.584594
2,379
0.818088
0
0
0
0
0
0
591
0.203232
e85343be0e6df80e2d7f6b911a366990aea1690d
2,858
py
Python
Plug-and-play module/attention/CBAM/cbam.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
Plug-and-play module/attention/CBAM/cbam.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
Plug-and-play module/attention/CBAM/cbam.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
import torch import torch.nn as nn def conv3x3(in_planes, out_planes, stride=1): "3x3 convolution with padding" return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride, padding=1, bias=False) ...
28.58
79
0.590973
2,266
0.788448
0
0
0
0
0
0
110
0.038274
e854017c38291bb4b2ae09b4884a064ca12c7067
1,339
py
Python
nyc/dataprep/PrepareTreeData.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
nyc/dataprep/PrepareTreeData.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
nyc/dataprep/PrepareTreeData.py
lopez86/NYCDataTools
9c860545bacd27a7a1106bba3e3d75cd0320e6df
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """ PrepareTreeData.py Prepares the tree data a bit for inclusion into a database. """ import pandas as pd import numpy as np """ Prepare the tree data for inclusion into a database. Args: inname: Input file outname: Output file """ def PrepareTreeData(inname='data/street_trees_2015...
25.264151
75
0.587005
0
0
0
0
0
0
0
0
485
0.362211
e85442ad2e2c6b3f6e0178cb6ceb6185189e2bc3
11,307
py
Python
pyqha/alphagruneisen.py
mauropalumbo75/pyqha
3e904a0363d57c52d02d2520cabbb48c2d0df5cb
[ "MIT" ]
10
2016-12-13T12:35:06.000Z
2022-03-25T14:19:51.000Z
pyqha/alphagruneisen.py
mauropalumbo75/pyqha
3e904a0363d57c52d02d2520cabbb48c2d0df5cb
[ "MIT" ]
null
null
null
pyqha/alphagruneisen.py
mauropalumbo75/pyqha
3e904a0363d57c52d02d2520cabbb48c2d0df5cb
[ "MIT" ]
3
2017-06-07T12:10:37.000Z
2020-04-25T13:07:30.000Z
#encoding: UTF-8 # Copyright (C) 2016 Mauro Palumbo # This file is distributed under the terms of the # MIT License. # See the file `License' in the root directory of the present distribution. """ An earlier and now oblosete implementation of functions for computing the thermal expansion tensor as a function of tem...
36.95098
132
0.630406
0
0
0
0
0
0
0
0
4,487
0.396834
e854eac02ff984d86165518b112aa60249a5b42e
18
py
Python
allennlp/tests/fixtures/plugins/project_c/allennlp_plugins/c/__init__.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
1
2020-03-30T14:07:02.000Z
2020-03-30T14:07:02.000Z
allennlp/tests/fixtures/plugins/project_c/allennlp_plugins/c/__init__.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
123
2020-04-26T02:41:30.000Z
2021-08-02T21:18:00.000Z
allennlp/tests/fixtures/plugins/project_c/allennlp_plugins/c/__init__.py
justindujardin/allennlp
c4559f3751775aa8bc018db417edc119d29d8051
[ "Apache-2.0" ]
2
2019-12-21T05:58:44.000Z
2021-08-16T07:41:21.000Z
from c.c import C
9
17
0.722222
0
0
0
0
0
0
0
0
0
0
e85543976eb128fd6cd840908a99b6775aa2dca1
1,934
py
Python
cro/fitness.py
VictorPelaez/coral-reef-optimization-algorithm
25804fc43b735df707821008558e9410dfe4a835
[ "MIT" ]
21
2017-10-09T20:44:03.000Z
2022-03-03T14:43:09.000Z
cro/fitness.py
VictorPelaez/coral-reef-optimization-algorithm
25804fc43b735df707821008558e9410dfe4a835
[ "MIT" ]
33
2017-10-11T20:12:26.000Z
2021-11-11T09:19:07.000Z
cro/fitness.py
VictorPelaez/coral-reef-optimization-algorithm
25804fc43b735df707821008558e9410dfe4a835
[ "MIT" ]
5
2017-10-11T19:16:09.000Z
2022-01-29T13:49:59.000Z
from __future__ import division import numpy as np from sklearn.utils import shuffle from sklearn.metrics import * """ Module with different fitness functions implemented to be used by the CRO algorithm. The functions' only argument must be an individual (coral) and return its fitness, a number. The fitness might re...
31.704918
127
0.651499
0
0
0
0
0
0
0
0
1,184
0.612203
e8569d7c3bbbd06495a3be7b58b262f1f38b3a3d
1,518
py
Python
lib/environment/shape.py
vyahello/snakegame-gui
1eb23744174035f49dd0a33c48d365e8b3836178
[ "MIT" ]
null
null
null
lib/environment/shape.py
vyahello/snakegame-gui
1eb23744174035f49dd0a33c48d365e8b3836178
[ "MIT" ]
null
null
null
lib/environment/shape.py
vyahello/snakegame-gui
1eb23744174035f49dd0a33c48d365e8b3836178
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import Tuple, Iterable, Any from pygame.rect import Rect class Shape(ABC): """Abstract shape interface.""" @abstractmethod def shape(self) -> Any: pass @abstractmethod def top_left(self) -> Tuple: pass @abstractmethod def t...
20.513514
51
0.614625
1,407
0.926877
0
0
946
0.623188
0
0
53
0.034914
e856d28ae91acdab7a6956c6e1799773dfe4c394
994
py
Python
bleak/backends/device.py
virantha/bleak
0226cdef0af2d6bcdf5a84d87c437ed75aaa7726
[ "MIT" ]
null
null
null
bleak/backends/device.py
virantha/bleak
0226cdef0af2d6bcdf5a84d87c437ed75aaa7726
[ "MIT" ]
1
2019-04-01T02:31:45.000Z
2019-04-01T02:31:45.000Z
bleak/backends/device.py
virantha/bleak
0226cdef0af2d6bcdf5a84d87c437ed75aaa7726
[ "MIT" ]
1
2019-04-01T01:34:42.000Z
2019-04-01T01:34:42.000Z
# -*- coding: utf-8 -*- """ Wrapper class for Bluetooth LE servers returned from calling :py:meth:`bleak.discover`. Created on 2018-04-23 by hbldh <henrik.blidh@nedomkull.com> """ class BLEDevice(object): """A simple wrapper class representing a BLE server detected during a `discover` call. - When usin...
30.121212
84
0.678068
809
0.813883
0
0
0
0
0
0
623
0.626761
e85725f4d0132ac8d4a20d890a96acfcc728db0b
5,144
py
Python
jqueryui/jqueryui.py
yyuunn0044/oss-hubblemon
f90635f7b66defd1515516fcec61973fa75a6f84
[ "Apache-2.0" ]
null
null
null
jqueryui/jqueryui.py
yyuunn0044/oss-hubblemon
f90635f7b66defd1515516fcec61973fa75a6f84
[ "Apache-2.0" ]
null
null
null
jqueryui/jqueryui.py
yyuunn0044/oss-hubblemon
f90635f7b66defd1515516fcec61973fa75a6f84
[ "Apache-2.0" ]
null
null
null
# # Hubblemon - Yet another general purpose system monitor # # Copyright 2015 NAVER Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
21.081967
108
0.615086
4,480
0.870918
0
0
0
0
0
0
2,233
0.434098
e85746131b4e0732b56b704dfb01f9cc40207e1c
3,195
py
Python
diffrax/solver/kvaerno5.py
FedericoV/diffrax
98b010242394491fea832e77dc94f456b48495fa
[ "Apache-2.0" ]
377
2022-02-07T11:13:56.000Z
2022-03-31T18:35:51.000Z
diffrax/solver/kvaerno5.py
FedericoV/diffrax
98b010242394491fea832e77dc94f456b48495fa
[ "Apache-2.0" ]
25
2022-02-08T23:08:11.000Z
2022-03-30T21:21:18.000Z
diffrax/solver/kvaerno5.py
FedericoV/diffrax
98b010242394491fea832e77dc94f456b48495fa
[ "Apache-2.0" ]
15
2022-02-08T04:46:23.000Z
2022-03-30T20:53:10.000Z
import numpy as np from ..local_interpolation import ThirdOrderHermitePolynomialInterpolation from .runge_kutta import AbstractESDIRK, ButcherTableau γ = 0.26 a21 = γ a31 = 0.13 a32 = 0.84033320996790809 a41 = 0.22371961478320505 a42 = 0.47675532319799699 a43 = -0.06470895363112615 a51 = 0.16648564323248321 a52 = 0....
28.274336
159
0.662285
916
0.282367
0
0
0
0
0
0
1,161
0.357891
e85933c7d3c26f637e88c1e491bd5d20ff1bfd18
2,783
py
Python
Hinting/Remove Zero Deltas in Selected Glyphs.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
283
2015-01-07T12:35:35.000Z
2022-03-29T06:10:44.000Z
Hinting/Remove Zero Deltas in Selected Glyphs.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
203
2015-01-26T18:43:08.000Z
2022-03-04T01:47:58.000Z
Hinting/Remove Zero Deltas in Selected Glyphs.py
justanotherfoundry/Glyphs-Scripts
f28aeab0224ae19ace4a86cf363e7990985199b7
[ "Apache-2.0" ]
96
2015-01-19T20:58:03.000Z
2022-03-29T06:10:56.000Z
#MenuTitle: Remove Zero Deltas in Selected Glyphs # -*- coding: utf-8 -*- from __future__ import division, print_function, unicode_literals __doc__=""" Goes through all layers of each selected glyph, and deletes all TT Delta Hints with an offset of zero. Detailed Report in Macro Window. """ def process( Layer ): try:...
30.582418
135
0.648581
0
0
0
0
0
0
0
0
795
0.284742
e859463755edefe59830e903e437712595e190d6
1,210
py
Python
env/build.py
orestisfl/docker-env
414f04c3e69c8c4015808a34be7376fdff4b3527
[ "MIT" ]
null
null
null
env/build.py
orestisfl/docker-env
414f04c3e69c8c4015808a34be7376fdff4b3527
[ "MIT" ]
null
null
null
env/build.py
orestisfl/docker-env
414f04c3e69c8c4015808a34be7376fdff4b3527
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re import sys from glob import glob from subprocess import run def main(args): assert len(args) >= 1 from_image = args.pop(0) optional = [x for x in map(str.strip, args) if x] optional_used = set() with open("Dockerfile", "w") as fout: print(f"from {from_ima...
28.139535
76
0.512397
0
0
0
0
0
0
0
0
192
0.158678
e85a4156b1efffe030e509e2baabc4ed59503b48
7,426
py
Python
tiled/database/core.py
stuartcampbell/tiled
01c054fa4638f2595a228173ea2f2c59a6a52500
[ "BSD-3-Clause" ]
null
null
null
tiled/database/core.py
stuartcampbell/tiled
01c054fa4638f2595a228173ea2f2c59a6a52500
[ "BSD-3-Clause" ]
null
null
null
tiled/database/core.py
stuartcampbell/tiled
01c054fa4638f2595a228173ea2f2c59a6a52500
[ "BSD-3-Clause" ]
null
null
null
import hashlib import uuid as uuid_module from datetime import datetime from alembic import command from alembic.config import Config from alembic.runtime import migration from sqlalchemy.orm import sessionmaker from sqlalchemy.sql import func from .alembic_utils import temp_alembic_ini from .base import Base from .o...
28.561538
88
0.643011
143
0.019257
0
0
0
0
0
0
1,990
0.267977
e85a582b4835c961353024f23cb7838de54c38e5
24
py
Python
torchvision/prototype/utils/__init__.py
yoshitomo-matsubara/vision
03d11338f3faf94a0749549912593ddb8b70be17
[ "BSD-3-Clause" ]
12,063
2017-01-18T19:58:38.000Z
2022-03-31T23:08:44.000Z
torchvision/prototype/utils/__init__.py
yoshitomo-matsubara/vision
03d11338f3faf94a0749549912593ddb8b70be17
[ "BSD-3-Clause" ]
4,673
2017-01-18T21:30:03.000Z
2022-03-31T20:58:33.000Z
torchvision/prototype/utils/__init__.py
yoshitomo-matsubara/vision
03d11338f3faf94a0749549912593ddb8b70be17
[ "BSD-3-Clause" ]
7,132
2017-01-18T18:12:23.000Z
2022-03-31T21:19:10.000Z
from . import _internal
12
23
0.791667
0
0
0
0
0
0
0
0
0
0
e85b7d80337b2ce535d2c6a0de4c783b4a069765
13,108
py
Python
py/models.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
2
2020-01-08T02:58:18.000Z
2020-01-28T16:42:00.000Z
py/models.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
null
null
null
py/models.py
ti-ginkgo/Severstal
57f37dc61cfd910b575afa7dc51094c94e3511c0
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import torchvision class FPAv2(nn.Module): def __init__(self, input_dim, output_dim): super(FPAv2, self).__init__() self.glob = nn.Sequential(nn.AdaptiveAvgPool2d(1), nn.Conv2d(input_dim, output_di...
38.104651
117
0.537382
12,698
0.968721
0
0
0
0
0
0
1,078
0.08224
e85c2c9c74527b46aef466680cba313a99e7950d
2,762
py
Python
gameNode_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
null
null
null
gameNode_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
2
2016-11-01T09:57:36.000Z
2016-11-01T10:05:50.000Z
gameNode_test.py
rcolomina/pythonchess
1b12ea4a1668da6c47dd39ff16d1e48af33ea2f5
[ "MIT" ]
null
null
null
#!/usr/bin/python from piece import Piece from gameNode import GameNode from functions import * from minmax import MinMax ## TEST 1: GameNode cration. Generating list of movements on a game node by piece print "TEST 1: Building a Game Node" listPiecesWhite=[] listPiecesBlack=[] p1=Piece('Q',[2,1]) p2=Piece('N'...
36.342105
112
0.763939
0
0
0
0
0
0
0
0
1,225
0.443519
e85d61e1906d246b4773a7b76f1abb85b59acc9c
2,792
py
Python
discordlogger.py
tjb0607/discord-logger
5edabeadf124d7de484b3ee3cbc563567846f610
[ "WTFPL" ]
3
2018-04-20T03:05:57.000Z
2021-04-15T23:17:43.000Z
discordlogger.py
tjb0607/discord-logger
5edabeadf124d7de484b3ee3cbc563567846f610
[ "WTFPL" ]
null
null
null
discordlogger.py
tjb0607/discord-logger
5edabeadf124d7de484b3ee3cbc563567846f610
[ "WTFPL" ]
1
2021-06-01T03:50:37.000Z
2021-06-01T03:50:37.000Z
#!/usr/bin/python3 # WARNING: Self-botting is technically against the rules, so this script could potentially get you banned. import http.client import json import urllib import time import getpass import os.path import datetime import sys from dateutil.parser import parse print("usage: python3 discordlogger.py <cha...
34.9
177
0.675501
0
0
0
0
0
0
0
0
1,699
0.608524
e85d901b9a66e6dab5e48109549c08960eee01b8
3,555
py
Python
msschem/runner.py
andreas-h/mss-chem
ae91f4f5b4c19a4ff0ce8fd342fe0aed4ce2b9ab
[ "MIT" ]
null
null
null
msschem/runner.py
andreas-h/mss-chem
ae91f4f5b4c19a4ff0ce8fd342fe0aed4ce2b9ab
[ "MIT" ]
8
2017-06-09T22:19:00.000Z
2017-08-10T10:44:01.000Z
msschem/runner.py
andreas-h/mss-chem
ae91f4f5b4c19a4ff0ce8fd342fe0aed4ce2b9ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import datetime import logging import os.path import runpy import sys VERBOSE = True QUIET = False # TODO allow parallel download of different models # TODO allow parallel download of species (??) def _valid_date(s): try: re...
29.87395
78
0.587623
0
0
0
0
0
0
0
0
717
0.201688
e85e3de5145f8dac30242067d292b32a4de7ac35
609
py
Python
oscar_mws/fulfillment/__init__.py
ButchershopCreative/django-oscar-mws
582adc78f59578dbdf83d3ac145abc6bfc4a65ca
[ "BSD-3-Clause" ]
12
2015-03-16T03:45:59.000Z
2021-03-30T10:58:46.000Z
oscar_mws/fulfillment/__init__.py
ButchershopCreative/django-oscar-mws
582adc78f59578dbdf83d3ac145abc6bfc4a65ca
[ "BSD-3-Clause" ]
3
2016-01-05T17:45:13.000Z
2019-04-27T12:01:53.000Z
oscar_mws/fulfillment/__init__.py
ButchershopCreative/django-oscar-mws
582adc78f59578dbdf83d3ac145abc6bfc4a65ca
[ "BSD-3-Clause" ]
20
2015-04-10T19:17:08.000Z
2021-07-27T03:53:13.000Z
from django.utils.translation import ugettext_lazy as _ SHIPPING_STANDARD = 'Standard' SHIPPING_EXPEDITED = 'Expedited' SHIPPING_PRIORITY = 'Priority' SHIPPING_SPEED_CATEGORIES = ( (SHIPPING_STANDARD, _("Standard")), (SHIPPING_EXPEDITED, _("Expedited")), (SHIPPING_PRIORITY, _("Priority")), ) METHOD_CONS...
21
55
0.740558
50
0.082102
0
0
0
0
0
0
139
0.228243
e8608fa57e48149116847118e359bdf6450a3512
2,155
py
Python
utils/Deque.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
4
2021-03-22T12:42:55.000Z
2021-12-13T03:03:52.000Z
utils/Deque.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
null
null
null
utils/Deque.py
FedePeralta/ASVs_Deep_Reinforcement_Learning_with_CNNs
23b9b181499a4b06f2ca2951c002359c1959e727
[ "MIT" ]
1
2021-03-22T12:48:21.000Z
2021-03-22T12:48:21.000Z
import numpy as np from utils.Node import Node class Deque(object): """Generic deque object""" def __init__(self, max_size, dimension_of_value_attribute): self.max_size = max_size self.dimension_of_value_attribute = dimension_of_value_attribute self.deque = self.initialise_deque() ...
43.979592
130
0.716009
2,107
0.977726
0
0
0
0
0
0
437
0.202784
e8612671385af374097910161c09d6d0e54b699c
14,580
py
Python
main.py
fedegy/Practica-1-Lenguajes-Formales
d0910bbfb9c9a0fce92114ab3a0af3e8ad606855
[ "Apache-2.0" ]
null
null
null
main.py
fedegy/Practica-1-Lenguajes-Formales
d0910bbfb9c9a0fce92114ab3a0af3e8ad606855
[ "Apache-2.0" ]
null
null
null
main.py
fedegy/Practica-1-Lenguajes-Formales
d0910bbfb9c9a0fce92114ab3a0af3e8ad606855
[ "Apache-2.0" ]
null
null
null
import os from tkinter import * from tkinter import filedialog global archivo archivo= [] cadena2 = [] archivo = [] global cadena_inicial cadena_inicial = [] global lista_numeros lista_numeros = [] global intlist intlist= [] global numeros1 numeros1=[] global lista_buscar2 lista_buscar2 =...
38.983957
192
0.446091
0
0
0
0
0
0
0
0
2,530
0.173418
e861ce569c4e7e2066044a3b9bc98fef45f652e5
2,237
py
Python
examples/plot_h2o_ch4.py
ucl-exoplanets/pyexocross
703341cd0fddafcbb04e935c89ddc9d02dda9f59
[ "BSD-3-Clause" ]
null
null
null
examples/plot_h2o_ch4.py
ucl-exoplanets/pyexocross
703341cd0fddafcbb04e935c89ddc9d02dda9f59
[ "BSD-3-Clause" ]
null
null
null
examples/plot_h2o_ch4.py
ucl-exoplanets/pyexocross
703341cd0fddafcbb04e935c89ddc9d02dda9f59
[ "BSD-3-Clause" ]
1
2021-01-15T12:54:04.000Z
2021-01-15T12:54:04.000Z
from pyexocross.hitran.hitran import HITRANLinelist from pyexocross.pyexocross import PyExocross from pyexocross.exomol.exomolbroads import ExomolBroadener import numpy as np from pyexocross.util import create_grid_res, convert_to_wavenumber from pyexocross.writer.hdf5writer import HDF5Writer import matplotlib.pyplot a...
45.653061
138
0.774698
0
0
0
0
0
0
0
0
1,006
0.449709
e86364a0e78b477db851ca092d4fc55c3f3c22d0
16,538
py
Python
bnlp/data/conll2012.py
Nesting-Tech/zc-bnlp
47fcf44b5cb6f4810a8bf612bb5f1bd2de94551d
[ "Apache-2.0" ]
5
2019-04-03T07:35:48.000Z
2019-04-03T07:39:12.000Z
bnlp/data/conll2012.py
Nesting-Tech/zc-bnlp
47fcf44b5cb6f4810a8bf612bb5f1bd2de94551d
[ "Apache-2.0" ]
null
null
null
bnlp/data/conll2012.py
Nesting-Tech/zc-bnlp
47fcf44b5cb6f4810a8bf612bb5f1bd2de94551d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created by JoeYip on 29/03/2019 :copyright: (c) 2019 by nesting.xyz :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import operator import re import subprocess import ...
36.832962
126
0.605515
2,464
0.14751
0
0
0
0
0
0
1,804
0.107998
e863957db27a652b3f5aa222e29cdda492c6ee48
646
py
Python
docs/examples/workflow_and_job/hourly_workflow.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
docs/examples/workflow_and_job/hourly_workflow.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
docs/examples/workflow_and_job/hourly_workflow.py
Tismas/bigflow
6a4a14616d66beeaf45700ea340c97d797a1f9e5
[ "Apache-2.0" ]
null
null
null
from bigflow.workflow import Workflow, hourly_start_time from datetime import datetime from datetime import timedelta class HourlyJob: def __init__(self): self.id = 'hourly_job' def run(self, runtime): print(f'I should process data with timestamps from: {runtime} ' f'to {dateti...
26.916667
106
0.695046
279
0.431889
0
0
0
0
0
0
217
0.335913
e8642331b936e08e2dbe11e2424740cd37d2e4b8
1,014
py
Python
release/stubs.min/System/Windows/Forms/__init___parts/DataGridViewCellStateChangedEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/DataGridViewCellStateChangedEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
release/stubs.min/System/Windows/Forms/__init___parts/DataGridViewCellStateChangedEventArgs.py
YKato521/ironpython-stubs
b1f7c580de48528490b3ee5791b04898be95a9ae
[ "MIT" ]
null
null
null
class DataGridViewCellStateChangedEventArgs(EventArgs): """ Provides data for the System.Windows.Forms.DataGridView.CellStateChanged event. DataGridViewCellStateChangedEventArgs(dataGridViewCell: DataGridViewCell,stateChanged: DataGridViewElementStates) """ @staticmethod def __new__(self, ...
26.684211
115
0.719921
1,012
0.998028
0
0
194
0.191321
0
0
640
0.631164
e86548e01e001f9af7049b85f9cb56452b040362
2,723
py
Python
main.py
philos123/PyBacktesting
1046e52899461003ba7e563445d7acfe1b459189
[ "MIT" ]
52
2020-12-13T23:01:03.000Z
2022-03-09T05:54:32.000Z
main.py
philos123/PyBacktesting
1046e52899461003ba7e563445d7acfe1b459189
[ "MIT" ]
null
null
null
main.py
philos123/PyBacktesting
1046e52899461003ba7e563445d7acfe1b459189
[ "MIT" ]
26
2021-03-05T12:39:39.000Z
2022-02-21T02:32:03.000Z
#!/usr/local/bin/env python3.7 # -*- coding: utf-8; py-indent-offset:4 -*- ############################################################################### # # The MIT License (MIT) # Copyright (c) 2020 Philippe Ostiguy # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softwa...
43.919355
105
0.673522
967
0.355123
0
0
0
0
0
0
1,597
0.586485
e865943b38c7fa0a91f989744dd08a3debd48239
400
py
Python
ecommerce/cart/migrations/0023_auto_20210314_1656.py
MirjahonMirsaidov/ecommerce-web-app
22d0fe5648b7acb5f819f7634abcf61b6bc12ed9
[ "Unlicense" ]
null
null
null
ecommerce/cart/migrations/0023_auto_20210314_1656.py
MirjahonMirsaidov/ecommerce-web-app
22d0fe5648b7acb5f819f7634abcf61b6bc12ed9
[ "Unlicense" ]
null
null
null
ecommerce/cart/migrations/0023_auto_20210314_1656.py
MirjahonMirsaidov/ecommerce-web-app
22d0fe5648b7acb5f819f7634abcf61b6bc12ed9
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.2 on 2021-03-14 11:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cart', '0022_delete_sendpassword'), ] operations = [ migrations.AlterField( model_name='orderbeta', name='finish_pri...
21.052632
57
0.6125
307
0.7675
0
0
0
0
0
0
104
0.26
e867462ed5d0f31a13de873096808bbf2b0c3e5b
10,570
py
Python
src/main_video.py
shortvol/sudokusolver
15921ac0752e571c569094bf57c11ad18589d8bd
[ "MIT" ]
null
null
null
src/main_video.py
shortvol/sudokusolver
15921ac0752e571c569094bf57c11ad18589d8bd
[ "MIT" ]
null
null
null
src/main_video.py
shortvol/sudokusolver
15921ac0752e571c569094bf57c11ad18589d8bd
[ "MIT" ]
null
null
null
from tensorflow.keras.models import load_model from src.extract_n_solve.extract_digits import process_extract_digits_single from src.extract_n_solve.grid_detector_img import main_grid_detector_img from src.extract_n_solve.grid_solver import main_solve_grid from src.extract_n_solve.new_img_generator import * from src.s...
41.45098
113
0.609934
0
0
0
0
0
0
0
0
1,804
0.170672
e867d8367de7a944108e351fb3693f3fedf74024
178
py
Python
adscore/__init__.py
shinyichen/ADSCore
bf0bf6487db94093144687a60390366e3ff8a136
[ "MIT" ]
null
null
null
adscore/__init__.py
shinyichen/ADSCore
bf0bf6487db94093144687a60390366e3ff8a136
[ "MIT" ]
14
2019-08-09T15:37:40.000Z
2022-02-17T13:22:46.000Z
adscore/__init__.py
shinyichen/ADSCore
bf0bf6487db94093144687a60390366e3ff8a136
[ "MIT" ]
5
2019-08-05T15:31:31.000Z
2021-04-20T20:35:28.000Z
from adscore import routes from adscore import api from adscore import crawlers from adscore.app import app, create_app from adscore import tools from adscore import flask_redis
25.428571
39
0.848315
0
0
0
0
0
0
0
0
0
0
e868df19f6af54dff01b87a764b10fb6378ce377
2,044
py
Python
examples/twitter_roa/settings.py
lhaze/django-roa
0a2de99b5ceec53c226e3c36d88cb19118c3ae72
[ "BSD-3-Clause" ]
31
2015-01-11T09:16:15.000Z
2021-05-04T09:15:27.000Z
examples/twitter_roa/settings.py
lhaze/django-roa
0a2de99b5ceec53c226e3c36d88cb19118c3ae72
[ "BSD-3-Clause" ]
8
2015-01-06T21:35:35.000Z
2015-04-08T21:36:09.000Z
examples/twitter_roa/settings.py
lhaze/django-roa
0a2de99b5ceec53c226e3c36d88cb19118c3ae72
[ "BSD-3-Clause" ]
18
2015-02-02T22:56:58.000Z
2021-05-04T09:43:48.000Z
import os ROOT_PATH = os.path.dirname(__file__) TEMPLATE_DEBUG = DEBUG = True MANAGERS = ADMINS = () DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = os.path.join(ROOT_PATH, 'testdb.sqlite') TIME_ZONE = 'America/Chicago' LANGUAGE_CODE = 'en-us' SITE_ID = 1 USE_I18N = True MEDIA_ROOT = '' MEDIA_URL = '' ADMIN_MEDIA_PREFIX ...
30.507463
96
0.727984
0
0
0
0
0
0
0
0
1,164
0.569472
e8697173df0652e2791a64df71f2111df4f051ca
9,314
py
Python
allhub/all_hub.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-07T15:46:33.000Z
2019-11-26T04:30:39.000Z
allhub/all_hub.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
1
2020-03-09T14:44:04.000Z
2020-03-09T14:44:04.000Z
allhub/all_hub.py
srinivasreddy/allhub
ff20858c9984da5c4edd5043c39eed3b6d5d693d
[ "Apache-2.0" ]
2
2019-10-08T05:22:37.000Z
2019-10-08T06:20:47.000Z
import os from urllib.parse import urljoin import requests from allhub.activity import ActivityMixin from allhub.orgs import OrganizationMixin from allhub.gists import GistMixin from allhub.oauth import OAuthMixin from allhub.users import UsersMixin from allhub.util import MimeType, ConflictCheck, config from allhub.re...
34.753731
101
0.643118
7,868
0.84475
0
0
705
0.075693
0
0
2,131
0.228795
e8698ba1d6abd6a987f45f07a5c5f9894f516c4e
1,195
py
Python
tests/read_config.py
tyxio/txpy-azurehelper
50b8651b84e0686030fef67a10c819ac855995b3
[ "MIT" ]
null
null
null
tests/read_config.py
tyxio/txpy-azurehelper
50b8651b84e0686030fef67a10c819ac855995b3
[ "MIT" ]
null
null
null
tests/read_config.py
tyxio/txpy-azurehelper
50b8651b84e0686030fef67a10c819ac855995b3
[ "MIT" ]
null
null
null
import logging.config import os import yaml __location__ = os.path.realpath( os.path.join(os.getcwd(), os.path.dirname(__file__))) def read_logging_config(): with open(os.path.join(__location__, 'logging.cfg'), 'r') as stream: try: logging_config = yaml.safe_load(stream) logg...
30.641026
93
0.607531
0
0
0
0
0
0
0
0
191
0.159833
e86af408b93b3a26d9423358c871aeb5e1c679fe
2,523
py
Python
engines/dotflow2/extensions/mscs_sentiment_analysis.py
NunoEdgarGFlowHub/rhizome
6fcb77c4cc38e662cd805fc5df7845b4c97c5ea0
[ "MIT" ]
8
2018-10-30T10:11:33.000Z
2020-12-01T05:36:19.000Z
engines/dotflow2/extensions/mscs_sentiment_analysis.py
NunoEdgarGFlowHub/rhizome
6fcb77c4cc38e662cd805fc5df7845b4c97c5ea0
[ "MIT" ]
16
2018-10-26T00:04:11.000Z
2021-04-30T20:59:14.000Z
engines/dotflow2/extensions/mscs_sentiment_analysis.py
SeedVault/bbot-py
b94ef5e75411ac4a214f5ac54d04ce00d9108ec0
[ "MIT" ]
3
2019-03-11T13:42:47.000Z
2019-12-03T13:19:33.000Z
import requests import logging from bbot.core import ChatbotEngine, BBotException, BBotCore, BBotExtensionException from engines.dotflow2.chatbot_engine import DotFlow2LoggerAdapter class DotFlow2MSCSSentimentAnalysis(): """ChatScript DotFlow2 function""" def __init__(self, config: dict, dotbot: dict) -> No...
32.346154
163
0.583829
2,337
0.926278
0
0
0
0
0
0
838
0.332144
e86b1bb58cf35277c0e77a6a3927a3bf3db53aa6
3,831
py
Python
poor_trader/sample/trading_systems.py
johndpope/poor-trader-py
097fbb10c217abe0db5a2cd55d73e0ad2990acd9
[ "MIT" ]
1
2020-03-30T19:04:39.000Z
2020-03-30T19:04:39.000Z
poor_trader/sample/trading_systems.py
johndpope/poor-trader-py
097fbb10c217abe0db5a2cd55d73e0ad2990acd9
[ "MIT" ]
null
null
null
poor_trader/sample/trading_systems.py
johndpope/poor-trader-py
097fbb10c217abe0db5a2cd55d73e0ad2990acd9
[ "MIT" ]
null
null
null
import os import pandas as pd from poor_trader import config from poor_trader import trading from poor_trader import systems class CombinedIndicators(trading.TradingSystem): def __init__(self, portfolio, systems_method_list, name='CombinedIndicators'): super(CombinedIndicators, self).__init__(name=name) ...
46.719512
122
0.667711
3,698
0.965283
0
0
0
0
0
0
116
0.030279
e86ba59b27e6dbeb36683496cd7cae2e5abddfb2
14,356
py
Python
fileExplorer.py
aff3ct/PyBER
c84e1f63c193c5661ab8917a97264e4b899b7be0
[ "MIT" ]
10
2017-06-26T09:12:51.000Z
2021-07-11T06:31:34.000Z
fileExplorer.py
aff3ct/PyBER
c84e1f63c193c5661ab8917a97264e4b899b7be0
[ "MIT" ]
6
2017-09-16T03:05:48.000Z
2019-11-12T23:55:29.000Z
fileExplorer.py
aff3ct/PyBER
c84e1f63c193c5661ab8917a97264e4b899b7be0
[ "MIT" ]
5
2017-09-20T23:44:24.000Z
2021-08-09T08:48:21.000Z
# The MIT License (MIT) # # Copyright (c) 2018 PyBER # # 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, mer...
33.858491
153
0.679159
12,010
0.836584
0
0
0
0
0
0
2,835
0.197478
e86c98c97c5408ae2e09367d971c6294affbf58a
2,739
py
Python
code_and_dataset/config_parser.py
pcpLiu/DeepSeqPanII
86ce7675a1c69fd6059216d98b1e65e315ace3eb
[ "MIT" ]
11
2019-10-30T12:41:56.000Z
2021-11-17T02:45:52.000Z
code_and_dataset/config_parser.py
pcpLiu/DeepSeqPanII
86ce7675a1c69fd6059216d98b1e65e315ace3eb
[ "MIT" ]
2
2020-12-18T00:02:54.000Z
2021-11-19T02:33:37.000Z
code_and_dataset/config_parser.py
pcpLiu/DeepSeqPanII
86ce7675a1c69fd6059216d98b1e65e315ace3eb
[ "MIT" ]
3
2020-03-09T06:25:20.000Z
2021-08-02T11:36:46.000Z
# -*- coding: utf-8 -*- import os import json import torch BASE_DIR = os.path.abspath(os.path.dirname(__file__)) class Config: def __init__(self, json_file): self.config = json.loads(open(json_file).read()) self.device = torch.device("cuda:1" if torch.cuda.is_available() else "cpu") self...
24.675676
87
0.642935
2,621
0.956919
0
0
2,241
0.818182
0
0
532
0.194231
e86c9f80e62f3e346afa8de91ef3822a15df1fc1
2,210
py
Python
tests/test_mean_ess.py
nikopj/NonStationaryFKL
fc4f1d06b86d5f06523ea2c2b3f5c7b0ceb17098
[ "BSD-2-Clause" ]
35
2019-06-14T22:00:23.000Z
2021-08-29T18:35:21.000Z
tests/test_mean_ess.py
nikopj/NonStationaryFKL
fc4f1d06b86d5f06523ea2c2b3f5c7b0ceb17098
[ "BSD-2-Clause" ]
2
2020-02-16T13:07:18.000Z
2020-08-29T02:45:43.000Z
tests/test_mean_ess.py
nikopj/NonStationaryFKL
fc4f1d06b86d5f06523ea2c2b3f5c7b0ceb17098
[ "BSD-2-Clause" ]
7
2019-06-22T06:12:51.000Z
2020-11-24T21:04:39.000Z
import unittest import torch import numpy as np from spectralgp.samplers import MeanEllipticalSlice class TestMeanEllipticalSlice(unittest.TestCase): def test_m_ess(self, nsamples=10000): pmean = torch.zeros(2) pmean[0] = -2. prior_dist = torch.distributions.MultivariateNormal(pmean, covar...
32.985075
102
0.61629
2,056
0.930317
0
0
0
0
0
0
553
0.250226
e86ce796c71c5e5ab7040e934bb5c743e217f39c
3,207
py
Python
cfdutils/examples/onera/onera.py
acrovato/pycfdutils
bcad3b9ac3e3bb98ede549db395e0ee87716b00d
[ "Apache-2.0" ]
null
null
null
cfdutils/examples/onera/onera.py
acrovato/pycfdutils
bcad3b9ac3e3bb98ede549db395e0ee87716b00d
[ "Apache-2.0" ]
null
null
null
cfdutils/examples/onera/onera.py
acrovato/pycfdutils
bcad3b9ac3e3bb98ede549db395e0ee87716b00d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf8 -*- # test encoding: à-é-è-ô-ï-€ # Copyright 2020 Adrien Crovato # # 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/lic...
35.241758
106
0.623636
0
0
0
0
0
0
0
0
1,968
0.612321
e86e6c8cb0c671cea30bff7e2b04bc2e6c6e9109
1,449
py
Python
tasklist/models.py
10000volts/JLGLTaskList
12f0f95d70467211710cd302592436e79929b775
[ "MIT" ]
null
null
null
tasklist/models.py
10000volts/JLGLTaskList
12f0f95d70467211710cd302592436e79929b775
[ "MIT" ]
4
2021-04-08T21:39:46.000Z
2021-06-10T20:02:01.000Z
tasklist/models.py
10000volts/JLGLTaskList
12f0f95d70467211710cd302592436e79929b775
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import Q, Prefetch from django.db import transaction from utils.constants import TASK_STATUS, TASK_STATUS_CHOICES class TaskList(models.Model): name = models.CharField(verbose_name=u'任务清单名称', max_length=128, unique=True) def __str__(self): return se...
32.931818
83
0.628709
1,329
0.884232
0
0
0
0
0
0
235
0.156354
e86f19d1113cb432eba3c0d5cc2165ccc14b2af8
9,486
py
Python
panel/widgets/input.py
NoamGit/panel
4321845b327fb2f6165170939f4f633bbe234782
[ "BSD-3-Clause" ]
1
2019-10-15T13:21:20.000Z
2019-10-15T13:21:20.000Z
panel/widgets/input.py
jonmmease/panel
c588d0dff9418bc781b0a7dc943a5ebd3ca0c4eb
[ "BSD-3-Clause" ]
null
null
null
panel/widgets/input.py
jonmmease/panel
c588d0dff9418bc781b0a7dc943a5ebd3ca0c4eb
[ "BSD-3-Clause" ]
1
2019-06-04T04:17:53.000Z
2019-06-04T04:17:53.000Z
""" The input widgets generally allow entering arbitrary information into a text field or similar. """ from __future__ import absolute_import, division, unicode_literals import ast from base64 import b64decode, b64encode from datetime import datetime from six import string_types import param from bokeh.models.widge...
31.306931
92
0.577377
8,852
0.933165
0
0
0
0
0
0
1,805
0.19028
e86f83e01cdd8465f49434af0b31c9f7519a119a
2,395
py
Python
hass_apps/heaty/window_sensor.py
taste66/hass-apps
93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a
[ "Apache-2.0" ]
null
null
null
hass_apps/heaty/window_sensor.py
taste66/hass-apps
93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a
[ "Apache-2.0" ]
null
null
null
hass_apps/heaty/window_sensor.py
taste66/hass-apps
93f03a823f0ed8b3b32be5da30c5aaf0fcb1d92a
[ "Apache-2.0" ]
null
null
null
""" This module implements the WindowSensor class. """ import typing as T if T.TYPE_CHECKING: # pylint: disable=cyclic-import,unused-import from .room import Room import observable from .. import common class WindowSensor: """A sensor for Heaty's open window detection.""" def __init__(self, entity...
31.103896
76
0.582463
2,178
0.909395
0
0
356
0.148643
0
0
704
0.293946
e8701257b4e01a4d26007b2cee43126dca46dedf
837
py
Python
common/web_client.py
newsettle/ns4_chatbot
526b97aa31292c28d10518bbfaa7466b8ba109ee
[ "Apache-2.0" ]
51
2019-03-29T11:47:55.000Z
2021-04-16T02:40:35.000Z
common/web_client.py
piginzoo/ns4_chatbot
526b97aa31292c28d10518bbfaa7466b8ba109ee
[ "Apache-2.0" ]
7
2019-04-16T01:46:01.000Z
2022-03-11T23:44:09.000Z
common/web_client.py
newsettle/ns4_chatbot
526b97aa31292c28d10518bbfaa7466b8ba109ee
[ "Apache-2.0" ]
20
2019-04-02T03:37:38.000Z
2021-12-31T09:25:12.000Z
# -*- coding=utf-8 -*- import urllib2 import json import logger import traceback def send(apiUrl,data,method=None): logger.debug("调用内部系统[%s],data[%r]",apiUrl,data) try: data_json = json.dumps(data) headers = {'Content-Type': 'application/json'} # 设置数据为json格式,很重要 request = urllib2.Reques...
31
78
0.636798
0
0
0
0
0
0
0
0
252
0.27907
e8709f79e317a9c7cd2146a4a0c28214ab5b7958
22
py
Python
tccli/services/wss/v20180426/__init__.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
tccli/services/wss/v20180426/__init__.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
tccli/services/wss/v20180426/__init__.py
zyh911/tencentcloud-cli
dfc5dbd660d4c60d265921c4edc630091478fc41
[ "Apache-2.0" ]
null
null
null
version = "2018-04-26"
22
22
0.681818
0
0
0
0
0
0
0
0
12
0.545455
e872cf24716cc1672cb4cbbb521b80d4ebf01692
801
py
Python
notebooks/solutions/02-ex2-solution.py
ankitaguhaoakland/ml-workshop-intro
c075e9f04b044edd37f279d204af2810187a98bd
[ "MIT" ]
1
2021-03-31T14:06:26.000Z
2021-03-31T14:06:26.000Z
notebooks/solutions/02-ex2-solution.py
ankitaguhaoakland/ml-workshop-intro
c075e9f04b044edd37f279d204af2810187a98bd
[ "MIT" ]
null
null
null
notebooks/solutions/02-ex2-solution.py
ankitaguhaoakland/ml-workshop-intro
c075e9f04b044edd37f279d204af2810187a98bd
[ "MIT" ]
null
null
null
from sklearn.datasets import load_wine from sklearn.neighbors import KNeighborsClassifier from sklearn.ensemble import RandomForestClassifier from sklearn.linear_model import LogisticRegression wine = load_wine(as_frame=True) X, y = wine.data, wine.target X_train, X_test, y_train, y_test = train_test_split( X, y...
27.62069
52
0.755306
0
0
0
0
0
0
0
0
69
0.086142
e873290b82b21476d01ffb34ba0ea8df2ff20e15
7,055
py
Python
API/main/migrations/0001_initial.py
Ju99ernaut/grapeflowAPI
0d6599775e5b666ad735160b65262624fea0bf99
[ "MIT" ]
null
null
null
API/main/migrations/0001_initial.py
Ju99ernaut/grapeflowAPI
0d6599775e5b666ad735160b65262624fea0bf99
[ "MIT" ]
null
null
null
API/main/migrations/0001_initial.py
Ju99ernaut/grapeflowAPI
0d6599775e5b666ad735160b65262624fea0bf99
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-02-25 18:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
51.875
144
0.55691
6,884
0.975762
0
0
0
0
0
0
1,064
0.150815
e87510c261dc5d69e5ab1b901254bf224cc53156
3,295
py
Python
pyaws/utils/time.py
mwozniczak/pyaws
af8f6d64ff47fd2ef2eb9fef25680e4656523fa3
[ "MIT" ]
null
null
null
pyaws/utils/time.py
mwozniczak/pyaws
af8f6d64ff47fd2ef2eb9fef25680e4656523fa3
[ "MIT" ]
null
null
null
pyaws/utils/time.py
mwozniczak/pyaws
af8f6d64ff47fd2ef2eb9fef25680e4656523fa3
[ "MIT" ]
null
null
null
""" Summary: - Command-line Interface (CLI) Utilities Module - Python3 Module Functions: - convert_strtime_datetime: Convert human-readable datetime string into a datetime object for conducting time operations. - convert_timedelta: Convert a datetime duration object into human-r...
32.623762
93
0.594841
0
0
0
0
0
0
0
0
1,620
0.491654
e8757496e36b307af85c05cdd4dd6a56e81063f4
145
py
Python
name_translator.py
MathisBurger/timetable-updater
aa6c3180f4ae858cb2c63ccad7855f5f670c4114
[ "MIT" ]
null
null
null
name_translator.py
MathisBurger/timetable-updater
aa6c3180f4ae858cb2c63ccad7855f5f670c4114
[ "MIT" ]
null
null
null
name_translator.py
MathisBurger/timetable-updater
aa6c3180f4ae858cb2c63ccad7855f5f670c4114
[ "MIT" ]
null
null
null
import json def translate_name(name): with open("name_translator.json", "r") as file: data = json.load(file) return data[name]
18.125
51
0.655172
0
0
0
0
0
0
0
0
25
0.172414
e876bb50d8ee0021ee27d7402634cce9a0b1b389
756
py
Python
lista1/156_Ananagrams/156_Ananagrams.py
L30Bola/mab606
c29a781752b1d12b0df308d604496c7ffa0c5b6e
[ "BSL-1.0" ]
null
null
null
lista1/156_Ananagrams/156_Ananagrams.py
L30Bola/mab606
c29a781752b1d12b0df308d604496c7ffa0c5b6e
[ "BSL-1.0" ]
null
null
null
lista1/156_Ananagrams/156_Ananagrams.py
L30Bola/mab606
c29a781752b1d12b0df308d604496c7ffa0c5b6e
[ "BSL-1.0" ]
null
null
null
#!/usr/bin/env python import sys import collections listas = list(map(str.split, sys.stdin.readlines())) entrada = [item for sublist in listas for item in sublist] # simplificando as listas, para facilitar contador = collections.Counter() palavras = [] for palavra in entrada: if palavra == "#": break palavr...
29.076923
100
0.756614
0
0
0
0
0
0
0
0
67
0.088624
e87707daa361084b5b65d7322aabe0f103ce0c0e
1,253
py
Python
tests/test_evaluation.py
manslogic/rasa_core
17c82e6be052fc147caef9a9914d06f79a944687
[ "Apache-2.0" ]
1
2018-07-03T16:04:17.000Z
2018-07-03T16:04:17.000Z
tests/test_evaluation.py
jenish-cj/botnlufoodrest
b41aa2c7a1f6e492e10f07e67562b612b5b13a53
[ "Apache-2.0" ]
null
null
null
tests/test_evaluation.py
jenish-cj/botnlufoodrest
b41aa2c7a1f6e492e10f07e67562b612b5b13a53
[ "Apache-2.0" ]
2
2019-02-18T07:38:26.000Z
2021-07-17T16:24:03.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import imghdr import os from rasa_core.evaluate import run_story_evaluation, \ collect_story_predictions from tests.conftest import DEFAULT_STORIES_FILE def test_e...
29.833333
59
0.718276
0
0
0
0
0
0
0
0
33
0.026337
e877b89db0bfb82ba58d14b983fc1ab24f7cf650
3,138
py
Python
PlatformAgents/com/cognizant/devops/platformagents/agents/deployment/xldeploy/XLDeployAgent3.py
gauravl612/Insights
08efd4c4fb3658ebaa9fd2d9ffd1809b83fc397c
[ "Apache-2.0" ]
1
2021-04-29T11:28:37.000Z
2021-04-29T11:28:37.000Z
PlatformAgents/com/cognizant/devops/platformagents/agents/deployment/xldeploy/XLDeployAgent3.py
gauravl612/Insights
08efd4c4fb3658ebaa9fd2d9ffd1809b83fc397c
[ "Apache-2.0" ]
1
2021-04-13T05:34:16.000Z
2021-04-13T05:34:16.000Z
PlatformAgents/com/cognizant/devops/platformagents/agents/deployment/xldeploy/XLDeployAgent3.py
gauravl612/Insights
08efd4c4fb3658ebaa9fd2d9ffd1809b83fc397c
[ "Apache-2.0" ]
null
null
null
#------------------------------------------------------------------------------- # Copyright 2017 Cognizant Technology Solutions # # 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:...
42.986301
103
0.553856
2,156
0.687062
0
0
0
0
0
0
1,353
0.431166
e877bcdf6e8af748d44d8529353ac8f08314df2b
1,853
py
Python
torchsupport/structured/chunkable.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
18
2019-05-02T16:32:15.000Z
2021-04-16T09:33:54.000Z
torchsupport/structured/chunkable.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
5
2019-10-14T13:46:49.000Z
2021-06-08T11:48:34.000Z
torchsupport/structured/chunkable.py
bobelly/torchsupport
5aa0a04f20c193ec99310f5d6a3375d2e95e740d
[ "MIT" ]
12
2019-05-12T21:34:24.000Z
2021-07-15T14:14:16.000Z
import torch from torch.nn.parallel.scatter_gather import Scatter def chunk_sizes(lengths, num_targets): num_entities = len(lengths) chops = num_entities // num_targets result = [ sum(lengths[idx * chops:(idx + 1) * chops]) for idx in range(num_targets) ] return result def chunk_tensor(tensor, lengt...
33.089286
70
0.699406
89
0.04803
0
0
0
0
0
0
218
0.117647
e879a021a202e01effe229f08a5ace1da13c48a5
1,030
py
Python
viz/main.py
YoniSchirris/SimCLR-1
535472ac76d24d368d3bc08c17987df315e0b657
[ "Apache-2.0" ]
1
2021-12-03T12:59:39.000Z
2021-12-03T12:59:39.000Z
viz/main.py
YoniSchirris/SimCLR-1
535472ac76d24d368d3bc08c17987df315e0b657
[ "Apache-2.0" ]
null
null
null
viz/main.py
YoniSchirris/SimCLR-1
535472ac76d24d368d3bc08c17987df315e0b657
[ "Apache-2.0" ]
null
null
null
import torch from viz.visualizer import Visualizer from modules.deepmil import Attention from msidata.dataset_msi_features_with_patients import PreProcessedMSIFeatureDataset from testing.logistic_regression import get_precomputed_dataloader import argparse from experiment import ex from utils import post_config_hook...
22.391304
87
0.72233
0
0
0
0
663
0.643689
0
0
232
0.225243
e879fd71ea6d131c8a7d4e47e9c565b330dabbe2
340
py
Python
projects/golem_e2e/tests/login/login_missing_password.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_e2e/tests/login/login_missing_password.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
projects/golem_e2e/tests/login/login_missing_password.py
kangchenwei/keyautotest2
f980d46cabfc128b2099af3d33968f236923063f
[ "MIT" ]
null
null
null
description = 'Verify the user cannot log in if password value is missing' pages = ['login'] def test(data): navigate(data.env.url) send_keys(login.username_input, 'admin') click(login.login_button) capture('Verify the correct error message is shown') verify_text_in_element(login.error_list, 'Pas...
28.333333
74
0.735294
0
0
0
0
0
0
0
0
139
0.408824
e87bc8cc8dabdbfbb895c83154f1502cc87556de
3,960
py
Python
scripts/09-architecture-vgg.py
jmrozanec/white-bkg-classification
3cdc8a4842ab72ce1950cdd4da5d1692f88c295b
[ "Apache-2.0" ]
2
2017-04-19T14:27:42.000Z
2021-06-30T06:40:57.000Z
scripts/09-architecture-vgg.py
jmrozanec/white-bkg-classification
3cdc8a4842ab72ce1950cdd4da5d1692f88c295b
[ "Apache-2.0" ]
null
null
null
scripts/09-architecture-vgg.py
jmrozanec/white-bkg-classification
3cdc8a4842ab72ce1950cdd4da5d1692f88c295b
[ "Apache-2.0" ]
null
null
null
#TFLearn bug regarding image loading: https://github.com/tflearn/tflearn/issues/180 #Monochromes img-magick: https://poizan.dk/blog/2014/02/28/monochrome-images-in-imagemagick/ #How to persist a model: https://github.com/tflearn/tflearn/blob/master/examples/basics/weights_persistence.py from __future__ import division,...
43.043478
110
0.690657
0
0
0
0
0
0
0
0
964
0.243434
e87bfc2df49be35ad4d4725f2a412dd8728e4e79
392
py
Python
client.py
octoi/simple-file-transfer
0b6f872530363751b6a6d2f1bbfd99b8ffd5fb0c
[ "MIT" ]
null
null
null
client.py
octoi/simple-file-transfer
0b6f872530363751b6a6d2f1bbfd99b8ffd5fb0c
[ "MIT" ]
null
null
null
client.py
octoi/simple-file-transfer
0b6f872530363751b6a6d2f1bbfd99b8ffd5fb0c
[ "MIT" ]
null
null
null
import socket s = socket.socket() host = input(str("Please enter the host address of the sender: ")) port = 8080 s.connect((host, port)) print(f"[+] CONNECTED TO {host}:{port}") filename = input(str("Please enter filename for the incoming file: ")) file = open(filename, 'wb') file_data = s.recv(1024) file.write(fi...
20.631579
70
0.696429
0
0
0
0
0
0
0
0
172
0.438776
e87c1eb3a1fc5933ac084b08ee6c28e19afa0d6a
3,413
py
Python
examplesFromForkedLibraries/PhilReinholdPygrape/4 discarded/benchmarks.py
rayonde/yarn
a8259292791b3332e8521baeb6c7ee78afb53ae2
[ "MIT" ]
1
2020-07-09T13:31:21.000Z
2020-07-09T13:31:21.000Z
examplesFromForkedLibraries/PhilReinholdPygrape/4 discarded/benchmarks.py
rayonde/yarn
a8259292791b3332e8521baeb6c7ee78afb53ae2
[ "MIT" ]
null
null
null
examplesFromForkedLibraries/PhilReinholdPygrape/4 discarded/benchmarks.py
rayonde/yarn
a8259292791b3332e8521baeb6c7ee78afb53ae2
[ "MIT" ]
null
null
null
import qutip as q import numpy as np import scipy.sparse.linalg from pygrape.cugrape.configure_cugrape import configure, get_hmt_ops from pygrape.cugrape.almohy import get_taylor_params from pygrape.setups import StateTransferSetup from pygrape.cuda_setup import CudaStateTransferSetup def get_Hs(mode_dims, dt, numeric...
33.460784
98
0.562848
2,153
0.630823
0
0
0
0
0
0
208
0.060943
e87d57d0c478e441bd8e2fe9c189947046ddeca4
39,545
py
Python
fsleyes/layouts.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
12
2018-05-05T01:36:25.000Z
2021-09-23T20:44:08.000Z
fsleyes/layouts.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
97
2018-05-05T02:17:23.000Z
2022-03-29T14:58:42.000Z
fsleyes/layouts.py
pauldmccarthy/fsleyes
453a6b91ec7763c39195814d635257e3766acf83
[ "Apache-2.0" ]
6
2017-12-09T09:02:00.000Z
2021-03-05T18:55:13.000Z
#!/usr/bin/env python # # layout.py - The layout API (previously called "perspectives"). # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides functions for managing *layouts* - stored view and control panel layouts for *FSLeyes*. Layouts may be persisted using the :mod:`.settings` module. A few...
49.185323
1,435
0.62157
0
0
0
0
0
0
0
0
25,281
0.639297
e87d88f77b09918a50134530b2845176e0ad517a
6,079
py
Python
annotation/application/document.py
seal-git/chABSA-dataset
a33b59e1101e451495735c69094d4f598d54f6f4
[ "MIT" ]
107
2018-04-10T09:13:57.000Z
2022-03-31T15:21:20.000Z
annotation/application/document.py
seal-git/chABSA-dataset
a33b59e1101e451495735c69094d4f598d54f6f4
[ "MIT" ]
2
2018-10-27T05:47:47.000Z
2022-02-25T10:06:43.000Z
annotation/application/document.py
seal-git/chABSA-dataset
a33b59e1101e451495735c69094d4f598d54f6f4
[ "MIT" ]
9
2018-04-11T00:59:15.000Z
2022-02-25T11:50:33.000Z
import os import shutil import json class Document(): def __init__(self, doc_id, doc_text, edi_id, company_name, body, topic): self.doc_id = doc_id self.doc_text = doc_text self.edi_id = edi_id self.company_name = company_name self.body = ...
32.335106
102
0.553216
6,031
0.992104
0
0
2,036
0.334924
0
0
557
0.091627