hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
dc6d90a32212d727753439c0b78323060b68b9c6
925
py
Python
tests/tokenizer_spacy.py
tevnpowers/thesis
af55bb47db34d90fcef1de073d16a6a0dff43161
[ "MIT" ]
2
2020-03-13T22:57:23.000Z
2020-03-13T22:57:46.000Z
tests/tokenizer_spacy.py
tevnpowers/thesis
af55bb47db34d90fcef1de073d16a6a0dff43161
[ "MIT" ]
null
null
null
tests/tokenizer_spacy.py
tevnpowers/thesis
af55bb47db34d90fcef1de073d16a6a0dff43161
[ "MIT" ]
null
null
null
import string import spacy from text_studio.utils.timer import timer from text_studio.transformer import Transformer
30.833333
72
0.650811
dc6dedca034cca1e39d2cc1447e7675a569bfa52
25,336
py
Python
lib/ndk/extypes.py
clayne/syringe-1
4a431aa65c371a2018fca95145a3952ba802a609
[ "BSD-2-Clause" ]
null
null
null
lib/ndk/extypes.py
clayne/syringe-1
4a431aa65c371a2018fca95145a3952ba802a609
[ "BSD-2-Clause" ]
null
null
null
lib/ndk/extypes.py
clayne/syringe-1
4a431aa65c371a2018fca95145a3952ba802a609
[ "BSD-2-Clause" ]
null
null
null
import ptypes from ptypes import * from . import umtypes, ketypes, mmtypes from .datatypes import * POOL_FREE_CHUNK._fields_ = [ (POOL_HEADER, 'Header'), (POOL_FREE_CHUNK_LIST_ENTRY, 'ListEntry'), ] _fields_ = [ (dyn.clone(SLIST_HEADER, _object_=POOL_FREE_CHUNK, _path_=['ListEntry']), 'ListHead'...
38.446131
135
0.64363
dc6f33b488d5c21f4b47a7970e947ab1c0093889
3,829
py
Python
spyke/enginePreview.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
null
null
null
spyke/enginePreview.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
4
2022-01-24T01:35:28.000Z
2022-02-10T19:48:35.000Z
spyke/enginePreview.py
m4reQ/spyke
4b1aa4c01c5c33e050f03eb9e8d396f9716f9e93
[ "Unlicense" ]
null
null
null
from OpenGL import GL from PIL import Image from pathlib import Path import numpy as np import gc import os import ctypes GL_COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1 VBO = None VAO = None TEXTURE = None SHADER = None vertexData = [ -1.0, -1.0, 0.0, 0.0, 1.0, -1.0, 1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 1.0,...
22.523529
97
0.687908
dc6f435009ba534907e0424d4bc520d7d078dd5e
329
py
Python
cses-problem-set/1629 Movie Festival.py
jaredliw/python-question-bank
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2021-04-08T07:49:15.000Z
2021-04-08T07:49:15.000Z
cses-problem-set/1629 Movie Festival.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
null
null
null
cses-problem-set/1629 Movie Festival.py
jaredliw/leetcode-solutions
9c8c246623d8d171f875700b57772df0afcbdcdf
[ "MIT" ]
1
2022-01-23T02:12:24.000Z
2022-01-23T02:12:24.000Z
# Time: 0.72 s movies = [] for _ in range(int(input())): movies.append(tuple(map(int, input().split()))) movies.sort(key=lambda x: x[1]) last_end_time = 0 movie_count = 0 for start_time, end_time in movies: if start_time >= last_end_time: last_end_time = end_time movie_count += 1 print(movi...
23.5
51
0.659574
dc72a0d962a7a0e4845a4c13d164512dff7b1695
1,487
py
Python
YOLOv1/config.py
SkyLord2/Yolo-v1-by-keras
8db7426db9d4de8a0d0f81a505567ae4b3500e09
[ "MIT" ]
null
null
null
YOLOv1/config.py
SkyLord2/Yolo-v1-by-keras
8db7426db9d4de8a0d0f81a505567ae4b3500e09
[ "MIT" ]
null
null
null
YOLOv1/config.py
SkyLord2/Yolo-v1-by-keras
8db7426db9d4de8a0d0f81a505567ae4b3500e09
[ "MIT" ]
null
null
null
import os ''' path and dataset parameter ''' DATA_PATH = 'data' PASCAL_PATH = os.path.join(DATA_PATH, 'pascal_voc') CACHE_PATH = os.path.join(PASCAL_PATH, 'cache') OUTPUT_DIR = os.path.join(PASCAL_PATH, 'output') # data/pascal_voc/output WEIGHTS_DIR = os.path.join(PASCAL_PATH, 'weights') # weights_dir, d...
24.783333
97
0.627438
dc73b72fc6848a6e17daae8fe15f8aad5356d498
707
py
Python
sarna/auxiliary/user_helpers.py
rsrdesarrollo/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
25
2019-03-11T22:42:52.000Z
2022-03-15T09:49:15.000Z
sarna/auxiliary/user_helpers.py
hackingmess/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
14
2019-01-08T08:35:51.000Z
2022-03-11T23:30:28.000Z
sarna/auxiliary/user_helpers.py
hackingmess/sarna
0c1f44e06a932520b70e505585a5469b77f6302e
[ "MIT" ]
12
2019-07-26T05:38:32.000Z
2022-03-29T09:54:49.000Z
from typing import List from wtforms import ValidationError from sarna.core.roles import valid_auditors, valid_managers from sarna.model import User
24.37931
80
0.673267
dc744794d57c761d617d1d83c8575d25c369489b
16,133
py
Python
geo/bms/old/models.py
Tamlyn78/geo
dd63372acdd1fe8b744c05eca5ad23836e6a1604
[ "MIT" ]
null
null
null
geo/bms/old/models.py
Tamlyn78/geo
dd63372acdd1fe8b744c05eca5ad23836e6a1604
[ "MIT" ]
null
null
null
geo/bms/old/models.py
Tamlyn78/geo
dd63372acdd1fe8b744c05eca5ad23836e6a1604
[ "MIT" ]
null
null
null
from os.path import join, splitext from uuid import uuid4 import datetime from django.db import models #from django.utils.encoding import python_2_unicode_compatible from django.utils import timezone from django.urls import reverse from django.contrib.auth.models import User # Create your models here. #@...
49.185976
374
0.663299
dc752daa633f83bb21deb535da2d6656216758db
2,370
py
Python
2020_April_Leetcode_30_days_challenge/Week_1_Happy Number/by_cycle_detection.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
32
2020-01-05T13:37:16.000Z
2022-03-26T07:27:09.000Z
2020_April_Leetcode_30_days_challenge/Week_1_Happy Number/by_cycle_detection.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
null
null
null
2020_April_Leetcode_30_days_challenge/Week_1_Happy Number/by_cycle_detection.py
coderMaruf/leetcode-1
20ffe26e43999e44c8acf9800acb371a49bb5853
[ "MIT" ]
8
2020-06-18T16:17:27.000Z
2022-03-15T23:58:18.000Z
''' Description: Write an algorithm to determine if a number n is "happy". A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or it loops en...
21.944444
352
0.509283
dc76b772fbdfd251ee31a56e201773cd07f09136
1,195
py
Python
waimai/libs/shopping.py
xucheng11/test
2987d34823825798bffac3cfb30cadab42dae998
[ "MulanPSL-1.0" ]
null
null
null
waimai/libs/shopping.py
xucheng11/test
2987d34823825798bffac3cfb30cadab42dae998
[ "MulanPSL-1.0" ]
null
null
null
waimai/libs/shopping.py
xucheng11/test
2987d34823825798bffac3cfb30cadab42dae998
[ "MulanPSL-1.0" ]
null
null
null
""" ------------------------------------------------- # @Project : # @File :shopping # @Date :2021/8/8 10:21 # @Author : # @Email :1224069978 # @Software :PyCharm ------------------------------------------------- """ import requests,os from conf.host import * from libs.login import * from libs.shop import...
29.146341
82
0.579079
dc77b30ee4cc565f7a11d7b978f1ef142afe6bf3
1,039
py
Python
winsniffer/gui/frame_formatting.py
netaneld122/winsniffer
9cbd50652861dafe0f76367f9b146ecca8e62b95
[ "MIT" ]
null
null
null
winsniffer/gui/frame_formatting.py
netaneld122/winsniffer
9cbd50652861dafe0f76367f9b146ecca8e62b95
[ "MIT" ]
null
null
null
winsniffer/gui/frame_formatting.py
netaneld122/winsniffer
9cbd50652861dafe0f76367f9b146ecca8e62b95
[ "MIT" ]
null
null
null
import binascii from winsniffer.gui.parsing.default_parser import DefaultParser
24.738095
63
0.705486
dc78f1958822bfe1bb3123057ba41a3b7fb2318b
772
py
Python
matury/2020pr/zad42.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
2
2021-03-06T22:09:44.000Z
2021-03-14T14:41:03.000Z
matury/2020pr/zad42.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
1
2020-03-25T15:42:47.000Z
2020-10-06T21:41:14.000Z
matury/2020pr/zad42.py
bartekpacia/informatyka-frycz
6fdbbdea0c6b6a710378f22e90d467c9f91e64aa
[ "MIT" ]
null
null
null
from typing import List from reader import read_nums nums = read_nums() longest_reg_fragment: List[int] = [] reg_fragment: List[int] = [] current_gap = nums[1] - nums[0] for i in range(1, len(nums)): num1 = nums[i - 1] num2 = nums[i] gap = abs(num1 - num2) if not reg_fragment: reg_fragment....
22.057143
57
0.650259
dc7b03e8a3e926b78480c08bddc17a6d3fba7ee0
1,586
py
Python
satchmo/apps/satchmo_store/shop/satchmo_settings.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
16
2015-03-06T14:42:27.000Z
2019-12-23T21:37:01.000Z
satchmo/apps/satchmo_store/shop/satchmo_settings.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
null
null
null
satchmo/apps/satchmo_store/shop/satchmo_settings.py
predatell/satchmo
6ced1f845aadec240c7e433c3cbf4caca96e0d92
[ "BSD-3-Clause" ]
8
2015-01-28T16:02:37.000Z
2022-03-03T21:29:40.000Z
"""A central mechanism for shop-wide settings which have defaults. Repurposed from Sphene Community Tools: http://sct.sphene.net """ from django.conf import settings satchmo_settings_defaults = { # Only settings for core `satchmo` applications are defined here, # (or global settings) -- all other defaults sh...
31.098039
98
0.70681
dc7d2a5bf7773798fe0cb25e532c00e8fdc1e5bb
148
py
Python
utils/postprocessing/__init__.py
bdvllrs/misinformation-detection-tensor-embeddings
eb43e55fb7d4317f4ca0d5c1db8191be3d543716
[ "MIT" ]
7
2020-03-18T03:40:48.000Z
2021-12-29T11:04:53.000Z
utils/postprocessing/__init__.py
bdvllrs/misinformation-detection-tensor-embeddings
eb43e55fb7d4317f4ca0d5c1db8191be3d543716
[ "MIT" ]
null
null
null
utils/postprocessing/__init__.py
bdvllrs/misinformation-detection-tensor-embeddings
eb43e55fb7d4317f4ca0d5c1db8191be3d543716
[ "MIT" ]
3
2019-09-30T05:41:59.000Z
2020-12-03T19:49:10.000Z
from utils.postprocessing.PostProcessing import PostProcessing from utils.postprocessing.SelectLabelsPostprocessor import SelectLabelsPostprocessor
49.333333
84
0.918919
dc7db988b842558ad78f3ddf6acf90c07a5a88a6
1,227
py
Python
api/needley/models.py
kino-ma/needley
ae0463d24aed64f37385385415c766a43fa7d1d4
[ "MIT" ]
null
null
null
api/needley/models.py
kino-ma/needley
ae0463d24aed64f37385385415c766a43fa7d1d4
[ "MIT" ]
4
2021-01-28T02:35:40.000Z
2021-02-17T10:51:31.000Z
api/needley/models.py
kino-ma/python-portfolio
ae0463d24aed64f37385385415c766a43fa7d1d4
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.core.validators import MinLengthValidator from django.contrib.auth.models import AbstractUser
31.461538
82
0.698452
dc7e4cc1fad0e53f405f8e31d1dce74d002b131c
12,465
py
Python
app.py
tomachalek/riki
4c15985501ef249695833850b4fa26b715454edc
[ "Apache-2.0" ]
1
2021-11-29T21:23:37.000Z
2021-11-29T21:23:37.000Z
app.py
tomachalek/riki
4c15985501ef249695833850b4fa26b715454edc
[ "Apache-2.0" ]
1
2021-12-10T19:56:20.000Z
2021-12-10T19:56:20.000Z
app.py
tomachalek/riki
4c15985501ef249695833850b4fa26b715454edc
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Tomas Machalek <tomas.machalek@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
31.717557
108
0.64268
dc7f12fe57697e7793ad98c74901e55f8e3f8e91
1,960
py
Python
app/src/modeling/predict_model.py
joaofracasso/banknoteBrazil
28e4d194adf5b32f3e83a4eafce23ac1ada151c6
[ "MIT" ]
8
2018-11-04T15:52:30.000Z
2022-02-02T23:51:13.000Z
app/src/modeling/predict_model.py
joaofracasso/banknoteBrazil
28e4d194adf5b32f3e83a4eafce23ac1ada151c6
[ "MIT" ]
5
2021-03-03T11:33:00.000Z
2021-03-29T12:58:08.000Z
app/src/modeling/predict_model.py
joaofracasso/banknoteBrazil
28e4d194adf5b32f3e83a4eafce23ac1ada151c6
[ "MIT" ]
1
2020-08-26T01:28:43.000Z
2020-08-26T01:28:43.000Z
import io import torchvision.transforms as transforms from PIL import Image import onnxruntime as ort import numpy as np class_map = { 0: "10 Reais Frente", 1: "10 Reais Verso", 2: "20 Reais Frente", 3: "20 Reais Verso", 4: "2 Reais Frente", 5: "2 Reais Verso", 6: "50 Reais Frente", ...
33.220339
78
0.673469
dc7fef98ee8b4350186c803b3e6a489a9a3f0111
150
py
Python
arcpy_ListDatasets.py
geocot/Python_ArcGIS_Desktop
aef5d855d8ce3f564dd4fba80599be32b89fcb5b
[ "Apache-2.0" ]
null
null
null
arcpy_ListDatasets.py
geocot/Python_ArcGIS_Desktop
aef5d855d8ce3f564dd4fba80599be32b89fcb5b
[ "Apache-2.0" ]
null
null
null
arcpy_ListDatasets.py
geocot/Python_ArcGIS_Desktop
aef5d855d8ce3f564dd4fba80599be32b89fcb5b
[ "Apache-2.0" ]
null
null
null
import arcpy arcpy.env.workspace = "c:/temp/Donnees.gdb" arcpy.env.overwriteOutput = True listes = arcpy.ListDatasets() for d in listes: print(d)
21.428571
43
0.74
dc8290a1517bfe32adbe47391e23854b9f8fd7e1
5,421
py
Python
src/server.py
ForgedSnow/Frontiersman
c564238b120bd9a526a2ebd6b79ed5b021be2a6e
[ "MIT" ]
null
null
null
src/server.py
ForgedSnow/Frontiersman
c564238b120bd9a526a2ebd6b79ed5b021be2a6e
[ "MIT" ]
null
null
null
src/server.py
ForgedSnow/Frontiersman
c564238b120bd9a526a2ebd6b79ed5b021be2a6e
[ "MIT" ]
null
null
null
import random import socket import time sep = '\n' clients = [] Colors = ['red', 'cyan', 'orange', 'blue', 'green', 'pink', 'yellow'] random.shuffle(Colors) ServerSocket = socket.socket() host = '127.0.0.1' port = 1233 ThreadCount = 0 try: ServerSocket.bind((host, port)) except socket.error as e: print(s...
29.461957
89
0.594724
dc82be9729f135d53e5a6812431dbe49d50879b1
849
py
Python
adminCustom/templatetags/sort_app.py
Kiri23/DECE-Backend-Project
f488277bf294a4421c86efa512927e6d0f3255d6
[ "MIT" ]
null
null
null
adminCustom/templatetags/sort_app.py
Kiri23/DECE-Backend-Project
f488277bf294a4421c86efa512927e6d0f3255d6
[ "MIT" ]
13
2019-05-24T21:13:59.000Z
2022-03-11T23:45:53.000Z
adminCustom/templatetags/sort_app.py
Kiri23/DECE-Backend-Project
f488277bf294a4421c86efa512927e6d0f3255d6
[ "MIT" ]
null
null
null
from django import template from django.conf import settings register = template.Library()
25.727273
61
0.630153
dc86eee1b0eb92b3d7f43c645a1d6d938f71dc2e
1,147
py
Python
A_MIA_R3_Core/Graphproc/Graphmod.py
nao0423/A_MIA_R3
49dd9849e082fd5cee98a9919e8e4962a8376e59
[ "MIT" ]
null
null
null
A_MIA_R3_Core/Graphproc/Graphmod.py
nao0423/A_MIA_R3
49dd9849e082fd5cee98a9919e8e4962a8376e59
[ "MIT" ]
null
null
null
A_MIA_R3_Core/Graphproc/Graphmod.py
nao0423/A_MIA_R3
49dd9849e082fd5cee98a9919e8e4962a8376e59
[ "MIT" ]
null
null
null
import os import numpy as np from matplotlib import pyplot as plt
31.861111
72
0.564952
dc8808beaf5010b2226dd480feb0ba48ae8b88fd
926
py
Python
zkay/transaction/int_casts.py
nibau/zkay
da04760088767e05214aac2d2beee4cbf8ed77f6
[ "MIT" ]
null
null
null
zkay/transaction/int_casts.py
nibau/zkay
da04760088767e05214aac2d2beee4cbf8ed77f6
[ "MIT" ]
null
null
null
zkay/transaction/int_casts.py
nibau/zkay
da04760088767e05214aac2d2beee4cbf8ed77f6
[ "MIT" ]
null
null
null
from enum import IntEnum from typing import Optional, Any from zkay.compiler.privacy.library_contracts import bn128_scalar_field from zkay.transaction.types import AddressValue for i in range(8, 257, 8): globals()[f'int{i}'] = lambda x, i=i: __convert(x, i, True) globals()[f'uint{i}'] = lambda x, i=i: __con...
34.296296
71
0.654428
dc88339f42e2b1a9b7ab7afdaa2a87808aaca155
170
py
Python
reid/evaluation_metrics/__init__.py
xueping187/weakly-supervised-person-re-id
3cfe98264dcdb667c132727a57ab80da5a9e6a8f
[ "Apache-2.0" ]
2
2021-09-14T03:39:43.000Z
2021-09-14T03:41:04.000Z
reid/evaluation_metrics/__init__.py
xueping187/weakly-supervised-person-re-id
3cfe98264dcdb667c132727a57ab80da5a9e6a8f
[ "Apache-2.0" ]
null
null
null
reid/evaluation_metrics/__init__.py
xueping187/weakly-supervised-person-re-id
3cfe98264dcdb667c132727a57ab80da5a9e6a8f
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import from .classification import accuracy from .ranking_1 import cmc, mean_ap __all__ = [ 'accuracy', 'cmc', 'mean_ap', ]
15.454545
38
0.711765
dc88577e170bf6ccee3242427067dd649b90ce5d
661
py
Python
Modules/secreat-message.py
cclauss/pythonCodes
feee6fda9fcab90b6eda7b97e1c50af21861df4e
[ "MIT" ]
null
null
null
Modules/secreat-message.py
cclauss/pythonCodes
feee6fda9fcab90b6eda7b97e1c50af21861df4e
[ "MIT" ]
null
null
null
Modules/secreat-message.py
cclauss/pythonCodes
feee6fda9fcab90b6eda7b97e1c50af21861df4e
[ "MIT" ]
null
null
null
#This file contain examples for os module #What is os module? #is a module using for list files in folder, we can get name of current working directory #rename files , write on files import os rename_files()
31.47619
89
0.75643
dc88ab8f3f255c6120421288555f6c5b8861989f
279
py
Python
backend/database/db_result.py
Mancid/mancid_project
4923264af324439658ad256444f3af6a4963e44f
[ "Unlicense" ]
2
2021-05-12T14:10:16.000Z
2021-05-16T22:05:41.000Z
backend/database/db_result.py
Mancid/mancid_project
4923264af324439658ad256444f3af6a4963e44f
[ "Unlicense" ]
18
2021-05-11T14:24:05.000Z
2021-06-10T10:42:42.000Z
backend/database/db_result.py
Mancid/mancid_project
4923264af324439658ad256444f3af6a4963e44f
[ "Unlicense" ]
7
2021-05-01T17:50:54.000Z
2021-06-09T12:04:11.000Z
import logging def result_db(database): """ This function return the result of database. They return a dict :returns: a dict with all rows in database :rtype: dict """ logging.info("The result of filter") return list(database.find({}, {"_id": 0}))
21.461538
52
0.648746
dc8be82c0b5d6c554dac1d17d3517255a183251c
18,351
py
Python
sem_seg/train_pyramid.py
Hao-FANG-92/3D_PSPNet
2821a3181cbdb70ee3291c29ebac19af38e6c8dc
[ "MIT" ]
6
2020-06-13T08:34:49.000Z
2021-11-09T04:09:48.000Z
sem_seg/train_pyramid.py
jtpils/3D_PSPNet
2821a3181cbdb70ee3291c29ebac19af38e6c8dc
[ "MIT" ]
null
null
null
sem_seg/train_pyramid.py
jtpils/3D_PSPNet
2821a3181cbdb70ee3291c29ebac19af38e6c8dc
[ "MIT" ]
4
2020-03-08T17:00:19.000Z
2022-03-18T15:42:14.000Z
import argparse import math import h5py import numpy as np import tensorflow as tf import socket import time import resource import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ROOT_DIR = os.path.dirname(BASE_DIR) sys.path.append(BASE_DIR) sys.path.append(ROOT_DIR) sys.path.append(os.path.join(R...
40.509934
156
0.65288
dc8c2777bf74705cf12f2debe29527c9ee43e568
1,015
py
Python
tests/pyre/components/protocol.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/pyre/components/protocol.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
tests/pyre/components/protocol.py
BryanRiel/pyre
179359634a7091979cced427b6133dd0ec4726ea
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # michael a.g. avzis # orthologue # (c) 1998-2018 all rights reserved # """ Check that declarations of trivial protocols produce the expected layout """ # main if __name__ == "__main__": test() # end of file
21.145833
76
0.675862
dc8d4387b8718ac172644dcb9029d94d050e9c2f
1,210
py
Python
Modules/init_logging.py
LoveBootCaptain/WeatherPi
24132f392080a61cabaa6fe99c3ef3ee684ccd77
[ "MIT" ]
7
2016-10-23T16:57:16.000Z
2020-05-18T14:18:12.000Z
Modules/init_logging.py
LoveBootCaptain/WeatherPi
24132f392080a61cabaa6fe99c3ef3ee684ccd77
[ "MIT" ]
null
null
null
Modules/init_logging.py
LoveBootCaptain/WeatherPi
24132f392080a61cabaa6fe99c3ef3ee684ccd77
[ "MIT" ]
1
2018-08-05T00:44:07.000Z
2018-08-05T00:44:07.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # create some logger details import logging.handlers # create a weather logger weather_path = '/home/pi/WeatherPi/logs/Weather_Log_Data.log' WEATHER_LOG_FILENAME = weather_path # Set up a specific logger with our desired output level weather_logger = logging.getLogger('Weath...
31.025641
112
0.8
dc8e1380dde51a4caa0b3df07a69e44c39836128
2,358
py
Python
tests/functional/step_defs/test_predictions.py
carlos10seg/rec-service
91ffb33c57028e959e16a7fc97a4dafee4f610a0
[ "MIT" ]
1
2021-04-14T02:33:12.000Z
2021-04-14T02:33:12.000Z
tests/functional/step_defs/test_predictions.py
carlos10seg/rec-service
91ffb33c57028e959e16a7fc97a4dafee4f610a0
[ "MIT" ]
2
2021-08-25T16:14:32.000Z
2022-02-10T02:51:22.000Z
tests/functional/step_defs/test_predictions.py
carlos10seg/rec-service
91ffb33c57028e959e16a7fc97a4dafee4f610a0
[ "MIT" ]
2
2020-12-11T16:17:10.000Z
2021-03-02T01:38:23.000Z
import pytest import requests import logging from pytest_bdd import scenarios, given, then, parsers from requests.exceptions import ConnectionError # Scenarios scenarios('../features/predictions.feature', example_converters=dict(user_id=int, num_recs=int)) # Given Steps # Then Steps
35.19403
96
0.729432
dc8ea639aefe380ccad355b48b1e7babaaca301c
1,922
py
Python
meiduo_mall/meiduo_mall/apps/contents/views.py
hgztlmb/meiduo_project
5eb3b875faa06db844c8ba842cc299eccd976311
[ "MIT" ]
2
2019-05-27T12:41:53.000Z
2019-06-11T02:58:00.000Z
meiduo_mall/meiduo_mall/apps/contents/views.py
hgztlmb/meiduo_project
5eb3b875faa06db844c8ba842cc299eccd976311
[ "MIT" ]
null
null
null
meiduo_mall/meiduo_mall/apps/contents/views.py
hgztlmb/meiduo_project
5eb3b875faa06db844c8ba842cc299eccd976311
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.views import View from goods.models import GoodsChannel from contents.models import ContentCategory from .utils import get_categories
35.592593
88
0.564516
dc8f73f0528c0d2a14df7cd7036a596e1d08c194
615
py
Python
examples/ticker.py
rstms/txtrader-monitor
63de1d8ca7c06e9c7301775679a4373a90912426
[ "MIT" ]
null
null
null
examples/ticker.py
rstms/txtrader-monitor
63de1d8ca7c06e9c7301775679a4373a90912426
[ "MIT" ]
null
null
null
examples/ticker.py
rstms/txtrader-monitor
63de1d8ca7c06e9c7301775679a4373a90912426
[ "MIT" ]
null
null
null
from txtrader_monitor import Monitor import json from pprint import pprint m = Monitor(log_level='WARNING') if __name__ == '__main__': main()
16.184211
38
0.6
dc8fe8f74f9c641facf00630552d4d110386f403
5,055
py
Python
code/models/maxEnt.py
trenslow/thesis
fbf757176c0ae61fba993d16b24a43129578b1e5
[ "BSD-3-Clause" ]
null
null
null
code/models/maxEnt.py
trenslow/thesis
fbf757176c0ae61fba993d16b24a43129578b1e5
[ "BSD-3-Clause" ]
null
null
null
code/models/maxEnt.py
trenslow/thesis
fbf757176c0ae61fba993d16b24a43129578b1e5
[ "BSD-3-Clause" ]
null
null
null
import tensorflow as tf import numpy as np import itertools import time import random import sys if __name__ == '__main__': # currently set for swadesh vectors langs = sys.argv[1:3] lang1, lang2 = langs[0], langs[1] print(lang1, lang2) features, words, vocab = read_file('data/vectors_swadesh.' + l...
39.80315
150
0.604154
dc8fea87cacc8f38ab0d4cc77ece002769227f5f
1,840
py
Python
scripts/boot-sequence.py
kaynarov/commun.contracts
6e1482acd28cd2b33fc93ee5d6c88c7038bb0d44
[ "MIT" ]
null
null
null
scripts/boot-sequence.py
kaynarov/commun.contracts
6e1482acd28cd2b33fc93ee5d6c88c7038bb0d44
[ "MIT" ]
null
null
null
scripts/boot-sequence.py
kaynarov/commun.contracts
6e1482acd28cd2b33fc93ee5d6c88c7038bb0d44
[ "MIT" ]
1
2020-10-25T13:58:12.000Z
2020-10-25T13:58:12.000Z
#!/usr/bin/env python3 import os import sys import subprocess default_contracts_dir = '/opt/cyberway/bin/data-dir/contracts/' nodeos_url = os.environ.get('CYBERWAY_URL', 'http://nodeosd:8888') os.environ['CYBERWAY_URL'] = nodeos_url os.environ['CLEOS'] = '/opt/cyberway/bin/cleos' args = { 'basedir': os.path.dirn...
36.8
89
0.686957
dc90b4ca7f2137cdbc5874453b2ec51c3e2f8b39
500
py
Python
ds-udacity/curso 2/tutorial/exercicio4/mapper_1/reduce.py
tassotirap/data-science
644bc351740cda90c0d8c907132d9da9630266c9
[ "Apache-2.0" ]
null
null
null
ds-udacity/curso 2/tutorial/exercicio4/mapper_1/reduce.py
tassotirap/data-science
644bc351740cda90c0d8c907132d9da9630266c9
[ "Apache-2.0" ]
null
null
null
ds-udacity/curso 2/tutorial/exercicio4/mapper_1/reduce.py
tassotirap/data-science
644bc351740cda90c0d8c907132d9da9630266c9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import sys import csv reader = csv.reader(sys.stdin, delimiter='\t') writer = csv.writer(sys.stdout, delimiter='\t', quotechar='"', quoting=csv.QUOTE_ALL) userInfo = None for line in reader: thisType = line[1] if thisType == 'A': userInfo = line elif thisType == 'B': ...
21.73913
85
0.596
dc91ea563724becd2551ceddc127da30cb181d3c
724
py
Python
node/node.py
abudnik/prun
643a6bf49249e220f08317b8a4739570faf7b2ae
[ "Apache-2.0" ]
20
2015-05-14T19:44:01.000Z
2018-04-14T15:25:08.000Z
node/node.py
abudnik/prun
643a6bf49249e220f08317b8a4739570faf7b2ae
[ "Apache-2.0" ]
11
2015-04-15T19:51:06.000Z
2017-01-03T14:57:49.000Z
node/node.py
abudnik/prun
643a6bf49249e220f08317b8a4739570faf7b2ae
[ "Apache-2.0" ]
7
2015-05-08T12:44:38.000Z
2021-12-10T18:00:01.000Z
import sys import os NODE_SCRIPT_EXEC_FAILED = -5 errCode = 0 try: readFifo = sys.argv[2] scriptLen = int(sys.argv[3]) taskId = int(sys.argv[4]) numTasks = int(sys.argv[5]) jobId = sys.argv[6] fifo = os.open(readFifo, os.O_RDONLY) bytes = bytearray() while len(bytes) < scriptLen: ...
21.939394
69
0.63674
dc92728440353e2f2240052acb296267123bd464
21,328
py
Python
dist/Basilisk/fswAlgorithms/rwMotorVoltage/rwMotorVoltage.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
dist/Basilisk/fswAlgorithms/rwMotorVoltage/rwMotorVoltage.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
1
2019-03-13T20:52:22.000Z
2019-03-13T20:52:22.000Z
dist/Basilisk/fswAlgorithms/rwMotorVoltage/rwMotorVoltage.py
ian-cooke/basilisk_mag
a8b1e37c31c1287549d6fd4d71fcaa35b6fc3f14
[ "0BSD" ]
null
null
null
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): _rwMotorVol...
49.256351
177
0.790463
dc94642e6f6a93fa65fb69c2f410be31e9ee122c
86
py
Python
prowl/__main__.py
SoorajModi/PrOwl
b58845d9763d5db80c021adf42fb7e9e55432375
[ "MIT" ]
null
null
null
prowl/__main__.py
SoorajModi/PrOwl
b58845d9763d5db80c021adf42fb7e9e55432375
[ "MIT" ]
11
2021-05-19T05:03:15.000Z
2021-09-08T00:53:01.000Z
prowl/__main__.py
SoorajModi/PyOwl
b58845d9763d5db80c021adf42fb7e9e55432375
[ "MIT" ]
null
null
null
"""Begin PrOwl """ from .prowl import watch if __name__ == '__main__': watch()
9.555556
26
0.616279
dc9494ac835fbdd17583721bdefffc09c468c9f3
248
py
Python
app/main/__init__.py
sundayliu/flask-tutorial
8621441b429020ea884b4bf090efa8dd15133af8
[ "MIT" ]
null
null
null
app/main/__init__.py
sundayliu/flask-tutorial
8621441b429020ea884b4bf090efa8dd15133af8
[ "MIT" ]
null
null
null
app/main/__init__.py
sundayliu/flask-tutorial
8621441b429020ea884b4bf090efa8dd15133af8
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from flask import Blueprint main = Blueprint('main',__name__) from . import views,errors from ..models import Permission
20.666667
35
0.733871
dc975d58db2911f7f63cb23ede835ba47e879bc3
954
py
Python
setup.py
sgykfjsm/flask-logging-decorator
21552202b0abecda15bb806c0053e568f30db6cd
[ "MIT" ]
5
2018-12-07T01:51:48.000Z
2019-10-25T15:08:20.000Z
setup.py
sgykfjsm/flask-logging-decorator
21552202b0abecda15bb806c0053e568f30db6cd
[ "MIT" ]
null
null
null
setup.py
sgykfjsm/flask-logging-decorator
21552202b0abecda15bb806c0053e568f30db6cd
[ "MIT" ]
1
2020-02-19T22:19:43.000Z
2020-02-19T22:19:43.000Z
#!/usr/bin/env python from setuptools import setup from os.path import abspath, dirname, join from codecs import open here = abspath(dirname(__file__)) long_description = '' with open(join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup( name='flask_logging_decorator', versi...
31.8
73
0.674004
dc994acdfddbe96baef204ffa8e2df2f54505606
656
py
Python
contracts/doe_token_contract.py
pettitpeon/doe-nft-contract
0b1da9323df4c2a045d7979f7fe6f38db5d5406b
[ "MIT" ]
null
null
null
contracts/doe_token_contract.py
pettitpeon/doe-nft-contract
0b1da9323df4c2a045d7979f7fe6f38db5d5406b
[ "MIT" ]
null
null
null
contracts/doe_token_contract.py
pettitpeon/doe-nft-contract
0b1da9323df4c2a045d7979f7fe6f38db5d5406b
[ "MIT" ]
null
null
null
from web3 import Web3 import contracts.doe_token_abi as doe_token_abi
41
85
0.786585
dc9b43d49a1297a0cd78d268ff6c9669c5fb1610
188
py
Python
bin/analytic/catalog/_mypath.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
3
2015-10-22T14:57:27.000Z
2016-08-25T08:16:02.000Z
bin/publish/highlight_key_figure/_mypath.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2017-08-28T14:42:46.000Z
2017-08-28T16:08:37.000Z
bin/publish/highlight_key_figure/_mypath.py
DarkEnergyScienceCollaboration/chroma
64fc123a065334b307654f29b3bea52885b46ec8
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
import os, sys thisdir = os.path.dirname(os.path.abspath(__file__)) libdir = os.path.abspath(os.path.join(thisdir, '../../../')) if libdir not in sys.path: sys.path.insert(0, libdir)
26.857143
60
0.680851
dc9cb4ba052280cdcbdb81eb3839f173ead5100a
402
py
Python
Code_Challenges/array_replace.py
mvkumar14/Practice
c3c7142da6098d950aac528d2def77ef65b3132d
[ "MIT" ]
null
null
null
Code_Challenges/array_replace.py
mvkumar14/Practice
c3c7142da6098d950aac528d2def77ef65b3132d
[ "MIT" ]
null
null
null
Code_Challenges/array_replace.py
mvkumar14/Practice
c3c7142da6098d950aac528d2def77ef65b3132d
[ "MIT" ]
null
null
null
# 072220 # CodeSignal # https://app.codesignal.com/arcade/intro/level-6/mCkmbxdMsMTjBc3Bm/solutions
28.714286
77
0.718905
dc9cf14d3bafd94c1a7db1cea9146e94b8b3873a
1,574
py
Python
sms.py
varunotelli/Gujarat
c5e757026feba3938162eeda21ebf6ff96ff3468
[ "MIT" ]
2
2019-08-21T15:35:00.000Z
2021-04-30T14:58:04.000Z
sms.py
varunotelli/E-Seva
c5e757026feba3938162eeda21ebf6ff96ff3468
[ "MIT" ]
10
2018-03-25T20:32:05.000Z
2018-04-03T06:33:03.000Z
sms.py
varunotelli/E-Seva
c5e757026feba3938162eeda21ebf6ff96ff3468
[ "MIT" ]
null
null
null
import urllib.request, urllib.error, urllib.parse import http.cookiejar from getpass import getpass import sys #send("9791011603","hello") #send("8870173154","piyu")
30.269231
145
0.695044
dc9cf905743fa7cb5e599cce0ef947cd502fe5fb
1,169
py
Python
tests/python-playground/tv_1d_0.py
marcocannici/scs
799a4f7daed4294cd98c73df71676195e6c63de4
[ "MIT" ]
25
2017-06-30T15:31:33.000Z
2021-04-21T20:12:18.000Z
tests/python-playground/tv_1d_0.py
marcocannici/scs
799a4f7daed4294cd98c73df71676195e6c63de4
[ "MIT" ]
34
2017-06-07T01:18:17.000Z
2021-04-24T09:44:00.000Z
tests/python-playground/tv_1d_0.py
marcocannici/scs
799a4f7daed4294cd98c73df71676195e6c63de4
[ "MIT" ]
13
2017-06-07T01:16:09.000Z
2021-06-07T09:12:56.000Z
# This is automatically-generated code. # Uses the jinja2 library for templating. import cvxpy as cp import numpy as np import scipy as sp # setup problemID = "tv_1d_0" prob = None opt_val = None # Variable declarations np.random.seed(0) n = 100000 k = max(int(np.sqrt(n)/2), 1) x0 = np.ones((n,1)) idxs = np...
17.712121
69
0.640719
dc9cfa85420ac5293533d515f08d8e42f1aa97a1
1,071
py
Python
src/pipeline.py
iyunbo/logz
e529188be8a232827dddf203b0c61bf32730ecff
[ "MIT" ]
null
null
null
src/pipeline.py
iyunbo/logz
e529188be8a232827dddf203b0c61bf32730ecff
[ "MIT" ]
3
2020-03-01T17:43:08.000Z
2020-03-01T17:50:43.000Z
src/pipeline.py
iyunbo/logx
e529188be8a232827dddf203b0c61bf32730ecff
[ "MIT" ]
null
null
null
"""Construction of the master pipeline. """ from typing import Dict from kedro.pipeline import Pipeline from .data import pipeline as de from .models import pipeline as ds ########################################################################### # Here you can find an example pipeline, made of two modular pipeli...
27.461538
75
0.616246
dc9dbecdd39757aea1bc7e53ba11298fa99e950a
9,946
py
Python
aiochclient/types.py
maxifom/aiochclient
817de89f80da8bbda0a92b33a2471145afd141f1
[ "MIT" ]
null
null
null
aiochclient/types.py
maxifom/aiochclient
817de89f80da8bbda0a92b33a2471145afd141f1
[ "MIT" ]
null
null
null
aiochclient/types.py
maxifom/aiochclient
817de89f80da8bbda0a92b33a2471145afd141f1
[ "MIT" ]
null
null
null
import datetime as dt import re from abc import ABC, abstractmethod from decimal import Decimal from typing import Any, Callable, Generator, Optional from uuid import UUID from aiochclient.exceptions import ChClientError try: import ciso8601 datetime_parse = date_parse = ciso8601.parse_datetime ...
26.808625
89
0.547456
dc9ef3b1807ee1a51f159e4adbc4940a7c7a3b65
866
py
Python
pets/meupet/migrations/0016_auto_20160105_2019.py
diogum/pets
cd41dc1046718a0a73fb003828bc2da06bba7003
[ "MIT" ]
57
2018-01-05T02:50:37.000Z
2021-07-15T15:30:03.000Z
pets/meupet/migrations/0016_auto_20160105_2019.py
diogum/pets
cd41dc1046718a0a73fb003828bc2da06bba7003
[ "MIT" ]
55
2018-01-30T12:24:16.000Z
2021-10-01T16:52:17.000Z
pets/meupet/migrations/0016_auto_20160105_2019.py
diogum/pets
cd41dc1046718a0a73fb003828bc2da06bba7003
[ "MIT" ]
34
2018-01-20T21:27:24.000Z
2022-01-27T09:53:01.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc
27.935484
103
0.58545
dc9f09cf9ee2ea2c23e057814412e9cccf50d425
5,389
py
Python
space_api/db/update.py
AliabbasMerchant/space-api-python
e5f047d567540d503be7fe72e82f2b198e48b5f9
[ "Apache-2.0" ]
8
2019-04-02T06:06:45.000Z
2019-11-12T16:53:26.000Z
space_api/db/update.py
SaiprasadDuduka/space-api-python
278ad650fa5579089a7ff465dbe74ec5469940ae
[ "Apache-2.0" ]
28
2019-03-25T11:35:07.000Z
2020-05-11T05:10:00.000Z
space_api/db/update.py
SaiprasadDuduka/space-api-python
278ad650fa5579089a7ff465dbe74ec5469940ae
[ "Apache-2.0" ]
4
2019-03-22T17:09:22.000Z
2019-10-24T17:10:43.000Z
from space_api.utils import generate_find, AND from space_api.transport import Transport from space_api.response import Response __all__ = ['Update']
33.265432
111
0.566339
dca02eed4f9a0e7e4aab52531c96d239e6236b81
432
py
Python
OpenCV/Histogramas/h6.py
matewszz/Python
18b7fc96d3ed294d2002ed484941a0ee8cf18108
[ "MIT" ]
null
null
null
OpenCV/Histogramas/h6.py
matewszz/Python
18b7fc96d3ed294d2002ed484941a0ee8cf18108
[ "MIT" ]
null
null
null
OpenCV/Histogramas/h6.py
matewszz/Python
18b7fc96d3ed294d2002ed484941a0ee8cf18108
[ "MIT" ]
null
null
null
import dlib import cv2 image = cv2.imread("../testeOpenCV.jpg") gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) hogFaceDetector = dlib.get_frontal_face_detector() faces = hogFaceDetector(gray, 1) for (i, rect) in enumerate(faces): x = rect.left() y = rect.top() w = rect.right() - x h = rect.bottom() - ...
25.411765
64
0.638889
dca034f5cc1099ca680a5daf8638e61d4dde6b17
305
py
Python
preacher/compilation/yaml/tag/argument.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
3
2019-08-01T03:14:49.000Z
2020-01-31T08:55:22.000Z
preacher/compilation/yaml/tag/argument.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
353
2019-04-14T14:53:28.000Z
2022-03-11T03:26:08.000Z
preacher/compilation/yaml/tag/argument.py
ymoch/preacher
ae68170d14c72791884e91b20054bd13a79b52d0
[ "MIT" ]
1
2020-08-01T06:23:08.000Z
2020-08-01T06:23:08.000Z
from yaml import Node from yamlen import Tag, TagContext from preacher.compilation.argument import Argument
27.727273
72
0.740984
dca244a29e158a60507829eefc5aceb50205134c
1,341
py
Python
Drivers/PS-228xS/PS228xS_Python_Sockets_Driver/PS228xS_Example.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
31
2019-04-11T14:25:39.000Z
2022-03-18T15:09:33.000Z
Drivers/PS-228xS/PS228xS_Python_Sockets_Driver/PS228xS_Example.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
27
2019-04-10T20:21:52.000Z
2021-12-09T01:59:32.000Z
Drivers/PS-228xS/PS228xS_Python_Sockets_Driver/PS228xS_Example.py
398786172/keithley
f78c5220841775a45ae60645c774e8b443b02ec3
[ "BSD-Source-Code" ]
30
2019-06-08T09:38:20.000Z
2022-03-18T15:10:37.000Z
#!/usr/bin/python import socket import struct import math import time import Keithley_PS228xS_Sockets_Driver as ps echoCmd = 1 #===== MAIN PROGRAM STARTS HERE ===== ipAddress1 = "134.63.78.214" ipAddress2 = "134.63.74.152" ipAddress3 = "134.63.78.214" port = 5025 timeout = 20.0 t1 = time.time() #ps.instrConnect(s...
22.35
80
0.756898
dca297c71e432213d85dd239f69fc7b854c190ae
736
py
Python
saveimage.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
1
2019-10-24T14:29:00.000Z
2019-10-24T14:29:00.000Z
saveimage.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
7
2017-11-28T23:58:40.000Z
2022-03-11T23:12:12.000Z
saveimage.py
NaviRice/HeadTracking
8227cc247425ecacd3e789dbbac11d3e5103d3e2
[ "MIT" ]
null
null
null
import OpenEXR from navirice_get_image import KinectClient from navirice_helpers import navirice_image_to_np DEFAULT_HOST= 'navirice' DEFAULT_PORT=29000 kin = KinectClient(DEFAULT_HOST, DEFAULT_PORT) kin.navirice_capture_settings(rgb=False, ir=True, depth=True) last_count=0 img_set, last_count = kin.navirice_get_...
22.30303
65
0.767663
dca357411b72a921aa801ee5af30b257b6b3d771
2,386
py
Python
nonebot_plugin_arcaea/crud/crud_user.py
iyume/nonebot-plugin-arcaea
cd2110b11ae41707396a0db21f228474cc3e35b4
[ "MIT" ]
35
2021-02-08T09:55:51.000Z
2022-03-19T08:22:07.000Z
nonebot_plugin_arcaea/crud/crud_user.py
iyume/nonebot-plugin-arcaea
cd2110b11ae41707396a0db21f228474cc3e35b4
[ "MIT" ]
10
2021-02-22T04:15:58.000Z
2022-03-28T02:55:02.000Z
nonebot_plugin_arcaea/crud/crud_user.py
iyume/nonebot-plugin-arcaea
cd2110b11ae41707396a0db21f228474cc3e35b4
[ "MIT" ]
1
2022-01-18T03:57:07.000Z
2022-01-18T03:57:07.000Z
from typing import Optional from datetime import datetime from sqlite3.dbapi2 import Cursor from ..config import config from .. import schema user = CRUDUser()
25.655914
80
0.50461
dca3d2cab2990fa6bda7c9d0fc5f20898f5d6657
2,424
py
Python
baseline/eval_sent.py
parallelcrawl/DataCollection
4308473e6b53779159a15c1416bff3f2291dd1f2
[ "Apache-2.0" ]
8
2018-02-08T16:03:00.000Z
2022-01-19T11:41:38.000Z
baseline/eval_sent.py
christianbuck/CorpusMining
f9248c3528a415a1e5af2c5a54a60c16cd79ff1d
[ "Apache-2.0" ]
3
2017-08-08T10:53:29.000Z
2017-08-08T10:58:51.000Z
baseline/eval_sent.py
parallelcrawl/DataCollection
4308473e6b53779159a15c1416bff3f2291dd1f2
[ "Apache-2.0" ]
4
2018-06-09T21:53:09.000Z
2022-01-19T11:41:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys from strip_language_from_uri import LanguageStripper import urlparse correct, wrong = [], [] if __name__ == "__main__": import argparse parser = argparse.ArgumentParser() parser.add_argument( 'infile', type=argparse.FileType('r'), default=...
36.727273
85
0.634076
dca3fb284135452a106049556780c22fb651e4d7
4,276
py
Python
dz/dz-05/src/integrators/implicit.py
Yalfoosh/AIPR
cd89e562682e7f868d56db2414a92c2d14d8ad8d
[ "Apache-2.0" ]
null
null
null
dz/dz-05/src/integrators/implicit.py
Yalfoosh/AIPR
cd89e562682e7f868d56db2414a92c2d14d8ad8d
[ "Apache-2.0" ]
null
null
null
dz/dz-05/src/integrators/implicit.py
Yalfoosh/AIPR
cd89e562682e7f868d56db2414a92c2d14d8ad8d
[ "Apache-2.0" ]
null
null
null
import copy from typing import Callable import numpy as np from .explicit import ExplicitIntegrator from .integrator import Integrator def generate_correct_function( self, *args, **kwargs ) -> Callable[[np.ndarray, np.ndarray, float], np.ndarray]: a, b = self.__check_generate_correct_functi...
31.910448
84
0.606174
dca4f33a579f46818e1b7025c4102006baa718f4
3,714
py
Python
result_service_gui/services/result_adapter.py
abdulfahad66/result-service-gui
214342dd6d00f1173bfe90f8429c7d6c9947783b
[ "Apache-2.0" ]
null
null
null
result_service_gui/services/result_adapter.py
abdulfahad66/result-service-gui
214342dd6d00f1173bfe90f8429c7d6c9947783b
[ "Apache-2.0" ]
null
null
null
result_service_gui/services/result_adapter.py
abdulfahad66/result-service-gui
214342dd6d00f1173bfe90f8429c7d6c9947783b
[ "Apache-2.0" ]
null
null
null
"""Module for results adapter.""" import logging import os from typing import List from aiohttp import ClientSession from aiohttp import hdrs from aiohttp import web from multidict import MultiDict RACE_HOST_SERVER = os.getenv("RACE_HOST_SERVER", "localhost") RACE_HOST_PORT = os.getenv("RACE_HOST_PORT", "8088") RACE_...
36.772277
83
0.407377
dca5acdd95599a8793bd8263beb9c92d163998fa
786
py
Python
todo/search.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
1
2021-06-07T02:14:13.000Z
2021-06-07T02:14:13.000Z
todo/search.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
9
2021-08-14T07:53:47.000Z
2022-03-18T19:07:22.000Z
todo/search.py
ruslan-ok/ServerApps
541aa12f1933054a12f590ce78544178be374669
[ "MIT" ]
null
null
null
from django.db.models import Q from hier.search import SearchResult from hier.grp_lst import search as hier_search from hier.params import get_search_mode from .models import app_name, Task
35.727273
95
0.709924
dca66a7ca7f299b52d7325456eda52e50d368e26
4,217
py
Python
usrobj_src/pyembroideryGH_AddStitchblock.py
fstwn/pyembroideryGH
5153e7e5692f9bd158276baecff5e3e53a9363f4
[ "MIT" ]
4
2020-08-15T13:24:14.000Z
2021-11-16T12:34:29.000Z
usrobj_src/pyembroideryGH_AddStitchblock.py
fstwn/pyembroideryGH
5153e7e5692f9bd158276baecff5e3e53a9363f4
[ "MIT" ]
1
2020-08-12T18:45:12.000Z
2021-11-29T10:32:38.000Z
usrobj_src/pyembroideryGH_AddStitchblock.py
fstwn/pyembroideryGH
5153e7e5692f9bd158276baecff5e3e53a9363f4
[ "MIT" ]
null
null
null
""" Adds one or many StitchBlocks to an embroidery pattern supplied as pyembroidery.EmbPattern instance Inputs: Pattern: The pattern to be modified as pyembroidery.EmbPattern instance. {item, EmbPattern} StitchBlock: The stitchblock(s) to add to the pattern. ...
34.284553
81
0.611572
dca7a1a09a3b992422e57d631b27fdd4b7429114
3,920
py
Python
api.py
brannonvann/neato-driver-python
84d0ff4c1ff89c12b340712890e901e7c8b77526
[ "BSD-3-Clause" ]
1
2021-10-02T21:47:00.000Z
2021-10-02T21:47:00.000Z
api.py
brannonvann/neato-driver-python
84d0ff4c1ff89c12b340712890e901e7c8b77526
[ "BSD-3-Clause" ]
null
null
null
api.py
brannonvann/neato-driver-python
84d0ff4c1ff89c12b340712890e901e7c8b77526
[ "BSD-3-Clause" ]
null
null
null
# Script used to read all help text from Neato. # Simply connect Neato, update your port # name ('/dev/neato') and run this script. # All help markdown is written to a file in the # same directory called neato_help.md # Author: Brannon Vann brannon.vann@gmail.com # License: MIT # Run this script: python api.py # Not...
34.385965
292
0.640051
dca7b5998d3f52978888cf82288345897a3e20b1
2,162
py
Python
UseImportJumpCommand.py
tinwatchman/Sublime-UseImport
a08770c4d1a32be947033a05e640afdf69fd95f1
[ "MIT" ]
null
null
null
UseImportJumpCommand.py
tinwatchman/Sublime-UseImport
a08770c4d1a32be947033a05e640afdf69fd95f1
[ "MIT" ]
null
null
null
UseImportJumpCommand.py
tinwatchman/Sublime-UseImport
a08770c4d1a32be947033a05e640afdf69fd95f1
[ "MIT" ]
null
null
null
import sublime, sublime_plugin import json import useutil
34.31746
84
0.592044
dca8bfe06cd9c25c611a5f5c53620c138ed89415
221
py
Python
ExerciciosPython/67- Tabuada.py
lucadomingues/Python
b129c03cb95dac2a0baf59461eef7667373dc52f
[ "MIT" ]
null
null
null
ExerciciosPython/67- Tabuada.py
lucadomingues/Python
b129c03cb95dac2a0baf59461eef7667373dc52f
[ "MIT" ]
null
null
null
ExerciciosPython/67- Tabuada.py
lucadomingues/Python
b129c03cb95dac2a0baf59461eef7667373dc52f
[ "MIT" ]
null
null
null
while True: print('\n--- MULTIPLICATION TABLE ---') num = int(input('Type a number integer: ')) if num < 0: break for c in range(1, 11): print(f'{c} X {num} = {c*num}') print('END PROGRAM')
27.625
47
0.533937
dca8e81c52f411e5fd1e8a901f0fe89f256a3a88
423
py
Python
154/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
154/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
154/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
# 154. II # Offer 11. # # 20200722 # huao # # O(n) # listlist from typing import List sol = Solution() print(sol.findMin([1,3,3]))
18.391304
46
0.640662
dca914a8d792e00fc88ce27a1110cee5515a0008
1,202
py
Python
lume_model/tests/keras/test_layers.py
slaclab/lume-model
7602a71b23b53488321c62eb7064728c99023bac
[ "BSD-3-Clause-LBNL" ]
2
2020-08-21T05:14:38.000Z
2022-03-02T17:45:07.000Z
lume_model/tests/keras/test_layers.py
jacquelinegarrahan/lume-model
d66e8031a7ff378626cf35d50e82479ce41fddd5
[ "BSD-3-Clause-LBNL" ]
3
2020-11-06T07:08:40.000Z
2022-03-03T19:36:23.000Z
lume_model/tests/keras/test_layers.py
jacquelinegarrahan/lume-model
d66e8031a7ff378626cf35d50e82479ce41fddd5
[ "BSD-3-Clause-LBNL" ]
4
2020-06-12T21:38:29.000Z
2021-07-21T01:41:09.000Z
import pytest import sys # test value and failed initialization with characters # test value and failed initialization with characters # test value and failed initialization with characters
30.820513
87
0.663894
dca992f619b9c214f0d6426b004d8c1ba8badeba
17,548
py
Python
pyswrve/export_api.py
badanin-dmitry-playrix/pyswrve
8eb005ba6aad0293af7b2615d37ff319a2d372f0
[ "MIT" ]
4
2016-08-03T13:00:48.000Z
2019-06-01T09:16:15.000Z
pyswrve/export_api.py
badanin-dmitry-playrix/pyswrve
8eb005ba6aad0293af7b2615d37ff319a2d372f0
[ "MIT" ]
2
2016-08-02T19:39:09.000Z
2018-01-10T11:35:03.000Z
pyswrve/export_api.py
badanin-dmitry-playrix/pyswrve
8eb005ba6aad0293af7b2615d37ff319a2d372f0
[ "MIT" ]
2
2016-08-02T19:32:14.000Z
2017-02-08T08:55:10.000Z
# -*- coding: utf-8 -*- from urllib.parse import urljoin from datetime import datetime, timedelta from .api import SwrveApi
39.169643
79
0.557727
dcaafd00e0a89f91725c38ea88b87276b0daa613
605
py
Python
makerHello/OpenCV-Face-detection/database/ImportLog.py
lingdantiancai/face-FD-FR
48f1acafb4a4fc767c8d389a28e4b4e73246a7ea
[ "MIT" ]
null
null
null
makerHello/OpenCV-Face-detection/database/ImportLog.py
lingdantiancai/face-FD-FR
48f1acafb4a4fc767c8d389a28e4b4e73246a7ea
[ "MIT" ]
null
null
null
makerHello/OpenCV-Face-detection/database/ImportLog.py
lingdantiancai/face-FD-FR
48f1acafb4a4fc767c8d389a28e4b4e73246a7ea
[ "MIT" ]
null
null
null
#txt import sqlite3 #sqlite3 cx = sqlite3.connect('FaceRes.db') # cu = cx.cursor() # #cu.execute('create table if not exists train4 (id integer primary key,name text)') # fr = open('log.txt') #txt for line in fr.readlines(): #VisitRecord line_list = line.split(" ") time = line_list[0]+" "+line...
35.588235
89
0.694215
dcabba91c3341fdf7c41e1e8c9b5445c26d6bc30
2,801
py
Python
plot_gen.py
XanaduAI/kerr-squeezing
633db9d39f0943d8a8b7431c8d87a9d1147ba32d
[ "Apache-2.0" ]
1
2021-01-13T02:02:43.000Z
2021-01-13T02:02:43.000Z
plot_gen.py
XanaduAI/kerr-squeezing
633db9d39f0943d8a8b7431c8d87a9d1147ba32d
[ "Apache-2.0" ]
null
null
null
plot_gen.py
XanaduAI/kerr-squeezing
633db9d39f0943d8a8b7431c8d87a9d1147ba32d
[ "Apache-2.0" ]
5
2020-02-27T00:58:05.000Z
2022-02-10T15:10:19.000Z
import numpy as np import matplotlib.pyplot as plt import glob from strawberryfields.decompositions import takagi def jsa_from_m(m): """Given a phase sensitive moment m returns the joint spectral amplitude associated with it. Args: m (array): phase sentive moment Returns: (array): joint...
27.194175
97
0.602642
dcac2f5e5657abf2e5b9b2720e085b03ae852841
361
py
Python
src/2/2997.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
11
2020-09-20T15:17:11.000Z
2022-03-17T12:43:33.000Z
src/2/2997.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
3
2021-10-30T07:51:36.000Z
2022-03-09T05:19:23.000Z
src/2/2997.py
youngdaLee/Baekjoon
7d858d557dbbde6603fe4e8af2891c2b0e1940c0
[ "MIT" ]
13
2021-01-21T03:19:08.000Z
2022-03-28T10:44:58.000Z
""" 2997. : xCrypt0r : Python 3 : 29,380 KB : 68 ms : 2020 9 26 """ if __name__ == '__main__': main()
15.695652
43
0.523546
dcadba06d3d1dd54ece65a8004a3986299c7345c
679
py
Python
python/convertSVGs.py
JustgeekDE/imdb-visualizations
ebadb8b06b956f0a07a344370457926ad496434e
[ "Unlicense" ]
null
null
null
python/convertSVGs.py
JustgeekDE/imdb-visualizations
ebadb8b06b956f0a07a344370457926ad496434e
[ "Unlicense" ]
null
null
null
python/convertSVGs.py
JustgeekDE/imdb-visualizations
ebadb8b06b956f0a07a344370457926ad496434e
[ "Unlicense" ]
null
null
null
''' Created on 10.08.2014 @author: Philip Peter <philip.peter@justgeek.de> As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return Philip Peter ''' import os if __name__ == '__main__': pass inpu...
23.413793
122
0.648012
dcae5cad19658a7b02f9f861817e9967cf77531c
4,127
py
Python
game/management/commands/player-video.py
atadams/bbstuff
79a40425e140034e4d22c485a8427b1d74a9f4cc
[ "MIT" ]
null
null
null
game/management/commands/player-video.py
atadams/bbstuff
79a40425e140034e4d22c485a8427b1d74a9f4cc
[ "MIT" ]
null
null
null
game/management/commands/player-video.py
atadams/bbstuff
79a40425e140034e4d22c485a8427b1d74a9f4cc
[ "MIT" ]
null
null
null
from decimal import Decimal from pathlib import Path import requests from django.core.management import BaseCommand from django.db.models import F from django.db.models.aggregates import Max, Min from moviepy.video.VideoClip import ColorClip, TextClip from moviepy.video.compositing.CompositeVideoClip import CompositeV...
37.18018
135
0.590502
dcaf65a98d3f441b5263eb9d163c8eb4c1855439
9,097
py
Python
nlabel/importers/server.py
poke1024/nlabel
359972d2f71ba7ed2ee097fffcdc750e225d3784
[ "MIT" ]
1
2022-02-03T11:28:24.000Z
2022-02-03T11:28:24.000Z
nlabel/importers/server.py
poke1024/nlabel
359972d2f71ba7ed2ee097fffcdc750e225d3784
[ "MIT" ]
null
null
null
nlabel/importers/server.py
poke1024/nlabel
359972d2f71ba7ed2ee097fffcdc750e225d3784
[ "MIT" ]
null
null
null
from wsgiref.simple_server import make_server from nlabel.io.carenero.schema import create_session_factory, \ Text, ResultStatus, Result, Tagger, Vector, Vectors from nlabel.io.carenero.common import ExternalKey from nlabel.io.common import ArchiveInfo, text_hash_code from nlabel.io.carenero.common import json_to_...
32.489286
103
0.559415
dcaf9832cd110af6ffc1b7cb72b87b06926220e1
993
py
Python
tests/integration/test_eden_unmount.py
tiguchi/watchman
5bcece7661e33bec33faf60437805df535e2f8af
[ "Apache-2.0" ]
2
2021-02-06T00:24:06.000Z
2021-08-12T02:47:30.000Z
tests/integration/test_eden_unmount.py
tiguchi/watchman
5bcece7661e33bec33faf60437805df535e2f8af
[ "Apache-2.0" ]
9
2021-04-09T18:17:13.000Z
2022-02-26T10:55:07.000Z
tests/integration/test_eden_unmount.py
Varulv1997/watchman
cca53233f252cf851fc49ac3b6c48e3eaf81be26
[ "Apache-2.0" ]
2
2021-04-07T08:09:28.000Z
2021-06-06T12:26:22.000Z
# vim:ts=4:sw=4:et: # Copyright 2012-present Facebook, Inc. # Licensed under the Apache License, Version 2.0 # no unicode literals from __future__ import absolute_import, division, print_function import os import pywatchman import WatchmanEdenTestCase
30.090909
85
0.679758
dcb2185b1d562b118d9365afacb1c2b0f388cace
144
py
Python
python/testData/resolve/SuperPy3k.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/resolve/SuperPy3k.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
173
2018-07-05T13:59:39.000Z
2018-08-09T01:12:03.000Z
python/testData/resolve/SuperPy3k.py
truthiswill/intellij-community
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
[ "Apache-2.0" ]
2
2020-03-15T08:57:37.000Z
2020-04-07T04:48:14.000Z
# <ref> B().foo()
13.090909
22
0.430556
dcb289353c9e5c52f181bfcc7061e81910138776
13,742
py
Python
python/displaywidget.py
karlssonper/gpuip
ce9a62ea9ced3f167a2477bf58944281dac6d45b
[ "MIT" ]
10
2015-10-24T01:06:06.000Z
2019-12-27T10:48:36.000Z
python/displaywidget.py
karlssonper/gpuip
ce9a62ea9ced3f167a2477bf58944281dac6d45b
[ "MIT" ]
null
null
null
python/displaywidget.py
karlssonper/gpuip
ce9a62ea9ced3f167a2477bf58944281dac6d45b
[ "MIT" ]
3
2017-10-23T23:20:09.000Z
2020-07-14T13:07:26.000Z
from PySide import QtGui, QtOpenGL, QtCore from OpenGL import GL from OpenGL import GL from OpenGL.GL import shaders from OpenGL.arrays import vbo from OpenGL.GL.ARB import texture_rg from OpenGL.GL.ARB import half_float_vertex from ctypes import c_void_p import numpy import math vert_src = """#version 120 attribute v...
33.681373
80
0.575608
dcb2d7ea31ccb76c2c9e3aa749bbceb3bfb6beec
12,867
py
Python
fiftyone/utils/eval/coco.py
vinayya/fiftyone
cadb54ba38e0db59abb6f9fb7ee630a41a517bef
[ "Apache-2.0" ]
1
2020-08-26T20:41:10.000Z
2020-08-26T20:41:10.000Z
fiftyone/utils/eval/coco.py
vinayya/fiftyone
cadb54ba38e0db59abb6f9fb7ee630a41a517bef
[ "Apache-2.0" ]
null
null
null
fiftyone/utils/eval/coco.py
vinayya/fiftyone
cadb54ba38e0db59abb6f9fb7ee630a41a517bef
[ "Apache-2.0" ]
null
null
null
""" COCO-style detection evaluation using `pycocotools <https://github.com/cocodataset/cocoapi/tree/master/PythonAPI/pycocotools>`_. | Copyright 2017-2020, Voxel51, Inc. | `voxel51.com <https://voxel51.com/>`_ | """ # pragma pylint: disable=redefined-builtin # pragma pylint: disable=unused-wildcard-import # pragma pyl...
39.959627
137
0.53952
dcb32a1306f972cdb189ca03489b60c332bbdfc7
1,038
py
Python
python/NSTEPS.py
feliposz/spoj-solutions
8e51566d311dd953fac4a9058051c4c663b3bdca
[ "MIT" ]
null
null
null
python/NSTEPS.py
feliposz/spoj-solutions
8e51566d311dd953fac4a9058051c4c663b3bdca
[ "MIT" ]
null
null
null
python/NSTEPS.py
feliposz/spoj-solutions
8e51566d311dd953fac4a9058051c4c663b3bdca
[ "MIT" ]
null
null
null
if __name__ == '__main__': lines = int(input()) for i in range(lines): x, y = input().split() n = f(int(x), int(y)) if n == "": print("No Number") else: print(n) #plot(20, 20)
22.565217
49
0.423892
dcb3881e553a1a429ad11815f3af4731fd6525a0
5,692
py
Python
examples/add_annotation_links.py
Cytomine-ULiege/Cytomine-python-client
166f9c1ede99ce041cbcaa2feb9246b82bd7eaa4
[ "Apache-2.0" ]
8
2018-07-17T11:04:22.000Z
2021-11-15T02:46:15.000Z
examples/add_annotation_links.py
Cytomine-ULiege/Cytomine-python-client
166f9c1ede99ce041cbcaa2feb9246b82bd7eaa4
[ "Apache-2.0" ]
22
2018-04-30T11:46:46.000Z
2022-03-11T23:34:46.000Z
examples/add_annotation_links.py
Cytomine-ULiege/Cytomine-python-client
166f9c1ede99ce041cbcaa2feb9246b82bd7eaa4
[ "Apache-2.0" ]
6
2018-04-26T12:01:41.000Z
2021-11-24T10:24:22.000Z
# -*- coding: utf-8 -*- # * Copyright (c) 2009-2018. Authors: see NOTICE file. # * # * 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...
45.903226
113
0.673577
dcb97c38d946b815896e5f38420a778cdd1546ea
53,155
py
Python
monasca_api/tests/test_a_repository.py
zhangjianweibj/monasca-api
26133aefe413546f91aaa13c981fe93a69dfc2eb
[ "Apache-2.0" ]
50
2015-10-18T02:54:52.000Z
2021-12-05T07:54:08.000Z
monasca_api/tests/test_a_repository.py
zhangjianweibj/monasca-api
26133aefe413546f91aaa13c981fe93a69dfc2eb
[ "Apache-2.0" ]
13
2015-10-29T12:54:07.000Z
2021-09-02T06:17:42.000Z
monasca_api/tests/test_a_repository.py
zhangjianweibj/monasca-api
26133aefe413546f91aaa13c981fe93a69dfc2eb
[ "Apache-2.0" ]
81
2015-10-21T07:43:30.000Z
2022-01-07T03:35:05.000Z
# Copyright 2015 Cray # Copyright 2016 FUJITSU LIMITED # Copyright 2017 Hewlett Packard Enterprise Development LP # # 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...
46.545534
100
0.456834
dcbb7822ac5edb24535291bc298a197c89feab26
7,032
py
Python
uniflocpy/uTemperature/temp_cable_NS.py
Shabonasar/unifloc
1f12d6b4110a9ff0e10817560ad99d55c9133954
[ "MIT" ]
4
2019-02-05T20:02:44.000Z
2019-08-24T13:18:31.000Z
uniflocpy/uTemperature/temp_cable_NS.py
Shabonasar/unifloc
1f12d6b4110a9ff0e10817560ad99d55c9133954
[ "MIT" ]
32
2017-09-29T15:14:59.000Z
2019-12-02T07:17:22.000Z
uniflocpy/uTemperature/temp_cable_NS.py
Shabonasar/unifloc
1f12d6b4110a9ff0e10817560ad99d55c9133954
[ "MIT" ]
4
2020-05-31T16:14:17.000Z
2020-08-31T06:24:29.000Z
""" 51777-2001 . ( ) """ import math from scipy.optimize import fsolve # TODO , , # TODO # TODO
50.956522
143
0.665671
dcbbfc2a1126bf01e035f0cedab6dd794f1ffb72
48
py
Python
user_orders/models/__init__.py
Vitamal/shop
facf04da00b8b674f2d8024aca4dae272a0c3de8
[ "MIT" ]
null
null
null
user_orders/models/__init__.py
Vitamal/shop
facf04da00b8b674f2d8024aca4dae272a0c3de8
[ "MIT" ]
null
null
null
user_orders/models/__init__.py
Vitamal/shop
facf04da00b8b674f2d8024aca4dae272a0c3de8
[ "MIT" ]
null
null
null
from .order import Order from .user import User
16
24
0.791667
f4915d9213c03b46a6f7201a11146fd617cb2dbb
800
py
Python
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/_exception_handler.py
viananth/azure-cli
4d23492ed03e946cfc11bae23b29acb971fb137d
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/_exception_handler.py
viananth/azure-cli
4d23492ed03e946cfc11bae23b29acb971fb137d
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/_exception_handler.py
viananth/azure-cli
4d23492ed03e946cfc11bae23b29acb971fb137d
[ "MIT" ]
1
2017-12-28T04:51:44.000Z
2017-12-28T04:51:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
42.105263
94
0.56375
f491909954bbe3100557b534f4855e7a6f095870
8,035
py
Python
examples/EarthInterior/makeplot.py
alex-w/vplanet
e901ac08208f7fd5edb30677f32f36619eb8ca8c
[ "MIT" ]
null
null
null
examples/EarthInterior/makeplot.py
alex-w/vplanet
e901ac08208f7fd5edb30677f32f36619eb8ca8c
[ "MIT" ]
null
null
null
examples/EarthInterior/makeplot.py
alex-w/vplanet
e901ac08208f7fd5edb30677f32f36619eb8ca8c
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl import vplot import scipy.signal as sig #plt.rcParams["text.usetex"]=True #plt.rcParams["text.latex.unicode"]=True plt.rcParams.update({'font.size':16,'legend.fontsize':15}) import sys # Check correct number of arguments if (len(sys.argv) != ...
44.148352
421
0.705663
f4935401f20bb33cbe67a8c775b7c94f08f7eeec
417
py
Python
numcodecs/tests/test_compat.py
rabernat/numcodecs
568fc5ad286a91d6b96b7a35a0031eb5e4ee5e97
[ "MIT" ]
null
null
null
numcodecs/tests/test_compat.py
rabernat/numcodecs
568fc5ad286a91d6b96b7a35a0031eb5e4ee5e97
[ "MIT" ]
2
2018-10-20T02:13:53.000Z
2018-10-30T23:29:35.000Z
numcodecs/tests/test_compat.py
funkey/numcodecs
870610403baac803856cc43c302ec289cd00eea3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division import array import numpy as np from numcodecs.compat import buffer_tobytes
18.954545
64
0.63789
f495558b425c19c7f688ca7077b87a76ada1cbf2
92
py
Python
unittest/scripts/py_dev_api_examples/working_with_collections/Working_with_Existing_Collections.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
119
2016-04-14T14:16:22.000Z
2022-03-08T20:24:38.000Z
unittest/scripts/py_dev_api_examples/working_with_collections/Working_with_Existing_Collections.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
9
2017-04-26T20:48:42.000Z
2021-09-07T01:52:44.000Z
unittest/scripts/py_dev_api_examples/working_with_collections/Working_with_Existing_Collections.py
mueller/mysql-shell
29bafc5692bd536a12c4e41c54cb587375fe52cf
[ "Apache-2.0" ]
51
2016-07-20T05:06:48.000Z
2022-03-09T01:20:53.000Z
# Get a collection object for 'my_collection' myColl = db.get_collection('my_collection')
30.666667
46
0.771739
f4968e302d7b44803fe1b1bf20a1663988d063f3
2,051
py
Python
app/decorators/cacheable.py
matrufsc2/matrufsc2
d8a32c532281cc2a09a26444bd5b8497bc578b18
[ "RSA-MD" ]
4
2017-07-07T19:04:07.000Z
2018-07-04T18:03:49.000Z
app/decorators/cacheable.py
matrufsc2/matrufsc2
d8a32c532281cc2a09a26444bd5b8497bc578b18
[ "RSA-MD" ]
6
2015-02-27T03:21:02.000Z
2019-07-30T19:58:35.000Z
app/decorators/cacheable.py
matrufsc2/matrufsc2
d8a32c532281cc2a09a26444bd5b8497bc578b18
[ "RSA-MD" ]
null
null
null
from app.cache import get_from_cache, set_into_cache, delete_from_cache import logging as _logging import hashlib, json logging = _logging.getLogger("matrufsc2_decorators_cacheable") logging.setLevel(_logging.DEBUG) __author__ = 'fernando' CACHE_CACHEABLE_KEY = "cache/functions/%s/%s"
42.729167
115
0.586543
f4974747ea99b258966fdaf8250ba7738a96d370
8,929
py
Python
falkon/mmv_ops/keops.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
130
2020-06-18T08:30:30.000Z
2022-03-21T15:43:17.000Z
falkon/mmv_ops/keops.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
32
2020-06-26T09:24:45.000Z
2022-03-20T10:37:36.000Z
falkon/mmv_ops/keops.py
mohamad-amin/falkon
581c761b4a4cb7bf6a299613700db8414c419a52
[ "MIT" ]
17
2020-07-13T17:28:02.000Z
2022-02-15T19:55:40.000Z
import warnings from dataclasses import dataclass from typing import List, Optional import torch from falkon.utils.stream_utils import sync_current_stream from falkon.mmv_ops.utils import _get_gpu_info, create_output_mat, _start_wait_processes from falkon.options import FalkonOptions, BaseOptions from falkon.utils i...
34.342308
101
0.598051
f49c10df92a95cac9e385825872f6c84fbdad8d8
13,791
py
Python
ancilla/ancilla/foundation/node/api/node.py
frenzylabs/ancilla
3469272f17e1a5092d033cdc099f86f3052e744f
[ "Apache-2.0" ]
7
2020-03-31T19:52:59.000Z
2021-05-21T08:38:47.000Z
ancilla/ancilla/foundation/node/api/node.py
frenzylabs/ancilla
3469272f17e1a5092d033cdc099f86f3052e744f
[ "Apache-2.0" ]
15
2020-04-01T13:52:07.000Z
2020-04-01T13:52:11.000Z
ancilla/ancilla/foundation/node/api/node.py
frenzylabs/ancilla
3469272f17e1a5092d033cdc099f86f3052e744f
[ "Apache-2.0" ]
null
null
null
''' node.py ancilla Created by Kevin Musselman (kevin@frenzylabs.com) on 01/14/20 Copyright 2019 FrenzyLabs, LLC. ''' import time from .api import Api from ..events import Event from ...data.models import Service, Printer, Camera, ServiceAttachment, CameraRecording, Node from ..response import AncillaError, Ancil...
34.4775
152
0.629106
f49c627cef82dc9a970e9b68a4c299ff3e228e5d
727
py
Python
tensorflow_in_action/nlp/2_ptb_gen_idword.py
wdxtub/deep-learning-note
47b83a039b80d4757e0436d5cbd2fa3037de3904
[ "MIT" ]
37
2019-03-27T20:17:05.000Z
2022-02-02T23:20:31.000Z
tensorflow_in_action/nlp/2_ptb_gen_idword.py
wdxtub/deep-learning-note
47b83a039b80d4757e0436d5cbd2fa3037de3904
[ "MIT" ]
null
null
null
tensorflow_in_action/nlp/2_ptb_gen_idword.py
wdxtub/deep-learning-note
47b83a039b80d4757e0436d5cbd2fa3037de3904
[ "MIT" ]
14
2019-03-31T10:28:47.000Z
2022-03-28T07:25:40.000Z
import codecs import sys RAW_DATA = "../data/ptb/ptb.train.txt" VOCAB = "data/ptb.vocab" OUTPUT_DATA = "data/ptb.train" # with codecs.open(VOCAB, "r", "utf-8") as f_vocab: vocab = [w.strip() for w in f_vocab.readlines()] word_to_id = {k: v for (k, v) in zip(vocab, range(len(vocab)))} # <unk> fin = codecs.open...
29.08
74
0.65337
f49e24bc85091e60f6700fa12214c8674aef6354
661
py
Python
racoon/view/error/custom.py
onukura/Racoon
96c96f2a37b8d33b35ca368c085d90e7a7caf105
[ "MIT" ]
3
2020-05-21T12:11:43.000Z
2020-06-08T13:04:40.000Z
racoon/view/error/custom.py
onukura/Racoon
96c96f2a37b8d33b35ca368c085d90e7a7caf105
[ "MIT" ]
6
2020-05-14T11:52:16.000Z
2020-05-23T18:03:23.000Z
racoon/view/error/custom.py
onukura/Racoon
96c96f2a37b8d33b35ca368c085d90e7a7caf105
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, render_template bp_error = Blueprint("bp_error", __name__, url_prefix="/error") # Specific Error Handlers
24.481481
65
0.635401
f49e8ab07fb60d23483830ae470ad5c6dce2e53e
7,611
py
Python
modules/d_functions.py
william-stearns/E_ink_dashboard
1625b213baef336833497c4593157485cfffdad4
[ "MIT" ]
null
null
null
modules/d_functions.py
william-stearns/E_ink_dashboard
1625b213baef336833497c4593157485cfffdad4
[ "MIT" ]
null
null
null
modules/d_functions.py
william-stearns/E_ink_dashboard
1625b213baef336833497c4593157485cfffdad4
[ "MIT" ]
null
null
null
import time import datetime from waveshare_epd import epd7in5_V2 from PIL import Image, ImageDraw, ImageFont import calendar import random import os picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic') fontdir = os.path.join(os.path.dirname(os.path.dirname(os.path.rea...
34.912844
99
0.6036
f49f790d9571cf03ed43cb10b00ff30ef123ff75
961
py
Python
v2.5.7/toontown/racing/DistributedKartPadAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-01T15:46:43.000Z
2021-07-23T16:26:48.000Z
v2.5.7/toontown/racing/DistributedKartPadAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
1
2019-06-29T03:40:05.000Z
2021-06-13T01:15:16.000Z
v2.5.7/toontown/racing/DistributedKartPadAI.py
TTOFFLINE-LEAK/ttoffline
bb0e91704a755d34983e94288d50288e46b68380
[ "MIT" ]
4
2019-07-28T21:18:46.000Z
2021-02-25T06:37:25.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed.DistributedObjectAI import DistributedObjectAI
27.457143
80
0.679501
f4a045ca031ed0291bed7dc3d42ae24523969c0a
22,644
py
Python
main.py
leo0123456/Smart-camera
0c73b3b8b5cc0147e036c71f2f078cbd576cd399
[ "MIT" ]
9
2020-07-10T01:54:31.000Z
2021-11-22T16:37:17.000Z
main.py
leo0123456/Smart-camera
0c73b3b8b5cc0147e036c71f2f078cbd576cd399
[ "MIT" ]
2
2020-11-26T12:27:04.000Z
2021-11-22T16:38:42.000Z
main.py
leo0123456/Smart-camera
0c73b3b8b5cc0147e036c71f2f078cbd576cd399
[ "MIT" ]
2
2021-01-02T10:18:30.000Z
2021-05-25T10:53:22.000Z
from PyQt5 import Qt from PyQt5 import QtCore,QtWidgets,QtGui import sys import PyQt5 from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QFileDialog, QGraphicsRectItem, QGraphicsScene from PyQt5.QtGui import QPixmap, QImage from PyQt5.QtCore import QSize import cv2 import numpy as np from matplotlib import pypl...
35.326053
112
0.578829
f4a2d6d380e2e0e8ef71012f0474f13521d69e9d
1,551
py
Python
classes/Friend.py
brandonwarech/book-tracker-capstone
d2b66db94a9be6b1577e2d8eb4b5b9d8eb87b790
[ "Apache-2.0" ]
null
null
null
classes/Friend.py
brandonwarech/book-tracker-capstone
d2b66db94a9be6b1577e2d8eb4b5b9d8eb87b790
[ "Apache-2.0" ]
null
null
null
classes/Friend.py
brandonwarech/book-tracker-capstone
d2b66db94a9be6b1577e2d8eb4b5b9d8eb87b790
[ "Apache-2.0" ]
1
2019-06-25T07:01:58.000Z
2019-06-25T07:01:58.000Z
import logging import sys import classes.iDb as db # Set Logging Level logging.basicConfig(level=logging.INFO)
29.264151
113
0.523533
f4a7996845ec8bc3004f9b2f07ce077ddf8b18ec
214
py
Python
src/video_retrieval/FrameSaver.py
DoodleBobBuffPants/EyesInTheSky
1bd18fc40631b0046cbd029a48413f31a63afcca
[ "MIT" ]
null
null
null
src/video_retrieval/FrameSaver.py
DoodleBobBuffPants/EyesInTheSky
1bd18fc40631b0046cbd029a48413f31a63afcca
[ "MIT" ]
null
null
null
src/video_retrieval/FrameSaver.py
DoodleBobBuffPants/EyesInTheSky
1bd18fc40631b0046cbd029a48413f31a63afcca
[ "MIT" ]
null
null
null
# save frames asynchronously import cv2 as cv
21.4
66
0.649533
f4aadeae1ada83a420b6b77187f7404ea44db94a
1,529
py
Python
zhiwehu/post/urls.py
zhiwehu/zhiwehu
4d07fa14fc00d5544226326161a0efc2d1202329
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-05-15T17:40:21.000Z
2021-05-15T17:40:21.000Z
zhiwehu/post/urls.py
zhiwehu/zhiwehu
4d07fa14fc00d5544226326161a0efc2d1202329
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
zhiwehu/post/urls.py
zhiwehu/zhiwehu
4d07fa14fc00d5544226326161a0efc2d1202329
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from .views import PostListView, PostDetailView urlpatterns = patterns('', # URL pattern for the PostListView # noqa url( regex=r'^$', view=PostListVi...
35.55814
74
0.325049
f4ab03085872568dfa994166ab6e02b47cfe7be5
3,270
py
Python
iseq/_cli/hscan.py
EBI-Metagenomics/iseq
3c28fc92e5af05c91c6669d7f1a28d1ce857f3f1
[ "MIT" ]
null
null
null
iseq/_cli/hscan.py
EBI-Metagenomics/iseq
3c28fc92e5af05c91c6669d7f1a28d1ce857f3f1
[ "MIT" ]
null
null
null
iseq/_cli/hscan.py
EBI-Metagenomics/iseq
3c28fc92e5af05c91c6669d7f1a28d1ce857f3f1
[ "MIT" ]
null
null
null
import os import click from fasta_reader import read_fasta from hmmer_reader import open_hmmer from iseq.alphabet import alphabet_name from iseq.hmmer3 import create_profile from iseq.hmmer_model import HMMERModel from iseq.model import EntryDistr from .debug_writer import DebugWriter from .output_writer import Outp...
28.434783
84
0.635474
f4abb17f526e4601a14901c49f09e55bab004ea9
847
py
Python
commands/playbackjoystick.py
randbrown/robotpy_recordplayback
b36f794b141809578acd25975fb961bfe17c8285
[ "MIT" ]
null
null
null
commands/playbackjoystick.py
randbrown/robotpy_recordplayback
b36f794b141809578acd25975fb961bfe17c8285
[ "MIT" ]
null
null
null
commands/playbackjoystick.py
randbrown/robotpy_recordplayback
b36f794b141809578acd25975fb961bfe17c8285
[ "MIT" ]
null
null
null
''' Psuedo-joystick object for playback of recorded macros '''
31.37037
120
0.638725
f4ac16666c88abed3219913a05d2e76e0e7e0cac
2,323
py
Python
link_grib.py
martinremy/wps
8bddbdbb612a0e019ae110df481461d5d904053a
[ "MIT" ]
5
2019-09-21T03:08:01.000Z
2021-10-03T01:41:30.000Z
link_grib.py
martinremy/wps
8bddbdbb612a0e019ae110df481461d5d904053a
[ "MIT" ]
6
2019-07-07T20:49:18.000Z
2020-04-23T15:13:01.000Z
link_grib.py
WRF-CMake/WPS
69f5da12997d6685cb0640132c5ef398ba12c341
[ "MIT" ]
2
2020-04-21T12:54:24.000Z
2021-07-08T00:49:37.000Z
#!/usr/bin/env python # WRF-CMake (https://github.com/WRF-CMake/wps). # Copyright 2018 M. Riechert and D. Meyer. Licensed under the MIT License. import os import sys import shutil import glob import string import itertools import argparse if __name__ == '__main__': parser = argparse.ArgumentParser(description='A...
33.666667
111
0.660783
f4af472ea7697545e5951704f8ee5043fcc2bdef
95
py
Python
freight/__init__.py
buahaha/aa-freight
69eb85188988d7cfaffc7c485d22ddb442a4a2b3
[ "MIT" ]
null
null
null
freight/__init__.py
buahaha/aa-freight
69eb85188988d7cfaffc7c485d22ddb442a4a2b3
[ "MIT" ]
null
null
null
freight/__init__.py
buahaha/aa-freight
69eb85188988d7cfaffc7c485d22ddb442a4a2b3
[ "MIT" ]
null
null
null
default_app_config = "freight.apps.FreightConfig" __version__ = "1.5.1" __title__ = "Freight"
19
49
0.757895
f4af8027565466ae51ad5b3fe97e8b0e0503ff7d
307
py
Python
platform/hwconf_data/efr32bg1p/modules/WDOG/__init__.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
null
null
null
platform/hwconf_data/efr32bg1p/modules/WDOG/__init__.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T02:36:22.000Z
2020-08-25T02:36:22.000Z
platform/hwconf_data/efr32bg1p/modules/WDOG/__init__.py
lenloe1/v2.7
9ac9c4a7bb37987af382c80647f42d84db5f2e1d
[ "Zlib" ]
1
2020-08-25T01:56:04.000Z
2020-08-25T01:56:04.000Z
import efr32bg1p.halconfig.halconfig_types as halconfig_types import efr32bg1p.halconfig.halconfig_dependency as halconfig_dependency import efr32bg1p.PythonSnippet.ExporterModel as ExporterModel import efr32bg1p.PythonSnippet.RuntimeModel as RuntimeModel import efr32bg1p.PythonSnippet.Metadata as Metadata
61.4
71
0.905537
f4b2408f2df2d90a1f9ebc4e0578961026c80979
738
py
Python
dataart.py
heerdyes/tortoises
745479e75e2bce92c41b21c52205501ab2fc44ca
[ "Artistic-2.0" ]
null
null
null
dataart.py
heerdyes/tortoises
745479e75e2bce92c41b21c52205501ab2fc44ca
[ "Artistic-2.0" ]
null
null
null
dataart.py
heerdyes/tortoises
745479e75e2bce92c41b21c52205501ab2fc44ca
[ "Artistic-2.0" ]
null
null
null
import turtle # initialization t=turtle.Turtle() t.speed(0) t.up() t.bk(200) t.down() # ask for data file name fname=input('enter data file name: ') print('reading from file: '+fname) # create an empty list datalines datalines=[] # read lines from the data file into the list datalines with open(fname) as df: da...
18.923077
71
0.677507
f4b256384aba49c788282f89f33675aa04a6159a
460
py
Python
setup.py
ovod88/studentsdb
ade2cff0eea7a13644a0f708133901457352ff5c
[ "MIT" ]
null
null
null
setup.py
ovod88/studentsdb
ade2cff0eea7a13644a0f708133901457352ff5c
[ "MIT" ]
null
null
null
setup.py
ovod88/studentsdb
ade2cff0eea7a13644a0f708133901457352ff5c
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='django-studentsdb-app', version='1.0', author=u'Vova Khrystenko', author_email='ovod88@bigmir.net', packages=find_packages(), license='BSD licence, see LICENCE.txt', description='Students DB application', long_description=open('RE...
27.058824
47
0.676087