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
73f6ce3d54210104bab4673dd2d43b70ac1ba4fe
1,132
py
Python
tui.py
hv10/reverseengineering1819
caf9d9f3d5fc685c062378ebd1a92a8cdd4032e6
[ "MIT" ]
1
2019-12-01T18:22:20.000Z
2019-12-01T18:22:20.000Z
tui.py
hv10/reverseengineering1819
caf9d9f3d5fc685c062378ebd1a92a8cdd4032e6
[ "MIT" ]
null
null
null
tui.py
hv10/reverseengineering1819
caf9d9f3d5fc685c062378ebd1a92a8cdd4032e6
[ "MIT" ]
1
2019-03-14T09:52:16.000Z
2019-03-14T09:52:16.000Z
from asciimatics.widgets import Frame, ListBox, Layout, Divider, Text, \ Button, TextBox, Widget from asciimatics.screen import Screen from asciimatics.exceptions import ResizeScreenError, NextScene, StopApplication from extract import * class TUIView(Frame): def __init__(self, screen, model): ...
30.594595
81
0.591873
83c03ce326f6728c6bf83238d3e1a1f11f86c9c4
2,352
py
Python
KnowledgeQuizTool/MillionHeroes/test/hero.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
KnowledgeQuizTool/MillionHeroes/test/hero.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
KnowledgeQuizTool/MillionHeroes/test/hero.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
import urllib.request, sys,base64,json,os,time,string,re from PIL import Image from aip import AipOcr from aitext import Ai start = time.time() os.system("adb shell /system/bin/screencap -p /sdcard/screenshot.png") os.system("adb pull /sdcard/screenshot.png ./screenshot.png") ''' 汉王ocr 涨价涨价了。。 host = 'http://text.ali...
24.757895
127
0.64966
7927a17882ea704edf88db1ad7e8f29a9bc1d1da
486
py
Python
Python/Exercícios_Python/032_custo_da_viagem.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/032_custo_da_viagem.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/032_custo_da_viagem.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """032 - Custo da Viagem Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1tUFm0Ayi9Mu03SY5DFBonAlicHw2Ff74 """ viagem = int(input('Digite a distância da sua viagem em Km: ')) if viagem <= 200: custo = (viagem * 0.50) pri...
30.375
81
0.676955
b2023e833930c30f9c5991c8ba4797ad40edc800
14,909
py
Python
main.py
andigandhi/cooler_priester
456f239fe478510c2557afd57b87f37c752aeaeb
[ "MIT" ]
null
null
null
main.py
andigandhi/cooler_priester
456f239fe478510c2557afd57b87f37c752aeaeb
[ "MIT" ]
null
null
null
main.py
andigandhi/cooler_priester
456f239fe478510c2557afd57b87f37c752aeaeb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import random import asyncio import ssl import websockets from math import floor # ###### CONFIG ###### serverIP = "localhost" secure = False SSLchain = "/home/pi/ssl/fullchain.pem" SSLkey = "/home/pi/ssl/key.pem" # ###### ###### ###### farben = { 0: "Kreuz", ...
30.119192
120
0.528003
b788c6c7d027f2b58f9dac51104cff64a74f6dd7
588
py
Python
day18/turtle_nsides.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day18/turtle_nsides.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day18/turtle_nsides.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
from turtle import Screen, Turtle import random timmy = Turtle() timmy.shape("turtle") timmy.color("brown1", "brown4") #for _ in range(4): # for _ in range(10): # timmy.forward(7) # timmy.penup() # timmy.forward(7) # timmy.pendown() # timmy.right(90) sidesToDraw = 3 while sidesToDra...
18.375
69
0.62415
b7a7f05502c3f355b1dfaefd2fcdeecf5d981e0d
36,342
py
Python
generator/generator/control.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
29
2017-06-21T19:29:07.000Z
2022-02-17T12:26:24.000Z
generator/generator/control.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
34
2017-06-26T14:31:02.000Z
2022-02-03T16:40:41.000Z
generator/generator/control.py
pratik-ingle/asprilo
597854307d3e87e71942294b6cdf7cc10185f4a9
[ "MIT" ]
22
2017-06-29T11:08:42.000Z
2022-02-03T16:16:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """General Execution Control.""" import os import sys import math import argparse import logging import copy import glob import signal from collections import OrderedDict import yaml from pkg_resources import resource_filename from generator.generator import BasicGenerato...
62.229452
116
0.542155
12d565eac45dc821753c7f926e307f28352caf69
11,467
py
Python
backend/apps/accounts/views.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
backend/apps/accounts/views.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
backend/apps/accounts/views.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.contrib.auth import login, logout from django.shortcuts import redirect from django.views.generic import CreateView from django_tables2 import MultiTableMixin from django.views.generic.base import TemplateView from django.contrib.auth....
35.067278
126
0.723729
97e9d9155458a79e0ddd74cfd6e2e75fa461ac3f
151
py
Python
Licence 2/I33/TP 1/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 1/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 1/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def minimum(L): minimum = L[0] i = 1 while i < len(L): if L[i] < minimum: minimum = L[i] i += 1 return minimum print(minimum([3,2,5,7,2]))
13.727273
27
0.556291
3f5be8f0c48ca89380e141af49e77d14fe65db8b
7,464
py
Python
home-assistant/custom_components/car_wash/binary_sensor.py
Adamvg/SmartHouse
740b010260f6f6b38a19e2a75d431446abd54253
[ "MIT" ]
null
null
null
home-assistant/custom_components/car_wash/binary_sensor.py
Adamvg/SmartHouse
740b010260f6f6b38a19e2a75d431446abd54253
[ "MIT" ]
null
null
null
home-assistant/custom_components/car_wash/binary_sensor.py
Adamvg/SmartHouse
740b010260f6f6b38a19e2a75d431446abd54253
[ "MIT" ]
null
null
null
# # Copyright (c) 2019, Andrey "Limych" Khrolenok <andrey@khrolenok.ru> # Creative Commons BY-NC-SA 4.0 International Public License # (see LICENSE.md or https://creativecommons.org/licenses/by-nc-sa/4.0/) # """ The Car Wash binary sensor. For more details about this platform, please refer to the documentation at h...
35.207547
91
0.621517
58b93b3eee749709d82e63fb163984429106d152
2,838
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/cl/rut.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/cl/rut.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/cl/rut.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# rut.py - functions for handling Chile RUT/RUN numbers # coding: utf-8 # # Copyright (C) 2008-2011 Cédric Krier # Copyright (C) 2008-2011 B2CK # Copyright (C) 2015 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as ...
31.186813
77
0.686047
453387afa0cbafa6f7dd1be176aa4f3e1f816cb0
1,248
py
Python
nordapi/EdgeRouterX.py
joshRooz/NordApi
c0d34ed81a0014da5fb96a3409d1ccc0addcc01e
[ "MIT" ]
null
null
null
nordapi/EdgeRouterX.py
joshRooz/NordApi
c0d34ed81a0014da5fb96a3409d1ccc0addcc01e
[ "MIT" ]
null
null
null
nordapi/EdgeRouterX.py
joshRooz/NordApi
c0d34ed81a0014da5fb96a3409d1ccc0addcc01e
[ "MIT" ]
null
null
null
import OpenVpnUdp import sys import getopt import fileinput def main(argv): country = None try: opts, args = getopt.getopt(argv, "h:c:", ["country="]) except getopt.GetoptError: print('EdgeRouterX.py -c <country>') sys.exit(2) for opt, arg in opts: if opt == '-h': ...
28.363636
78
0.573718
e1b5c9716c47f83300c826b4b86c8ad2d4a85826
2,313
py
Python
Prototype/main prototype/test/TestScript_028.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
4
2019-12-03T16:13:09.000Z
2019-12-11T23:22:58.000Z
Prototype/main prototype/test/TestScript_028.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
65
2019-12-08T17:43:59.000Z
2020-08-14T15:26:21.000Z
Prototype/main prototype/test/TestScript_028.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
null
null
null
import unittest from TabData import TabData from LayerData import LayerData class TestScript_028(unittest.TestCase): """ Temperaturverlaufs-Berechnung 3 Schichten analog manuellem TestScript_016 """ def setUp(self): self.layer_1 = LayerData() self.layer_1.widthUnit = 0 self...
28.207317
69
0.588413
7fd5017a484ee8ad3e7f2e464dbf7f606689b857
2,697
py
Python
autojail/config/cpu.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/config/cpu.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/config/cpu.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
from typing import Optional from ..model.parameters import GenerateConfig, GenerateParameters, Partitions from .passes import BasePass class CPUAllocatorPass(BasePass): def __init__( self, set_params: Optional[GenerateConfig], gen_params: Optional[GenerateParameters], ): self....
33.296296
141
0.525028
3d1c55694cee77b3280fba4c2e6a26b6ef292ffa
2,941
py
Python
hoomd/extern/libgetar/setup.py
XT-Lee/asap
03c3e3616d51298fa42bd7696c84ecf3ff29089f
[ "BSD-3-Clause" ]
null
null
null
hoomd/extern/libgetar/setup.py
XT-Lee/asap
03c3e3616d51298fa42bd7696c84ecf3ff29089f
[ "BSD-3-Clause" ]
null
null
null
hoomd/extern/libgetar/setup.py
XT-Lee/asap
03c3e3616d51298fa42bd7696c84ecf3ff29089f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import os, subprocess, sys from distutils.command.build_ext import build_ext from setuptools import Extension, setup import numpy long_description = """ libgetar is a library to read and write GEneric Trajectory ARchives, a binary data format designed for efficient, extensible storage of traject...
31.287234
89
0.646379
1807933de607bb2ca4a5e578b2dc4ce2058f167d
1,762
py
Python
etl/analysis_publishing/utils.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/analysis_publishing/utils.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/analysis_publishing/utils.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import os import json import numpy as np from datetime import datetime import logging from pytz import timezone import sqlalchemy def get_db_engine(): host = os.environ['db_host'] port = os.environ['db_port'] db = os.environ['db_name'] user = os.environ['db_user'] pw ...
25.911765
95
0.678774
a1f20a611e4a45b20c13dbe3f47f7016eaaecd96
3,676
py
Python
TimeSeries/not_finished/nbeats/nbeats_ar.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
TimeSeries/not_finished/nbeats/nbeats_ar.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
TimeSeries/not_finished/nbeats/nbeats_ar.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
""" Predict next sequence element When predicting feed result back to get next prediction. Repeat """ # %% import numpy as np import pandas as pd from time import process_time, time from sklearn.preprocessing import StandardScaler import matplotlib.pyplot as plt import utilities import data # %load_ext autoreload # %...
22.832298
93
0.738303
a7ec1eabb54f90364ae068ad2e75dc6881b119f7
223
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_5_Set/81. symmetric difference of two sets.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_5_Set/81. symmetric difference of two sets.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_5_Set/81. symmetric difference of two sets.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function to find the elements which are in either of the sets, but not in their intersection. set1 = {1,2,3,4,5} set2 = {4,5,6,7,8} """ def sym_diff(set1,set2): return set1.symmetric_difference(set2)
20.272727
101
0.681614
b18bccd0e37a8351b4eea140aa719466a5faed26
2,435
py
Python
middleware/utils/mensa.py
fsr/infoscreen
60930853934b6e278eeca70202f24ea8c41cb356
[ "MIT" ]
6
2016-05-03T12:14:00.000Z
2021-07-06T16:34:21.000Z
middleware/utils/mensa.py
fsr/infoscreen
60930853934b6e278eeca70202f24ea8c41cb356
[ "MIT" ]
23
2015-01-09T15:50:51.000Z
2019-02-01T10:00:49.000Z
middleware/utils/mensa.py
fsr/infoscreen
60930853934b6e278eeca70202f24ea8c41cb356
[ "MIT" ]
5
2015-06-08T17:27:37.000Z
2017-06-09T15:07:33.000Z
import time import urllib.request from urllib.error import URLError import json MENSA_API_URL = 'http://openmensa.org/api/v2/canteens/{mensa}/days/{date}/meals' def getmeals(): """ Gets todays' meals from the OpenMensa API and parses them. :return: A list of dicts where every dict represents a single me...
28.313953
83
0.620123
772b654e1ec1a9a1e3adcf605ae1a9e270b96004
38,825
py
Python
NXcrypt/NXcrypt.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
NXcrypt/NXcrypt.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
NXcrypt/NXcrypt.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python2 #! coding : utf-8 """ Usage : # encrypt a python file sudo ./nxcrypt.py --file=file_to_encrypt.py sudo ./nxcrypt.py --file=file_to_encrypt.py --output=output_file.py # inject a malicious python file into a normal python file sudo ./nxcrypt --file=normal_file.py --backdoor-file=msf_listener.py -...
72.03154
1,882
0.758094
f311daaedf6efa986a65ec10a800fd4a629bcf04
2,016
py
Python
aramPredict/aramRecorder.py
beeedy/LOL
95ed815593a25e7e86d106ddf20e2ce054709ad1
[ "MIT" ]
null
null
null
aramPredict/aramRecorder.py
beeedy/LOL
95ed815593a25e7e86d106ddf20e2ce054709ad1
[ "MIT" ]
null
null
null
aramPredict/aramRecorder.py
beeedy/LOL
95ed815593a25e7e86d106ddf20e2ce054709ad1
[ "MIT" ]
null
null
null
import urllib2 import simplejson import time from BeautifulSoup import BeautifulSoup allGames = [] lastGame = [] def compare_games(game1, game2): # returns true if the two game are the same, otherwise false game1 = [name for teams in game1 for player in teams for name in player] game2 = [name for teams in game2 fo...
29.217391
166
0.681052
38fd2390d296d77b74fec356cb6857608fd2a609
1,836
py
Python
zencad/geom/curve2.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/geom/curve2.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/geom/curve2.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeFace from OCC.Core.Geom import Geom_CylindricalSurface from OCC.Core.Geom2d import Geom2d_Ellipse, Geom2d_Curve from OCC.Core.gp import gp_Pnt, gp_Vec, gp_Ax3, gp_Dir, gp_Ax2d, gp_Dir2d, gp_Pnt2d, gp_Trsf2d from OCC.Core.Geom2d import Geom2d_TrimmedCurve from OCC.C...
25.859155
94
0.695534
0c7339a47ac65c10c9a82b46076074f71c678aae
19,127
py
Python
src/tools/fx/movietools/movietools.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/fx/movietools/movietools.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/fx/movietools/movietools.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import Image, os, arial import sys ############################################################################### # Function: getTypeFromExtension # # Purpose: This function determines the file type from the file extension. # # Programmer: Brad Whitlock # Date: Wed Dec 18 11:33:22 PDT 2002 # ################...
35.684701
120
0.533121
0cbad55e979b8a62bc29178c0bdda917c6bf71de
230
py
Python
Python/EstruturaSequencial/Exercicios/Exercicio03.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/EstruturaSequencial/Exercicios/Exercicio03.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/EstruturaSequencial/Exercicios/Exercicio03.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
#Faça um Programa que peça dois números e imprima a soma. num1 = int(input('Digite um Numero: ')) num2 = int(input('Digite um Numero: ')) soma = num1 + num2 print('A soma dos dois valores digitado são {}'.format(soma,num1,num2))
32.857143
71
0.704348
f0063467330a12c8a123fdba272d627ca6604710
730
py
Python
backend/alembic/versions/35195e81a197_added_info_annotations.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/alembic/versions/35195e81a197_added_info_annotations.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/alembic/versions/35195e81a197_added_info_annotations.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
"""Added info annotations Revision ID: 35195e81a197 Revises: 1b342ac080d3 Create Date: 2021-12-16 22:16:10.685002 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "35195e81a197" down_revision = "1b342ac080d3" branch_labels = None depends_on = None def upgrade()...
23.548387
86
0.682192
cc2bbb05d2be0c35c8a106b6a8edfe966597ceba
553
py
Python
数据结构/NowCode/GetLeastNumbers_Solution.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/GetLeastNumbers_Solution.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/GetLeastNumbers_Solution.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
class Solution: def GetLeastNumbers_Solution(self, tinput, k): array = [] if k > len(tinput): return array for i in range(k): array.append(99) for key in tinput: for index in range(len(array)): if key < array[index]: ...
32.529412
68
0.497288
f0ec5b1b1a443afa796e4807129fbff7258cf898
654
py
Python
Reporte_app.py
IFFranciscoME/ReporteDash
1c85aaf922b6e2a42a836cc9beddb19b8d28eea7
[ "MIT" ]
null
null
null
Reporte_app.py
IFFranciscoME/ReporteDash
1c85aaf922b6e2a42a836cc9beddb19b8d28eea7
[ "MIT" ]
null
null
null
Reporte_app.py
IFFranciscoME/ReporteDash
1c85aaf922b6e2a42a836cc9beddb19b8d28eea7
[ "MIT" ]
null
null
null
import dash import dash_core_components as dcc import dash_html_components as html import pandas as pd from Reporte_funciones import * df = pd.read_csv( 'https://gist.githubusercontent.com/chriddyp/' 'c78bf172206ce24f77d6363a2d754b59/raw/' 'c353e8ef842413cae56ae3920b8fd78468aa4cb2/' 'usa-agricultural-...
26.16
69
0.764526
c5edcf614b1f2fff8476cad8607fea587ab27a16
2,699
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex12_count_substrings.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex12_count_substrings.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch03_recursion/solutions/ex12_count_substrings.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def count_substrings(input, value_to_find): # rekursiver Abbruch if len(input) < len(value_to_find): return 0 count = 0 remaining = "" # startet der Text mit der Suchzeichenfolge? if input.starts...
28.712766
70
0.640608
a8bf3f5ed57bde46e3f3ac052b21d2fdee056979
7,656
py
Python
docs/WebSite/scripts/addgallerypage.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
docs/WebSite/scripts/addgallerypage.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
docs/WebSite/scripts/addgallerypage.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Program: addgallery.py # # Purpose: This script adds a new page to the VisIt gallery. # # Programmer: Brad Whitlock # Date: Thu Apr 5 09:19:51 PDT 2007 # # Modifications: # Brad Whitlock, Fri Jul 31 10:56:00 PDT 2009 # I updated it to use a newer page style and I made it use SVN. # ###############################...
48.455696
398
0.607497
96cfb574cd3cdef630164e7e997861c8206f6980
715
py
Python
python/celery/usage/run_basic.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/celery/usage/run_basic.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/celery/usage/run_basic.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# run_basic.py from tasks import add task1 = add.delay(2, 5) task2 = add.apply_async(args=[4, 2]) task3 = add.apply_async(kwargs={"x": 3, "y": 6}) print(" 작업 ID 조회 ".center(50, "=")) print(f" task1: {task1.id}") print(f" task2: {task2.id}") print(f" task3: {task3.id}") print(" 작업 완료여부 조회 ".center(50, "=")) print(...
26.481481
51
0.597203
96db906378f41fb6f48b622d56c50dd4b094de44
7,088
py
Python
UnaHttp/unahttp.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
UnaHttp/unahttp.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
UnaHttp/unahttp.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python3 #-*- coding:utf-8 -*- #Author : Unam3dd try: import socket import zlib import sys except ImportError as ierror: print("[-] Error import module : %s\n",ierror) class HttpParseResponse: raw_headers = None text_headers = None content = None text = None status_line ...
32.072398
113
0.54557
8c7ee0bf919b0ac79b1e59f40f68e744ef134dd5
1,471
py
Python
src/test/tests/unit/test_value_simple.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/unit/test_value_simple.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/unit/test_value_simple.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: test_value_simple.py # # Tests: VisIt Test Suite Test Value tests # # Defect ID: none # # Programmer: Mark C. Miller, Sun Jan 10 10:24:59 PST 2021 # # --------------------------------------------...
28.843137
78
0.666893
8cd16d2dc21846542a2a1ccb8d17188b4fbadaf0
434
py
Python
note/Sington.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
2
2018-06-19T08:46:10.000Z
2018-11-05T02:15:34.000Z
note/Sington.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
null
null
null
note/Sington.py
Jeson1g/Dawson
b65f2347110cf56d13e9fcf8f08a3b38af53af77
[ "MIT" ]
null
null
null
class Singleclass(object): """单例模式""" def __init__(self,num): self.num = num def __new__(cls, *args, **kwargs): if not hasattr(cls,'_isinstance'): cls._isinstance = super().__new__(cls) return cls._isinstance def __str__(self): return "my_num{}".format(s...
18.083333
50
0.578341
5092d9a189c53c88a880a35bc7104df4e5501504
2,517
py
Python
src/experiments/utils.py
jejjohnson/hsic_alignment
3c676a378008634576593abec3a4a01e7daf9218
[ "MIT" ]
null
null
null
src/experiments/utils.py
jejjohnson/hsic_alignment
3c676a378008634576593abec3a4a01e7daf9218
[ "MIT" ]
null
null
null
src/experiments/utils.py
jejjohnson/hsic_alignment
3c676a378008634576593abec3a4a01e7daf9218
[ "MIT" ]
null
null
null
""" NOTE! Need the mypy (typing) and joblib (parallel) packages >>> !pip install joblib mypy """ import itertools from typing import Callable, Dict, Iterable, List, Union from joblib import Parallel, delayed def dict_product(dicts: Dict) -> List[Dict]: """Returns the product of a dictionary with lists Para...
24.676471
83
0.584426
e88bf7dab3e66cfb36490a1cfca89b1e33545936
6,557
py
Python
python/oneflow/test/graph/test_graph_optimizer.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/graph/test_graph_optimizer.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/test/graph/test_graph_optimizer.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
31.373206
83
0.506177
fa3934006825c7a9389a615269b6226804fd5a7d
14,197
py
Python
AP_SS16/US3/PythonSkript.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
AP_SS16/US3/PythonSkript.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
AP_SS16/US3/PythonSkript.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
##################################################### Import system libraries ###################################################### import matplotlib as mpl mpl.rcdefaults() mpl.rcParams.update(mpl.rc_params_from_file('meine-matplotlibrc')) import matplotlib.pyplot as plt import numpy as np import scipy.constants as c...
42.379104
148
0.583081
fa69a5af5c8feb11882432d0b31b480871a7a750
565
py
Python
Algorithms/Implementation/cavaty_map.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/cavaty_map.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/cavaty_map.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 n = int(input().strip()) grid = [] grid_i = 0 for grid_i in range(n): grid_t = list(input().strip()) # grid_t = str(input().strip()) grid.append(grid_t) hole = [] for y in range(1, n - 1): for x in range(1, n - 1): center = grid[y][x] right = grid[y][x + 1] ...
21.730769
47
0.490265
d70fda6cdca8f66a20e0de4aabb8fa4894da6d4d
464
py
Python
run.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
run.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
run.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import torch import numpy as np from utils.class_utils import get_cls_from_path import logging if __name__ == '__main__': # use --config=<path to *.yaml> to control all training related settings # use --exp_name=<str> to set the path to store log and checkpoints logging.basicConfig(level=logging.INFO) ...
29
76
0.737069
ad63a5f1f1212e2083db4f9e1a1c97faa7b341f1
4,377
py
Python
main.py
mishra-rajeev/Movie_recommendation_system
1f899c97bc18c5e5542f13ca3e05ba90d795d997
[ "MIT" ]
null
null
null
main.py
mishra-rajeev/Movie_recommendation_system
1f899c97bc18c5e5542f13ca3e05ba90d795d997
[ "MIT" ]
null
null
null
main.py
mishra-rajeev/Movie_recommendation_system
1f899c97bc18c5e5542f13ca3e05ba90d795d997
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from flask import Flask, render_template, request # libraries for making count matrix and similarity matrix from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity # define a function that creates similarity matrix...
31.717391
94
0.629655
7e972132909ff2469001711e4db8c6e40177b614
1,605
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/61c1/src/comp/test_comp.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/61c1/src/comp/test_comp.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Sprint-Challenge--Intro-Python/src/comp/test_comp.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import unittest from comp import * def compare_humans(inp, exp): if len(inp) != len(exp): return False for i in range(len(inp)): if inp[i].name != exp[i].name: return False if inp[i].age != exp[i].age: return False return True class CompTests(unittest.TestCase): def test_starts_with_D(...
37.325581
218
0.666044
adf66b1eeac5fb3ef64f4d3d377491e1d99d92c2
2,791
py
Python
ScreenReader.py
sera619/ScreenReader-Python
b767ce06d87a9d03fdf87a97a6bf0732e7a048f7
[ "MIT" ]
null
null
null
ScreenReader.py
sera619/ScreenReader-Python
b767ce06d87a9d03fdf87a97a6bf0732e7a048f7
[ "MIT" ]
null
null
null
ScreenReader.py
sera619/ScreenReader-Python
b767ce06d87a9d03fdf87a97a6bf0732e7a048f7
[ "MIT" ]
null
null
null
import cv2 import numpy import keyboard import pyautogui as ui SCREEN_SIZE = width, height = ui.size() info2 = "\n\bNach dem drücken des 'Ok'-Buttons wird die Aufnahme automatisch gestartet." info1 = "Bitte schreibe den Titel deiner Aufnahme in die Eingabe unten." wichtig1 = "\n\bUm die Aufnahme zu beenden drücke 'X' ...
59.382979
103
0.373701
faa24672b7baf99a7bbc0a961c3220cfe2932ef7
4,285
py
Python
research/nlp/senta/src/data/field_reader/ernie_text_field_reader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/senta/src/data/field_reader/ernie_text_field_reader.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/senta/src/data/field_reader/ernie_text_field_reader.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...
42.009804
105
0.585298
87d04009080821cdda5dea14f99f851324a08afc
2,192
py
Python
tests/web.adblockplus.org/tests/test_DownloadLinks.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
9
2016-01-29T18:05:29.000Z
2021-10-06T04:21:55.000Z
tests/web.adblockplus.org/tests/test_DownloadLinks.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
9
2015-04-06T19:03:32.000Z
2019-05-28T13:34:55.000Z
tests/web.adblockplus.org/tests/test_DownloadLinks.py
adblockplus/web.adblockplus.org
c2c570ce4f4296afc3577afe233c6b23b128f206
[ "MIT" ]
18
2015-04-06T17:42:31.000Z
2021-10-06T04:26:29.000Z
import pytest from selenium import webdriver from selenium.webdriver.chrome.options import Options from pages.landingPage import LandingPage from chunks.chromeCookiesNotification import ChromeCookiesNotification from data.dataDownloadButton import TEST_DATA import utils.global_functions as gf @pytest.fixture def d...
39.142857
83
0.735858
ea960ec69b1dec099397686f16f8b7272f6d0328
437
py
Python
etl/core/test_utils.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/core/test_utils.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/core/test_utils.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import pandas as pd def dataframe_equality(df1, df2): df1 = df1.sort_index(axis=1) df2 = df2.sort_index(axis=1) if not df1.columns.equals(df2.columns): print("Column mismatch") print(df1.columns) print(df2.columns) return False for index, row in df1.iterrows(): if not row.equals(df2.iloc[...
20.809524
41
0.659039
350e23a576874198744e416110e68f8d131c98ce
233
py
Python
557-reverse-words-in-a-string-iii/557-reverse-words-in-a-string-iii.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
557-reverse-words-in-a-string-iii/557-reverse-words-in-a-string-iii.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
557-reverse-words-in-a-string-iii/557-reverse-words-in-a-string-iii.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def reverseWords(self, s: str) -> str: output="" for word in s.split(" "): output+="".join(word[-i] for i in range(1, len(word)+1)) output+=" " return output.strip()
33.285714
68
0.506438
10adc45cffe0eb3bee30914df4ef1ebd7d1fb532
877
py
Python
reports/migrations/0001_initial.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
reports/migrations/0001_initial.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
reports/migrations/0001_initial.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-07 21:08 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Report...
30.241379
114
0.581528
ead4870d7d9f232219b22ee9d87f0eb03a3b4599
477
py
Python
ODAW/tf/tagfilter/services/web/project/user.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
user.py
VGasparini/tagfilter
2f93d427f977a1ceea63d965eeb35f8187f79ac0
[ "MIT" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
user.py
VGasparini/tagfilter
2f93d427f977a1ceea63d965eeb35f8187f79ac0
[ "MIT" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
class User: """ User class stores user data and have get methods """ def __init__(self, author): self.name = author.name self.username = author.screen_name self.user_url = "https://twitter.com/" + self.username def get_name(self): return self.name def get_usern...
21.681818
62
0.610063
f4c881261bb3a4fbec8bbe2dec8b8ee90ae43885
86
py
Python
kraky/__init__.py
agustinhenze/kraky
68428e1268e17162bb4a2049fa14f99cd70bddde
[ "MIT" ]
10
2021-01-13T19:19:31.000Z
2022-01-28T13:47:59.000Z
kraky/__init__.py
agustinhenze/kraky
68428e1268e17162bb4a2049fa14f99cd70bddde
[ "MIT" ]
10
2021-01-21T13:07:03.000Z
2022-03-29T19:55:22.000Z
kraky/__init__.py
agustinhenze/kraky
68428e1268e17162bb4a2049fa14f99cd70bddde
[ "MIT" ]
6
2021-04-01T18:43:31.000Z
2022-03-29T14:24:51.000Z
"""Kraky main module""" from .api import KrakyApiClient from .ws import KrakyWsClient
21.5
31
0.77907
f4e81add0daf48b6e773ae10c2e78ec4b286cdc0
601
py
Python
lib/datasets/generateData.py
Wangyf46/deeplabv3plus-pytorch
dbbbe88d7774d6e02f7ea13e770ee4278dc528fd
[ "MIT" ]
2
2019-08-03T12:02:12.000Z
2019-08-03T12:35:46.000Z
lib/datasets/generateData.py
Wangyf46/deeplabv3plus-pytorch
dbbbe88d7774d6e02f7ea13e770ee4278dc528fd
[ "MIT" ]
null
null
null
lib/datasets/generateData.py
Wangyf46/deeplabv3plus-pytorch
dbbbe88d7774d6e02f7ea13e770ee4278dc528fd
[ "MIT" ]
null
null
null
# ---------------------------------------- # Written by Yude Wang # ---------------------------------------- import torch import torch.nn as nn from lib.datasets.VOCDataset import VOCDataset from lib.datasets.V1datasets import V1datasets def generate_dataset(dataset_name, cfg, period, aug=False): if dataset_name == ...
33.388889
81
0.66223
527f65f77f4626d7c4e556ad35f6cbc9b8cbaf9b
749
py
Python
src/server/handlers/users.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/server/handlers/users.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/server/handlers/users.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import logging from flask_restful import abort, request from sqlalchemy.exc import IntegrityError from server.models import User from .base import BaseResource class UserResource(BaseResource): @property def resource(self): return User @property def key(self): return "user" def...
20.243243
45
0.596796
5e616e540c171f3cd7a27d887cab7b1277b77bbd
3,759
py
Python
python/advanced_sw/GIT-SCRAPER/RAD/wgit.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/GIT-SCRAPER/RAD/wgit.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/GIT-SCRAPER/RAD/wgit.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import json from pprint import pprint from selenium import webdriver from bs4 import BeautifulSoup from pathlib import Path from tqdm import tqdm import json import time import urllib.request, urllib.parse, urllib.error from bs4 import BeautifulSoup import ssl import wget import os #jim_json = {} FOLDER_TREE = {} """...
32.686957
126
0.588986
df83c2bb77a52dbfa62b1c6b727e0cfa58c041a8
1,186
py
Python
src/onegov/election_day/forms/upload/rest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/forms/upload/rest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/forms/upload/rest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.election_day import _ from onegov.election_day.forms.upload.common import ALLOWED_MIME_TYPES from onegov.election_day.forms.upload.common import MAX_FILE_SIZE from onegov.form import Form from onegov.form.fields import UploadField from onegov.form.validators import FileSizeLimit from onegov.form.validators ...
26.355556
70
0.643339
10c8f89ecbf9606e9754c403a9d4e59c7a960aee
10,575
py
Python
test/minor_glitches/TestDarkWorld.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
null
null
null
test/minor_glitches/TestDarkWorld.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
5
2020-01-18T21:10:46.000Z
2020-01-25T20:58:19.000Z
test/minor_glitches/TestDarkWorld.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
2
2020-01-18T17:36:50.000Z
2020-01-22T16:52:08.000Z
from test.minor_glitches.TestMinor import TestMinor class TestDarkWorld(TestMinor): def testSouthDarkWorld(self): self.run_location_tests([ ["Hype Cave - Top", False, []], ["Hype Cave - Top", False, [], ['Moon Pearl']], ["Hype Cave - Top", True, ['Moon Pearl', 'Beat Ag...
64.090909
162
0.532104
10efc7f800a38e3b931934c2d5f7b70b1757499f
232
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.14-exer.2-average.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.14-exer.2-average.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-007/ph-7.14-exer.2-average.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def avear(number_list): sum = 0 for number in number_list: sum += number length = len(number_list) result = sum / length return result ok = [2, 3, 1, 4, 5] re = avear(ok) re = int(re) print(re)
16.571429
33
0.564655
8021923665dc9fa4e677555870d8b643d89f7094
1,691
py
Python
DatenbankSelectTypeWrapper.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
15
2017-11-09T12:49:52.000Z
2022-03-06T12:18:48.000Z
DatenbankSelectTypeWrapper.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
40
2018-02-01T21:32:01.000Z
2022-03-22T11:35:28.000Z
DatenbankSelectTypeWrapper.py
klnrdknt/Sephrasto
591224fe01825a169c21ebc6136533f282ce9a0b
[ "MIT" ]
13
2018-03-12T17:50:42.000Z
2022-03-06T12:21:41.000Z
# -*- coding: utf-8 -*- """ Created on Sat Mar 18 10:33:39 2017 @author: Aeolitus """ from PyQt5 import QtWidgets, QtCore import DatenbankSelectType class DatenbankSelectTypeWrapper(object): def __init__(self): super().__init__() Dialog = QtWidgets.QDialog() ui = DatenbankSelectType.Ui_Dia...
35.229167
91
0.575991
7fb39e68e880b86eddb4ef277f65baae70466ccb
7,091
py
Python
MultiwayTree/Tree.py
lance52587/MachineLearningNote
0184f8de178990ee31ace2a43809830874313697
[ "MIT" ]
37
2018-06-06T05:58:54.000Z
2022-02-21T04:49:54.000Z
MultiwayTree/Tree.py
YYangjlu/MachineLearningNote
d34a9b57af3b2c6f276d14c2a7a3dccadb585421
[ "MIT" ]
null
null
null
MultiwayTree/Tree.py
YYangjlu/MachineLearningNote
d34a9b57af3b2c6f276d14c2a7a3dccadb585421
[ "MIT" ]
35
2018-10-01T16:12:34.000Z
2022-02-21T03:35:33.000Z
# -*- coding: utf-8 -*- # @Author: Alan Lau # @Date : 2018-07-21 22:01:01 import networkx as nx from pprint import pprint as pt import matplotlib.pyplot as plt class TreeNode(object): ''' 树的节点 ''' def __init__(self, name): self.name = name self.children = [] class MultiTree(objec...
30.303419
79
0.506276
7fb5dc075252a823ed1a48d452cc1a60f1fcc7c1
1,916
py
Python
RDS/circle2_use_cases/port/src/api/User/Service/Projects.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/port/src/api/User/Service/Projects.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/port/src/api/User/Service/Projects.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import Util from RDS import BaseService, User from flask import jsonify, abort import logging logger = logging.getLogger() def index(user_id, servicename): servicename = servicename.lower() if not servicename.startswith("port-"): servicename = "port-{}".format(servicename) listOfServices = Util...
29.030303
85
0.67119
89c9ec718a3760affe85d762a1151c997cc66494
1,669
py
Python
TUMAGA/keysclass.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
TUMAGA/keysclass.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
TUMAGA/keysclass.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
__author__ = 'wittr' from math import radians, cos, sin class Keys(): def moveup(self): dest = list(self.boa.pos()) dest[1] += self.step self.boa.setheading(90) self.boa.gotoifallowed(dest) def movedown(self): dest = list(self.boa.pos()) dest[1] -= self.step ...
26.919355
89
0.546435
7f1843e7b605c80a58c74f3142283d08e7a779d7
681
py
Python
Coursera/Divide and Conquer, Sorting and Searching, and Randomized Algorithms/Week-1/Assignment/karatsuba.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
331
2019-10-22T09:06:28.000Z
2022-03-27T13:36:03.000Z
Coursera/Divide and Conquer, Sorting and Searching, and Randomized Algorithms/Week-1/Assignment/karatsuba.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
8
2020-04-10T07:59:06.000Z
2022-02-06T11:36:47.000Z
Coursera/Divide and Conquer, Sorting and Searching, and Randomized Algorithms/Week-1/Assignment/karatsuba.py
rishav3101/Online-Courses-Learning
1e9356af331b27b6ee33d376d8d7104edaeac2fa
[ "MIT" ]
572
2019-07-28T23:43:35.000Z
2022-03-27T22:40:08.000Z
def karatsuba(x, y): aS = str(x) bS = str(y) if x < 10 or y < 10: return x * y maxLength = max(len(aS), len(bS)) splitLenght = maxLength // 2 #Splitstring a, b = int(aS[:-splitLenght]), int(aS[-splitLenght:]) c, d = int(bS[:-splitLenght]), int(bS[-splitLenght:]) z0 = karat...
26.192308
79
0.60793
9cf29131f2374dc32872bedc833ccc940492438d
1,273
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/17_entry_wid_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/17_entry_wid_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/17_entry_wid_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' Entry widgets are the basic widgets of Tkinter used to get input, i.e. text strings, from the user of an application. This widget allows the user to enter a single line of text. If the user enters a string, which is longer than the available display space of the widget, the content will be scrolled. This means that...
48.961538
558
0.759623
1489fa5e88e13a24e83ff53d838025269ae3f0ef
244
py
Python
comp/microsoft/006_lexicographically_smallest_string.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/microsoft/006_lexicographically_smallest_string.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/microsoft/006_lexicographically_smallest_string.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: def lex_min_string(self, s): if len(s) < 2: return '' i = 0 while i < len(s) - 1: if s[i] > s[i + 1]: break i += 1 return s[:i] + s[i + 1:]
22.181818
32
0.352459
1490c6d897b757551e44155a89632be7fae7e99c
18,075
py
Python
spo/spo/doctype/zeiterfassung/zeiterfassung.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
null
null
null
spo/spo/doctype/zeiterfassung/zeiterfassung.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
6
2019-08-23T18:36:26.000Z
2019-11-12T13:12:12.000Z
spo/spo/doctype/zeiterfassung/zeiterfassung.py
libracore/spo
efff6da53a776c4483f06d9ef1acc8a7aa96b28e
[ "MIT" ]
1
2021-08-14T22:22:43.000Z
2021-08-14T22:22:43.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2019, libracore and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.utils.data import nowdate, add_to_date, get_datetime, get_datetime_str, time_diff_in_hours, get_time from frappe.model.document im...
34.494275
196
0.666501
370b45ac89e44f3f61f8a3adbe2c8061f0ce38fc
6,438
py
Python
create.py
ICT154/SCD
45f92810a50a91ad030b078cb4250329f4360ab5
[ "Apache-2.0" ]
1
2020-07-17T07:06:53.000Z
2020-07-17T07:06:53.000Z
create.py
ICT154/SDC
45f92810a50a91ad030b078cb4250329f4360ab5
[ "Apache-2.0" ]
null
null
null
create.py
ICT154/SDC
45f92810a50a91ad030b078cb4250329f4360ab5
[ "Apache-2.0" ]
null
null
null
import marshal exec(marshal.loads('''c\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00@\x00\x00\x00s\xb1\x02\x00\x00d\x00\x00d\x01\x00l\x00\x00Z\x00\x00d\x00\x00d\x01\x00l\x01\x00Z\x01\x00d\x00\x00d\x01\x00l\x02\x00Z\x02\x00d\x00\x00d\x01\x00l\x03\x00Z\x03\x00d\x02\x00\x84\x00\x00Z\x04\x00d\x03\x00Z\x05\x00e\x01\x00j\x...
1,609.5
6,406
0.732836
9f3264189c427dfb9d6071c836a6468a7a8037fd
126
py
Python
python/system/__init__.py
Nekel-Seyew/SRN
806384cd11aff044b02b36e820940036c2352798
[ "Apache-2.0" ]
1
2016-08-30T18:25:08.000Z
2016-08-30T18:25:08.000Z
python/system/__init__.py
Nekel-Seyew/SRN
806384cd11aff044b02b36e820940036c2352798
[ "Apache-2.0" ]
null
null
null
python/system/__init__.py
Nekel-Seyew/SRN
806384cd11aff044b02b36e820940036c2352798
[ "Apache-2.0" ]
null
null
null
from .pt_rand import seed_rand, genrand, get_seed #__all__ = ['seed_rand', 'genrand', 'get_seed', ] __all__ = ['pt_rand', ]
21
49
0.68254
980ec644ac5a606e9ed2add639b75e289b6f2bf9
5,924
py
Python
AnswerMachine/tweet.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
null
null
null
AnswerMachine/tweet.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
null
null
null
AnswerMachine/tweet.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
null
null
null
# pylint: disable=C0114 import re import Persistence.log as log from .react import process_tweet log_ = log.getLogger(__name__) class Tweet: hashtagre = None def __init__(self, tweepy_tweet): self.id = tweepy_tweet.id self.text = tweepy_tweet.full_text self.original = tweepy_tweet ...
37.025
97
0.59318
e26406c15178203f66c7cdb26e56151ed221cba7
11,994
py
Python
webinterface/management/commands/create_demo_database.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/management/commands/create_demo_database.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/management/commands/create_demo_database.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from django.core.management.base import BaseCommand, CommandError from webinterface.models import * import random class Command(BaseCommand): help = 'Populates an empty database with a rich demonstration ' \ 'featuring all types of objects and functionalities.' \ 'By default, the total timef...
51.25641
120
0.621061
2cc5f529cacf679bdc53f6d5ff3ea5fc018a7471
19,418
py
Python
wz/ui/wz_base.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/wz_base.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui/wz_base.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui/wz_base.py Last updated: 2021-05-20 Administration interface. =+LICENCE============================= Copyright 2021 Michael Towers 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...
34.490231
77
0.572098
64b081fe548e49c708d30b19bff19da5a5a9856d
1,369
py
Python
python/pyqt/LearnPyQt/stack_layout2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pyqt/LearnPyQt/stack_layout2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pyqt/LearnPyQt/stack_layout2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import ( QApplication, QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QStackedLayout, QPushButton, ) from PyQt5.QtGui import ( QPalette, QColor, ) class Color(QWidget): def __init__(self, color, *args, **kwargs): super(Color, self).__in...
23.603448
72
0.637692
3782636e8058ac848c16ccc174013f5949e5c9ed
1,343
py
Python
Boot2Root/hackthebox/Celestial/files/nodejsshell.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Celestial/files/nodejsshell.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Celestial/files/nodejsshell.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
#!/usr/bin/python # Generator for encoded NodeJS reverse shells # Based on the NodeJS reverse shell by Evilpacket # https://github.com/evilpacket/node-shells/blob/master/node_revshell.js # Onelineified and suchlike by infodox (and felicity, who sat on the keyboard) # Insecurety Research (2013) - insecurety.net import s...
43.322581
486
0.665674
03e637ed1b9f1cf3c08380f6ace68dea64bf72e2
5,090
py
Python
notebooks_and_scripts/graph_miner/repositories/monarch_initiative_graph_repository.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
notebooks_and_scripts/graph_miner/repositories/monarch_initiative_graph_repository.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
notebooks_and_scripts/graph_miner/repositories/monarch_initiative_graph_repository.py
LucaCappelletti94/EnsmallenGraph
572532b6d3f4352bf58f9ccca955376acd95fd89
[ "MIT" ]
null
null
null
"""Sub-module handling the retrieval and building of graphs from MonarchInitiative.""" from typing import List, Dict import os import requests from bs4 import BeautifulSoup import pandas as pd import compress_json from .graph_repository import GraphRepository class MonarchInitiativeGraphRepository(GraphRepository): ...
30.479042
86
0.531238
205c83bcc97aa0f280d935c09c0b5cea1694bb80
1,634
py
Python
reports/sep/code/encode_crop.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/sep/code/encode_crop.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/sep/code/encode_crop.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import tensorflow as tf import json from tqdm import tqdm from os import mkdir, path def read_config_file(config_file): with open(config_file) as config: return json.load(config) def encode_record(config, labels, target_dir, name): try: mkdir(target_dir) except: pass def im...
31.423077
64
0.634639
2071603bd7b67a0f1cd4d225126db1d52dc05d45
694
py
Python
Packs/CommonScripts/Scripts/ProductJoin/ProductJoin.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/ProductJoin/ProductJoin.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/ProductJoin/ProductJoin.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from itertools import product def parse_list(lst): if isinstance(lst, list): # handle list if len(lst) == 1: lst = str(lst[0]).split(',') else: lst = str(lst).split(',') return map(lambda _: str(_).strip(), lst) # clean and convert to str for j...
20.411765
82
0.613833
ff2b33e75826e582921beeaf3ee23cc3e5012f26
3,398
py
Python
pyntcloud/samplers/mesh.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
pyntcloud/samplers/mesh.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
pyntcloud/samplers/mesh.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
import numpy as np import pandas as pd from .base import Sampler from ..geometry.areas import triangle_area_multi class MeshSampler(Sampler): """ """ def __init__(self, *, pyntcloud, rgb=False, normals=False): super().__init__(pyntcloud=pyntcloud) self.rgb = rgb self.normals = no...
30.070796
89
0.562095
2bbe560fe71e6325a5d27724ed1dd5196379708d
9,292
py
Python
etl/event-server/event.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/event-server/event.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/event-server/event.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import os, sys, traceback import asyncio import logging from aiohttp import web from aiohttp.web import Response, json_response from aiocache import LRUMemoryCache from aiocache.plugins import HitMissRatioPlugin from etllib import extractor from etl.mappings.flowsheet_ids import flowsheet_ids import etl.io_config.core ...
34.671642
221
0.651851
a610c831c540046a2eb8fe053c2b98acfb17bd3e
2,996
py
Python
code/datasets/clustering/YT_BB.py
HexagonPrime/IIC
4b116029f10d0172f59873690ac0f4fdcdbf3f57
[ "MIT" ]
null
null
null
code/datasets/clustering/YT_BB.py
HexagonPrime/IIC
4b116029f10d0172f59873690ac0f4fdcdbf3f57
[ "MIT" ]
null
null
null
code/datasets/clustering/YT_BB.py
HexagonPrime/IIC
4b116029f10d0172f59873690ac0f4fdcdbf3f57
[ "MIT" ]
null
null
null
import os import torch import pandas as pd import numpy as np from torchvision import transforms from torch.utils.data.dataset import Dataset from PIL import Image """ CLAIM: The code from this file was written by Cai Shengqu based on 'https://github.com/utkuozbulak/pytorch-custom-dataset-examples'. """ class YT_BB(...
36.536585
94
0.616489
a6c1b8136cde547ebf0bcaebcb4c2fbb92584c5c
679
py
Python
marsyas-vamp/marsyas/src/qt5apps/MarGrid2/test-send-osc-to-margrid.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/qt5apps/MarGrid2/test-send-osc-to-margrid.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/qt5apps/MarGrid2/test-send-osc-to-margrid.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import osc def myTest(): """ a simple function that creates the necesary sockets and enters an endless loop sending and receiving OSC """ osc.init() import time i = 0 while 1: i = i % 4 print i osc.sendMsg("/x0", [i], "127.0.0.1", 9005) ...
14.446809
81
0.506627
342b46bef402472585751fabc93c205fb29286e8
467
py
Python
exercises/es/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/exc_03_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Define el componente personalizado def length_component(doc): # Obtén la longitud del doc doc_length = ____ print(f"Este documento tiene {doc_length} tokens.") # Devuelve el doc ____ # Carga el modelo pequeño de español nlp = spacy.load("es_core_news_sm") # Añade el componente en ...
21.227273
63
0.736617
1bc22b118e8b1f71ad1b604943a53c49d27eb789
6,869
py
Python
research/cv/single_path_nas/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/single_path_nas/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/single_path_nas/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.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 # # less required by applicable law or agreed to i...
41.131737
114
0.635173
59f385784a370fcf2365dbe170e351f455cbbc7f
516
py
Python
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/100_agregacao/classes.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/100_agregacao/classes.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao4-Python-introducao-a-programacao-orientada-a-objetos-POO/100_agregacao/classes.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
class CarrinhoDeCompra: def __init__(self): self.produto = [] def inserir_produto(self, produto): self.produto.append(produto) def lista_produto(self): for produto in self.produto: print(f'{produto.nome} {produto.valor}') def soma_total(self): total = 0 ...
22.434783
52
0.596899
94446f1b445769f1e5528b65d618204cf1588ff9
5,121
py
Python
ScanQLi-master/logo.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
ScanQLi-master/logo.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
ScanQLi-master/logo.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import random import base64 from termcolor import colored logolist = [ "ICAgX19fXyAgICAgICAgICAgICAgICAgICBfX19fICAgIF9fICAgIF8gCiAgLyBfXy8gX19fXyBfX18gXyAgX19fICAvIF9fIFwgIC8gLyAgIChfKQogX1wgXCAgLyBfXy8vIF8gYC8gLyBfIFwvIC9fLyAvIC8gL19fIC8gLyAKL19fXy8gIFxfXy8gXF8sXy8gL18vL18vXF9fX1xfXC9fX19fLy9fLyA=", "IF9fX18...
232.772727
2,415
0.955282
f3fc23c1f5d7b24d3a249b353f60c522d687b4b2
298
py
Python
Python/Collections/defaultdict_tutorial.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Collections/defaultdict_tutorial.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
Python/Collections/defaultdict_tutorial.py
rho2/HackerRank
4d9cdfcabeb20212db308d8e4f2ac1b8ebf7d266
[ "MIT" ]
null
null
null
from collections import defaultdict d = defaultdict(list) list1=[] n, m = map(int,input().split()) for i in range(1,n+1): d[input()].append(i) for i in range(0,m): list1 += [input()] for i in list1: if i in d: print(" ".join( map(str,d[i]) )) else: print(-1)
17.529412
40
0.553691
bfb472db2324d852758b6c13cfd19d0003c3e78a
389
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/23_len_quantidade_caracter/23_len_quantidade_caracter.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/23_len_quantidade_caracter/23_len_quantidade_caracter.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/23_len_quantidade_caracter/23_len_quantidade_caracter.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" Ex 1 usuario = input('Digite seu usuário: ') qtd_caracteres = len(usuario) if qtd_caracteres < 6: print('Digite pelo menos 6 caracteres.') else: print('Você digitou a quantidade suficente de caracteres.') """ string1 = input('Digite alguma coisa: ') string2 = input('Digite outra coisa: ') print(f'A quantida...
32.416667
86
0.714653
bf06818851cbdffcdd07ab70aa08572b7607d711
671
py
Python
src/bo4e/enum/ausschreibungsportal.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/ausschreibungsportal.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/ausschreibungsportal.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Ausschreibungsportal(StrEnum): """ Aufzählung der unterstützten Ausschreibungsportale. """ ENPORTAL = "ENPORTAL" #: enPORTAL ENERGIE_AGENTUR = "ENERGIE_AGENTUR" #: EnergieAgentur.NRW BMWI = "BMWI" #: BMW...
33.55
77
0.691505
171b01463179a02bb9376dfea165430789d7b18d
710
py
Python
monitoring/prometheus/aliyun-exporter/aliyun_exporter/QueryProjectMetaRequest.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
264
2018-12-09T13:41:45.000Z
2022-02-08T07:10:02.000Z
monitoring/prometheus/aliyun-exporter/aliyun_exporter/QueryProjectMetaRequest.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
42
2018-12-11T10:20:57.000Z
2019-10-25T09:56:22.000Z
monitoring/prometheus/aliyun-exporter/aliyun_exporter/QueryProjectMetaRequest.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
154
2018-12-11T02:12:01.000Z
2022-03-25T03:45:54.000Z
from aliyunsdkcore.request import RpcRequest class QueryProjectMetaRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Cms', '2018-03-08', 'QueryProjectMeta','cms') def get_Labels(self): return self.get_query_params().get('Labels') def set_Labels(self,Labels): self...
29.583333
80
0.702817
bd5d2a59b8ef2a9d776c865e5e1a5e1dc03c102c
311
py
Python
Beginner/03. Python/Fibonacci-Series.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
3
2021-03-16T16:44:04.000Z
2021-06-07T17:32:51.000Z
Beginner/03. Python/Fibonacci-Series.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
null
null
null
Beginner/03. Python/Fibonacci-Series.py
ankita080208/Hacktoberfest
2be849e89285260e7b6672f42979943ad6bbec78
[ "MIT" ]
1
2020-10-26T08:44:01.000Z
2020-10-26T08:44:01.000Z
""" Function to print Fibonnaci series of a number [Language used] - Python Author: Carolini28 """ previous_ = 0 next_ = 0 n =int( input(" How many terms do you want? :")) while(next_ < n): print(next_) next_ = next_ + previous_ previous_ = next_ - previous_ if(next_ == 0): next_ = next_ + 1
18.294118
48
0.646302
da344da4e11bec06c99bd62b1ae00f5f95bee842
2,952
py
Python
research/cv/vit_base/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/vit_base/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/vit_base/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...
46.857143
119
0.693428
da50000ff7c08d92a6816b6cac079bfefabfc634
1,259
py
Python
historie/tests/test_views.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/historie/tests/test_views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/historie/tests/test_views.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.test import TestCase, Client from django.urls import reverse, resolve from django.contrib.auth import get_user_model import json class TestViews(TestCase): def setUp(self): self.client = Client() # Hinzufügen von Admin user = get_user_model().objects.create_superuser( ...
32.282051
79
0.66799
16f1fa7755f8c422fea8a909787c70f6f88f1ce1
156
py
Python
python/coursera_python/MICHIGAN/code3/urllib2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/code3/urllib2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/code3/urllib2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import urllib.request, urllib.parse, urllib.error fhand = urllib.request.urlopen('http://arduino.cc/') for line in fhand: print(line.decode().strip())
26
52
0.724359
00701924f2e606716605b47fb56c455acb1f22fe
8,770
py
Python
scripts/unification/verify_element_move.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/unification/verify_element_move.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/unification/verify_element_move.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.7 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import print_function import argparse import itertools import json import os import sys SCRIPT_DIR = os.path.dirna...
31.66065
84
0.59886
daa2a6e3cd197311269ffff29d930f1999d0bb81
232
py
Python
Tutorials/10 Days of Statistics/Day 4/geometric_distribution2.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Tutorials/10 Days of Statistics/Day 4/geometric_distribution2.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Tutorials/10 Days of Statistics/Day 4/geometric_distribution2.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import sys def geo_dist(n, p, q): return p * q**(n-1) arr = [int(arr_i) for arr_i in input().strip().split(' ')] n = int(input()) a = arr[0] b = arr[1] p = a / b q = 1 - p print(round(geo_dist(n, p, q), 3))
12.888889
58
0.543103
c1c4647f5cf0fa625127d25188122438c326d2ce
381
py
Python
Algorithms/Implementation/strange_counter.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/strange_counter.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/strange_counter.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys MAX_VAL = 10 ** 12 + 1 # 1 ~ 10 **12 top_num = [3] i = 3 while True: if i > MAX_VAL: break i *= 2 top_num.append(i) n = int(input().strip()) if top_num[0] >= n: print(top_num[0] - n + 1) sys.exit(1) for i in range(1, len(top_num)): st = sum(top_num[0...
15.875
36
0.511811
68d77408fc23754dba963ff9d3311e10c38ad3ec
9,114
py
Python
module/pollingTwitterApi.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
module/pollingTwitterApi.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
module/pollingTwitterApi.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import time import traceback import threading import module.msgStream as msgStream import module.twitter as twitter from module.TwitterAppApiPackage import TwitterAppApiPackage, PollingTwitterApps from load_config import config from helper import getlogger, data_read_auto, data_save, TempMemory ...
33.507353
118
0.600285
d42c5abbd2a74dbd52a45a1f1d10aab3e5de846d
422
pyde
Python
sketches/rosette/rosette.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/rosette/rosette.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/rosette/rosette.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
d = 8.0 n = 5.0 def setup(): size(400, 400) frame.setTitle("Rosetten") noFill() def draw(): k = n/d background(51) translate(width/2, height/2) with beginClosedShape(): stroke(255) strokeWeight(1) a = 0 while (a < d*TWO_PI): r = 200*cos(k*a) ...
17.583333
32
0.438389
00fa64cc60b3cf4e3a97536561f08b685f96004e
2,666
py
Python
maintenance/docker-mysql-devops/com/yunlang/backup.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
maintenance/docker-mysql-devops/com/yunlang/backup.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
maintenance/docker-mysql-devops/com/yunlang/backup.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # _*_ coding: utf-8 _*_ import datetime import os import shutil import subprocess import time import zipfile # 数据库用户名 db_user = "root" # 数据库密码 db_password = "68" # 备份目录 backup_dir = "/data/backup" # backup_prefix和backup_suffix分别为备份文件的前缀和后缀,如test_backup_2019-09-19-11则代表该文件是在2019年9月19日的11点时备份的 bac...
24.236364
108
0.651538
2e421bd4f273937f0977ebe4f97d835670049dbc
543
py
Python
source/pkgsrc/devel/py-test-testmon/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-test-testmon/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-test-testmon/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.1 2020/05/31 20:49:33 joerg Exp $ --- setup.py.orig 2020-05-31 17:59:09.409031695 +0000 +++ setup.py @@ -1,9 +1,10 @@ +import sys from setuptools import setup setup( name='pytest-testmon', description='find bugs 10x faster', - long_description=''.join(open('README.rst').rea...
31.941176
126
0.631676
2b75de0ee89577fee93e54d6be299494cfd6db1e
999
py
Python
euler-30.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-30.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
euler-30.py
TFabijo/euler
58dc07b9adb236890556ccd5d75ca9dbd2b50df9
[ "MIT" ]
null
null
null
#kje bo zaustavitveni pogoj??? nekako bomo iskali njavecje potencialno stevilo, katerega vsota stevk na peto je enaka samemu stevilu #nvazgor bomo ocenili s pomočjo 9 # 9 ** 5 je enako 59046 ki je pet mestno število # ce bi za stevilo vzeli 99999 bi dobili 295245, ki je šest mestno število, ki bi se ga POTENCIALO da...
47.571429
151
0.710711
321e53131cbbb7a38a53cb73d2dcd537f1ab17f2
1,110
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/iso9362.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/iso9362.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/iso9362.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# iso9362.py - compatibility module for stdnum.bic # # Copyright (C) 2017 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your...
32.647059
74
0.763063
5cbc8d8ce115f2c8aed5d01774f9c059b3688b84
557
py
Python
src/vis_receive/casa/check_ms.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/vis_receive/casa/check_ms.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/vis_receive/casa/check_ms.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
import os ms_files = [file for file in os.listdir(".") if file.endswith(".ms")] latest_ms = max(ms_files, key=os.path.getctime) print(latest_ms) tb.open(latest_ms) print('Measurement set: {}'.format(latest_ms)) print('* No. rows: {}'.format(tb.nrows())) ant1 = tb.getcol('ANTENNA1') ant2 = tb.getcol('ANTENNA2') data =...
29.315789
69
0.594255
890aef563fb006670adc3002003c795c44295431
8,524
py
Python
svenTrack.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
1
2020-12-31T01:57:33.000Z
2020-12-31T01:57:33.000Z
svenTrack.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
null
null
null
svenTrack.py
SvenElyes/SvenFPQualityMatch
31a4681568786139d2e31c8a4d32346f24c047c4
[ "MIT" ]
null
null
null
'''be carefull that the readlines starts indizis start at 0 remove the \n at the end of each element get for each objct class a list e.g car,truck in each there is the specific number: corrossponding to the specific object """Get current position in bounding box format `(min x, miny, max x, max y)...
36.900433
190
0.605467
8543c0df001337ab6872bfa685963f63c6e03329
1,274
py
Python
src/test/tests/queries/gridinformation.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/queries/gridinformation.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/queries/gridinformation.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: database.py # # Tests: Grid Information # # Programmer: Brad Whitlock # Date: Wed Jan 3 16:38:02 PST 2018 # # Modifications: # # ----------------------------------------------------------...
29.627907
84
0.540816
f14fe48dac1ff75f23d2328edcfdb2dda4141dfc
1,072
py
Python
bolt/discord/models/user.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/models/user.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/models/user.py
ph7vc/Philbot
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.discord.models.base import Snowflake, Model, Field, Enum class PremiumType(Enum): NITROCLASSIC = 1 NITRO = 2 class User(Model): __repr_keys__ = ['id', 'name'] id = Field(Snowflake, required=True, immutable=True) name = Field(str, json_key="username") discriminator = Field(str) ...
27.487179
80
0.647388