blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eb920e9f0de524db868175ec191b9a196ff81020 | 77f82fcab63aaa5972c2c26faf97989dc4a22f33 | /tictactoe-javiluna/Tic_Tac_Toe__repaso_funciones_.py | ec0f44b961769029ac7f055a9fa9c2c70e4a1378 | [] | no_license | albertogcmr/data-analytics-examples-lessons-stuff | 64ea20d395e8b8fc9348729e2c1b53b3ffad7684 | d565ed2a21d43c0420a73387a3976efcf70364cc | refs/heads/master | 2020-06-08T10:53:56.009487 | 2019-10-05T12:38:48 | 2019-10-05T12:38:48 | 193,216,571 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import json
CELL_EMPTY = " "
CELL_PLAYER_1 = "O"
CELL_PLAYER_2 = "X"
def initialize_game_state():
return {'turn': 0, 'board': initialize_board()}
def initialize_board():
"""
Creates a new empty board
:return: A board
"""
return [[CELL_EMPTY for _ in range(3)] for _ in range(... | [
"garcia.cobo.alberto@gmail.com"
] | garcia.cobo.alberto@gmail.com |
ecd28a40a8d91ac0a2c2d3e1803050e423261aae | 9b6b3f4b30e9bd8a821d8df16bd71e62b9c6eb98 | /day3/modules/mod_a.py | 2e50a02f49096cd18895d8fb24323b210b42966b | [] | no_license | shobhit-nigam/snape_mar | b7f2155cfcd83482230c339fe45f9ea851061318 | b7b33a767cc00d35a22e40c940b4331e4898c8d5 | refs/heads/main | 2023-03-25T05:44:21.244078 | 2021-03-26T05:27:28 | 2021-03-26T05:27:28 | 350,555,721 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | # modules
import os
import time
print(os.getcwd())
time.sleep(5)
print("hi")
| [
"noreply@github.com"
] | noreply@github.com |
c6fd29782994efa2e50c0c1e5ac53afafd2fd765 | 67925cfa807f767013eb9df1207d48980bce100c | /model.py | dae151371c9336b4b3910aeb26c750bb0e3dafbe | [] | no_license | Gryton/carnd-behavioral-cloning | 9ea8d48440aea9d37f42e13fd69968dada5f8b6b | 7f480c0c18c737dcc6429c9f8392d9cb8ee0d581 | refs/heads/master | 2021-01-24T08:54:19.481768 | 2017-06-05T10:45:11 | 2017-06-05T10:45:11 | 93,392,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,041 | py | import csv
import cv2
import numpy as np
import random
import os
from keras.models import Sequential
from keras.layers import Flatten, Dense, Lambda, Convolution2D, Cropping2D, Dropout, Activation
from keras.layers.pooling import MaxPooling2D
import sklearn
from sklearn.model_selection import train_test_split
main_sou... | [
"mateusz.gryt@siili.com"
] | mateusz.gryt@siili.com |
37804720a48a867b3c2c30c5e078c92dc6a170fd | 571b507e91d24eeb79d44fff4ed16bb9e806d957 | /test1.py | 0037b5ec6880b91e467cd27ff55839633e8ae01f | [] | no_license | 143vsahani/tests | 9a5104a05774c07574ff47fea038778041599cca | 9d349157e453d790c5655a49a8011ce8c3cf5e36 | refs/heads/master | 2023-06-19T04:48:51.559392 | 2021-07-08T08:42:58 | 2021-07-08T08:42:58 | 384,055,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,603 | py | from kivy.lang import Builder
from kivymd.app import MDApp
from kivy.uix.screenmanager import ScreenManager, Screen
import json
from kivymd.uix.button import MDFlatButton
from kivymd.uix.dialog import MDDialog
import requests
from kivy.core.window import Window
Window.size=(412, 732)
help_str = '''
ScreenManager:
... | [
"143vsahani@gmail.com"
] | 143vsahani@gmail.com |
7ee7d8d8618f8f470f5e832f43ceaa90554dff09 | 08c83dbf4f1faaa8a7ef3e4596d34241f95fac37 | /server/hubco/dataLogging/generate_report_data.py | 72e83a9e3cb489cb0e7bc81e3f075c6c0b052b19 | [] | no_license | mzh1994/DJANGO_REST | d14a361114e7be4ea5cf8210d6a254191b7b2e61 | 1651238c1913f26a65645932b5eb098aaca379ee | refs/heads/master | 2023-06-27T23:19:15.650712 | 2023-06-27T10:08:03 | 2023-06-27T10:08:03 | 392,342,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,945 | py | from json import load
from sqlalchemy import create_engine
import pandas as pd
import warnings
warnings.filterwarnings('ignore')
import numpy as np
import datetime
from .load_kks_data_table import load_kks_table
def generate_daily_report():
n_days = 10 #threshold for report
# making connection
# conn_str =... | [
"engr.m.zohaibhassan@gmail.com"
] | engr.m.zohaibhassan@gmail.com |
3503300c1f32e5ec079dd43499facd3a092e0957 | c11b2ef3f8d7a71ec9c8bd7149f148733c7036ef | /swagger_server/models/loan_application.py | fa8f47ee10b93e91f28480bfdee3d97002af2182 | [] | no_license | HebbaleLabs/Python-Assessment-Template | e1e72a8c7dc9db8e779fc471e5d557ee83133fd2 | 0b652638dda3d96cf7c953282ff112e8557b640f | refs/heads/master | 2021-05-02T02:21:35.249188 | 2018-02-13T15:20:54 | 2018-02-13T15:20:54 | 120,881,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from swagger_server.models.base_model_ import Model
from swagger_server import util
class LoanApplication(Model):
"""NOTE: This class is auto generated by the swa... | [
"sheshank.sridharan@hebbalelabs.com"
] | sheshank.sridharan@hebbalelabs.com |
ceebbf785332c097febd92baa4e81421ab4a76b8 | 73ea4a0895a0b79950736cdbd4a386c5a9980714 | /users/tests/test_unit_email_templates.py | 912e06f4191b127d560920f3497c1dec4010b25e | [] | no_license | Code-Poets/sheetstorm | a34881590ba3dde325413b92eaba65444bcc9428 | 338ff87d9617b1f30678d18b1ce8792ab4434319 | refs/heads/develop | 2022-12-01T11:37:52.876469 | 2021-11-29T14:35:10 | 2021-11-29T14:35:10 | 149,592,796 | 1 | 0 | null | 2022-11-22T06:00:42 | 2018-09-20T10:33:23 | Python | UTF-8 | Python | false | false | 1,963 | py | from django.contrib.sites.models import Site
from django.test import TestCase
from common.utils import render_create_user_email
from users.models import CustomUser
class TestRenderCreateUserEmail(TestCase):
def setUp(self) -> None:
self.password = "password"
self.user_type = CustomUser.UserType.E... | [
"karolbeker@gmail.com"
] | karolbeker@gmail.com |
1c36dc839d3a82cad01589ae58fd91abfadc91ac | b505894f001242f2f3a1872c727a0e3232296ed3 | /leetcode/array/454_4sum2.py | d664230cc314b38da59da95c0e6b83c085a98516 | [] | no_license | hanghang2333/zhuoluo | 8eceee81e2886fd5547d218adc26cbc22fcd15af | 32f4d693cb0022b3a2176c881b2c9b09529a46a7 | refs/heads/master | 2021-05-12T06:22:01.070355 | 2018-04-05T13:16:31 | 2018-04-05T13:16:31 | 117,215,718 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | class Solution(object):
def fourSumCount(self, A, B, C, D):
N = len(A)
ab = {}
for i in range(N):
for j in range(N):
if A[i]+B[j] in ab:
ab[A[i]+B[j]] += 1
else:
ab[A[i]+B[j]] = 1
count = 0
f... | [
"1092978787@qq.com"
] | 1092978787@qq.com |
b573fe2717b46eeb3125dd32c7b4b64642d01cf9 | 267464d448f76a488bd4203ceafe984366fa7fb8 | /백준/소수/11653[소인수분해].py | ea718871914ec038827a8f3737c4239b08303060 | [] | no_license | fkalstj99/problemSolving | af3f6bb1627d532b51171c7c6e7037a4f54037a6 | e1300a94397657592ccd163c54644dc0746e4f9d | refs/heads/master | 2022-12-08T09:13:43.718965 | 2020-08-30T12:05:17 | 2020-08-30T12:05:17 | 281,834,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | N = int(input())
i = 2
while i <= N:
if N % i == 0:
print(i)
N /= i
else:
i+=1
#나눌때 나머지가 0이 되지 않으면 +1 | [
"59814025+fkalstj99@users.noreply.github.com"
] | 59814025+fkalstj99@users.noreply.github.com |
4dcb6398085c7ba8bd3018735b4dbc0ad2a0437b | 5e0755091efd2d4ed61bead8aa38b45bab5a8b07 | /python/anyascii/_data/_06b.py | d6363dfb69629742715d285e5af94c2c7511d2f9 | [
"ISC"
] | permissive | casept/anyascii | c27261d87257c17c47fe0e9fc77438437de94c1c | d4f426b91751254b68eaa84c6cd23099edd668e6 | refs/heads/master | 2022-12-05T07:13:53.075144 | 2020-08-07T07:55:50 | 2020-08-07T07:55:50 | 285,904,577 | 0 | 0 | ISC | 2020-08-07T19:20:00 | 2020-08-07T19:19:59 | null | UTF-8 | Python | false | false | 1,011 | py | b='Xiang Nong Bo Chan Lan Ju Shuang She Wei Cong Quan Qu Cang Jiu Yu Luo Li Cuan Luan Dang Jue Yan Lan Lan Zhu Lei Li Ba Nang Yu Ling Guang Qian Ci Huan Xin Yu Yi Qian Ou Xu Chao Chu Qi Kai Yi Jue Xi Xu He Yu Kui Lang Kuan Shuo Xi Ai Yi Qi Chua Chi Qin Kuan Kan Kuan Kan Chuan Sha Gua Yin Xin Xie Yu Qian Xiao Ye Ge Wu T... | [
"hunter@hunterwb.com"
] | hunter@hunterwb.com |
ceb277dd66d56d8f9fe1e89835ffa948b8a7a063 | 377dc973a58d30154cf485de141223d7ca5424dd | /havok_classes/hkpRotationalConstraintDataAtoms.py | 90f06db837bcc7e14a23c22bdb553b1f5dc852ee | [
"MIT"
] | permissive | sawich/havok-reflection | d6a5552f2881bb4070ad824fb7180ad296edf4c4 | 1d5b768fb533b3eb36fc9e42793088abeffbad59 | refs/heads/master | 2021-10-11T12:56:44.506674 | 2019-01-25T22:37:31 | 2019-01-25T22:37:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from .hkpSetLocalRotationsConstraintAtom import hkpSetLocalRotationsConstraintAtom
from .hkpAngConstraintAtom import hkpAngConstraintAtom
class hkpRotationalConstraintDataAtoms(object):
rotations: hkpSetLocalRotationsConstraintAtom
ang: hkpAngConstraintAtom
def __init__(self, infile):
self.rotati... | [
"kevin@turtlerockweb.com"
] | kevin@turtlerockweb.com |
73882ceaee9a66d915b0a76ecfdf796b2e046fa2 | baf3996414315ffb60470c40c7ad797bf4e6897f | /02_ai/1_ml/3_data_preparation/code/chapter_24/02_evaluate_model_with_transforms.py | 1c8d129c84e7049a72f57a88decf288a22d315e1 | [
"MIT"
] | permissive | thiago-allue/portfolio | 8fbbecca7ce232567aebe97c19944f444508b7f4 | 0acd8253dc7c5150fef9b2d46eead3db83ca42de | refs/heads/main | 2023-03-15T22:10:21.109707 | 2022-09-14T17:04:35 | 2022-09-14T17:04:35 | 207,919,073 | 0 | 0 | null | 2019-11-13T18:18:23 | 2019-09-11T22:40:46 | Python | UTF-8 | Python | false | false | 1,650 | py | # example of using the ColumnTransformer for the Abalone dataset
from numpy import mean
from numpy import std
from numpy import absolute
from pandas import read_csv
from sklearn.model_selection import cross_val_score
from sklearn.model_selection import KFold
from sklearn.compose import ColumnTransformer
from sklearn.pi... | [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
22d4d81071f554dc838703c8b549ebcf2b774c45 | c79c2703102949b1bcf079000e9891de28c5fede | /examples/cryptmachine.py | 9aa236192ac59332ef923d887193b70106ed1e41 | [
"MIT"
] | permissive | goffinet/secretpy | 999222c4161d0bfed11c38a9e26f7f41dc9747ff | 6be2e3ffb7e3ef88b99ab9390537e400f8fe5112 | refs/heads/master | 2023-05-06T00:37:44.586487 | 2021-06-01T09:57:44 | 2021-06-01T10:48:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
from secretpy import Atbash, Caesar, CryptMachine, alphabets
from secretpy.cmdecorators import SaveAll, RemoveNonAlphabet
def encdec(machine, plaintext):
print(plaintext)
enc = machine.encrypt(plaintext)
print(enc)
dec = machine.decrypt(enc)
print(dec)
... | [
"maxvetrov555@yandex.ru"
] | maxvetrov555@yandex.ru |
6e30eef591902c83ff936151b14a8117be9b08df | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/FXJSMM/YW_FXJSMM_SZSJ_070_1.py | f7d883d8e4c6382924fb97a77b4bc566b49a2c88 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,025 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
9b53ca49a35ca37f780f44bc7225210966a4873d | 26fff323560ed7f825f07753c715604423ca102b | /DAGMM/util.py | bafe3a12a4ca80c6a6704e4e1955657bf18ad32b | [] | no_license | Lijer/baseline_ad | 276f42083a8b213f5b630f7a180b74f6f69c39fc | 9cd09bf18d4ab0c8f5a9468dd0abefc7d617ebcb | refs/heads/master | 2023-02-02T22:23:42.046525 | 2020-12-22T10:35:06 | 2020-12-22T10:35:06 | 323,594,983 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,964 | py | import pandas as pd
import random
from joblib import Memory
from sklearn.datasets import load_svmlight_file
from sklearn.metrics import average_precision_score, roc_auc_score
import numpy as np
import scipy.io as sio
import time
import datetime
mem = Memory("./dataset/svm_data")
@mem.cache
def get_data_from_svmlight_... | [
"396217621@qq.com"
] | 396217621@qq.com |
0c4eea4a48e2c43e530699dd4caf85253d2c7d0e | 10f091bf946bdd6b50c3fa0637504ab19d9c65c2 | /albums/3/challenge232_easy/code.py | 1a5d010c936ea78f8bbc00386478b83fb1d45ddc | [] | no_license | Rich43/rog | ccebee00b982579c46c30a7dab55b4dbe6396fdc | 029dd57c920aa869750b809d22092c9614e67ba9 | refs/heads/master | 2023-01-23T07:07:16.069821 | 2023-01-19T19:10:43 | 2023-01-19T19:10:43 | 109,163,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | ''' A palindrome is a word or sentence that is spelled the same backwards and forwards.
A simple of example of this is Swedish pop sensation ABBA, which, when written backwards,
is also ABBA. Their hit song (and winner of the 1974 Eurovision Song Contest!) "Waterloo"
is not a palindrome, because "Waterloo" backwards is... | [
"richies@gmail.com"
] | richies@gmail.com |
a4214d6be5e7f6fa478185252aa734774a80071d | e3e2961454c30ff060a475b32ed75f19d0e72d0e | /setup_app/installers/admin_ui.py | 1c00a64f1fcbb728f009070d674fbac2bde97506 | [
"MIT"
] | permissive | klinux/jans-setup | 648cf966d373929d1c05d8c86019d4c3e45dbc6f | 8461556e07ecb6cb31b537959f78bad88b60e69e | refs/heads/master | 2023-07-07T02:08:03.393135 | 2021-08-10T17:54:29 | 2021-08-10T17:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,403 | py | import os
import time
import glob
import json
import ruamel.yaml
import ldap3
from string import Template
from setup_app import paths
from setup_app.static import AppType, InstallOption, BackendTypes
from setup_app.utils import base
from setup_app.config import Config
from setup_app.utils.setup_utils import SetupUtil... | [
"mbaser@mail.com"
] | mbaser@mail.com |
7a72d546d3294f73f1162641774d3ed7bf3f2bc9 | cce6e3fbb235e87e14cdc7557acf15884509566b | /Python codes/Simple Robot Movements/backward.py | c9bd03ab570bbac9d6486fa4d97cb0a6d1dfe084 | [] | no_license | ArpithaGanesh/AutonomousIndoorNavigationRobot | c3bb4ec2a94aaa7dd7e66427358b2483b37f01df | 8927f0ce8cb413e4e1f918969a3bdf59306f0499 | refs/heads/master | 2020-06-04T22:23:26.059161 | 2019-06-16T15:54:19 | 2019-06-16T15:54:19 | 192,188,290 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BOARD)
Motor1A = 16
Motor1B = 18
Motor1E = 22
Motor2A = 23
Motor2B = 21
Motor2E = 19
GPIO.setup(Motor1A,GPIO.OUT)
GPIO.setup(Motor1B,GPIO.OUT)
GPIO.setup(Motor1E,GPIO.OUT)
GPIO.setup(Motor2A,GPIO.OUT)
GPIO.setup(Motor2B,GPIO.OUT)
GPIO.setup(... | [
"arpithaganesh17@gmail.com"
] | arpithaganesh17@gmail.com |
84f4c3299373152eb7d4df6231395ae80d30a844 | bc11e10521fa313d83011e77a2c31a0b6ed581af | /lib/rubyfox/server/data/lib/Lib/test/zxjdbc/jndi.py | d384bf3292bf6216162f2bcb8bc3d8bd348fa1b8 | [
"MIT"
] | permissive | neopoly/rubyfox-server | f6f191c68dcc30b8c56d22c8209e4a69251f4f27 | 26d67687fc642111ef8d02507f2b567828bd1ebd | refs/heads/master | 2023-07-20T15:04:32.028192 | 2023-07-17T09:16:36 | 2023-07-17T09:33:20 | 6,457,322 | 3 | 4 | MIT | 2020-08-11T06:53:50 | 2012-10-30T13:06:32 | Python | UTF-8 | Python | false | false | 828 | py |
# Jython Database Specification API 2.0
#
# $Id: jndi.py 1962 2001-12-14 04:20:03Z bzimmer $
#
# Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com>
"""
This script is used to bind a JNDI reference for testing purposes only.
"""
from java.util import Hashtable
from org.gjt.mm.mysql import MysqlDataSource
from javax... | [
"ps@neopoly.de"
] | ps@neopoly.de |
5da039e71cdb6a91ad5608bdb989cf7ea546be34 | aa0988f0c2639e80392d76afc3d853c61dd10af7 | /venv/bin/easy_install-3.7 | 2702ad329d06bafb37a6eb7f38fc0a5c72a9c7b8 | [] | no_license | lgsxiaosen/crawler_comic | 26a52f1925a3a74b09574e32a5a2dd2bcf406762 | 7b94e2cc94254f4e71ce72557d5e4e64d64e0616 | refs/heads/master | 2022-04-27T07:42:57.072178 | 2020-04-30T10:24:29 | 2020-04-30T10:24:29 | 260,149,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | 7 | #!/Users/danlan/Documents/CODE/personal-code/one_person_comic/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'... | [
"liuguisen@blued.com"
] | liuguisen@blued.com |
70abbc5cecb282dfd49f08753c9179be6f5f255f | 3388e1171fff7e31837aea83eba0baabcc41350c | /storagebox.py | c918226a4c370831c31118254a580bad83aff93d | [] | no_license | mhermans/3dprinting | 5aafdd8299ac0d13a3e3bd508de60b43107ee841 | 4c2a6002c9ad7247e3917092aafe9e7d9de3ba10 | refs/heads/main | 2023-01-24T04:37:29.030608 | 2020-11-25T20:55:38 | 2020-11-25T20:55:38 | 316,052,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | # Parametric storage boxes for parts
# ##################################
import cadquery as cq
box_with = 50 # x-axis
box_depth = 100 # y-axis
box_height = 50 # z-axis
wall_with = 1
tab_width = box_depth/2 # default tag along half the wall
tab_depth = 13 # 13mm is Dymo tag height
tab_height = 2
t... | [
"maarten@mhermans.net"
] | maarten@mhermans.net |
cce21217107dcef9365691283c1fec36ae5c01ec | b3349e55b0f2ae3d0a644ffdf1518f802e2b1e57 | /CodigoPython/Pregunta3CreacionImagen.py | ab61133cebaf06bb07663786dea3e4529eadd971 | [] | no_license | psigelo/tarea1_ipd431 | 8379f0d7bad1f325ee0a6d38bf361b61c9b5aa92 | 260a6bd3ceac46c2d096554f9c1941ac548674e5 | refs/heads/master | 2021-01-20T05:08:25.829955 | 2015-05-06T21:53:54 | 2015-05-06T21:53:54 | 34,429,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
u = 1.5
x = np.linspace(0, 2 * np.pi, 100)
z = x + 100
plt.ylim([0,1])
plt.xlim([0,1])
plt.fill_between(x, z, x/(u-1), color='black', facecolor='green', interpolate=True, alpha=0.3)
plt.fill_between(x, x, x, color='black', facecolor='gr... | [
"pascal.sigel@gmail.com"
] | pascal.sigel@gmail.com |
5180882b117ac289e7fccdcb89a8e62bcac4eae7 | c0e0de3bd94de0cc4e198b888b2025d243db61ee | /code2inv/common/constants.py | dfbc588814087d95422f067b5be25a9ddc8139e6 | [] | no_license | alipourm/code2inv | 8f728c55d78811edf6923e7904403f8a92c8f46f | b4d6f7e3e0c32005a07e9ecaf589a032610d18f2 | refs/heads/master | 2020-04-19T20:50:15.564141 | 2018-12-26T15:19:14 | 2018-12-26T15:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | AST_EDGE_TYPE = 0
CONTROL_EDGE_TYPE = 2
VAR_LINK_TYPE = 4
NUM_EDGE_TYPES = 6 # 3 edge types x 2 directions
# boogie results
AC_CODE = 0
POST_FAIL_CODE = 1
INDUCTIVE_FAIL_CODE = 2
ENTRY_FAIL_CODE = 3
INVALID_CODE = 4
# z3 pre-check
ALWAYS_TRUE_EXPR_CODE = 3
ALWAYS_FALSE_EXPR_CODE = 4
NORMAL_EXPR_CODE = 5
from cmd_a... | [
"xsi@cis.upenn.edu"
] | xsi@cis.upenn.edu |
fce4db1949627e363226c20b93f6dbc0bea0f98e | 5fcc3fd608a794d260368318c62547f74d4c1416 | /discard_blank_lines.py | c871672ecd765e8096b9971ff5ff20b2f9f2f1a3 | [] | no_license | ds-gurukandhamoorthi/intro-python-exs | 241fb9158096479a100ef378f291ba83e1a7d5d4 | 68c386e51c13d0f31e273016eefc4e29ddecdc04 | refs/heads/master | 2022-02-25T22:28:41.061722 | 2019-10-22T18:36:46 | 2019-10-22T18:36:46 | 103,829,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from sys import stdin
for line in stdin:
if line.strip() == '':
continue
print(line, end='')
| [
"ds.gurukandhamoorthi@gmail.com"
] | ds.gurukandhamoorthi@gmail.com |
d7309ed6406863e1f95db2fe44a7e6108c68d5c2 | 8ddeb2e4d536e11dc25ca580a4e8c5bd62830202 | /old_code.py | f8f6db5fa49c4b66e0374e8300800e3a8da05ab3 | [] | no_license | kmb5/fretboard-learner | 6b827e0c6209f522d8e7e106e3929387a5ec1fd4 | 5a0934b8fc36932f368782603c17842ca479c8fe | refs/heads/master | 2023-02-16T15:59:36.598088 | 2021-01-18T17:42:49 | 2021-01-18T17:42:49 | 287,092,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,145 | py | import sys
import time
from random import choice
#import pyaudio
import sounddevice as sd
from scipy.io.wavfile import write
import numpy as np
from aubio import notes, pitch
from helpers import pitch2note, NOTES_PER_STRING
CHUNK = 1024
FORMAT = pyaudio.paFloat32
CHANNELS = 1
RATE = 44100
RECORD_SECONDS = 5000
"""
TH... | [
"bende@Mates-Air.fritz.box"
] | bende@Mates-Air.fritz.box |
87e92eb32a80400e4da5670fc49fc25d5d68ab3a | 579640d4603ee4239ea2b6dd592aa3f30decaca8 | /week09/UserManger/user/urls.py | 13865317fdd1e9223b9c4901e33361ddbc6f837b | [] | no_license | yangguangchao/Python001-class01 | d5d8a8ee4f74dbd963f1e7a1944149dfcd9124c8 | 0c43223a362086257b182ec2f7ca7d034809e96c | refs/heads/master | 2022-12-10T16:52:15.919865 | 2020-09-06T06:12:04 | 2020-09-06T06:12:04 | 273,133,647 | 0 | 0 | null | 2020-06-18T03:33:48 | 2020-06-18T03:33:48 | null | UTF-8 | Python | false | false | 206 | py | from django.urls import path, re_path, register_converter
from . import views
urlpatterns = [
path('', views.index),
path('login', views.login_user),
path('index', views.index, name='index')
]
| [
"yangguangchao@easyvtech.com"
] | yangguangchao@easyvtech.com |
636743aee653fe77c053c25d57c6367c379f5153 | 026ea2872634d86e1ad2916ffc9c460fc252edad | /hack.py | 39b783cbdf4fb71f625277b0569a1a3f0d9613f0 | [] | no_license | Ushasreetwinky/project-2 | 1cf2c0784106267e313ad59bcd76db4129a9943e | 3262220d70ea76ee5024c4cd381ee66e6cfbbeb8 | refs/heads/master | 2020-12-03T08:05:14.622015 | 2016-09-08T13:28:57 | 2016-09-08T13:28:57 | 95,657,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from subprocess import Popen, PIPE
import json
import csv
import sys
def main(argv):
print "argu received",argv[0]
if argv[0]=="output.js":
commandLine="node output.js"
pass
else:
commandLine="python output.py"
p = Popen(commandLine, stderr=PIPE, stdout=PIPE, shell=True)
output, errors = p.communicate()
re... | [
"ushasree.ginne@gramener.com"
] | ushasree.ginne@gramener.com |
6cd72b223191312ffb848bfd4bc37e80f8d22f97 | 4624906bfa6d9a49b2601d5b3453dcf135023684 | /seguimiento/settings.py | 778163a2d3146e63eef8f1ccdf749043957244e0 | [] | no_license | lobomacz/seguimiento | a04f40588fa4c64d0e65496acfb6f61e6fb6d8e2 | 32d8ed2998f6ee1bc903a8e4ebab8ca3a5b7aaf4 | refs/heads/master | 2023-07-04T23:39:50.528353 | 2021-07-30T18:09:39 | 2021-07-30T18:09:39 | 391,153,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,912 | py | """
Django settings for seguimiento project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pat... | [
"lobomacz@gmail.com"
] | lobomacz@gmail.com |
b891b84c1fffdf89fa571cec71ef4beed64a0c44 | 187a602feb94ead21bcfacbd5b4c92978424aeff | /angr/exp/08_angr_overflow/16_angr_arbitrary_write.py | 1332a3dab03720a4cdbe1cd4c47344e5fbb21403 | [] | no_license | Taardisaa/0x401RevTrain-Tools | c50ef252731547eaba68c97e12997e845ff31727 | e7ea89037b98ae6bdcb2209ae933a270ac8bcb69 | refs/heads/main | 2023-08-22T07:58:10.669461 | 2021-10-11T07:56:39 | 2021-10-11T07:56:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | import angr
import claripy
proj = angr.Project('../dist/17_angr_arbitrary_jump')
payload = claripy.BVS('payload', 64 * 8)
state = proj.factory.entry_state(stdin=payload)
simgr = proj.factory.simgr(
state,
save_unconstrained=True,
stashes={
'active':[state],
'unconstrained': [],
'f... | [
"liuyibo@stu.scu.edu.cn"
] | liuyibo@stu.scu.edu.cn |
3ee9a2aef250a7b26732547c29bf32266b68910d | 2885d654eb99ca71bfeccd8d1f706c07064d8ad6 | /polish_notation.py | 4ca1be683294174e18e29a945d72f7b1707dc000 | [] | no_license | confar/python_challenges | e521775a0c4b6da4e6ce045b3e2cdb3b3ab1fa56 | a03eade2df9d6b1ab63fe5ae269556b38458e0f4 | refs/heads/master | 2023-07-10T04:20:57.146413 | 2021-08-15T20:59:06 | 2021-08-15T20:59:06 | 262,156,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import io
import operator
mapping = {'+': operator.add, '*': operator.mul, '-': operator.sub}
import sys
def main(str_buffer):
stack = []
for token in next(str_buffer).split(' '):
if token.isdigit():
stack.append(int(token))
elif token in mapping:
result = stack.pop()
... | [
"tentigers@mail.ru"
] | tentigers@mail.ru |
f16cdfe295d547f8dc1f3d68e2f1cf83acf58463 | d82995f33a603b61e06deecd644f5a293823b746 | /forward_inverse_kinematics/quiz_rotation.py | c6f25841bacee9da4d1f21c03c89e4df9b1bc1c0 | [] | no_license | RyanCargan/udacity-robond-term1 | 79d065aab42e4e308a93e36fa869bb48477aebef | a92a6e665e72930f9a33eb3a82f64da206b64fcf | refs/heads/master | 2021-09-07T08:39:07.181342 | 2018-02-20T12:27:29 | 2018-02-20T12:27:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | # Two coding quizzes follow. The first requires you to perform an
# intrinsic rotation sequence about the Y and then Z axes.
# The second quiz requires you to perform an extrinsic rotation about
# the Z and then Y axes.
from sympy import symbols, cos, sin, pi, sqrt
from sympy.matrices import Matrix
# Create symbol... | [
"j.tabacii@gmail.com"
] | j.tabacii@gmail.com |
795dff346d3aeb2e1858d868150cdee577936cc3 | dd8ece85ddede58b33e745458323dc2c0c899aba | /Lesson6/ask5.py | 5a86e88ab946a4c25b56fa8b2ed315183e32dbb5 | [] | no_license | michnik3/Python | 48f26c497577eaebade84b12a26fa3585bac32d6 | aade74d8192ddfea5513bbbf5a3edc716d6c4356 | refs/heads/main | 2023-08-25T00:18:48.173146 | 2021-10-07T09:11:13 | 2021-10-07T09:11:13 | 362,200,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | my_list = [number for number in range(100) if number % 2 ==0 and number % 3 ==0]
print(my_list)
| [
"noreply@github.com"
] | noreply@github.com |
5a3a224eb388887427ba5aaea6b9f9fa0d43402b | 237a72855fad3032c7bfe2cd944ae05d018b17f4 | /model.py | 83fe1df555f51fb0340c48adfe802b5984753e4b | [
"MIT"
] | permissive | wdecay/ShapeClassification | 54a8897ab7cbfb109d96fec346ab92878522341e | 0592a837f272c709322a1d7e74948268e8c82cce | refs/heads/master | 2022-11-19T23:20:08.860894 | 2020-07-23T03:25:52 | 2020-07-23T03:25:52 | 281,619,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,927 | py | import tensorflow as tf
import layers
def compose_layers(num_classes, layer_dims, shape_input):
embed_layer = layers.SelfInteractionSimple(layer_dims[0])
input_layer = layers.Input()
model_layers = []
for dim in layer_dims[1:]:
model_layers.append(layers.Convolution())
model_layer... | [
"andrew.ivanov@live.com"
] | andrew.ivanov@live.com |
0922a6895c74ad69b3aa2cc387e3b2483dd419a7 | c9a809c5ef2a6b5e7e50da548c182510d203f430 | /tests/unit/states/test_boto_sqs.py | 93f56d4305805729802429fd15f700b3a67e9619 | [
"Apache-2.0"
] | permissive | andyyumiao/saltx | 676a44c075ce06d5ac62fc13de6dcd750b3d0d74 | a05c22a60706b5c4389adbd77581b5cf985763b5 | refs/heads/master | 2022-02-24T00:51:42.420453 | 2022-02-09T06:46:40 | 2022-02-09T06:46:40 | 231,860,568 | 1 | 5 | NOASSERTION | 2022-02-09T06:46:40 | 2020-01-05T03:10:15 | Python | UTF-8 | Python | false | false | 3,159 | py | # -*- coding: utf-8 -*-
'''
:codeauthor: Jayesh Kariya <jayeshk@saltstack.com>
'''
# Import Python libs
from __future__ import absolute_import
# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import skipIf, TestCase
from tests.support.mock import NO_MOCK, NO... | [
"yumiao3@jd.com"
] | yumiao3@jd.com |
acb7bd4445608d425729d2bd9a6757c8d6b0dccb | 8535bbc7781c4691880c935bd7025646f0dbb7c3 | /area of farm 5 decimals.py | 6f53c191bc9e407b2a7b5ac4f003a0ca36566bce | [] | no_license | Mahadev0317/Codekata | 3b2149f3116ebe4b48b2059b873544c27b23ff39 | c35fa0ed0c4870faea69152638f461e743a9ff69 | refs/heads/master | 2020-04-15T04:59:17.062947 | 2019-05-29T04:46:35 | 2019-05-29T04:46:35 | 164,404,727 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | l,b=map(float,input().split())
p=l*b
print("{0:.5f}".format(p))
| [
"noreply@github.com"
] | noreply@github.com |
4db3db6a15d4a0183be6148e2d90c7766e1b73c0 | 7c2c9f0c7ab918004d05e340d1f41e1e914650a5 | /ex5.py | 95b4e991f5460097c5fa9049381ac1b280994927 | [] | no_license | blip-lorist/python-the-hard-way | f6ad2aa9cfcde25efdb0829f54780edda37f1aed | 06a5256b915f364ebd68c518a277a42a92383e07 | refs/heads/master | 2022-10-20T01:17:28.676035 | 2016-01-01T21:36:46 | 2016-01-01T21:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | name = 'Zed A. Shaw'
age = 35 # not a lie
height_inches = 74 # inches
height_cm = height_inches * 2.54
weight_lbs = 180 #lbs
weight_kg = weight_lbs / 2.2
eyes = 'Blue'
teeth = 'White'
hair = 'Brown'
print "Let's talk about %s." % name
print "He's %d inches tall or %d cm tall." % (height_inches, height_cm)
print "He's ... | [
"loraine@lorainekv.com"
] | loraine@lorainekv.com |
608929efefe568898dd796fd04a624caf4af1899 | c2a15c1a4590982250d88c8125d4e6217c43fa17 | /textman.py | 0f003148fc51b826f4facd88708d82dfa01240d7 | [] | no_license | simranbat/pitchfork | 63bd9213db9d0b90acb48f0382d32097abf73a14 | a84961e0d7447cbaa7b8edf16eea3d3be275653e | refs/heads/master | 2020-05-17T22:29:05.165099 | 2019-04-30T13:52:19 | 2019-04-30T13:52:19 | 184,002,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,901 | py | import pandas as pd
import nltk
from nltk.corpus import stopwords
from nltk.stem import PorterStemmer
import numpy as np
import sqlite3
def import_source(src_file, start_line=None, end_line=None, col_name='line', id_name='line_id', strip=True):
"""Imports a raw text file into a dataframe of lines. Removes extra li... | [
"40209624+simranbat@users.noreply.github.com"
] | 40209624+simranbat@users.noreply.github.com |
42c5a2d68c0705069fc43d9678d3cec33f9a871d | 5248e096abb7e7b8dcaf522c54f857f62dc8639c | /src/autoregkd/interface/cli.py | d0d958ce5a0316da235931073c497f3968448aab | [] | no_license | haroldrubio/autoregkd | b1858154595a3d2e8d9ab3fbe7621b88b21a5837 | cac6e3d09aa137e5613879d90fed1c878b7460e2 | refs/heads/master | 2023-08-14T15:04:02.906017 | 2021-03-24T14:21:25 | 2021-03-24T14:21:25 | 342,059,131 | 1 | 0 | null | 2021-04-02T18:12:39 | 2021-02-24T23:00:08 | Python | UTF-8 | Python | false | false | 849 | py | import click
@click.command(
context_settings=dict(show_default=True),
)
@click.option(
"--log_batch_size",
type=int,
default=2,
help="batch size for training will be 2**LOG_BATCH_SIZE",
) # Using batch sizes which are 2**n for some integer n may help optimize GPU efficiency
@click.option(
"-... | [
"harrywill.rubio@gmail.com"
] | harrywill.rubio@gmail.com |
f9fb8c89a3998efb7df0b951cb1a4a44075afd5b | da099343970eaa367991f08b40c83a580fd09e57 | /download-deveres/para-aulas-do-curso-em-video/aula10a.py | 1400ca4701f8dc3c563aff41b3c010bfab29175f | [
"MIT"
] | permissive | Hugo-Oliveira-RD11/aprendendo-PYTHON-iniciante | dbae493b2f2b49d4a7527986836b6978c6b56829 | b5e41015e2cb95946262678e82197e5f47d56271 | refs/heads/master | 2022-12-16T02:53:48.210283 | 2020-09-11T19:43:57 | 2020-09-11T19:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | n = str(input('qual e o seu nome?'))
if n == 'hugo':
print('que nome bonito em...')
else:
print('que nome ruim!!')
print('tenha um bom dia {}'.format(n))
| [
"hugo.resennde1123@gmail.com"
] | hugo.resennde1123@gmail.com |
0f1db565b35c7cbfb8f04dab6e0e5c69df2458b9 | 34dc1805144d4971286b0b0989ba7417880e038c | /YoutubeNetwork/record_dataformat_version/train/model.py | 4a6ccb67212d98d9733be1b8406fa26cda930ce8 | [
"MIT"
] | permissive | ishigami33/deep_learning | b5856b6c5031dc2f5f0b22811a2b873dc39e13c0 | e64ad4e10fb901b4e7efe777f5bd2efd0d6e0a39 | refs/heads/master | 2020-11-25T05:24:44.227455 | 2019-12-04T05:14:48 | 2019-12-04T05:14:48 | 228,519,783 | 1 | 0 | MIT | 2019-12-17T02:52:07 | 2019-12-17T02:52:07 | null | UTF-8 | Python | false | false | 6,109 | py | import tensorflow as tf
class Model(object):
def __init__(self, args):
# self.sess=sess
self.is_training = args.is_training
# self.input_size=args.input_size
self.embedding_size = args.embedding_size
# self.basic_size=args.basic_size
self.brand_list = ar... | [
"stw386@sina.com"
] | stw386@sina.com |
368ce9e63801f449031d431acdc5d7e45ecad9c8 | c9047f676a29d58943865d548ae70e43014a5881 | /tools/99_gdb/gdb_timers.py | 17e393eb6360dd89da1ad58f6a1e191c31090749 | [
"BSD-3-Clause"
] | permissive | danome/prod | 578045cd7a552dced0a5733fcf8f303fe55e15b7 | 8c0bdc2c8e0939bf4d04e46e1171a55e43500346 | refs/heads/tp-master | 2021-01-17T21:10:35.987764 | 2018-10-16T00:29:08 | 2018-10-16T00:29:08 | 44,350,128 | 0 | 0 | null | 2015-10-15T22:55:07 | 2015-10-15T22:55:06 | null | UTF-8 | Python | false | false | 4,385 | py | # Setup required to use this module
#
# copy gdb_timers.py to <app>/.gdb_timers.py
# and add "source .gdb/.gdb_timers.py" to the <app>/.gdbinit file.
#
from __future__ import print_function
from binascii import hexlify
timer_dict = {
}
def simple_timer_name(timer_id):
t_name = 't' + str(timer_id)
return t_... | [
"cire831@gmail.com"
] | cire831@gmail.com |
9540c5649ece4f24a73054fe3f97086de5daa416 | 5af39f520889df20411a64ac8da65e8f9f173aa7 | /ex3k.py | 823f2a161cab4a06d12d656580e8746ddafcf71a | [] | no_license | Simranbassi/python_grapees | 25661565f475d0b50acda9925441703ed06b574a | 8cadae5a17a74e98e37137538cc963e268a55513 | refs/heads/master | 2020-06-03T14:33:52.975614 | 2019-06-18T10:53:48 | 2019-06-18T10:53:48 | 191,606,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | num=int(input("enter the number"))
if num>0:
print(num)
else :
num=num*-1
print(num)
| [
"noreply@github.com"
] | noreply@github.com |
c693c124a93e14d681de6049ad1cd8167f791fa9 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL17_mMed-1800_mDark-20_ctau-60_unflavored-down_cff.py | 2a10520ef0ce0dd92221fa106cd5e687f6923570 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,971 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
0441299322b4b0eead09496baefc06a63c96530a | 96a2e3b24678451cebe8787a7ddaee72e44c29a8 | /leads/migrations/0001_initial.py | 6f72465ecbfb120cb5cf72df8ba14ad28ae5c063 | [] | no_license | maanavshah/leadmanager-react-redux | 09e728cd98e45c5a7400c2ceb24f4f3918ac7569 | f5dd9d626a29d0cbf71787f9bc03c445769a1fb3 | refs/heads/master | 2023-02-22T16:46:55.062335 | 2021-01-26T10:54:38 | 2021-01-26T10:54:38 | 332,445,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | # Generated by Django 3.1.5 on 2021-01-20 13:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Lead',
fields=[
('id', models.AutoField(aut... | [
"shah.maanav.07@gmail.com"
] | shah.maanav.07@gmail.com |
c5238ef53cf37785c24d9eb98650e18e36970b92 | 9efd272118e522f269b0e001b09bfbafd20bed61 | /lpp/lexer.py | d2d66355cd8555f3c36db60f827f498d15d5d062 | [] | no_license | UnPolinomio/lpp-language | 9cc37317f93d938ffdd5664510824f26a4d8ef85 | 24d92601e7f73aca43d65164ac4ee4ace74d4f64 | refs/heads/main | 2023-07-01T11:48:28.242742 | 2021-08-02T00:22:16 | 2021-08-02T00:22:16 | 391,224,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,801 | py | from lpp.token import Token, TokenType, lookup_token_type
from re import compile, Pattern
from typing import NamedTuple
class TokenRegex(NamedTuple):
n_characters: int
regex: Pattern[str]
token_type: TokenType
TOKEN_REGEX = [
TokenRegex(2, compile(r'^==$'), TokenType.EQ),
TokenRegex(2, compile(r'^... | [
"tor6.franco6@hotmail.com"
] | tor6.franco6@hotmail.com |
28ea271d752771a20d12b624809f486ecf9a9f48 | 9cc714fc5bcd171014ca661ff57a9350e31480a2 | /lib/python3.6/site-packages/Django-3.0a1-py3.6.egg/django/utils/feedgenerator.py | 8f31827ccff1d67ba51262a85367651c437495c6 | [] | no_license | softdeveloper84/currency_tracker | b137a2a4fb8ae7cd3a636c8089ff0f1ea5048d23 | adfe2062bc7c913afa0b753bac7a17af1a9bc71b | refs/heads/master | 2022-02-19T06:20:26.330358 | 2019-09-19T20:45:06 | 2019-09-19T20:45:06 | 208,907,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,117 | py | """
Syndication feed generation library -- used for generating RSS, etc.
Sample usage:
>>> from django.utils import feedgenerator
>>> feed = feedgenerator.Rss201rev2Feed(
... title="Poynter E-Media Tidbits",
... link="http://www.poynter.org/column.asp?id=31",
... description="A group Weblog by the sharpes... | [
"gerberesval@gmail.com"
] | gerberesval@gmail.com |
872e4b1067be2faaeadf9080be75b0cd11135a5c | f374cbc5ce21cad22bb2b8d28d249bcba28b9025 | /generator/group.py | 41991721998b7238bdc788a329eefeecfadc60fb | [
"Apache-2.0"
] | permissive | nechaeva-irina/python_training | 064eb7ec4bff04723bcfcd874f4ffe8e86e369b0 | f4e4c1788525b64ce86eefe261cdb4adfa32f839 | refs/heads/main | 2023-02-08T21:25:12.638509 | 2020-12-31T11:03:04 | 2020-12-31T11:03:04 | 306,890,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | # -*- coding: utf-8 -*-
from model.group import Group
import random
import string
import os.path
import jsonpickle
import getopt
import sys
try:
opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number of groups", "file"])
except getopt.GetoptError as err:
print(err)
getopt.usage()
sys.exit(2)
n = 5
... | [
"ivn@tut.by"
] | ivn@tut.by |
662df77b0315dc3d3f49efb24dc706cd6a9adf76 | 6ff196d013be61815db06580c98133f8f70dd389 | /bike/settings.py | 27f27f50e232dff07ef0c841a2e475d6628d091b | [] | no_license | B0rjitaaa/bikes | 0629ac5418612c1f9bdafe3b97719cf7dfadc840 | fb7298b6558462ac218768c768b9d1989d8c9c93 | refs/heads/master | 2016-09-01T08:37:22.872400 | 2016-01-09T17:46:06 | 2016-01-09T17:46:06 | 49,059,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,910 | py | """
Django settings for bike project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impor... | [
"bmcx12@gmail.com"
] | bmcx12@gmail.com |
9fe39473b2a83f53bf55e35d99c1defac0fc2043 | a2b60aebc26c35baf8e06300893edb3bd1fa9670 | /extune/tune/utils.py | 6ff16ff6e7fa5923992d5e9902b64809c1a936e6 | [
"MIT"
] | permissive | imsb-uke/podometric_u_net | 81322df451459434e4e36149013d93a5d24bb41c | a33afcc186d618889df73c7ab2941dfbb63574ac | refs/heads/main | 2023-02-05T21:07:46.342749 | 2020-12-23T15:25:51 | 2020-12-23T15:25:51 | 323,162,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | import tensorflow
class TuneKerasCallback(tensorflow.keras.callbacks.Callback):
def __init__(self, reporter, config, logs={}):
self.reporter = reporter
self.config = config
self.iteration = 0
self.logs_copy = {}
super(TuneKerasCallback, self).__init__()
def on_train_en... | [
"marina.zimmermann@zmnh.uni-hamburg.de"
] | marina.zimmermann@zmnh.uni-hamburg.de |
04df0299ef957d4333f41b335d3239c4a60fb66b | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d6fd4eb8e6b84d51b7344f8a2c9321faf1dd0ce3-<create_bgp_import_route>-bug.py | 73177bc6902d60f22d29709d05ea09df2e20461c | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | def create_bgp_import_route(self, **kwargs):
' create_bgp_import_route '
module = kwargs['module']
vrf_name = module.params['vrf_name']
af_type = module.params['af_type']
import_protocol = module.params['import_protocol']
import_process_id = module.params['import_process_id']
if ((import_pro... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
30311f47ca61590596c3277770b649a5a3a5f480 | 47109d686222fcb36fbdd95994e4458b9bda867b | /Exercises/list_factors.py | a35ca857ca5b8f134f91f1434e98ad9d0b9eef0f | [] | no_license | gormac23/Python | 641fc800775eaa250a59aad3f8e8164ef5e43452 | fead3432302c689f8b0b3d50b7c4a771b7d39262 | refs/heads/master | 2021-07-11T09:40:53.058073 | 2020-11-30T10:27:22 | 2020-11-30T10:27:22 | 222,804,711 | 0 | 0 | null | 2019-11-20T12:27:16 | 2019-11-19T22:47:46 | Python | UTF-8 | Python | false | false | 594 | py | def list_factors(x):
# We will store all factors in factors
factors = []
i = 1
while i*i <= x:
# Check if i divides x without leaving a remainder
if x % i == 0:
factors.append(i)
# If it does, find the matching factor, i.e. how mnay times it divideds
i... | [
"colin.gorman23@mail.dcu.ie"
] | colin.gorman23@mail.dcu.ie |
38483227c506a6ba14ddc65b05ab9de16db49c85 | 496a55a346c08798186c0f4cefbf3aa4c3e598b8 | /test/bot_gateway/bot_gateway_test.py | 649aad50c2ca1e08f3d7dd460f095867331ed288 | [
"MIT"
] | permissive | olivierSaintCyr/BigBot | adb1d8982b60d60b6250371811f953fedaa423ed | 3db5c07fbfc6f66f59cab91318282abfce210314 | refs/heads/main | 2023-03-12T20:27:25.687768 | 2021-03-01T06:31:49 | 2021-03-01T06:31:49 | 343,248,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import requests
BASE = "http://localhost:5000/"
query_good = {"server_id":"799761080720687164", "service":"echo_test"}
query_not_sub = {"server_id":"799761080720687164", "service":"not_a_service"}
query_server_not_setup = {"server_id":"799761080720687160", "service":"echo_test"}
response = requests.get(BASE, query_go... | [
"olivier@WhiteShadow.localdomain"
] | olivier@WhiteShadow.localdomain |
8b617444a7d6c9cb578d137482b6b235bd235f9a | d6475976a503e78fb52cdba57124f8cd98a178bc | /PagesApp/pages_project/settings.py | 9a18100a92ea8855bfa57cafd5d8503c3d84bf7c | [] | no_license | alexprodan99/TrainingDJango | 0d61db72d3ae58d90e35e46cbdb18aa535505c23 | 6c2543aea68c00d5b65505caa6eb3b276c374d92 | refs/heads/master | 2021-01-01T02:49:18.093373 | 2020-02-29T15:34:59 | 2020-02-29T15:34:59 | 239,149,078 | 0 | 0 | null | 2020-02-09T13:18:17 | 2020-02-08T14:51:37 | Python | UTF-8 | Python | false | false | 3,174 | py | """
Django settings for pages_project project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"prodanalex323@gmail.com"
] | prodanalex323@gmail.com |
a650fc0ebfb9eeaaa1ef45b563caca1ab197d0af | 709034a7ad54aefe36c3fd7c26bf13c975a2afcb | /bin/converter_grpah.py | b8f777f49b541e208c2b2800d884fec371f26cd5 | [
"Apache-2.0"
] | permissive | zh794390558/ML-KWS-for-MCU | d57023ae9c275984c711e2e47009091186b7de85 | 38f4dcec9ac2e74154a024a7795459a3049efd0d | refs/heads/master | 2021-08-18T07:29:17.108746 | 2018-11-12T09:32:36 | 2018-11-12T09:32:36 | 137,883,318 | 0 | 0 | null | 2018-06-19T11:38:35 | 2018-06-19T11:38:35 | null | UTF-8 | Python | false | false | 1,492 | py | # This file is useful for reading the contents of the ops generated by ruby.
# You can read any graph defination in pb/pbtxt format generated by ruby
# or by python and then convert it back and forth from human readable to binary format.
from absl import app as absl_app
from absl import flags
import tensorflow as tf
f... | [
"zhtclz@foxmail.com"
] | zhtclz@foxmail.com |
7f7eccfa7cfae87b951c259963ece51c6d6df66f | 884112003b7bd1e200325bba3e3ac9a2f9d3ea8b | /server/samba/actions.py | 5ec098de997fba2224528230be1acdd5d083749a | [] | no_license | pars-linux/pardus-1.0 | e1a4049c17ac9f2fbc2ae50c61d81c15e03e5823 | 4d2196b7558b3870908e799e02568ee9a6eee419 | refs/heads/master | 2021-01-24T19:12:02.809085 | 2006-06-14T07:07:39 | 2006-06-14T07:07:39 | 82,460,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,815 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
#
# Name <email@address>
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import sh... | [
"me@barismetin.com"
] | me@barismetin.com |
d3d3080077d5aec86def74dd226754e332a1d179 | 24a1da610a57d9558a7261ed9ca92b20d8689634 | /June/48Day/All_Paths_From_Source_to_Target_144ms_15.8mb.py | a3c26ce5b93ff3ce602dec9785daf5399496efdf | [] | no_license | JadeKim042386/LeetCode | b5b70a8100a19d705150f276ee8e0dc11c5038b2 | 77234a14dc97bd0e023842cd57698b37d1460511 | refs/heads/master | 2023-06-09T20:16:36.352246 | 2021-07-06T09:25:15 | 2021-07-06T09:25:15 | 349,680,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | from typing import List
from collections import deque
# BFS
class Solution:
def allPathsSourceTarget(self, graph: List[List[int]]) -> List[List[int]]:
answer = []
end = max([max(i) for i in graph if len(i)])
m, n = len(graph), len(graph[0])
q = deque([[0]])
while q:
... | [
"jk042386@gmail.com"
] | jk042386@gmail.com |
1f4d159101bca3e1e85456a9c828e3e82757ec28 | 2521e6427a7668d8cc91eabb368a5cf0eb7310f9 | /Cap13_Date&Time/06_gmtime.py | f3cec30d0e447568a0954814f81fa192e849d239 | [] | no_license | frclasso/turma3_Python1_2018 | 4a7bc0ba0eb538100400c15fc5c5b3ac1eeb7e50 | 47cd3aaa6828458b7f5164a8bce717bb8dd83a7c | refs/heads/master | 2020-04-06T16:18:00.889198 | 2019-06-10T15:11:32 | 2019-06-10T15:11:32 | 157,614,408 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | #!/usr/bin/env python3
import time
print('gmtime', time.gmtime(1547073589.537185)) | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
8bfacc9a6ebf6d271091d9203ff0b250d4c453c8 | e69f4daddf771f154c55bef4f0b8e667f453ebcd | /Assignment_07/Question_04.py | 9ba49fac0c207551270aa0774df6f73d3ece2d80 | [] | no_license | ismailsinansahin/PythonAssignments | b03eb0000838594e6e3d5e230c29b5de0f793906 | 20bbc5598a3b1dd7cfc114f4e121ba5575e6be17 | refs/heads/master | 2022-04-09T14:39:59.868718 | 2020-03-11T12:26:22 | 2020-03-11T12:26:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | row = int(input("Please enter the upper number: "))
for i in range(1,row+1):
for j in range(1,i+1):
if j%2!=0:
print("1",end="")
else:
print("0",end="")
print("")
# Please enter the upper number: 7
# 1
# 10
# 101
# 1010
# 10101
# 101010
# 1010101
| [
"noreply@github.com"
] | noreply@github.com |
cf513806ff9e036486c751330f323fe84b059ffa | 48377e027a031036b9ebc5c9dcfc9a35ceed76d7 | /ykdl/extractors/ifeng/gongkaike.py | 55c7079ea75809bb3f1aeb472bbf3085dc4bc035 | [
"MIT"
] | permissive | MichioY/bilibiliupload | ed83a3836b09365f801ba93d5de818c2de147fbf | 623e0d06e6acb4b5f2c3d6291450f27bbf83667e | refs/heads/master | 2020-06-25T21:22:15.097945 | 2019-07-28T09:54:29 | 2019-07-28T09:54:29 | 199,425,286 | 1 | 0 | MIT | 2019-07-29T09:48:56 | 2019-07-29T09:48:56 | null | UTF-8 | Python | false | false | 1,138 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ykdl.extractor import VideoExtractor
from ykdl.videoinfo import VideoInfo
from xml.dom.minidom import parseString
from ykdl.util.html import get_content
from ykdl.util.match import match1, matchall
class IfengOpenC(VideoExtractor):
name = u'凤凰公开课 (ifeng open cour... | [
"34411314+ForgQi@users.noreply.github.com"
] | 34411314+ForgQi@users.noreply.github.com |
b91266a173a0d0de9baadd96961442fa038891e4 | be652b0b1b255df320d244caf115e6fabb60c77d | /bhp2/bh_ssh_scp.py | f74c19cdb7079c41cd63bb4427050c5df67a6d92 | [] | no_license | bpinkert/portfolio | 4b505458bbdca3bada05039ea791c6cba3e58ffd | d8ff0582611f9dabaeee6d6ae94113fd17b98ccb | refs/heads/master | 2022-12-05T08:25:10.105766 | 2019-06-24T22:25:59 | 2019-06-24T22:25:59 | 192,994,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | #!/home/bpubi/Devel/bhp/py2.7.3/bin/python2.7
import threading
import paramiko
import subprocess
def ssh_command(ip, user, passwd, command):
client = paramiko.SSHClient()
#client.load_host_keys('/home/bpubi/.ssh/known_hosts')
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
... | [
"bpinkert@gmail.com"
] | bpinkert@gmail.com |
6dcd3e1acaa627be37e9626af756bc8e9d3cf49d | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sT5.py | 06899f2942ca4deac672a79c7a4f6261974d0e27 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
3c98110e0218be3a1f361b9580924a45f5b84b29 | dab8f93ce0cbe8a63a980c40ff97590a32f74472 | /mp_sort/application.py | b08a5a29d7f3f6319cfc4d5f68a0ce4f2bc52d2b | [
"MIT"
] | permissive | AlkaffAhamed/fip_powerx_mini_projects | 549040f981413d452d209a182970674df1943dd0 | 3bc9c8b4bc7ce49603b0824da354c74f4d223117 | refs/heads/master | 2023-07-20T00:49:09.085118 | 2021-08-12T14:55:28 | 2021-08-12T14:55:28 | 388,461,044 | 0 | 1 | MIT | 2021-07-25T16:50:54 | 2021-07-22T12:52:05 | Python | UTF-8 | Python | false | false | 112 | py | from app import application
if __name__ == "__main__":
application.run(host="0.0.0.0", port=8080, debug=True)
| [
"oka_kurniawan@admins-MacBook-Pro.local"
] | oka_kurniawan@admins-MacBook-Pro.local |
955e461abb4b7873b67c0b2439879de2661d65b1 | b81668a2cc43654cf6a3ed952d781310876838f9 | /venv/Lib/site-packages/spacy/lang/en/syntax_iterators.py | 86695cf6f2a3d3fdb3f04bd8679ff5376299d0b6 | [] | no_license | gowthamr1999/docbot-1 | 6a8b873407f15035fb8b30b69ed66ded343bd1e4 | 3119958d68e95673b4c9187d58d8cad5c18a6b2c | refs/heads/master | 2023-04-07T02:16:55.574750 | 2021-04-16T02:52:38 | 2021-04-16T02:52:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | from ...symbols import NOUN, PROPN, PRON
def noun_chunks(obj):
"""
Detect base noun phrases from a dependency parse. Works on both Doc and Span.
"""
labels = [
"nsubj",
"dobj",
"nsubjpass",
"pcomp",
"pobj",
"dative",
"appos",
"attr",
... | [
"42891786+kiranm211@users.noreply.github.com"
] | 42891786+kiranm211@users.noreply.github.com |
d466f2fffdbb03cdaea47b83eeaafc9ac11fd8e4 | 52a930e04ebae70eca592eac7bced74aff8a1702 | /test/two.py | 41cd72fb91d718e7c73bd11eb88757b4c362492f | [] | no_license | lifengze97/LI-FENGZE-work-portfolio | cd05f53222bd6d8906b6bc00d80c195e836a8e36 | 668b4641ae7995645e765eb66970ce410967e84b | refs/heads/master | 2020-05-21T15:36:17.841891 | 2019-05-11T06:35:00 | 2019-05-11T06:35:00 | 186,095,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,217 | py | import numpy as np
import cv2 as cv
import mnist
from operator import itemgetter
def measure(image):
blur = cv.GaussianBlur(image, (5, 5), 0)
cv.imwrite("./aa/1.jpg", blur)
gray = cv.cvtColor(blur, cv.COLOR_RGB2GRAY)
cv.imwrite("./aa/2.jpg", gray)
_, out = cv.threshold(gray, 0, 255, cv.THRESH_BINA... | [
"noreply@github.com"
] | noreply@github.com |
76a7f7756f97cde7cf7dfa05108ed98396a6ec61 | 6e4ac1a8bb85b7b39c173adfc14d1d4d70a79e03 | /question/permissions.py | 4dbbf6e96f76a960bdbc107041cb7b188622384e | [
"MIT"
] | permissive | salva-imm/backend | 4f860da4efd374daa06349dde96e53820f497596 | 4201eccac5c040caac8330911ed0530385dd1b69 | refs/heads/master | 2023-04-11T16:09:08.182517 | 2021-05-05T12:24:59 | 2021-05-05T12:24:59 | 364,716,745 | 1 | 0 | MIT | 2021-05-05T22:04:11 | 2021-05-05T22:04:10 | null | UTF-8 | Python | false | false | 725 | py | from datetime import datetime, timedelta
from utilities.exceptions import CustomException
from question.models import Question, Answer
def check_create_question_permission(user, company):
last_question = Question.objects.filter(company=company, creator=user).last()
if not last_question:
return
el... | [
"ymazdy@gmail.com"
] | ymazdy@gmail.com |
29eb637fd7c69ee63ff42753a2493565813f803f | db4e95730de8e333480e575df8f9792494524df3 | /Python/Startup/LongestShotMaker.py | e061ef5807b660a1a5b7de467efe19c9fcf58375 | [] | no_license | horitin/dotStudio | 99f2065b598f1fd6c960cee00603e982a55f0d98 | 5958706af127e91dde8d00559cafe17536201054 | refs/heads/master | 2021-01-23T23:02:37.828574 | 2015-09-15T15:15:33 | 2015-09-15T15:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | import hiero.core
from PySide.QtGui import QAction
# Longest Shot from Sequence
# Creates a new Sequence which contains Shots with the longest range of frames used across all shots.
class LongestSequenceFromSelectionAction(QAction):
def __init__(self):
QAction.__init__(self, "Create Longest Shot Sequence", N... | [
"antonynasce@gmail.com"
] | antonynasce@gmail.com |
5658a3a70b04b16670fd202bd763cc6512ff4448 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/l2/rtresl2instpol.py | 859da4c1e5fe74c7218a2aa5517591d92b42eaae | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 4,772 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
5d812f9c38a3ade282d96b5d62081a22e1493992 | 742ef72c0e2455222c9a5b02abb46f4a792940ec | /shop/migrations/0001_initial.py | acb7f8a57feedf8e87809bfa7137e504b41fc3ea | [] | no_license | dongju93/mydogs_website | 7af03ddbde39ce8c4f3907c9b8d7e6434961adec | 86688d62d3b5bfd4da79f1980c0b97b8022b6abb | refs/heads/master | 2021-01-03T10:37:26.559646 | 2020-02-21T10:18:13 | 2020-02-21T10:18:13 | 240,044,192 | 1 | 0 | null | 2020-02-12T15:22:48 | 2020-02-12T15:17:31 | Python | UTF-8 | Python | false | false | 2,228 | py | # Generated by Django 2.2.2 on 2019-06-16 09:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"spdlqj011@gmail.com"
] | spdlqj011@gmail.com |
291112da9b483ea2150b7e5e28754d866fcc58d9 | 572ce2b8a9c687f302ea4953dd9bd978470d0c4b | /pythonOOPS/apartments/apartments/middlewares.py | cc017802cc872bb34397da9a233787a5f2e6543f | [] | no_license | fainaszar/pythonPrograms | 5f539c8b80deb5d57e6aa984b0325389cf3b6f51 | 03f6c8b540981332e6f940308c7407a5038faac9 | refs/heads/master | 2021-09-07T18:10:43.603405 | 2018-02-27T05:27:37 | 2018-02-27T05:27:37 | 106,532,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
import scrapy
from selenium import webdriver
class ApartmentsSpiderMiddleware(object):
# Not all methods need to be de... | [
"fainaszar@gmail.com"
] | fainaszar@gmail.com |
836c3f361ef8f0313135b27ba270a86d9d72085b | 80244495df04ff2e5dc8d3af62b8173625a3379f | /app/appbase.py | 23ef2fe4f49fd3922854e1ca3f783d0c9c1ca26d | [
"Apache-2.0"
] | permissive | Jiyvn/pyautotest | a0c24a90ea1626402d1d403a4cef7c9355220011 | a33281d0a6f6edd9c9c60c1e83e2534436818146 | refs/heads/main | 2023-03-26T22:57:09.256738 | 2021-04-02T18:25:03 | 2021-04-02T18:25:03 | 338,061,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,616 | py |
from appium.webdriver.common.mobileby import MobileBy
appPackage = {
'fake_location': 'com.lerist.fakelocation',
'chrome': "com.android.chrome",
'settings': 'com.android.settings',
'gmail': 'com.google.android.gm',
}
appActivity = {
'fake_location': '.ui.activity.MainActivity',
'chrome': "com... | [
"lzy110100@163.com"
] | lzy110100@163.com |
b5304469b0c795fc2fc873e765b6f4fb6c3654ba | f5140d8ccf46eafc47744721fe0c99dbfba9560b | /backend/fitniccs_application_4727/urls.py | f91a0396aeac62b1d8efdf48a0a8d39eeb2a7540 | [] | no_license | crowdbotics-apps/fitniccs-application-4727 | 9b627c7af2975f941c5ba7f5428ffa48a7b8e7df | 9aae1da337c82fa08fa724eebd08860d5cf57493 | refs/heads/master | 2022-12-14T00:14:16.229075 | 2019-06-15T22:54:41 | 2019-06-15T22:54:41 | 192,130,450 | 0 | 0 | null | 2022-12-09T06:28:58 | 2019-06-15T22:54:25 | Python | UTF-8 | Python | false | false | 1,073 | py | """fitniccs_application_4727 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
62f00d103a9a67819d4e00e25a7ff17f9883ca84 | 8f271650eafdaddc1de637024175517da21397b7 | /src/evalRegularJacobian.py | d8110a3124e8849e202acbbca333771c08a429cd | [] | no_license | ebjarkason/randomTSVDLM | dbf0ea549015892c067f61991ecf97a1b7156118 | 29af2ea6df534c26e0592c88eb18809dd4827c17 | refs/heads/master | 2021-09-27T06:06:02.870026 | 2021-09-14T08:34:10 | 2021-09-14T08:34:10 | 115,983,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | # Regularization Jacobian
# Coded by: Elvar K. Bjarkason (2017)
import scipy as sp
from scipy.sparse import csr_matrix, lil_matrix
# Generates the Regularization Jacobian for the 2D slice model with 8000 rock-types and 16,000 parameters.
# Could generalize for adjsutable permeabilities in every block this
# ... | [
"noreply@github.com"
] | noreply@github.com |
e9542b66ed5574f740d6ff518ec4553140597af8 | ff9db4805947a40e9cc40d6ebcd2350d960e2ade | /federatedml/nn/homo_nn/enter_point.py | 913f8f062fec765f580333060e2b842fbf56905a | [] | no_license | jiahuanluo/cv_task | 97f40e8380e99ee0ecfb210f259e96381eac7b53 | c904f6e7319ae068bc3ba1980d6ea1aac9be34f0 | refs/heads/master | 2022-10-14T19:59:14.735009 | 2020-06-12T05:40:23 | 2020-06-12T05:40:23 | 266,522,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,373 | py | #
# Copyright 2019 The FATE 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 appli... | [
"luojiahuan001@gmail.com"
] | luojiahuan001@gmail.com |
2672b6cac374b1ef9e6b36c2ec32f204ddea26fe | 8554533e2b19993ec3a78759f3d06444497995c4 | /week4/project/core/models.py | 16b46a035bcdd1d7276e2b7c3051adb64f081c7c | [] | no_license | Aiganymus/django2019 | 45568dd82763de4623ee9e15251263e816ecc895 | 3605562be5f796e0e6f12d4d58c3b16550ea80a8 | refs/heads/master | 2022-12-01T02:17:56.398215 | 2019-10-22T17:27:58 | 2019-10-22T17:27:58 | 206,342,331 | 0 | 1 | null | 2022-11-22T04:15:27 | 2019-09-04T14:44:17 | Python | UTF-8 | Python | false | false | 3,847 | py | from datetime import datetime
from django.db import models
from core.constants import TASK_TYPES, TASK_NEW
from user.models import MainUser
class Project(models.Model):
name = models.CharField(max_length=50)
description = models.TextField(max_length=300, blank=True, default='')
creator = models.ForeignK... | [
"azhandaulet@one.kz"
] | azhandaulet@one.kz |
e3fd5dd342af9721b6cf3269f297b37f79ffd579 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4148/codes/1585_1015.py | 08a5545beb80ec90b3bded9dc3f7fdb8b9ea446b | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | # Teste seu codigo aos poucos.
# Nao teste tudo no final, pois fica mais dificil de identificar erros.
# Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo.
a = int(input("digite um valor a: "))
b = int(input("digite um valor b: "))
c = int(input("digite um valor c: "))
print(min(a, b, c), a+b+... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
6c80ca7edf3db7c014c4da28b458a3c707d36583 | bc49915f9d6ba300cbef49da2142198a0185dea3 | /zodiac.py | 7cf0d47d37770f36934a7517f9e61e07ebdf2cf2 | [] | no_license | vidyanathan/tele-butt | 3a8a9d70fff6728d5e1b0c693b5b7299c6f91458 | 165d7cab2844b1c72ce98eb3a4f19a8f8ab9e7b9 | refs/heads/master | 2020-12-26T15:31:39.587936 | 2020-02-01T07:12:41 | 2020-02-01T07:12:41 | 237,551,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py |
from datetime import date
def getSign(day, month):
year = 2020
temp = date(year, month,day)
if date(year, 3, 21) <= temp <= date(year, 4, 20):
return "aries"
elif date(year, 4, 21) <= temp <= date(year, 5, 21):
return "taurus"
elif date(year, 5, 22) <= temp <= date(year, 6, 21)... | [
"60515490+vidyanathan@users.noreply.github.com"
] | 60515490+vidyanathan@users.noreply.github.com |
7c102741dbc6f69ffd3c01e5b562b46b83ad07f0 | c3fc7865f163a43fbd3e832547005cf3c89547c5 | /bin/oldScripts/bokeh_deneme.py | 194c894fecaba5e15b1f6e143d85898a56650bf0 | [] | no_license | ahmetrifaioglu/PyTorch | 936d5317ca90a147e147241cbf75ae0864477f13 | fff02012eb5f05cdd634b5128f8bdceb9ed3b2a7 | refs/heads/master | 2021-10-24T19:27:53.495478 | 2021-10-12T22:05:08 | 2021-10-12T22:05:08 | 165,693,778 | 0 | 0 | null | 2021-10-12T22:04:20 | 2019-01-14T16:24:32 | Jupyter Notebook | UTF-8 | Python | false | false | 1,375 | py | from numpy import linspace
import numpy as np
from scipy.stats.kde import gaussian_kde
from bokeh.io import output_file, show
from bokeh.models import ColumnDataSource, FixedTicker, PrintfTickFormatter
from bokeh.plotting import figure
from bokeh.sampledata.perceptions import probly
import colorcet as cc
output_file... | [
"ahmetrifaioglu.ce@gmail.com"
] | ahmetrifaioglu.ce@gmail.com |
9a9968534d4b4d87eb829b640d1fc781677d07bb | f6f098049c7d49dd44c157796aaf8aaee9cd3861 | /testando.py | bbdcde7c11ed626c5907b53b0fbd83a48ff54ff7 | [] | no_license | emesonfilho/dashboard_stocks | 18c0edde2bf670cd4af73875c8d710ea4e98c4f4 | b5cd4ce3b682833db57c6b89dd9d93147892a8e2 | refs/heads/master | 2022-11-16T06:42:58.165845 | 2020-07-12T03:25:12 | 2020-07-12T03:25:12 | 277,551,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | import investpy as inv
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import json
from dashboard import dados_dowload
| [
"emesonfilho@gmail.com"
] | emesonfilho@gmail.com |
1e81d4557c4ce4b7b3e7043c3952ad5baa848153 | b43b142c80821dd7704a3cd9279e92a89b217f9b | /Authors.py | cced9ad88047115deb7395d7a6ab79f1015656cf | [] | no_license | JoshKallagunta/ITEC-2905-Lab-1 | 711897da6d101911d01172477a3ca6f59ce8021e | e9acf937d23c01e059d4872ce0c6bdaec5d7da7c | refs/heads/master | 2020-07-14T09:04:44.749439 | 2019-09-05T23:59:27 | 2019-09-05T23:59:27 | 205,289,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py |
class Author:
def _init_(self, name):
self.name = name
self.books = []
def publish(self, book_title):
self.books.append(book_title)
# def __str__(self, publish)
def main():
josh = Author('Josh Kallagunta')
josh.publish('Book 1')
josh.publish('Boo... | [
"nq6647xv@go.minneapolis.edu"
] | nq6647xv@go.minneapolis.edu |
3cbd7aea80a3af1cb159eebbb6e14062ae4b04f1 | c068f19f14749c7e29a5450871da81d0e4b57348 | /inasilentway/last.py | 8f1aeecef4c21702868e97d87f4a1d541f550c01 | [] | no_license | davidmiller/inasilentway | 42b94adea60143a70e7fa82ecd8504fa6a1142f1 | c88ccd1cc0f79aa167f8a2ff082a20a043d64556 | refs/heads/master | 2022-12-10T11:47:51.052379 | 2021-01-22T12:41:33 | 2021-01-22T12:41:33 | 161,032,907 | 0 | 0 | null | 2022-12-08T01:29:25 | 2018-12-09T11:38:22 | HTML | UTF-8 | Python | false | false | 7,025 | py | # """
# interact with Last.fm
# """
# import datetime
# import time
# import pylast
# from inasilentway import utils
# LASTFM_CORRECTIONS = {
# # Sometimes Last.fm "corrects" album titles.
# # Where these are different to Discogs album title versions this means we
# # are unable to match the scrobbles to... | [
"david@deadpansincerity.com"
] | david@deadpansincerity.com |
87b353e77d5eca80f7fc31e540192a304eeeaeb6 | a4b21c130ab9b1093b84b925c18579083f05abd7 | /chunk_traj_proc.py | 6b03ebeb1527643c44a366ed63d4de376cd85751 | [] | no_license | fischcheng/CMS_postproc | 3a97e58e7cfda7fb1221da871f9a5ddeedc7469f | 737c21cf2b0d8e0e1945c2106385fe44124ca8d8 | refs/heads/master | 2021-01-11T01:02:31.823488 | 2016-10-17T16:09:39 | 2016-10-17T16:09:39 | 71,063,136 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,946 | py | '''
2016/5/24 Auto chunking for large/eddy separation since single sequence runs too slow.
2016/5/31 modified for HRC07m2d
2016/6/13 modified for HRC07m2d
2016/6/23 modified for shuffle experiment
2016/7/11 modified for chunk traj processing.
Yu Cheng
'''
import os
import glob
# User-defined variables, experiment and... | [
"fischcheng@gmail.com"
] | fischcheng@gmail.com |
e112803d2a59c825c238dba119194041f92561ef | ae095900b0d28eaa7172ca18c51a2e33586390e1 | /Backgammon/mcts_alphaZero.py | 908727dd25c3a19bb2cb5bfab942fab310192d69 | [] | no_license | krayc425/MobileLab | 095f386e54fc0965ae1e11d4c5a35f952486e9e8 | 73af48dbdaa82954b082efe01453e47acbc0e2fe | refs/heads/master | 2023-08-18T09:03:53.731650 | 2018-07-07T14:18:14 | 2018-07-07T14:18:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,843 | py | # -*- coding: utf-8 -*-
"""
Monte Carlo Tree Search in AlphaGo Zero style, which uses a policy-value
network to guide the tree search and evaluate the leaf nodes
@author: Junxiao Song
"""
import numpy as np
import copy
def softmax(x):
probs = np.exp(x - np.max(x))
probs /= np.sum(probs)
return probs
c... | [
"krayc425@gmail.com"
] | krayc425@gmail.com |
cd3ad0cf3d1730377cdd51d886b98fbe17ed2a13 | 2bd2ad4931c25491f54d5a8b1808f78e7dda1dbe | /salesman.py | a6482481626516b1f0c7122f210052ebf3a210e1 | [] | no_license | edilsonmassuete/EC016 | 08096c7634810c0de75e24a9f4b8e71ad0aaceff | ea4c75dc5cfa26e434fc5eb1fd142cc3bdf1dedc | refs/heads/master | 2021-01-11T00:07:36.571117 | 2015-12-03T12:12:35 | 2015-12-03T12:12:35 | 47,299,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,174 | py | # encoding:utf-8
'''
Solution for Travelling Salesman Problem using PSO (Particle Swarm Optimization)
Autor: Marcos Castro
Adaptado por : Edilson Massuete
'''
from operator import attrgetter
import random, sys, time, copy
# class that represents a graph
class Graph:
def __init__(self, amount_vertices):
self... | [
"dwo_@hotmail.com"
] | dwo_@hotmail.com |
42e1389f6954d28a78c7f5431a57049e087ba49b | c3ca05c5569393b10f8ebf735884291646bac1e8 | /random/annograms.py | 3668a2ce14601b12b1c30633ba6c001663cdc395 | [] | no_license | weeksghost/snippets | 318582bd8a9fa7603c4997fe25620170dc93377b | 99e118109779cde3b5c3d057baba34dbf3188cc6 | refs/heads/master | 2021-01-10T01:36:31.848065 | 2016-11-02T21:41:31 | 2016-11-02T21:41:31 | 36,667,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | '''
Question:
----
Implement a function that uses a word list
to return the annograms of a given word.
Answer:
----
'''
def annograms(word):
'''
For every string in WORD.LST return a copy of the string with trailing characters removed
and assign it to the var 'words'
'''
words = [ _.rstrip() for... | [
"emarty@broadway.com"
] | emarty@broadway.com |
dea87f5906e21e06b8f57e83a9310e91e6af6e37 | c302376bf97171d64360316aaf955142d8f95dc4 | /code/config/param_2day_label_small_trainable25.py | f4d491eec5438587ab63b86e5968b4434a773b8a | [] | no_license | THODESAIPRAJWAL/candlestick_model | 98c8d406584f24ffec054dd5fb0e48c9d1612471 | 0f6198556285388756171c16a8ae329b0955e125 | refs/heads/master | 2023-03-15T06:05:15.249485 | 2020-08-20T18:58:32 | 2020-08-20T18:58:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,426 | py | import os
# tensorflowのINFOレベルのログを出さないようにする
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "2"
import tensorflow as tf
from tensorflow import keras
def get_class_fine_tuning_parameter_base() -> dict:
"""
Get parameter sample for class fine_tuning (like Keras)
Returns:
dict: parameter sample generated by tr... | [
"rironyokoi@gmail.com"
] | rironyokoi@gmail.com |
5876f0c0d68dd4f85f24210348646af4c796f8c2 | 3e48d5d460645e767bde0d4769ef97a679e94dbc | /manage.py | 65536e79f44b8aeafb0ea1bfca5bb6c7cbd7c3a2 | [] | no_license | Vabs3/Splitwise | aa1e20e26747a06fb7f561dfeee285369c75e2e2 | ab489cb41d8a50929b51ad76097b14cdd57d22a1 | refs/heads/master | 2022-08-03T17:49:28.477881 | 2020-05-25T06:09:51 | 2020-05-25T06:09:51 | 266,598,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Splitwise.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"vbs273+g@gmail.com"
] | vbs273+g@gmail.com |
fbc443913e03e766600e25b0b04391cdb8c0713e | f8846f9459e6ee07829602cfa61ce16022e7b422 | /mypy/sortdir.py | 8c9d947198217fe68610508bec316dd9899274d6 | [] | no_license | evgiz/fish_config | 3250489b70f74b79c3dcbebe1f08440fe23dd5bd | 46219ddea84f98d1aa52e89e107112c19e7f2186 | refs/heads/master | 2021-07-20T04:53:34.317070 | 2020-09-10T13:28:57 | 2020-09-10T13:28:57 | 213,622,075 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,604 | py |
# Sorts directory by category
# Used to sort downloads folder automatically
import os, sys
import shutil
CATEGORIES = {
"images": ["png", "jpg", "jpeg", "heic", "ico"],
"gifs": ["gif"],
"zips": ["zip", "tar", "gz", "bz2", "tbz2"],
"pdfs": ["pdf"],
"audio": ["wav", "mp3", "aiff"],
"dmgs": ["... | [
"me@evgiz.net"
] | me@evgiz.net |
b45e2833b634df979dfe3276e9d41a87ff6681ce | 8e7d8e72902ad14c9cf40a5685ac363ac10e7f73 | /贪吃蛇.py | 4c55b9fbba5dbd329519ee688798750045d765cf | [] | no_license | zhr088168853/test | accf8bae86cd639125be103d9651c055ca2f5fb4 | 96e9f264b205ebfac2b205cbf8015931cd7071bb | refs/heads/master | 2022-12-11T03:26:42.454744 | 2020-08-15T02:53:03 | 2020-08-15T02:53:03 | 287,535,425 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,657 | py | import pygame, sys, random
from pygame.locals import *
# 颜色配置
snake_color = pygame.Color("#8B7D1C")
food_color = pygame.Color("#8B0000")
background_color = pygame.Color("#BACB03")
text_color = pygame.Color("#EFEFEF")
speed = 5
# 长度单位
pixel = 15
line = 44
row = 36
window_width = pixel * line
window_high... | [
"noreply@github.com"
] | noreply@github.com |
3efab4aed123784165a00f01d13fd0339ec738f3 | 469aa7b1ec468ed7c22a31f4b0edeecfd660124d | /client/old.py | d93af52fa1169baf4db23e4c89c41b75e1e19b6a | [] | no_license | miksuk28/iskaffe-system | f90cb226ed86cbfe6d6dd1cfcff5a6659bc3df94 | 7dab3e3e0d2bccc886e4f8c64ff175c8c26aa55a | refs/heads/main | 2023-08-16T17:33:05.301733 | 2021-09-18T10:32:29 | 2021-09-18T10:32:29 | 404,483,735 | 0 | 0 | null | 2021-09-10T19:11:18 | 2021-09-08T20:18:09 | Python | UTF-8 | Python | false | false | 825 | py | import PySimpleGUI as sg
from PySimpleGUI.PySimpleGUI import Input
sg.theme("Reddit")
def login_window():
layout = [
[sg.Text("Username")],
[sg.Input(key="USERNAME", size=(40,1))],
[sg.Text("Password")],
[sg.Input(key="PASSWORD", size=(40,1), password_char="*")],
[sg.Button... | [
"74315076+miksuk28@users.noreply.github.com"
] | 74315076+miksuk28@users.noreply.github.com |
13eef7b59c507152a25d96815aa093ded46399c1 | 092c36abbef360801c2e79346c7776a1341f30ed | /graficado/graficado_simple.py | eb18161ce5c9ac2d58c34448ddd9271920ff384d | [] | no_license | axvargas/algoritmos-python | 06cd500b111af9c5709920cb3654a11ae82c14f7 | cfa491035432f111bc4c8b2e50b8c7eb6a924049 | refs/heads/master | 2023-07-25T11:53:17.013716 | 2021-09-12T05:33:29 | 2021-09-12T05:33:29 | 405,555,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | '''
Created Date: Saturday September 11th 2021 11:24:18 pm
Author: Andrés X. Vargas
-----
Last Modified: Saturday September 11th 2021 11:33:07 pm
Modified By: the developer known as Andrés X. Vargas at <axvargas@fiec.espol.edu.ec>
-----
Copyright (c) 2021 MattuApps
'''
from bokeh.plotting import figure, output_file, sh... | [
"axvargas@fiec.espol.edu.ec"
] | axvargas@fiec.espol.edu.ec |
29445b20446762745a98720d1ca878dc858f650c | 22d0d9d1acaa9a3652c563c31d6920503a489042 | /puck/stdlib.py | 4e31c852abf510085a4fe6a330867990451fc936 | [
"BSD-3-Clause"
] | permissive | pipermerriam/puck | 6b0d8cdcf3867794741075e0d086033101cdaef2 | 6d78be8867f68c9121d7f8eba4140591d3e6a179 | refs/heads/master | 2023-08-28T09:41:59.879612 | 2014-03-31T23:20:27 | 2014-03-31T23:20:27 | 18,305,777 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | import __builtin__
callable = __builtin__.callable
list = __builtin__.list
| [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
fc39092389ac6e1d50011d70868744f38c9e1da6 | de97b23e15d3fb1258d9bd1bd980b9c869a2d38a | /canvasapi/__init__.py | 0d5f79f429efa1f4eabc2a3c0a42baf756963a05 | [
"MIT"
] | permissive | a-goetz/canvasapi | 8b0a109a00ad7d87794506d6907544539ae6857c | 20b62e4c9f7f5360a8be8b79579899c6e9804df4 | refs/heads/master | 2021-07-13T12:32:27.237673 | 2017-10-23T20:09:08 | 2017-10-23T20:09:08 | 96,371,191 | 1 | 0 | null | 2017-07-06T00:12:38 | 2017-07-06T00:12:37 | null | UTF-8 | Python | false | false | 190 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from canvasapi.canvas import Canvas
__all__ = ["Canvas"]
__version__ = '0.7.0'
| [
"me@ucf.edu"
] | me@ucf.edu |
9814103765a376d4375c692490ba9df35f5da243 | b1983c893b2fa9fb71c6a1d398ba4a79cd79fa5b | /src/menu.py | f12df58e7392f4277bf84f2ba6236d01c3dc2d69 | [] | no_license | wmemorgan/Intro-Python-II | c3c02ff0ef3c9a6f5e063eac8648bf51d22bde93 | 9d7b8f3291bc8d5fae44bd91e49bf29a09d90755 | refs/heads/master | 2020-09-13T00:34:51.825597 | 2019-11-27T02:30:35 | 2019-11-27T02:30:35 | 222,607,051 | 0 | 0 | null | 2019-11-19T04:18:35 | 2019-11-19T04:18:34 | null | UTF-8 | Python | false | false | 1,646 | py | from design import Color
class Menu:
"""Game menu system"""
def __init__(self, name, options, instructions):
self.name = name
self.options = options
self.instructions = instructions
def show_menu(self):
size = max(len(k) + len(v) for k, v in self.options.items())
p... | [
"wil.me.morgan@gmail.com"
] | wil.me.morgan@gmail.com |
ba478c6b41b71c5cb27fab0fafa51b0a08945d23 | 52a7271d9ce64ebb1a7ff406122d5738dbd3b4a9 | /python_modules/dagster/dagster/_core/definitions/definitions_class.py | 0f7574839c7e0021bf2dad64f5b7ebdcbd40c0b4 | [
"Apache-2.0"
] | permissive | jmsanders/dagster | 67f188f53ed2cbce7eebdda421e00dd799e42ec5 | 390032c4627730be5a4b57fea456e6060e5f3e69 | refs/heads/master | 2023-08-21T12:58:50.017148 | 2023-08-16T13:58:33 | 2023-08-16T13:58:33 | 313,052,917 | 2 | 1 | Apache-2.0 | 2021-01-12T15:59:57 | 2020-11-15T14:47:10 | null | UTF-8 | Python | false | false | 22,577 | py | from typing import (
TYPE_CHECKING,
Any,
Dict,
Iterable,
List,
Mapping,
NamedTuple,
Optional,
Sequence,
Type,
Union,
)
import dagster._check as check
from dagster._annotations import deprecated, experimental, public
from dagster._config.pythonic_config import (
attach_re... | [
"noreply@github.com"
] | noreply@github.com |
dbb5da8fa5cfcb7e869dd263729b1301b36b35ce | c6ed9aa97166d4778b89321b580af80c543bacc9 | /hackerrank/implementation/cavitymap.py | 941fc9b2ecf066a2f0a6fc08c4eb96a3d61420b7 | [] | no_license | bradyz/sandbox | 381bcaf2f3719dee142a00858f7062aeff98d1ab | ff90335b918886d5b5956c6c6546dbfde5e7f5b3 | refs/heads/master | 2021-01-23T09:03:54.697325 | 2018-02-27T20:47:48 | 2018-02-27T20:47:48 | 21,292,856 | 10 | 0 | null | 2015-09-03T16:53:15 | 2014-06-28T00:29:18 | Python | UTF-8 | Python | false | false | 730 | py | import sys
def marked_map(d_map, side):
tmp_map = d_map
for x in range(1, side - 1):
for y in range(1, side - 1):
cur = d_map[x][y]
if cur > d_map[x - 1][y] and cur > d_map[x + 1][y]:
if cur > d_map[x][y - 1] and cur > d_map[x][y + 1]:
tmp_m... | [
"brady.zhou@utexas.edu"
] | brady.zhou@utexas.edu |
15b59d08369ec7ed415314c70999e3ac58ae20f2 | 6adad4985eb7446cccb9066257b3b9e03cb044ca | /Homework/Hangman.py | a6c9a4a9a8e513c920cbd78634b32935f1428a45 | [] | no_license | MikaMahaputra/Binus | 298a176c8b3c0669819840a8d0ea1748cd5e98d0 | 1fa3fba60d5882ddc99e8f3e6038b4b9c8643b28 | refs/heads/master | 2020-07-27T01:37:47.984077 | 2020-06-20T18:58:07 | 2020-06-20T18:58:07 | 208,825,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 25 11:46:58 2019
@author: user
"""
import random
def get_word() :
words= ["Happy", "Sad", "Angry", "Dog", "Cat", "Mouse", "Air", "Land", "Sea", "January", "May", "June", "December"]
return random.choice(words).upper()
def check (word, guesses, guess):
... | [
"noreply@github.com"
] | noreply@github.com |
cfd2b37c895af427caacb966b2ac30bc49a3feaf | 82c0c89857c1935204c1fb1c03427117275af81c | /upload_form/urls.py | 9329daef402cefa3dc7d4666b65007eabaad5dfc | [] | no_license | KaijiS/Cut_Vowel | 41132c33ff2ca99a7d9d636e85d07869c48d0b62 | 10e1dd8ae8715e6287efdcd8dbffe12319140794 | refs/heads/master | 2020-03-19T18:09:56.133826 | 2018-06-18T10:01:44 | 2018-06-18T10:01:44 | 136,796,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | from django.urls import path
from . import views
app_name = 'upload_form'
urlpatterns = [
path('', views.form, name='form'),
path('download/', views.download, name='download'),
]
| [
"31200760+KaijiS@users.noreply.github.com"
] | 31200760+KaijiS@users.noreply.github.com |
18fc3c3fe3e000f701c5ed4f6e84bacfdedf80f3 | d3019be00f73f6d479e17632a1f2ce1ebfbfba6c | /Sentience/sol.py | 76db5134ca011d29007793c9a71bd9489fd6d016 | [
"MIT"
] | permissive | AJ1479/code-golf-challenges | 2c779c6f5cdd175748305014835b41b6ff4ff747 | ea543f260f6f2fb3f7b7845a8efa436c1b8b6f12 | refs/heads/master | 2023-02-10T11:35:27.779814 | 2020-10-03T18:21:47 | 2020-10-03T18:21:47 | 298,393,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | mod=pow(10,9)+7
def fibonacci(n):
a = 0
b = 1
if n == 0:
return a
elif n == 1:
return b
else:
for i in range(2,n+1):
c = (a + b)%mod
a = b
b = c
return b
t=int(input())
for _ in range(t):
n=int(input())
print(fibonac... | [
"arushijain1479@gmail.com"
] | arushijain1479@gmail.com |
7f386af6ec040149f7dc365a98c0fe74e4cecb11 | 7f7bbe413eefb90bb783c987faf42edb3db05e26 | /users/urls.py | 0b2ce076728ee8ced51d1b65fe5fadb76a75fed4 | [] | no_license | Ka4mar/Geekshop-server | abbff5a93a4f41f4216c71bb828aff7198459dac | 94cfab1d9f5432efee32b20bf32724ff439101e9 | refs/heads/master | 2023-07-15T03:37:40.619547 | 2021-08-24T13:56:17 | 2021-08-24T13:56:17 | 380,510,493 | 0 | 0 | null | 2021-08-20T21:09:03 | 2021-06-26T13:38:45 | CSS | UTF-8 | Python | false | false | 402 | py | from django.urls import path
from users.views import login, registration, profile, logout, verify
app_name = 'users'
urlpatterns = [
path('login/', login, name='login'),
path('registration/', registration, name='registration'),
path('profile/', profile, name='profile'),
path('logout/', logout, name=... | [
"Berserk_ka4mar@mail.ru"
] | Berserk_ka4mar@mail.ru |
e1ec834f94f09b1099ff834e8bfffae534ef1417 | 99b7c99762dcb0c089db759f82d7f544fa8b1b55 | /backend/tstec2020110601_dev_14711/settings.py | 01a73faf2ee732883ee770447aa5040da44a418c | [] | no_license | crowdbotics-apps/tstec2020110601-dev-14711 | a5425bc05f4b40a3127715583d46d21fc041ebaa | d8f065b3475c9d782a5f9dd61d1430a2f3848e34 | refs/heads/master | 2023-01-11T03:31:33.462079 | 2020-11-13T11:18:30 | 2020-11-13T11:18:30 | 310,740,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,125 | py | """
Django settings for tstec2020110601_dev_14711 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.