blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98ac2964ff10598c3fddd341223f1ebabd976588 | f9b465ca5aa3f82afbe044b4eea67046f4668540 | /prac_07/languages.py | af6c6533e1aef4fa65f498e5b251e8efb18298a4 | [] | no_license | TylerLangtry/CP1404_Practicals | 125dd1cc38cbee11a8ee28fd8ff9f56a59cbe1dd | 2b013c0397886d889c6870fef0e4dc611040f087 | refs/heads/master | 2021-04-03T05:08:36.596570 | 2018-05-22T00:37:47 | 2018-05-22T00:37:47 | 124,964,235 | 0 | 0 | null | 2018-03-27T00:55:18 | 2018-03-12T23:29:27 | Python | UTF-8 | Python | false | false | 539 | py | from prac_07.programming_language import ProgrammingLanguage
ruby = ProgrammingLanguage("Ruby", "Dynamic", True, 1995)
print(ruby)
python = ProgrammingLanguage("Python", "Dynamic", True, 1991)
print(python)
visual_basic = ProgrammingLanguage("Visual Basic", "Static", False, 1991)
print(visual_basic)
programs = [ruby,... | [
"tyler.langtry@my.jcu.edu.au"
] | tyler.langtry@my.jcu.edu.au |
a489cb86e3d6939f0b958404a7c004ab41e60639 | 27d500f0580c0a4dc19fa2be79a04abca1371ca6 | /foods/migrations/0004_auto_20210226_1840.py | 9d9893883a3ad48ccc690535bd8a09629ff4a689 | [] | no_license | farimaz/Restaurant-Django | 22926701fd4288d4fc1416196336675cc0e2adee | 76d97d67185f0a48f48ef38adc591be8285a18af | refs/heads/master | 2023-04-04T06:26:45.043182 | 2021-04-16T13:01:49 | 2021-04-16T13:01:49 | 358,606,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # Generated by Django 3.1.6 on 2021-02-26 15:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('foods', '0003_foods_type_food'),
]
operations = [
migrations.AlterField(
model_name='foods',
name='type_food',
... | [
"spacemazoochie@gmail.com"
] | spacemazoochie@gmail.com |
f6259ec0a87853d62adeaa4ed05a99c2c77530c2 | 90ea87947e0e1511b6f9312d1ec6f19619b1e90d | /test.py | e69343a676f1b8f03655efe07e6d466d1849a779 | [] | no_license | sahilgupta-gti/demo1 | 7ebb188ecb5a7bd5b1a3a669d18f6ea5f4dae1c2 | 6f1384c7fd7080af5051ea716173366bd74fdde9 | refs/heads/master | 2022-04-21T22:30:20.772440 | 2020-04-27T14:14:08 | 2020-04-27T14:14:08 | 163,744,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | #! /bin/python
#from numpy import *
# from array import *
import sys
from Student import *
x = int(sys.argv[1])
y = int(sys.argv[2])
def factorial(f):
if f == 1:
return f
return f * factorial(f-1)
fact = 6
print(factorial(fact))
print(__name__)
st1 = Student("Gunnu", "UKG")
print(st1.school, " : ", ... | [
"sahilgupta_gti@yahoo.com"
] | sahilgupta_gti@yahoo.com |
755de45cae37769f8ee5cd50dd2018b09c93b4de | c7dae6ec1d683abe235c524b2a7f922acd0bee6d | /src/main.py | ba98e83190906a3f8fc9a7d1ff2c2353067f955e | [] | no_license | anjanabensy/Programslicer | 7374c181c6f4835ef12b9276a4d19473f1a28123 | 6faa340b8b6b92bb2defdd0f1c1677baba5b258f | refs/heads/master | 2022-12-13T21:43:34.172795 | 2020-09-09T07:28:59 | 2020-09-09T07:28:59 | 284,042,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,244 | py | import nltk
import ast
import re
import array as arr;
from _collections import deque
import lexer as lex
import slicer as s
import argparse
import traceback
program = []
endline =''
vars = ''
file =''
linecount=0
Slice = ''
lexer_result = []
line_opt =[]
""" checks whether the given slice criterion is valid with res... | [
"anjanabensy95@gmail.com"
] | anjanabensy95@gmail.com |
cc348ab4bec613d2e38dbef4d3ac3c828374b571 | 3439921d03520834cb425a74eb3fde9a18facebc | /bubble sort.py | bc88fca94eff5c2638b245b63b0aa3c45c440af2 | [] | no_license | msobanjo/vrbh_sim | 6f838ddf033f3303dfd716ff78e364428d8c10aa | 4c512aa112b9bd55e9d902665c025cf283ff9309 | refs/heads/master | 2021-01-15T14:02:37.391144 | 2016-03-13T19:18:31 | 2016-03-13T19:18:31 | 50,657,586 | 0 | 0 | null | 2016-01-29T11:09:29 | 2016-01-29T11:09:29 | null | UTF-8 | Python | false | false | 415 | py | import random
def bubbleSort(randomItems):
for x in range(len(randomItems)-1,0,-1):
for i in range(x):
if randomItems[i]>randomItems[i+1]:
temp = randomItems[i]
randomItems[i] = randomItems[i+1]
randomItems[i+1] = temp
randomItems = [random.randi... | [
"msobanjo@hotmail.com"
] | msobanjo@hotmail.com |
9619c9505c4078b5776f7baea641f09f202fc2d7 | dace991e0b45bc4e2169b551bb58297215c11c9c | /queries.py | 02a2ce6ee04e3590d953c73295858ef6be5f3b90 | [] | no_license | snehakale/Logs-Analysis-Project | f042b7f79c32227a72a2cfc8804800e2f910b031 | cbcd7270755c962afd00ccc9dd5111f3be0d8724 | refs/heads/master | 2021-07-12T03:56:37.975836 | 2017-10-11T17:15:19 | 2017-10-11T17:15:19 | 106,340,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | #! /usr/bin/env python3
''' This file is a python program (version 3.6.2)
which makes a connection with the database,
creates and executes postgresql queries to get the logs information.
'''
# importing python DB-API
import psycopg2
# function to make a connection with the database and to get the cursor
def ... | [
"kalesneha88@gmail.com"
] | kalesneha88@gmail.com |
2613e2ef412ccf078a9d7d9382a5579ecc20064d | b8c2d5320a70fafd44bff028210694c4446ee296 | /Project2/venv/bin/pip | b219c25bca7358e7e94787d9435c39db4b2f85a3 | [] | no_license | kelseydeuth/202 | b6032a5ec378c4ead949e9c6727ddf5e4744a4bd | 246d8ed5d3662483ba71d220461e8bad843588f5 | refs/heads/master | 2020-05-07T16:39:25.028624 | 2019-06-10T16:41:47 | 2019-06-10T16:41:47 | 180,691,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | #!/Users/kelseydeuth/Workspace/202/Project2/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"kelseydeuth@Kelseys-MacBook-Pro.local"
] | kelseydeuth@Kelseys-MacBook-Pro.local | |
0dbfb93d76694fbd077ed77dc8a28f2efac852ef | 88f026696ef1d0ee362f559c22fae1beeaf00033 | /software/reference/code_reference/QT/DualScreenTest/main.py | 60a03e3cb9cd0a4e361e179d7388ee17aeeeddd8 | [] | no_license | OSURoboticsClub/Rover_2018_2019 | 2b1b67ecb98f2f9f13a1ec38ab9986a7729b85d2 | d615463cd3cbddf1531511a42364e13f3c179f54 | refs/heads/master | 2020-04-01T05:10:45.129837 | 2019-08-12T17:11:43 | 2019-08-12T17:11:43 | 152,893,228 | 8 | 5 | null | 2019-07-29T03:04:39 | 2018-10-13T16:48:35 | C++ | UTF-8 | Python | false | false | 3,077 | py | #!/usr/bin/env python
"""
Main file used to launch the Rover Base Station
No other files should be used for launching this application.
"""
#####################################
# Imports
#####################################
# Python native imports
import sys
from PyQt5 import QtWidgets, QtCore, uic
import s... | [
"chayap@oregonstate.edu"
] | chayap@oregonstate.edu |
2f6bbc0794f3dde324782c7c71e14ddcb49364ff | 9a01c9106a4cc641a37ad072d841f5607a3deb63 | /migrations/versions/006_add_telegramm_id.py | ed18e08ed712cc257ff1b4137e29cdeed4d951a9 | [] | no_license | maddeer/bookshell | 51f761e08148d77b3841736c27aceba9d9357322 | 9d2cd33342109d1a996a366d100832632d4b11ad | refs/heads/master | 2021-07-22T17:58:46.476972 | 2017-11-04T13:04:58 | 2017-11-04T13:04:58 | 104,572,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | from sqlalchemy import *
from migrate import *
meta = MetaData()
def upgrade(migrate_engine):
# Upgrade operations go here. Don't create your own engine; bind
# migrate_engine to your metadata
meta.bind = migrate_engine
users_table = Table('user', meta, autoload=True)
telegram_id = Column('teleg... | [
"timonnius@gmail.com"
] | timonnius@gmail.com |
1856097d55982c651ccb71ab0b51f7fa59839318 | c7386a7a7aafabe9feb8368c42b607cff70dcfe7 | /01_GPLVM_Training/GPy/plotting/matplot_dep/plot_definitions.py | 0e3bc32d398084b4f35cc48526b06f520e9121e8 | [] | no_license | dechamoungsri/Prosody_modeling | 8f3d603af6c54786cb048186bab65cfcd5b441f1 | 7895a032dde1c2c34cf42b7c362ca2b61ada0f37 | refs/heads/master | 2021-08-31T02:32:42.813986 | 2017-12-20T06:42:36 | 2017-12-20T06:42:36 | 114,848,055 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,812 | py | #===============================================================================
# Copyright (c) 2015, Max Zwiessele
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source... | [
"mamegomaday@gmail.com"
] | mamegomaday@gmail.com |
7c31b34e4f744edea1e56b89ce641687443b1802 | 9463df28c60275a872c8ea891e731e5e6b14ac32 | /Mopy/mash/gui/dialog.py | ec918d9eb5678c19e5adf58d202329446d6ce5b0 | [] | no_license | Danjb1/Wrye-Mash | 091fc60aabd1d564fc6686e389cd992d001b550b | 9a93fe47e98cfc8e93769f6b45341f4e78c568fa | refs/heads/master | 2021-08-17T05:26:42.055368 | 2017-11-20T20:11:12 | 2017-11-20T20:12:42 | 111,451,108 | 0 | 0 | null | 2017-11-20T19:04:22 | 2017-11-20T19:04:22 | null | UTF-8 | Python | false | false | 4,958 | py | import wx
from .. import conf
from .. import globals
#import gui
from ..mosh import _
from .. import mosh
class ProgressDialog(mosh.Progress):
"""Prints progress to file (stdout by default)."""
def __init__(self,title=_('Progress'),message='',parent=None,
style=wx.PD_APP_MODAL|wx.PD_ELAPSED_TIME,in... | [
"jacob@jacobessex.com"
] | jacob@jacobessex.com |
114c21b76e999987673ccb2fcfe41a294eb6c4cd | faf4934280c53ce10e91019bfcb30054f5db0b22 | /PyPoll_Challenge.py | 49b9bd2c92bcec09ecf7c1aebc6cc884eb5e9058 | [] | no_license | zoomdmartin02/Election-Analysis | a8c859cec7aba572147d67cd7dd2c5bfd1cce77a | a95968ae53e5fd98585df1f8f1384b8628e99183 | refs/heads/main | 2022-12-30T21:53:24.078902 | 2020-10-18T03:20:38 | 2020-10-18T03:20:38 | 303,420,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,336 | py | # -*- coding: UTF-8 -*-
"""PyPoll Homework Challenge Solution."""
# Add our dependencies.
import csv
import os
# Add a variable to load a file from a path.
file_to_load = os.path.join("Resources", "election_results.csv")
# Add a variable to save the file to a path.
file_to_save = os.path.join("analysis", "election_a... | [
"72090048+zoomdmartin02@users.noreply.github.com"
] | 72090048+zoomdmartin02@users.noreply.github.com |
527e1d3f88a693ec87caa4854d2832e4ace358cb | 496a450bc20436fdb676528a8213a754b895e306 | /moniter/urls.py | 87625c61f7100a41d201ce191cea84ae49385af0 | [] | no_license | mengguiyouziyi/Monitoring | 805dacf1ae3b6684e4930b3f0482139b8188bae5 | e2b145fbaceaf362edfe414d9690811829af5e27 | refs/heads/master | 2020-06-28T22:34:21.811173 | 2019-08-03T10:14:49 | 2019-08-03T10:14:49 | 200,201,005 | 0 | 0 | null | 2019-08-02T08:52:49 | 2019-08-02T08:52:49 | null | UTF-8 | Python | false | false | 749 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^welcome', views.welcome),
url(r'^first_welcome', views.welcome_first, name='first_welcome'),
url(r'^order', views.order),
url(r'^cate', views.cate),
url(r'^member', views.member, n... | [
"ysh17600824539@163.com"
] | ysh17600824539@163.com |
acf05d3118136eda97208eb88dd7e8c8055cb3e6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Hs7YDjZALCEPRPD6Z_23.py | df3fe0713ed74b8a036c99152bfd2695f2129cfd | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py |
count_uppercase=lambda a: sum([y.isupper() for x in a for y in x])
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e727df6f8b5c810fffeda45044c20e447e6ddb8e | 29cd1124f9c5d18009a1e5a6b34a348f910679f6 | /June/June 28th/RNA_Synthesis.py | 354b5c23e4796d6d689abdbe7746b597a21189fd | [] | no_license | RobertMcCutchen/DigitalCrafts_Assignments | 39336d8baeee88ad67e8498da485c99bb313012d | 0d9553f403205d4409d48923a2d1515ab267e144 | refs/heads/master | 2022-12-11T22:22:35.352967 | 2020-02-24T01:39:47 | 2020-02-24T01:39:47 | 193,777,230 | 0 | 1 | null | 2022-12-11T01:53:27 | 2019-06-25T20:17:19 | JavaScript | UTF-8 | Python | false | false | 412 | py | import DNA_Synthesis
def generate_RNA():
DNA_array = DNA_Synthesis.generate_DNA()
RNA = []
for x in range(0, len(DNA_array)):
if DNA_array[x] == 'A':
RNA.append('U')
if DNA_array[x] == 'T':
RNA.append('A')
if DNA_array[x] == 'C':
RNA.append('G')... | [
"robertmccutchen@Roberts-MacBook-Air.local"
] | robertmccutchen@Roberts-MacBook-Air.local |
3daa23e04e753171636b9449afe14643a87bb625 | 8fb7e1cb6e9977d88ba3927fabe4e82b4776f50b | /PhoneBook/wsgi.py | 23231d462acc595e9abc996543488c30668418ed | [] | no_license | krishkool/Phone-Book-Manager | 792be9596bbfbe5d98f3238ea5f61f51990cee93 | e796abfba7255939c27398b3478fa89b8e7a59ae | refs/heads/master | 2023-08-11T20:31:50.741188 | 2021-09-22T10:56:37 | 2021-09-22T10:56:37 | 409,166,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for PhoneBook project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"arKrish.sai@gmail.com"
] | arKrish.sai@gmail.com |
e6fd23c8b678f9307032b817846c006d4af457f3 | c4802d81423fbbbe4b5e05ebd9ddeee9ef24321c | /src/receiver_test.py | db0b3214ff5b24e307c0f161427870740097f74f | [] | no_license | zukowski/xhab | bc2f472a1cc6c66fac36c80b747810d98af37870 | 6aab291ebc060cf33e84b8514af1146ed20b5c79 | refs/heads/master | 2016-09-05T18:56:49.517516 | 2013-08-21T04:08:58 | 2013-08-21T04:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | #!/usr/bin/env python
#omkar test code
import math
import time
import rospy #loads ros libraries
from std_msgs.msg import String #used for sending mes data in ros
from lib_robotis import * #loads robitis libraries for servos
from xhab.msg import TrajectoryJointAngles
'''
#Set up global variables for servos
USB0 = USB2... | [
"scottmishra@gmail.com"
] | scottmishra@gmail.com |
6c9106284d364625ac423ab62e764d339dc88baa | be98cf80de58239f5b2329e485d27848cd2cb1e5 | /src/pybreakout/pybreakout.py | f929db1698fb5e3c825455c031e2576bde47875c | [] | no_license | jsmith12345/pybreakout | 5adf8908413b3ff13f05d38d0ad97539197e3e0d | e97d32907858225c54fb47140e1ca77ee351d6fa | refs/heads/master | 2016-08-10T14:32:25.016919 | 2006-10-20T04:35:45 | 2006-10-20T04:35:45 | 55,521,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,580 | py | import pygame, math, time, soundmanager
from pygame.locals import *
from utilities.common import Describer
from os.path import join
from sys import exit
from random import randrange,randint
RGB_BLACK = 0,0,0
RGB_WHITE = 255,255,255
RGB_RED = 255,0,0
GB_WIDTH = 280
GB_HEIGHT = 380
PADDLE_START_TOP ... | [
"nathan.dawson@723f4f67-661f-0410-8c27-63261dba3161"
] | nathan.dawson@723f4f67-661f-0410-8c27-63261dba3161 |
f7dd5ae13580c2a8137446a42f87b5b1b7ac7d71 | ea508c55e951f23ec2f4f5ff35b193d9f30a989a | /pyext/test2.py | a6ac16ef18987029e3ae36759a9eb62863bf2cb7 | [
"Apache-2.0"
] | permissive | intel-ai/pysamprof | f746551e30237fae9b8869e5e05156a3cb2aba13 | 643de4dd8260c9cd2f75ad5accf9b2e4cbd96c4d | refs/heads/master | 2023-01-25T02:21:01.665315 | 2020-11-27T08:18:22 | 2020-11-27T08:18:22 | 159,366,126 | 2 | 1 | Apache-2.0 | 2020-12-03T15:32:18 | 2018-11-27T16:30:40 | C | UTF-8 | Python | false | false | 787 | py | #!/usr/bin/env python
import pysamprof
import threading
import os
import errno
import sys
import subprocess
def foo():
counter = 0
while True:
target_path = '%s/results/%s' % (os.getcwd(), counter)
if os.path.exists(target_path):
counter += 1
else:
break
pysa... | [
"vasilij.n.litvinov@intel.com"
] | vasilij.n.litvinov@intel.com |
36adf07500d5bc3797a8452a938b03936503f491 | e291353d76e7209ccee7eef14f32f4157f2daaf6 | /build/learning_tf/catkin_generated/pkg.installspace.context.pc.py | d848f2666aa4b56f426941c843f6d2fbf742b03c | [] | no_license | EmanuelAlogna/Robotics-Ass01 | 23bc7d2079212340b6c8a30fd0e84e8ca1de49cb | bfc6421e69d9719da945da8bf728416fb4fb636b | refs/heads/master | 2022-01-05T15:32:26.050866 | 2019-06-02T17:39:59 | 2019-06-02T17:39:59 | 187,210,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "learning_tf"
PROJECT_SPACE_DIR = "/ho... | [
"emanuel.alogna@gmail.com"
] | emanuel.alogna@gmail.com |
1852e9dffcb63b063f786faeffaec2ee72e25153 | 390d19c3159133d8c688396cb11b4ed3f8178d09 | /BaekJoon/단계별로 풀어보기/Stack & Queue/1874_스택 수열.py | a3b4cc9eb6adb72cb147d6257fb3a6768140f325 | [] | no_license | JJayeee/CodingPractice | adba64cbd1d030b13a877f0b2e5ccc1269cb2e11 | 60f8dce48c04850b9b265a9a31f49eb6d9fc13c8 | refs/heads/master | 2021-08-16T17:14:01.161390 | 2021-07-16T00:42:18 | 2021-07-16T00:42:18 | 226,757,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | n = int(input())
arr = [int(input()) for _ in range(n)]
cnt = 0
stack = []
path = []
for i in range(1, n+1):
stack.append(i)
path.append('+')
while stack and stack[-1] == arr[cnt]:
stack.pop()
path.append('-')
cnt += 1
if stack:
print('NO')
else:
for p in path:
print... | [
"jay.hyundong@gmail.com"
] | jay.hyundong@gmail.com |
f113c125c3ce5cd72b7620e569795cbd92cdd0b5 | 44999f0e918047807c6505df2833c500a1fba22d | /util.py | 8bf9d2d0cf6cce58dc1849ddc5bdfb2c5146ca75 | [
"MIT"
] | permissive | PsiRadish/HeroesFeast | 3f3fcd2b0284cba3d58686688c283f52fb647df5 | 0c700e3e1e495671c70595bdb8927758f1fc6754 | refs/heads/master | 2021-07-18T16:10:46.375296 | 2017-12-23T01:13:59 | 2017-12-23T01:13:59 | 114,166,133 | 0 | 0 | MIT | 2021-06-10T19:51:32 | 2017-12-13T20:33:46 | Python | UTF-8 | Python | false | false | 316 | py |
class staticproperty: # https://stackoverflow.com/a/39499304
"""Works like @property and @staticmethod combined"""
def __init__(self, func):
self.func = func
def __get__(self, inst, owner):
result = self.func()
setattr(owner, self.func.__name__, result)
return result
| [
"KyleFiegener@gmail.com"
] | KyleFiegener@gmail.com |
435e29a274be72c7a13ebd6d95c17895552450da | 18c5519edd77fb222ec5c9ea338b651bd99aa147 | /objects/battle.py | b0d08f8a47d9f9a6011454552c8767751b52f701 | [
"BSD-3-Clause"
] | permissive | hdert/2018.py | 1b0a84d6ebc1bd6a4d56a95963851216931ea6a3 | 66fc5afc853af2ed5d6b2fc5f280e73be200a542 | refs/heads/master | 2020-05-09T16:42:55.913274 | 2020-01-25T06:56:31 | 2020-01-25T06:56:31 | 181,280,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,829 | py | '''
Author: hdert
Date: 13/6/2018
Version: V 0.1.3.6.6 Dev
'''
#--Classes--
class Character:
HUMAN = 'A Human'
ORC = 'An Orc'
ELF = 'An Elf'
BEAVER = 'A Beaver'
MALE = 'Male'
FEMALE = 'Female'
def __init__(self, pName, pRace, pGender, pSkill, pStrength, pHealth,
... | [
"40216616+Hdertgaming@users.noreply.github.com"
] | 40216616+Hdertgaming@users.noreply.github.com |
d1aa97ee9525de12321fffed6d30be61c50374f8 | add0702c25993c2c37eaf4b4e0c03f45808cbe45 | /tools/slice_breakdown/perfetto/slice_breakdown/breakdown.py | 85b21d2544ce4accdeae49df83c8c81b7cfeaeff | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sszllx/perfetto | aa43900682628050e5768bfbe53078b37715eefb | e5fc9f62634b179a6ced07fd2f565a9cee70f5bd | refs/heads/master | 2023-08-19T18:11:18.671489 | 2021-10-29T03:44:33 | 2021-10-29T03:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,337 | py | #!/usr/bin/env python3
# Copyright (C) 2021 The Android Open Source Project
#
# 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 requ... | [
"lalitm@google.com"
] | lalitm@google.com |
d111f7578b298ea148bce5bba4e6cc7466523c4e | 2cfd01446942d8113dbf8ec62b23f36a75333459 | /Decorator_examples/Passing_aruguments_to_decorators.py | 1edbc7fb2137aeed793e45daec8e702b9c08dd32 | [] | no_license | umesh-gattem-rzt/Python_Decorators | 9cb1e7b73d739d50ce648f48a8a2b03285700463 | 85e9dcb70cc1fb24a347bf5f38a41099071dc5bb | refs/heads/master | 2021-01-11T23:50:07.764872 | 2017-05-17T08:15:17 | 2017-05-17T08:15:17 | 78,634,262 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from functools import wraps
def tags(tag_name):
def tags_decorator(func):
@wraps(func)
def func_wrapper(name):
return "<{0}>{1}</{0}>".format(tag_name, func(name))
return func_wrapper
return tags_decorator
@tags("div")
@tags("p")
@tags("strong")
def get_name(name):
... | [
"umesh@gattems-MacBook-Pro.local"
] | umesh@gattems-MacBook-Pro.local |
428376d583c567432c1ef5196b05262cfe856565 | d7b3feb650e3dd5f5e59c5e9ed796ef10767b32f | /dot_threshold_video_manupulation.py | 5227601562cb5fb4c1ebc3da8fec0ae05bc2e317 | [] | no_license | Mainak-Deb/opencv-video-manupulation-using-pygame | 6a83eed06623e006d3a531992bd111efe032e8a0 | 3c2f8727e11a6ed020e936b349a41325b9f4523b | refs/heads/master | 2023-02-21T03:42:21.747902 | 2021-01-19T21:34:11 | 2021-01-19T21:34:11 | 331,114,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | import time,math,random
import pygame,sys
from pygame.locals import *
import math
import cv2
cap=cv2.VideoCapture(0)
ret,img1=cap.read()
k=((len(img1)*len(img1[1]))/5000)**(.5)
rx=len(img1)/k
ry=len(img1[1])/k
r=int(len(img1)/rx)
c=int(len(img1[1])/ry)
screenlenth=800
dis=screenlenth/100
screen=pygame.display.se... | [
"debmainak37@gmail.com"
] | debmainak37@gmail.com |
9c1e7ccfd0b2f7d17f8fe90ca5e9987b5d32120c | b9a68a2135a92419203f78fbf98f67340ed04095 | /rviz_map_publisher/scripts_without_ros/osm_render.py | 807eee0aae984ce23f55c219c299f7dc7666259f | [] | no_license | szenergy/szenergy-utility-programs | 487002758f2edfe877b88fa0853931f862a3a8e1 | 2a3d5e0213a4d68afe1ea22f5f38d399791e7ec8 | refs/heads/master | 2023-05-27T16:14:17.140427 | 2023-05-18T14:58:31 | 2023-05-18T14:58:31 | 207,478,962 | 2 | 3 | null | 2022-06-03T10:34:47 | 2019-09-10T06:12:33 | Jupyter Notebook | UTF-8 | Python | false | false | 27,086 | py |
#!/usr/bin/env python
#############################################################
## from http://code.activestate.com/recipes/534109-xml-to-python-data-structure/
import re
import xml.sax.handler
def xml2obj(src):
"""
A simple function to converts XML data into native Python object.
"""
non_id_cha... | [
"horverno@gmail.com"
] | horverno@gmail.com |
81ceb438b92b56de14e3d9cdc5c79b3fdbaa1ff1 | d2ed0c6b479e826039d6ce848e911100341c3373 | /Sum_of_diagonals.py | 348bd395141a45a6a23fa02b31268af57e48f4da | [] | no_license | Ajith-Kumar-V/Guvicodekatta | 595b9672136f221b4f06ecb3de2fdfda6dbc6600 | 7d510b689eafb1c31d94104aaef89654d901a351 | refs/heads/master | 2023-05-11T22:15:35.797834 | 2023-05-02T06:34:54 | 2023-05-02T06:34:54 | 223,870,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | n=int(input())
l=[]
for i in range(n):
h=[int(x) for x in input().split()][:n]
l.append(h)
k=0
o=0
for i in range(n):
for j in range(n):
if (i==j):
k=k+l[i][j]
if ((i+j)==(n-1)):
o=o+l[i][j]
print(k*o)
| [
"noreply@github.com"
] | Ajith-Kumar-V.noreply@github.com |
f19f741ea3c34845081181763d347520a1caa887 | 619f292b7da344fcf16418f1f3ed31eb76ecfbc7 | /accounts/models.py | cab65acd7c0b679e83b2150af80ec43fed73b319 | [] | no_license | AhmadShalein/drf-auth | 1c1d692e122d0b28673641355f8be51fc3265f3c | 055d4cba1a155a4a9c13993739f0b373cd712d1a | refs/heads/master | 2023-08-05T08:11:25.438323 | 2021-09-10T21:35:31 | 2021-09-10T21:35:31 | 404,116,860 | 0 | 0 | null | 2021-09-10T21:35:32 | 2021-09-07T20:40:59 | Python | UTF-8 | Python | false | false | 183 | py | from django.contrib.auth.models import AbstractUser
class CustomUser(AbstractUser):
pass
# add additional fields in here
def __str__(self):
return self.username | [
"ahmadshalein@gmail.com"
] | ahmadshalein@gmail.com |
f4a69f5e7bb25cf7ff64d9bae0aa9e8d7ad77f17 | 409adbf0d2f6a54e0c026c6ae454ce141d90ac82 | /checkout_sdk/payments/payment_action_response.py | d7f80c3c16b4cc8d807b2db39c463041a8ad1044 | [
"MIT"
] | permissive | intelligems/checkout-sdk-python | 13a4934dc2d178d3d108355ae842f35a1ab5594c | 729eb99a76e3a139c59ad045ff6d1fbd1252141d | refs/heads/master | 2020-04-08T05:56:49.092606 | 2018-11-28T08:23:38 | 2018-11-28T08:23:38 | 159,079,942 | 0 | 1 | MIT | 2018-11-27T10:16:23 | 2018-11-25T22:18:40 | Python | UTF-8 | Python | false | false | 621 | py | from checkout_sdk.payments import PaymentResponse
class PaymentActionResponse(PaymentResponse):
@property
def created(self):
return self._response.body['created']
@property
def track_id(self):
return self._response.body['trackId']
@property
def currency(self):
return ... | [
"noreply@github.com"
] | intelligems.noreply@github.com |
b755ac44206a9c9dda1a389710cdf3a9fba8ec30 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/securityinsights/v20190101preview/get_watchlist.py | c72fb1c220e6a8ad7528ffa0f04b1c3a81368bad | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,021 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
a23f563e1df219a658a0f8c8d16322002848dada | 70765f9e1ba53a8a10fac19b5400da02cc72973e | /features/steps/addItem.py | 134387198429ad304551fc0319e51c7573a63b43 | [] | no_license | ian-m-robinson/BehaveFeature1 | 4c25570586b4d0d707fff3e258b499402f411f83 | ed2d2d2f05e05682648970053e7fad354ac0e534 | refs/heads/master | 2023-03-08T01:11:33.606461 | 2021-02-21T11:48:25 | 2021-02-21T11:48:25 | 340,887,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,484 | py | from behave import *
from selenium import webdriver
from pageObjects.amazonSelection import AmazonHelper
driver = webdriver.Chrome(executable_path="C:/WebDrivers/Chrome/88.0.4324.96/chromedriver.exe")
driver.implicitly_wait(10)
driver.maximize_window()
driver.get('https://www.amazon.co.uk/')
##### 1 #####
@given('th... | [
"ian.robinson@grassvalley.com"
] | ian.robinson@grassvalley.com |
c5ca7cefe08c0d9afc5de1026d5235f3313881e0 | 991c41603a460870f66b8017c7b1e17ca3cef1eb | /MouseLocation32.py | ef9080adc741c5fe775a2c335b56f1fc75c1f6da | [] | no_license | xiangpengBu/angle | 2953ae926fa423b94df0769750b58ac1069c5a49 | cd4cacb8383de687ca8db609e605455905193421 | refs/heads/master | 2022-11-09T18:34:19.537581 | 2020-06-22T08:30:45 | 2020-06-22T08:30:45 | 274,082,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | # -*- coding: utf-8 -*-
"""
作者:小卜
功能:鼠标键盘控制word
版本:v1.0
日期:2019/07/21
"""
import pyautogui
try:
while True:
x, y = pyautogui.position()
print(x, y)
except KeyboardInterrupt:
print('\nExit.') | [
"xiangpeng.bu@gmail.com"
] | xiangpeng.bu@gmail.com |
3f80baeaee8814fce5876d1fd05427e8e5961cfc | 281a10505f8044dbed73f11ed731bd0fbe23e0b5 | /expenseApp/forms.py | a27cb1ba630beb7e285f40eca794838affed173f | [
"Apache-2.0"
] | permissive | cs-fullstack-fall-2018/project3-django-jpark1914 | 7c6f57ab5f8055c11ac5b9d3c8bf0aa5057008d7 | 53bca13243d7e50263ec25b2fb8a299a8bbada1c | refs/heads/master | 2020-04-02T00:59:33.254360 | 2018-10-29T04:58:42 | 2018-10-29T04:58:42 | 153,831,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | from .models import AccountModel, UserSetup, TransactionModel
from django import forms
class AccountForm(forms.ModelForm):
class Meta:
model = AccountModel
fields = ['account_name','balance','savings','deposit', 'expense']
widgets = {'balance': forms.HiddenInput, 'savings':forms.HiddenInput... | [
"parkerj4321@gmail.com"
] | parkerj4321@gmail.com |
2bb25eec64ffb25dc4f7dbffaaeabcdea013bc40 | ec368665385e591759114b8d614ac82a11ecbc4d | /image_to_pdf.py | a36903822a5dff7a47040005c2e9f9de92f3f377 | [] | no_license | driverxxvii/PDF_Tools | 454d4689307b6b9731e70fd12e4590e1a21569a6 | 4ec01519a6e27681225867eddf543cceb96e5073 | refs/heads/master | 2022-12-21T09:40:09.404074 | 2020-10-01T20:57:54 | 2020-10-01T20:57:54 | 268,502,576 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,083 | py | import pathlib
import img2pdf
import PySimpleGUI as sg
import os
import subprocess
from configparser import ConfigParser
def verify_folder_path(folder_path):
folder_path = pathlib.Path(folder_path)
if folder_path.is_dir():
return True
else:
return False
def get_image_list... | [
"noreply@github.com"
] | driverxxvii.noreply@github.com |
5443d92465ce82b11372495fff29617c70497999 | eba78a0880b0c1e11b86ec43d36ae4aaf211fe93 | /models/vision/detection/awsdet/utils/fileio/io.py | 39596c9b35df4ec2518ca9625d78690c61c0815c | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | sagardotme/deep-learning-models | 54a9a2d5885d1678e7b3e9caa234b5d597808c15 | c4ebbdacf10af45a29dc1f5ad40df4c90d978184 | refs/heads/master | 2022-11-13T06:23:41.615005 | 2020-06-22T22:07:00 | 2020-06-22T22:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,793 | py | # Copyright (c) Open-MMLab. All rights reserved.
from pathlib import Path
from awsdet.utils.generic import is_list_of, is_str
from .handlers import BaseFileHandler, JsonHandler, PickleHandler, YamlHandler
file_handlers = {
'json': JsonHandler(),
'yaml': YamlHandler(),
'yml': YamlHandler(),
'pickle': P... | [
"noreply@github.com"
] | sagardotme.noreply@github.com |
52280d14135fcbe038e6ab859cab81194f5ca7cd | 941eaf75c919c1eaee0415d397b1522d30526e9d | /ML/cluster_graph.py | 8b98f33907c0ed008dbbf89488d0d8c13ecac9d5 | [] | no_license | ldorellana/knowledge | 6ec56c2936ff9d244240a4b15e66e6f037e3f573 | 1f85eceef5855db30819161f7b5087fe0c54c4cc | refs/heads/main | 2023-08-22T07:11:18.448761 | 2021-10-26T23:06:57 | 2021-10-26T23:06:57 | 414,879,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | # Databricks notebook source
import plotly.io as pio
import pandas as pd
import plotly.express as px
import plotly.graph_objects as go
import plotly.figure_factory as ff
from plotly.subplots import make_subplots
import matplotlib.pyplot as plt
import seaborn as sns
import datetime as dt
import numpy as np
# COMMAND --... | [
"noreply@github.com"
] | ldorellana.noreply@github.com |
bc765d8f3a13002b4df36a34818d22469358b901 | 08ce9d9c003a97832d0b754c36e448340052d8c0 | /mili_moudle/lib/model_evaluation_plot.py | 13a0d38c0199b857cbc05f84d09543c7c8de46dd | [] | no_license | reference-project/my_work | fb6660d95cdf51210591448d82d5d4fdc29a55e8 | d6fa1ab7f510ac10d814b10d0ed2aeffccb3f53b | refs/heads/master | 2020-05-15T09:20:27.975953 | 2017-11-16T02:08:53 | 2017-11-16T02:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,698 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 27 17:15:55 2017
@author: potato
用于绘制模型效果的图的工具
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.metrics import roc_curve,auc
from sklearn.metrics import confusion_matrix
from sklearn.metrics import accuracy_score,precision_score,r... | [
"FCY563991"
] | FCY563991 |
c98aa212d01c7daa0c18dcb80c0233eebd8e02bb | 8dfdebb981abbe02abbf178cfd68e76154ee183b | /tool.py | 5fcd3781ec32af2d9c64d328df46ee1734ce3698 | [] | no_license | valeriocos/busfactor | 1be45656cc7c24213f1a76b6f4a93d47c8e89ff5 | 13341dbbc6ab873c8b00e2a4c40a2dbebcac170b | refs/heads/master | 2020-12-25T16:25:36.773740 | 2017-07-11T16:03:25 | 2017-07-11T16:03:25 | 68,021,592 | 0 | 0 | null | 2016-09-12T15:25:51 | 2016-09-12T15:25:50 | null | UTF-8 | Python | false | false | 2,019 | py | __author__ = 'atlanmod'
import subprocess
import os
import signal
import sys
import time
import psutil
from selenium import webdriver
from bus_factor_gui import BusFactor
WEB_BROWSER_PATH = 'C:\chromedriver_win32\chromedriver.exe'
pro = None
gui = None
#if this value is false, the script will prompt the content of t... | [
"valerio.cosentino@gmail.com"
] | valerio.cosentino@gmail.com |
aca9efeda591797902aa1b2a8db77d2e97a960b3 | 38ccd54385a2bf7b8bdae0fc2c7a3f0c18388e93 | /src/app/urls.py | 4756a0c1b442c5c54f67b333acad1d32bc16d33b | [] | no_license | juzi198528/EndlessSummer | 35e35d4e50a445729a1a3e9be9a5abfe0258ee44 | 00104365b9d063ee1638fc292e6779e77e83a8d7 | refs/heads/master | 2021-01-10T09:34:58.210939 | 2015-07-02T14:23:28 | 2015-07-02T14:23:28 | 36,563,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^login$', 'app.views.login'),
url(r'^logout$', 'app.views.logout'),
url(r'^doLogin', 'app.views.doLogin'),
url(r'^$', ... | [
"Administrator@WIN-8GRLM60SKUV"
] | Administrator@WIN-8GRLM60SKUV |
a52454850b304a36ed7bdc5226f5e936ea6652f3 | e76c6f7b95a0f21eb4b824e4edeadd79295b1929 | /classification_by_bert/model/FGM.py | 24450b883327cabb16cf3f5f06495641afc80c27 | [] | no_license | WuDiDaBinGe/DAGUAN2021_PretrainedModelTextClasssifier | 5ff5c21ae469d7b9cb531d0cf326472f1ee8e000 | 5c160ce6328ad0d0f0439c6d495bfea1ef96a2d1 | refs/heads/main | 2023-08-01T09:14:44.745205 | 2021-09-18T14:12:11 | 2021-09-18T14:12:11 | 397,621,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # -*- coding: utf-8 -*-
# @Time : 2021/9/8 下午2:54
# @Author : WuDiDaBinGe
# @FileName: FGM.py
# @Software: PyCharm
import torch
class FGM():
def __init__(self, model):
super(FGM, self).__init__()
self.model = model
self.backup = {}
def attack(self, epsilon=1., emb_name='word_embed... | [
"1151680016@qq.com"
] | 1151680016@qq.com |
53be767ec0af9da1b6e57546b948c92ff061651d | c5b863c2e6a13111af6bb0eb6fd400eab668c194 | /BANCO-DE-DADOS/tamanho.py | b248f912d0dce724b341865c84ecdb3492ef0f51 | [] | no_license | Demerson-Demy/Ceunsp-ProjetoADS | b5bfc461cc34769a62fe06f6e51f4f9e0fca1846 | a58018e12c8a4c7088575df3003efb0ea89a5054 | refs/heads/main | 2023-07-18T11:24:07.237857 | 2021-09-09T01:07:19 | 2021-09-09T01:07:19 | 393,188,629 | 0 | 0 | null | 2021-08-05T22:54:27 | 2021-08-05T22:54:27 | null | UTF-8 | Python | false | false | 389 | py | import sqlite3
conector = sqlite3.connect("vendas1.db")
cursor = conector.cursor()
# TABELA Marca
cursor.execute("""
CREATE TABLE Tamanho (
Marca VARCHAR (3) NOT NULL PRIMARY KEY,
Tamanho INTEGER NOT NULL
);
""")
conector.commit()
cursor.close()
conector.close()
print("Abra a pasta... | [
"matheussabatine1717@gmail.com"
] | matheussabatine1717@gmail.com |
e95f81c2edaab21bbe2f5f9e621eae62b13fdc86 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/_api/v1/keras/datasets/cifar10/__init__.pyi | f00ca8b56bea50c2b28c37c450e8e377366f9b62 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 220 | pyi | # Stubs for tensorflow._api.v1.keras.datasets.cifar10 (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python.keras.datasets.cifar10 import load_data as load_data
| [
"matangover@gmail.com"
] | matangover@gmail.com |
c70df226052d8f417c68f5042c2658c51fd492ef | 77abb9d33eedb68da3cb07db5c9cde94f24c7316 | /apps/transcripts/migrations/0006_mission_wiki.py | d43d37b12afd71a36046769b86770e971e2c1126 | [] | no_license | Spacelog/kallisto | 81aa62341c6d2925077fddae55fcf4280a74fed7 | f9644a304b98b358144a39cd7e6eba4f2e01c10e | refs/heads/master | 2020-12-29T02:19:50.069589 | 2017-04-15T18:55:08 | 2017-04-15T18:56:26 | 28,003,946 | 6 | 4 | null | 2016-02-17T08:18:27 | 2014-12-14T18:44:01 | Python | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('transcripts', '0005_mission_active'),
]
operations = [
migrations.AddField(
model_name='mission',
na... | [
"james@tartarus.org"
] | james@tartarus.org |
913fca80ba4ca3f8ecb38be59cd12e79ec3b9624 | 92c4fa8ea5ed8447da2c6104960f8a8da8cd03ec | /build/lib/accounting/accounting/doctype/sales_invoice/test_sales_invoice.py | a23b48a9ff041d6ace9aef685c0ebeca84e092d3 | [
"MIT"
] | permissive | mincerray1/accounting | 9c4f69b8e4e6f20bb7563d3cbf1fd4e2907d8d77 | 74867a71918a99500fb78c75652841bcb8e509a1 | refs/heads/master | 2023-03-20T19:01:53.271813 | 2021-01-14T16:01:17 | 2021-01-14T16:01:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Shariq and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestSalesInvoice(unittest.TestCase):
pass
| [
"sharique.rik@gmail.com"
] | sharique.rik@gmail.com |
1ff7a39ec3597863b3679337588d619360ca90e2 | 45057b4f2c48746258ac45e21e1e0fb74c990ee0 | /hw1/p4_utils.py | 43913e1e8f39f1a272b51669bb2a394ea5aa79f6 | [] | no_license | WingConghyc/ECE276B | cd6c2f35918c3d8fc1ac9d442efb48c138bcb2e2 | ecd8803c7ca7c1f250bfaf5754474b418f9bda65 | refs/heads/master | 2022-01-07T14:51:02.623422 | 2019-06-16T06:32:12 | 2019-06-16T06:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | import numpy as np
import sys
import os.path
def load_data(input_file):
'''
Read deterministic shortest path specification
'''
with np.load(input_file) as data:
n = data["number_of_nodes"]
s = data["start_node"]
t = data["goal_node"]
C = data["cost_matrix"]
return n, s, t, C
def plot_graph... | [
"arthas960426@gmail.com"
] | arthas960426@gmail.com |
dff218f2d3e619dc6787100c4a5e2b2bd86f8b49 | 3b048e8b62b36b039528fc636dcbee1124c8cb20 | /PyQt5 ile Rakam Sınıflandırma(Digit Classification GUI Projesi)/digit_classification_project_w_pyqt5.py | afdeee4b6bd928749f6993a6fe1ae01bd79cf35d | [] | no_license | rabia-koc/Python_GUI | c39b36ef6eaa11df91bb1638569bb30d147e074b | efe4b1e09777195e92e19ad316550c0de146e56c | refs/heads/main | 2023-04-10T12:21:36.961200 | 2021-04-09T18:51:16 | 2021-04-09T18:51:16 | 356,365,607 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,398 | py | # libraries
from PyQt5.QtWidgets import *
from PyQt5.QtGui import QIcon, QPixmap, QImage, QPainter, QPen # icon and load image
from PyQt5.QtCore import Qt, QPoint
import sys
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg # load image
import cv2 # open-cv use for image resize
## C... | [
"rabia8940@gmail.com"
] | rabia8940@gmail.com |
5f6125e1653f98b3cd435fbb27e389a8d9bf676d | c033b4bc0b80938192712a336a941f921b056106 | /PythonK/FirstPython/Actual/Chapter7/venv/Scripts/pip3.6-script.py | 8c4ea0adf094c7250d2fa2c3df53aa8e4c53ad4f | [] | no_license | BigBrou/Laboratory | 4e9a92cbccf2379c8fedb5abbb5dc896a477d018 | 2ec4ece91bf7d5774d7028c3ea620a36b279bfbb | refs/heads/master | 2020-03-24T16:48:25.017498 | 2018-12-27T09:04:13 | 2018-12-27T09:04:34 | 142,837,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Laboratory\PythonK\Actual\Chapter7\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"kangchoi21@gmail.com"
] | kangchoi21@gmail.com |
9ef1e707cfef298c980ba2d63f51efb5bc17c697 | 041de55260dabd8d00f3b54eb9514ac78b0d49fb | /train.py | 5f9d15b829d9949e49513257318d3ccfd6c96402 | [] | no_license | MikeynJerry/bert-glove-embeddings | 753f6bcf82337c94b30578ccabbf100a05f1ffd5 | 2f880334fe847691878d64289dfddc2afbc4df04 | refs/heads/main | 2023-03-04T14:43:20.118628 | 2021-02-10T06:26:29 | 2021-02-10T06:26:29 | 322,494,720 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,857 | py | """
Paper: https://arxiv.org/abs/2010.11869
Section 4.2: Training Word Piece Embeddings in GloVe Space
Description:
BERT Embeddings are not trained to keep semantically similar tokens close in
the embedding space. To reconcile this, we can train our own embeddings that
correspond to ... | [
"MikeynJerry@gmail.com"
] | MikeynJerry@gmail.com |
c7dec764dec68f162f3ec5a85ea862a15014b5c5 | 8ef458a868df9c729fa1f31e9b9c4b483c58770a | /todo/urls.py | b36e35d1800bd8450c991275e17ad1167f703692 | [] | no_license | FillGit/tztodo2 | a9fd0abb6c286f9949bb6ee7f6e25e6d03a6b85e | 61e0f38beb490a4fbc85c49129647fad108212dd | refs/heads/master | 2022-12-11T16:35:56.225656 | 2019-05-29T02:54:02 | 2019-05-29T02:54:02 | 189,139,161 | 0 | 0 | null | 2022-12-08T01:46:19 | 2019-05-29T02:51:29 | JavaScript | UTF-8 | Python | false | false | 1,481 | py | from django.urls import path
from django.conf.urls import url
from rest_framework.urlpatterns import format_suffix_patterns
#from rest_framework.authtoken import views
from todo import views
urlpatterns = [
url(r'^todo/set-user-perm/$', views.SetUserPermission.as_view()),
url(r'^users/$', views.UserList.as_v... | [
"moandcom@mail.ru"
] | moandcom@mail.ru |
615b0e3ce001a61de185b62a6465cb046a30fcc6 | 416baad7e83075c1c59f1fa920d9a18cd3351f16 | /tensor2tensor/models/__init__.py | 58badcb4e011ce3350c1cf88d2bd7a49cbdc8d59 | [
"Apache-2.0"
] | permissive | jmlingeman/tensor2tensor | aa759fc9101149284b0b6f2f7a03e9759b7214a9 | 9921c4a816aafb76964a960541045ce4d730b3c9 | refs/heads/master | 2021-04-29T01:52:38.283004 | 2018-04-23T20:04:12 | 2018-04-23T20:04:12 | 121,812,413 | 0 | 0 | null | 2018-02-16T23:39:11 | 2018-02-16T23:39:11 | null | UTF-8 | Python | false | false | 1,986 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# 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... | [
"rsepassi@google.com"
] | rsepassi@google.com |
1a195c5f10ae761b55203c69b12fcba3bdcadbea | 091b59690f8916b494de20f6354bab09b5bdbb4a | /PY/zhihu/爬虫/spyder/my_spider/my_spider/settings.py | ae170e07ea6dcb3aaf3f7c8dcc7a2b3a6f258e39 | [] | no_license | IRON-HAN/hanhan | e1203f9ab537c076f86150322d6e751c9c1555d9 | 3657b843134aad0b4e8be4ecdded89739b7c51b5 | refs/heads/master | 2020-08-24T09:11:15.396344 | 2020-06-17T07:09:32 | 2020-06-17T07:09:32 | 216,800,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | # -*- coding: utf-8 -*-
# Scrapy settings for my_spider project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/t... | [
"2674467254@qq.com"
] | 2674467254@qq.com |
76ec8bf5543ffb36898752bdb0bdcbe7ab1cea56 | 728f9ce8d8208ff6cff038d84ac77cce9749ce8a | /pages/product_page.py | 3e88d23d6896693971192289f89534f7f8e9f834 | [] | no_license | TopKesha/TestingProject | 7c1fb59cec4f54c1cb00fe2f7904ee9b191b2675 | 6cfa37954530173edb96feaa63450591c42911ea | refs/heads/master | 2021-07-15T09:42:02.948183 | 2020-03-19T10:57:33 | 2020-03-19T10:57:33 | 247,429,099 | 0 | 0 | null | 2021-06-02T01:11:20 | 2020-03-15T08:34:42 | Python | UTF-8 | Python | false | false | 2,104 | py | from .base_page import BasePage
from .locators import ProductPageLocators
from selenium.webdriver.common.by import By
class ProductPage(BasePage):
def should_add_to_basket(self):
self.should_be_add_button()
basket = self.browser.find_element(*ProductPageLocators.BASKET_BUTTON)
basket.cli... | [
"deregodub@gmail.com"
] | deregodub@gmail.com |
f103aafbf715a9b1e105825dc4bb9b2fe7adc430 | d7492659ff9ce2cb2772e79d480b595f91482fe2 | /finance/data/yahoo/ddl.py | bc223520587f40d3b2b2786bf4dae2828feddd91 | [] | no_license | StockScripts/fun-times-in-python | 8e02d4228a9cdf82618a64aa2d6a53e9584cae1a | 4b48f7c475c5efb220561fae919515ef1f78f592 | refs/heads/master | 2022-12-03T20:49:32.124000 | 2020-08-23T17:15:09 | 2020-08-23T17:15:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | STOCKS = '''
CREATE TABLE yahoo.stocks (
ticker text,
date_time timestamp without time zone,
open numeric,
high numeric,
low numeric,
close numeric,
adj_close numeric,... | [
"rbetzler@94.gmail.com"
] | rbetzler@94.gmail.com |
06f2d36fbb85bae7a5b684e93a760e88ee7b328d | de392462a549be77e5b3372fbd9ea6d7556f0282 | /accounts/migrations/0198_auto_20210812_1748.py | 26547e06f8a5011da9233e88c29c998430ef3246 | [] | no_license | amutebe/AMMS_General | 2830770b276e995eca97e37f50a7c51f482b2405 | 57b9b85ea2bdd272b44c59f222da8202d3173382 | refs/heads/main | 2023-07-17T02:06:36.862081 | 2021-08-28T19:07:17 | 2021-08-28T19:07:17 | 400,064,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | # Generated by Django 3.2.3 on 2021-08-12 14:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0197_auto_20210812_1740'),
]
operations = [
migrations.AlterField(
model_name='car',
name='car_number',
... | [
"mutebe2@gmail.com"
] | mutebe2@gmail.com |
0cc944ad08606f283d0fd21ac183c8c897f213ab | 798fb70caa831fc091afcc68b0584a16201b776b | /pwn/gawr_gura/solve.py | ced45fa0d021d99b987db30f6055598c58f583e7 | [] | no_license | xuunnis123/ncu-ad-2021 | d26176147eacb7134887233eecf3521986dd0d58 | c061801835e4f2aa946e00326fdf65be15378450 | refs/heads/main | 2023-09-02T04:39:32.619649 | 2021-11-17T07:33:08 | 2021-11-17T07:33:08 | 428,971,719 | 3 | 0 | null | 2021-11-17T08:52:10 | 2021-11-17T08:52:09 | null | UTF-8 | Python | false | false | 1,212 | py | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
from pwn import *
context.arch = 'amd64'
# p = process('./distribute/share/gawr_gura')
p = remote('ctf.adl.tw', 10003)
libc = ELF('/lib/x86_64-linux-gnu/libc.so.6')
pop_rax = 0x4a550
pop_rdi = 0x26b72
pop_rsi = 0x27529
pop_rdx_pop_r12 = 0x11c371
syscall = 0x2584d
bss = 0x... | [
"opp556687@gmail.com"
] | opp556687@gmail.com |
281090431d5371b25cb5f61faa42b5ded0fee6a8 | b2ba670818623f8ab18162382f7394baed97b7cb | /test-data/AndroidSlicer/Carnote/DD/32.py | 4201f082c91275a5dd9fd6d0c08a4ab34f2b21ff | [
"MIT"
] | permissive | hsumyatwin/ESDroid-artifact | 012c26c40537a79b255da033e7b36d78086b743a | bff082c4daeeed62ceda3d715c07643203a0b44b | refs/heads/main | 2023-04-11T19:17:33.711133 | 2022-09-30T13:40:23 | 2022-09-30T13:40:23 | 303,378,286 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | #start monkey test seedNo 0
import os;
from subprocess import Popen
from subprocess import PIPE
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
from com.android.monkeyrunner.MonkeyDevice import takeSnapshot
from com.android.monkeyrunner.easy import EasyMonkeyDevice
from com.android.monkeyru... | [
"hsumyatwin@gmail.com"
] | hsumyatwin@gmail.com |
ff38640ad5a4f55a1f83c27af699d4597b525d3d | 70f41a06d733e680af3bb1f00d8ff33574f4f4bb | /src/fh_tools/language_test/base_test/bisect_demo/grades_demo.py | 3c04e262f62fafdf04b345d787e0ae2cae0fa7b6 | [
"MIT"
] | permissive | mmmaaaggg/RefUtils | 209f7136acc63c880e60974c347e19adc4c7ac2e | f127658e75b5c52b4db105a22176ee0931ceacae | refs/heads/master | 2021-06-11T16:06:06.245275 | 2021-03-10T05:32:14 | 2021-03-10T05:32:14 | 139,413,962 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
"""
@author : MG
@Time : 19-8-9 上午10:33
@File : grades_demo.py
@contact : mmmaaaggg@163.com
@desc : 通过二分发计算分数等级
"""
import bisect
def grade(score, breakpoints=[60, 70, 80, 90], grades='FDCBA'):
i = bisect.bisect(breakpoints, score)
return grades[i]
pri... | [
"mmmaaaggg@163.com"
] | mmmaaaggg@163.com |
0ae10a2b6e6b55491ec55d65a1c850dc3e3e6053 | 8354ba19cacacdc7162a86b7443453c594e8be86 | /list2/ex6/ex6.py | f87711a65fd80224405c90b3b49eaaf1656fb768 | [] | no_license | fvvsantana/complexNetworks | 459204e540f0497d34f1c796235549959456f33e | e89944c57fc3d6f55b96e8057b134297874ba291 | refs/heads/master | 2022-04-16T01:26:51.501647 | 2020-03-04T19:00:51 | 2020-03-04T19:00:51 | 207,572,665 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,210 | py | #| # Exercise 6
#| Import the libraries that we'll use
import numpy as np
import matplotlib.pyplot as plt
import networkx as nx
from networkx.algorithms import community
from networkx.algorithms.community import LFR_benchmark_graph
from community import community_louvain
from networkx.algorithms.community import greed... | [
"fvvsantana@gmail.com"
] | fvvsantana@gmail.com |
c8e5b610e66fe12f06e9864a4d4e8f7b71e3ef09 | d72b976375e3dfb036d517ccb1a964dc6cb2d304 | /xmind2testcase/parser.py | ee32a7fabf7269d69b6d5fbbbc252f6a8ef24f50 | [
"MIT"
] | permissive | kingfeng999/format-conversion | 6cee87ae9401809222e776ffbfef77e7bf9a1c54 | 9260b4b44e7a6d81435478b61a87e2eba171199a | refs/heads/master | 2023-07-12T18:07:13.983277 | 2021-09-02T06:26:45 | 2021-09-02T06:26:45 | 402,277,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,738 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
import logging
from xmind2testcase.metadata import TestSuite, TestCase, TestStep
config = {'sep': ' ',
'valid_sep': '&>+/-',
'precondition_sep': '\n----\n',
'summary_sep': '\n----\n',
#用例类型的配置
'type_sep': '\n----\n',
... | [
"80831093@qq.com"
] | 80831093@qq.com |
d1a70f73fb20ba0b4e77e345f0f3dd1bc1b3ff95 | f29f9ab89a1379ddbe72bc44d51e1f0ac11a1a01 | /tests.py | 0b3a86839711ed9b612dd12edaeec95d890b5959 | [] | no_license | JonnyPtn/foxholewar | b8813f232f6c66d97b2177db1cd3e684a3b876e8 | 6709c427129b55435cf7f002db50e3622f0d51c5 | refs/heads/master | 2023-03-03T10:30:57.369853 | 2021-02-10T22:19:13 | 2021-02-10T22:19:13 | 336,001,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | import foxholewar
import unittest
class TestFoxholeWar(unittest.TestCase):
def setUp(self):
self.client = foxholewar.Client()
def testWarInfo(self):
war = self.client.fetchCurrentWar()
self.assertTrue(war.warId)
self.assertTrue(war.warNumber)
self.assertTrue(war.winne... | [
"jonathan.r.paton@googlemail.com"
] | jonathan.r.paton@googlemail.com |
f9abec6fa42e9d878564cd66daad29f560d5db88 | ef94abd0f60fae659d0a88c943bc674071ac09bb | /CV/016_Blur.py | a89599fb7396045c97c9c4b8c47c7bf4069cd577 | [] | no_license | ookeyLai/demo_rep | 544b8620f4540d6c0ddc7d6bb924bf03998bde6d | e6be1faf337aaa7f2bd7f1937cbca1f1164b13d6 | refs/heads/master | 2020-07-01T12:56:04.943928 | 2019-08-08T05:06:16 | 2019-08-08T05:06:16 | 201,182,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 18 14:59:58 2018
@author: 103009
"""
import numpy as np
import cv2
pic = cv2.imread('data/test.jpg')
matrix = (7,7)
blur = cv2.GaussianBlur(pic,matrix,0)
cv2.imshow('Blur',blur)
cv2.waitKey(0)
cv2.destroyAllWindows()
| [
"ookey.lai@gmail.com"
] | ookey.lai@gmail.com |
cb6accfd6065f9b2156c864d8fcd85c969a8dc89 | e53e6231dfdc768fe5c8120ff6f2d85532bd6127 | /wrappers/python/tests/test_document.py | d77c548f53cca5175e08d3f0bcbd8f4d9da8a945 | [] | no_license | shiwenxiang/clucene | 151a2aa77a721533b04789e2aa2053bea1b32494 | d9da18a8dc90be43c8da370590e528749502f3c8 | refs/heads/master | 2016-09-06T07:17:09.129196 | 2005-05-13T15:06:26 | 2009-12-10T08:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,612 | py | import datetime, os.path, sets, shutil, sys, time, unittest
from cStringIO import StringIO
import test_base
from pyclene import lucene
_THIS_FILENAME = test_base.getFilenameOfThisPythonTestModule(__file__)
def getFullTestSuite():
suite = unittest.TestSuite()
suite.addTest( unittest.makeSuite(FieldTest) )
... | [
"schwern@pobox.com"
] | schwern@pobox.com |
f1f4168c3797c481d71296c7d960e54ea668b568 | 46e9153700e42cdf7a90fc82952d6cffbebc7a63 | /badminton.py | 6c466862601c2ccf4c983014699fe65f98d038d7 | [] | no_license | peepliuct/badminton | 1556d440cb99a2f03d06c5f51f8a80f9f1eee57e | 5dad29853371750113fdbae2de358319f3465163 | refs/heads/master | 2020-06-04T02:59:15.065395 | 2013-09-14T14:53:56 | 2013-09-14T14:53:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | import os
import urllib
import webapp2
import jinja2
JINJA_ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions=['jinja2.ext.autoescape'])
class MainPage(webapp2.RequestHandler):
def get(self):
template = JINJA_ENVIRONMENT.get_template('hello2.html')
sel... | [
"changtai@changtai.liu"
] | changtai@changtai.liu |
75b3c4d5e2dd62fac21f0f7d3f5fee00bfbff732 | f90f218c3f8124b84141ed059a81b01d35889bc5 | /app_2gis/views.py | c3c1da7f6076610ae977fc45d9e14cad5fed73fd | [] | no_license | rodakalex/mapApi | 1c62141e7beb098a9e6c2bd11d0b6749d066d912 | adbbee4adb0668ce605128d917c1f78411d956fa | refs/heads/master | 2023-02-19T04:30:33.802873 | 2021-01-19T21:04:15 | 2021-01-19T21:04:15 | 330,678,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | from rest_framework.response import Response
from rest_framework.views import APIView
from django.shortcuts import render
from .models import Path
def index(request):
return render(request, "index.html", context={})
class Coord(APIView):
def get(self, request):
coords = Path.objects.all()
r... | [
"ravengothic@mail.ru"
] | ravengothic@mail.ru |
2155f6826ed7b9607bfc77f9e46bc7b6daf29ed5 | 95d64b1dea3db73e85562aa2665c3a696370a679 | /code/information-gain.py | da46714604a93ed9d59f09d41c3b92d03c5e7812 | [] | no_license | Smolky/exist-2021 | 7481e36fb3f44263c1a2190890fc6ac894c4fac5 | 2d51a01a829cb9e9b44eca5b9eefb06cb62162c8 | refs/heads/main | 2023-05-30T14:21:56.913663 | 2021-06-16T08:10:36 | 2021-06-16T08:10:36 | 364,022,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,758 | py | """
Information Gain per class
This class calculates the Information Gain (Mutual Info) of a dataset
and uses it to select the most discrimatory features
@author José Antonio García-Díaz <joseantonio.garcia8@um.es>
@author Rafael Valencia-Garcia <valencia@um.es>
"""
import... | [
"Smolky@gmail.com"
] | Smolky@gmail.com |
9545a1c677720b2cc1d1a08ee3eaaa268a423759 | 390d19c3159133d8c688396cb11b4ed3f8178d09 | /BaekJoon/APS_2019/2669_직사각형 네개의 합집합의 면적.py | 1d2b01330c52119bf983190b61936d5a7dcf040a | [] | no_license | JJayeee/CodingPractice | adba64cbd1d030b13a877f0b2e5ccc1269cb2e11 | 60f8dce48c04850b9b265a9a31f49eb6d9fc13c8 | refs/heads/master | 2021-08-16T17:14:01.161390 | 2021-07-16T00:42:18 | 2021-07-16T00:42:18 | 226,757,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py |
dwr = [[0]*100 for _ in range(100)]
count = 0
for i in range(4):
xs, ys, xe, ye = map(int, input().split())
for x in range(xs, xe):
for y in range(ys, ye):
if dwr[x][y] == 0:
dwr[x][y] = 1
count += 1
print(count)
| [
"jay.hyundong@gmail.com"
] | jay.hyundong@gmail.com |
0d2a16d7181c1db586115e68bf2682e3051a7bef | e9bc2f88c0849c7a00d7f6a443d23e9148b0fe4e | /hc05config/port_select.py | 3f839191157c5f7505ab32ae4d280b0163169006 | [
"MIT"
] | permissive | DenisSouth/HC-05-ConfigTool | 03908031eee02f123708ff25508b7dcd0707bc73 | fb03e8057a2bdb88dcfc793889d76781d04dfeb7 | refs/heads/master | 2021-05-17T14:30:16.804628 | 2020-03-28T15:27:57 | 2020-03-28T15:27:57 | 250,822,752 | 0 | 0 | MIT | 2020-03-28T15:00:00 | 2020-03-28T14:59:59 | null | UTF-8 | Python | false | false | 900 | py | from serial.tools.list_ports import comports as listPorts
from serial.serialutil import SerialException
from .AT_command import *
from .input_lib import get_input
def getPortName(info_msg):
while True:
print("Available Ports:")
ports = list(map(lambda x: x.device, listPorts()))
for i, port in enumerate(ports):
... | [
"josephlamyip@gmail.com"
] | josephlamyip@gmail.com |
8d78ceb59cff063599be6331c747a3e13bbbd508 | 19edbb9d8e48fe0e3f610a9964c65b63a8657c6e | /kerasNet.py | 30d2a627fdb46e1acc456e99a2f6a422abf35368 | [] | no_license | iaakhter/sensorimotorProject | 73c94b757c07b5005a16148c8606b02704da0a97 | 2d9efe3826d12fff1414815985549a48f081daac | refs/heads/master | 2021-01-11T06:38:07.626131 | 2017-04-18T17:45:57 | 2017-04-18T17:45:57 | 81,383,967 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,552 | py | from keras.utils import np_utils
from keras.models import Sequential
from keras.models import load_model
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
import processImages
import numpy as np
class kerasNet:
def __init__(self):
... | [
"ariadna.estrada42@gmail.com"
] | ariadna.estrada42@gmail.com |
22e1a1b713c1d6e6b129ad2751ba27359fa8d981 | 0b5400b2c9ace176ce8f3d21e4a4a19808b4de63 | /restaurant/models.py | ed5400cfe7eec52462b544f0f9ecd6a9b2dcb37b | [
"MIT"
] | permissive | turgayh/Recipe-Share | 771a5b0ef9ebd9b65b2d3d6b807bcc7d8d59a00b | 858eb3e0e21c11b62249fbc9490cd7bb1f244b9e | refs/heads/master | 2020-12-15T14:35:12.613063 | 2020-02-03T15:04:16 | 2020-02-03T15:04:16 | 235,137,994 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from django.db import models
from django.contrib.auth.models import User
from taggit.managers import TaggableManager
STATUS = (
(0, "Draft"),
(1, "Publish")
)
class Recipe(models.Model):
title = models.CharField(max_length=200, unique=True)
slug = models.SlugField(max_length=200, unique=True)
au... | [
"turgayh@itu.edu.tr"
] | turgayh@itu.edu.tr |
16a037ed183da42d1408b56c0feeecf330f98bdc | c4aa7158cc93788045e244ee94b3931d15feb2cd | /src/todo_app/urls.py | 67bef8c44ac8eb7cbb5719c72b14d17b92ebb5c5 | [] | no_license | sahinmurat/django-todo | 06b91acfcdd44d23d802945f21d07daa993f3e6f | 4b240105473312e3ad42f38c9aec0e935aee8017 | refs/heads/main | 2023-03-15T13:36:55.533285 | 2021-03-15T19:40:55 | 2021-03-15T19:40:55 | 324,801,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.urls import path
from .views import home, todo_create, todo_update, todo_delete,list
urlpatterns = [
path('', home, name = 'home'),
path('list/', list, name = 'list'),
path('create/',todo_create, name = 'create'),
path('<int:id>/delete/',todo_delete, name = 'delete'),
path('<int:... | [
"yazilimogren1111@gmail.com"
] | yazilimogren1111@gmail.com |
7d26a06ea15228d68269d68c0c454fd6b9324417 | b2a8c6cbb599959268de7d8936ab016cef981f74 | /server/keyword_spotting_service.py | f14be32414f7949ff5b7ba59bc2d82a7e34e3519 | [] | no_license | weimingtom/Speech-Recognition_mod | 56235e460b40d5faacf2c6af7a8c73fed912fdc3 | ef5304639ff0c52ec4d7a37db240c585d0aede71 | refs/heads/master | 2023-02-13T22:09:52.061788 | 2021-01-09T12:14:02 | 2021-01-09T12:14:02 | 318,730,932 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | import librosa
import tensorflow as tf
import numpy as np
import json
import sys
SAVED_MODEL_PATH = "model.h5"
SAMPLES_TO_CONSIDER = 22050
LABEL_DATA_PATH = "label_data.json"
WAV_PATH = "tests/left.wav"
class _Keyword_Spotting_Service:
model = None
_mapping = {}
_instance = None
def __init__(self):
... | [
"weimingtom@qq.com"
] | weimingtom@qq.com |
e7f1c2f893c077d760fbd104757e79d77cfb0164 | 05180b33f7d81fc90d2e72a319d4f8c1c52fb9ca | /classification/compare_models.py | aec56ee812836868d55769e65a66d02f733da453 | [
"MIT"
] | permissive | reber199/denn-ijcai | 14273fe06b9976f84a069790f50009444f665919 | 6431f699b7d9b4e4fbb9ca71f41dbdecfd34378c | refs/heads/master | 2022-09-20T16:36:00.098713 | 2020-06-04T21:22:29 | 2020-06-04T21:22:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | '''
This files creates a csv comparing all the models in a given folder.
'''
import h5py
import matplotlib
# matplotlib.use('tkagg')
import matplotlib.pyplot as plt
import seaborn as sns
sns.set(font_scale=1.9, rc={'text.usetex': True})
sns.set_style('whitegrid')
import pandas as pd
from tqdm import tqdm
import argpar... | [
"maximewabartha@gmail.com"
] | maximewabartha@gmail.com |
7ed367d4fe93f317195ea73b4925dcb5f4c4e690 | c14d795c9ce456d169c6d99119d68eb8bc7fc11b | /HelloWorlds/download_webpage.py | 019d70fc9a286f31cfa6750c4d70c2b206c93176 | [] | no_license | BingW/MyDoc | 706c93381377f7d766e7332d13be3dfd410bbbfe | 97d8031d32822396bd6b1bef6f846c6969a75fc6 | refs/heads/master | 2020-05-18T12:37:11.420959 | 2012-04-25T17:04:30 | 2012-04-25T17:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | import mechanize
from time import sleep
#Make a Browser (think of this as chrome or firefox etc)
br = mechanize.Browser()
#visit http://stockrt.github.com/p/emulating-a-browser-in-python-with-mechanize/
#for more ways to set up your br browser object e.g. so it look like mozilla
#and if you need to fill out forms with... | [
"toaya.kase@gmail.com"
] | toaya.kase@gmail.com |
b353b707cacb15d728f60c135063e4f6b488eee8 | 5c3ecd6974ebd714c42869081313614ba4f602a7 | /projects/exercises/empty_screen/empty_screen.py | 620dbe9556d9f61f3806280d4a7639152471a304 | [] | no_license | iloverugs/pcc_2e_student | fd491cb4d3c0546718554073a98386d8d7a499ec | 1c3ad17467c3d8deea9f3566b5eb66cbc6358a6d | refs/heads/main | 2023-04-13T01:17:21.164991 | 2021-04-23T01:09:23 | 2021-04-23T01:09:23 | 354,342,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | import sys
import pygame
class EmptyScreen:
"""Uses pygame to create an empty screen, and detects KEY_DOWN."""
def __init__(self):
"""Initialize the game, and create game resources."""
pygame.init()
self.screen = pygame.display.set_mode((1200, 800))
pygame.display.set_caption... | [
"81831508+iloverugs@users.noreply.github.com"
] | 81831508+iloverugs@users.noreply.github.com |
6fb2c6f9c833dee21c52f53524de44a2639ac6c3 | 9f2b8f38b31f3b7e234bd5d4868c6e6bf134f5be | /custom_auth/views.py | 8bd70469476b25adcc14ef370ff6002dd1e2497e | [] | no_license | a-pompom/Django_login | 436b4d94b396f6eb24deb470306ddbf6d0ac7e96 | 125288e754cf44b0aeba33bc792d17c7d695ef8a | refs/heads/master | 2022-12-26T10:32:32.974480 | 2020-07-31T11:27:04 | 2020-07-31T11:27:04 | 277,287,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,317 | py | from custom_auth.exceptions import LoginFailureException
from django.shortcuts import render, redirect
from django.views import View
from django.contrib.auth import login, logout
from django.contrib.auth.hashers import make_password
from django.conf import settings
from django.http import HttpRequest, HttpResponse
fro... | [
"aoi.matsuda.3x@gmail.com"
] | aoi.matsuda.3x@gmail.com |
173ca58a434c334f2487c1bf0d994d3395abcd30 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_11371.py | a3211135d7b87d8da37dd74f4338428a4d5ef5ce | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | # Using python modules over Paramiko (SSH)
RMI
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
175900569e6f72b7a15b759386df0ac40461cd79 | 6edefe5706053a775b56a53460133240dc0c78a2 | /intro-code/robustos.py | 3d72098c38f82d4177262d9009646be5fc91fe3e | [] | no_license | jjconti/charla-intro-python | 0ff6ff705db9336a4666f45bf2dac9105cc6a16d | 1c800b7c17a994f283f8c587034e21b5079a028b | refs/heads/master | 2020-04-12T07:30:24.365128 | 2016-09-17T02:45:44 | 2016-09-17T02:45:44 | 58,327,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import random
def juego(n):
secreto = random.choice(range(n * 10))
intentos = []
intento = -1
while intento != secreto:
try:
intento = int(input('Adiviná: '))
except:
continue
intentos.append(intento)
if intento > secreto:
print('Más ... | [
"jjconti@gmail.com"
] | jjconti@gmail.com |
d0811e579f131e6ae78105539cd53d0ed54e3032 | 52afc11e1eb37a486a4e3a87b458cfe5ff72b8c9 | /data_prep/convert_json_via_tusimple.py | b1591a8a21ca818177d28051339ddc2c68743758 | [] | no_license | maftuhm/LaneNet | f000383430d30eb30e9b0ffb4f2b91ddfde98d5e | 0436b2992893e80d33651652637bc34954f4bac8 | refs/heads/master | 2023-01-07T04:28:43.893469 | 2020-10-27T03:59:47 | 2020-10-27T03:59:47 | 295,589,057 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,043 | py | import argparse
import json
import os
import glob
import numpy as np
import time
import cv2
from tqdm import tqdm
from matplotlib import pyplot as plt
class CreateLane:
def __init__(self, lane):
self.lane = lane
def clear(self, lane):
lane = set(lane)
self.lane = list(lane)
ret... | [
"maftuh.mashuri16@mhs.uinjkt.ac.id"
] | maftuh.mashuri16@mhs.uinjkt.ac.id |
36656deb12946ccaefb8ff140cb35080590a0bce | 7f92a710bc893a6dfc3cf69525368106caae24d9 | /leetcode/length of last word.py | c6cb52aba6f9ace7b4ff8683cfd8cc683e71e668 | [] | no_license | hi-august/pyexercises | a64e45412a741aa1a883008d8c39e7664d468551 | 94a731fc517682013e96bbccd69efe90728eb788 | refs/heads/master | 2021-10-22T07:11:57.899710 | 2019-03-09T02:48:12 | 2019-03-09T02:48:12 | 22,276,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | # coding=utf-8
'''
Given s = "Hello World",
return 5.
'''
def lengthOfLastWord(s):
return len(s.strip().split()[-1])
if __name__ == '__main__':
s = "Hello World"
print lengthOfLastWord(s)
| [
"1927064778@qq.com"
] | 1927064778@qq.com |
b6cecd2502f9b14292173ff0007097c27af1b3aa | 9acdaacc569720b745d4f8b06c4181a8fe3f0590 | /build/lib/mediastruct/ingest.py | 7ede3b150facfbe98fa8bd9ca54eff5b51bac54e | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | joeljohnston/mediastruct | bbb2861715863aeaee3012dbd6da9638ec662198 | 5c7937450edebe6047198afa799e664b344cd2fe | refs/heads/master | 2023-01-22T12:53:07.230458 | 2023-01-05T12:45:39 | 2023-01-05T12:45:39 | 146,010,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | import os
import sys
import time
import shutil
import logging
from glob import glob
log = logging.getLogger(__name__)
log.info('Ingest - Launching the Ingest Class')
class ingest(object):
'''the ingest class manages contents entering the workflow by organizing files by their last modified date
into the workin... | [
"joel@joeljohnston.us"
] | joel@joeljohnston.us |
ea7f44f012d147d661ff5941b7511a9fb801b9d3 | bb54c528cf1bd4c67bfc12e893df0ef780f7cb53 | /pytestrough/test_rough2.py | 40bbb065dba6cc925e3a00a449b7a9fe71ab5945 | [] | no_license | saurabh-c1/git-pytest | 2f06cf150d211565a1e8054d54b2f93fa6f3a9dd | 360913a8507ab6e1e6bdc1c1479ec76239020fea | refs/heads/main | 2023-06-29T10:23:40.649047 | 2021-08-02T06:55:34 | 2021-08-02T06:55:34 | 391,834,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import pytest
def test_total_divisible_by_6(input_total):
assert input_total % 5 == 0
def test_total_divisible_by_8(input_total):
assert input_total % 9 == 0
| [
"saurabhpubg619@gmail.com"
] | saurabhpubg619@gmail.com |
a844a6abd5e12660cde6c7a1c4e3ce55ba864b6f | af2478883c90a25d6652c382a0cf4c11961ada43 | /sony-egs/swbd_disfluency/switchboard_data/utils/prepare_data_BIO.py | 4d06d491b07e358b694e95ca7dbfb2e6da5ac04b | [] | no_license | sascho1993/asr-disfluency | 75191b3dd3bd8dc8d278fa1195394e9ba4ec7d04 | 37d5f4d3f2f5375916f5818e5f14aeed96c469ed | refs/heads/master | 2022-02-19T02:20:10.112306 | 2019-09-13T00:43:47 | 2019-09-13T00:43:47 | 205,149,095 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,597 | py | #!/usr/bin/env python
"""
The dialogAct corpus is taken as an input token by token.
"""
import re
utts = open("data/raw_text/all_utts_clean_apos","r")
out = open("data/labeled/switchboard_prepared_BIO", "w")
# true if word == '{', false if word == '}'
brace_comment = False
brace_comment_next = False
# true if word =... | [
"sarah.schopper@sony.com"
] | sarah.schopper@sony.com |
72ecb3e1df744f2155f19fcb8e4ff558b31de014 | e9987d8b88c39c56281c9553142c3a36c66086c5 | /mysite/search/migrations/0002_milestone_b_data.py | db317fc750a6c2aeaf6980ef8bf5b89b35116a15 | [] | no_license | rafpaf/OpenHatch | 43efad73a9cd7d913285e431ce5a021a1f0cb234 | 2f84ee1d572bb07cbd27e755ecfe786bc09effe1 | refs/heads/master | 2016-09-05T14:47:14.654445 | 2010-06-11T17:20:56 | 2010-06-11T17:23:30 | 687,353 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,093 | py |
from south.db import db
from django.db import models
from mysite.search.models import *
class Migration:
def forwards(self, orm):
# Adding field 'Bug.submitter_realname'
db.add_column('search_bug', 'submitter_realname', models.CharField(max_length=200))
# Adding fiel... | [
"asheesh@openhatch.org"
] | asheesh@openhatch.org |
a865e9f10130569267073fa37a1314786a38c6bb | 8efd8bcd3945d88370f6203e92b0376ca6b41c87 | /problems1_100/79_ Word_Search.py | 5374317283275085258b340378ccd5eef61390f0 | [] | no_license | Provinm/leetcode_archive | 732ad1ef5dcdfdde6dd5a33522e86f7e24ae2db5 | 3e72dcaa579f4ae6f587898dd316fce8189b3d6a | refs/heads/master | 2021-09-21T08:03:31.427465 | 2018-08-22T15:58:30 | 2018-08-22T15:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py |
'''
Given a 2D board and a word, find if the word exists in the grid.
The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horizontally or vertically neighboring. The same letter cell may not be used more than once.
For example,
Given board =
[
['A','B','C','E']... | [
"zhouxin@gmail.com"
] | zhouxin@gmail.com |
18028c230886e9e8c2509cb6022d011a13447727 | 59be46f6d65a757e2f52cbaf9ae6f8e13d76b459 | /docs/highlighting.py | 601d1ca08a11871f04a9813e2a4ea95b1f278a8f | [
"MIT"
] | permissive | gitter-badger/jam-1 | fb310c52d0a968c307e41e49ff1050852637c267 | b47f8e8f316b87717b9a94e5bf92c373f3840cfc | refs/heads/master | 2021-01-21T02:46:23.239759 | 2015-06-20T08:52:10 | 2015-06-20T08:52:10 | 37,979,006 | 0 | 0 | null | 2015-06-24T10:48:14 | 2015-06-24T10:48:14 | null | UTF-8 | Python | false | false | 1,889 | py | from pygments.lexer import RegexLexer, bygroups, include, combined
from pygments.token import *
import sphinx
class JamLexer(RegexLexer):
name = "Jam"
aliases = ["jam"]
filenames = ["*.jm"]
INTEGER_REGEX = "[0-9]([0-9_]*[0-9])?"
tokens = {
'root': [
("#.*?$", Comment),
... | [
"ben.schaaf@gmail.com"
] | ben.schaaf@gmail.com |
0439defe8752fffdbcf6387b54905d6a4105b6d1 | 8235ed1728df3c963d890b28835bd0136bd14b94 | /mysite/settings.py | 1ee1ec79ad2fa830c1b96e0a2f45b321a6106ef1 | [] | no_license | mirjpirj/first_project | 6d6432f9b28a74e1a9bb83b1cd8583f74d5264a2 | 2e333f401158f1bb23c9b11a8b807afe176993a8 | refs/heads/master | 2021-01-13T12:18:51.885869 | 2016-09-24T15:52:47 | 2016-09-24T15:52:47 | 69,110,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# ... | [
"localchadmin@dhcp-20-44.public.unibe.ch"
] | localchadmin@dhcp-20-44.public.unibe.ch |
35a358b8f5e921d8af7f261da78fb3b3df4cec86 | 56ac2b986f6ed4a13b7cbeede7640d0892a3e27c | /lessons/while-loop.py | 6f6b715b6559bd95d88b5713f9704a228d62328d | [] | no_license | alexeahn/UNC-comp110 | da8b689cebd6a1cda4132b93546465fcf1d25126 | 2e9ab74969375e6cdc1cb5c4d3d75ad4a6652d7c | refs/heads/main | 2023-08-28T20:26:53.299997 | 2021-11-15T00:14:25 | 2021-11-15T00:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | """An example of while-loop statement"""
counter: int = 0
maximum: int = int(input("Count up to, but not including what?"))
while counter < maximum:
counter_squared: int = counter ** 2
print("The square of " + str(counter) + " is " + str(counter_squared))
counter = counter + 1
print("Done!") | [
"alexeahn@ad.unc.edu"
] | alexeahn@ad.unc.edu |
5b47c3c2b52d34c4a77fd8f010eb34f1a1d7b933 | d8fb1264d21134442e2926a318262e9cd6f81241 | /math2d_text.py | d6e29960064a5938eb0ee7272eabefb8de97f5f2 | [
"MIT"
] | permissive | spencerparkin/pyMath2D | 0eb6563cacb89050d479de78a567912593783b39 | 0364afc137fd09f2363b426840c5448aaa5342bd | refs/heads/master | 2022-10-24T17:03:33.175095 | 2022-09-26T07:59:18 | 2022-09-26T07:59:18 | 135,310,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # math2d_text.py
from math2d_aa_rect import AxisAlignedRectangle
from OpenGL.GLUT import *
from OpenGL.GL import *
class TextRenderer(object):
def __init__(self, font=None):
self.font = GLUT_STROKE_ROMAN if font is None else font
def render_text(self, text, rect):
total_width = 0.0
fo... | [
"stparkin@mmm.com"
] | stparkin@mmm.com |
55312ac2de2ac26a3f54ff7cc5391ae286b1dafd | c6d14d4eb5722839e811ad4f6098b10aec917b63 | /qa/rpc-tests/test_framework/mininode.py | a41e2b410ae824ca5d3a18730b0d539856adc4c2 | [
"MIT"
] | permissive | KredsBlockchain/kreds-core | 74603364bc3c515c1064e3073aa7072837a8f643 | 1b549a1489d8e3612ce3087aa3fca70bc3d53786 | refs/heads/master | 2018-12-22T16:20:33.578411 | 2018-11-12T10:35:06 | 2018-11-12T10:35:06 | 120,257,608 | 14 | 16 | MIT | 2018-09-27T22:35:15 | 2018-02-05T05:08:06 | C++ | UTF-8 | Python | false | false | 55,192 | py | #!/usr/bin/env python3
# Copyright (c) 2010 ArtForz -- public domain half-a-node
# Copyright (c) 2012 Jeff Garzik
# Copyright (c) 2010-2016 The Kreds Developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# mininode.py - Kre... | [
"blockartlab@protonmail.com"
] | blockartlab@protonmail.com |
649a84ef287090c60f94004c2eeb3eba7d6ce157 | bb122a6ed6950ad049cef5d4c2885cdb105a9757 | /venv/bin/pip | 4885b9791de0ea049835db968dac4f107e8ed2e0 | [] | no_license | Kreisso/Boston_market_data | 654d0e390ad190222bfca62b6acca86e3b4c5b2c | c34f502412eadc6542589fbed0de6ff1f8a5d20c | refs/heads/master | 2021-09-28T00:12:12.237274 | 2018-11-12T16:42:11 | 2018-11-12T16:42:11 | 157,244,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | #!/Users/kreisso/PycharmProjects/lab2/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.... | [
"polakmaciej.web@gmail.com"
] | polakmaciej.web@gmail.com | |
3fb99e4416e7ac91d21b8d79e010e34c69830ce0 | d4c9ed6499d71e19db4bfef8562219ad1a3ff0d9 | /gym_log/login_window.py | a701532d7e74d8b2f0a5a20e1def98767d2d4e4f | [] | no_license | neilmarshall/gym-log-gui | 43f5d951e6dfb3ac37f9b4c7fe3a2abfaea90980 | 505272e0a4cafd0cdad751d0213134e890dd5e51 | refs/heads/master | 2022-12-11T10:05:09.187996 | 2022-04-03T19:09:45 | 2022-04-03T19:09:45 | 203,452,899 | 1 | 0 | null | 2022-12-08T06:03:12 | 2019-08-20T20:53:36 | Python | UTF-8 | Python | false | false | 3,892 | py | import os
import re
import tkinter as tk
from tkinter import messagebox
from tkinter import ttk
from dotenv import load_dotenv
basedir = os.path.abspath(os.path.dirname(__file__))
basedir = os.path.split(basedir)[0]
load_dotenv(os.path.join(basedir, '.env'))
class LoginWindow(ttk.Frame):
"""Subclass of tkinter.F... | [
"neil.marshall@dunelm.org.uk"
] | neil.marshall@dunelm.org.uk |
2df490ce7eb949a7e322c379697be793bc0f5780 | 87e80b44ef471bf5e0a88f005850e09c64f7a8a5 | /cipherGUI.py | 174476ccc37ebb27a4916c4d6f131870cc9bd558 | [] | no_license | KjEndurance/Cipher-GUI | cdb54cc90bf1393c54b233bbabbfc4d671c3ca88 | d47ce517ede0320f29ec369ad176b334f39ece87 | refs/heads/main | 2023-03-02T17:09:48.540461 | 2021-02-13T16:37:21 | 2021-02-13T16:37:21 | 338,615,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,280 | py | import CaesarCipher as cp
from tkinter import Tk, Frame, Label, Text, Button, Menu
class caesarCipherGUI(Frame):
def __init__(self, parent):
Frame.__init__(self, parent)
self.parent = parent
self.constructGUI()
def constructGUI(self):
self.parent.title("Encryption S... | [
"root@DESKTOP-BSRUU7S.localdomain"
] | root@DESKTOP-BSRUU7S.localdomain |
6e3d9e6952a135e6cb57aa35e9ce3d3c16d16ec7 | 17abfd2de3370173c043275e21d642beed66c8d2 | /bullet.py | 6e687aeba36c62b6cc4fa8f90b5dc38d5d6039c3 | [] | no_license | NataliTrifonova/Alien_Invasion | 447185d2efd4b91c7c12677321ef3d2c3f113393 | af3676b7e7f4ee2267e11f84388cbe543dbbb858 | refs/heads/master | 2022-02-20T09:44:08.420958 | 2019-10-10T19:03:02 | 2019-10-10T19:03:02 | 214,255,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
'''Класс для управления пулями, выпущенными из корабля.'''
def __init__(self, ai_settings, screen, ship):
'''Создает объект пули в текущей позиции корабля.'''
super().__init__()
self.screen = screen
#создание пули в позиции (0,0) и назна... | [
"natali.trifonova.99@mail.ru"
] | natali.trifonova.99@mail.ru |
78743902ed67eb89cb11381400b6ca5e04e29487 | 72ccb57a10d52fb246d39d0bb94399b39e6c360e | /env/Lib/site-packages/vsts_info_provider/models/vsts_info.py | 9b80e2088e5c720e6bc0046f69b4e0f6921b405d | [] | no_license | malorydodge/SentimentAnalysis | c0ebaf9c8b47c63203c20a1018876c72382497f8 | 2d3d3fc12d1d215f448368c5dd67621002317ddb | refs/heads/master | 2023-05-10T16:37:59.784331 | 2019-09-17T16:26:23 | 2019-09-17T16:26:23 | 209,086,104 | 0 | 1 | null | 2023-05-01T21:15:48 | 2019-09-17T15:08:54 | Dockerfile | UTF-8 | Python | false | false | 1,043 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------... | [
"malorydodge@gmail.com"
] | malorydodge@gmail.com |
282f0bd5db6b6d07789e8b6b3f03a2bb8fd906f4 | 1de3ff16f4e114cbbc2b52cef2955ab903ff8744 | /Example/epidemic.py | 0c27d8d4c7010cfd6ada01b62adc303559fed215 | [] | no_license | armoreau/master-thesis | 41ea14c9b52436a818992d5a7b7a425e400e415f | 172651106095dad5bfdc8202e3908a465abb8f1c | refs/heads/master | 2023-05-15T00:34:31.801709 | 2021-06-12T01:40:20 | 2021-06-12T01:40:20 | 304,108,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | import matplotlib.pyplot as plt
#Add parent folder to the path. Code taken from https://codeolives.com/2020/01/10/python-reference-module-in-parent-directory/
import os, sys
currentdir = os.path.dirname(os.path.realpath(__file__))
parentdir = os.path.dirname(currentdir)
sys.path.append(parentdir)
from ode45 i... | [
"noreply@github.com"
] | armoreau.noreply@github.com |
2626cca9adae3acfe97f8e89c9fba00f989f3c44 | 35697f83f827f96a7e21d3bacbcf60f7ea21dca8 | /setup.py | 21f9dba86a89b9743f2a54439d5b87a58d0a30b7 | [
"Apache-2.0"
] | permissive | benkehoe/aws-arn | 72e43389559e8f2f24cc490c7a99130a09ed759a | 4493f0098155aa7134edc7cd8532ec786c37d6d0 | refs/heads/master | 2021-05-05T08:42:31.604130 | 2018-03-06T19:04:16 | 2018-03-06T19:04:16 | 118,985,009 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | from setuptools import setup
def get_version(name):
import os.path
path = os.path.join(name, '_version')
if not os.path.exists(path):
return "0.0.0"
with open(path) as f:
return f.read().strip()
setup(
name='aws-arn',
version=get_version('aws_arn'),
description='Create prop... | [
"bkehoe@irobot.com"
] | bkehoe@irobot.com |
8a73ad6df76b9a46ff813a6278b57e82c62c30fb | f760a5900041ec4e8bd8443d62cc8c8f8e1d5575 | /Python/minmax.py | be22372e210778f3d16e2c4dff5cffa516c71600 | [] | no_license | rawskim/gitrepo | b28ef4f1495e45afff8f55bcb097e8f86b9ca249 | 0f687ddb1e5a039647b0d73301316c155f0f8f58 | refs/heads/master | 2021-05-05T09:49:17.385294 | 2019-12-20T06:35:49 | 2019-12-20T06:35:49 | 103,913,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# minmax.py
import random
def losuj(ile, min=0, max=100):
lista=[]
for i in range(ile):
lista.append(random.randint(min, max))
return lista
def minmax(lista):
min = max = lista[0]
lista.pop(0)
for liczba in lista:
if liczba < min... | [
"michalrawski01@gmail.com"
] | michalrawski01@gmail.com |
54a075ef2572940304283d2f526de481af678278 | 5154364983b0e44c4af2d41a59cfa8edc923283a | /python_Source/developmentP/deeplearining/pie_chart_01.py | 00eb701184787dad7373c13e41ea294c5459683e | [] | no_license | vasana12/python_python_git | 082f84df30e4b307d223e8970f87a7432a1d80fd | db87e112731fca1fe80fef29d8f180f19b9e7afc | refs/heads/master | 2020-03-30T23:22:30.197307 | 2018-11-24T05:05:51 | 2018-11-24T05:05:51 | 151,698,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | import matplotlib.pyplot as plt
from matplotlib import font_manager, rc
import matplotlib
font_location = "C:/Windows/fonts/malgun.ttf"
font_name = font_manager.FontProperties(fname=font_location).get_name()
matplotlib.rc('font', family=font_name)
labels = '개구리', '돼지', '개', '통나무'
sizes = [15, 30, 40, 10]
colors = ['y... | [
"wodud6349@gmail.com"
] | wodud6349@gmail.com |
8619e1328cd20bbd49f8d3ee9174091af43af082 | 08e1886591fea6ab9dcdc6cedd11a63b9bce4bba | /python/packages/db_table.py | fc7fe6ffc54a96e824289d4b967eb32f4c2a06ac | [] | no_license | liaowen9527/multi_tech | 395bcdb74887196f0eff49e4108a2420a1646e47 | cc5a4541064eeb3d5ec3055d22c1fed3d64fc446 | refs/heads/master | 2023-03-17T20:19:22.544501 | 2022-08-22T03:16:30 | 2022-08-22T03:16:30 | 154,770,399 | 0 | 0 | null | 2023-03-03T19:00:18 | 2018-10-26T03:11:59 | C++ | UTF-8 | Python | false | false | 3,454 | py | import sqlite3
from packages.nb_datetime import *
class NbDBFeled:
def __init__(self):
self.is_pk = False
self.not_null = False
self.name = ''
self.type = ''
class NbDBTable:
def __init__(self, name = ''):
self.dbpath = ''
self.name = name
self.... | [
"wen.liao@netbrain.com"
] | wen.liao@netbrain.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.