blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
df4806ee3d178327a6d4e490a793241d228e6013
6502f830e5427b6f94baa1ac2f6214468737b196
/python/postprocessing/modules/common/countHistogramsModule.py
1b27db6b39cb35703abc1ce55f4245302dad4f82
[]
no_license
cms-nanoAOD/nanoAOD-tools
24608d5dd0e4c6068ee7af9b4b2017c615832b7f
7a4e7e58421b0be8bc25fc99cfb1dd007b52f3c7
refs/heads/master
2023-08-16T23:03:45.889168
2023-08-09T09:02:24
2023-08-09T09:02:24
104,048,162
50
228
null
2023-08-09T09:02:26
2017-09-19T08:28:42
Python
UTF-8
Python
false
false
1,450
py
countHistogramsModule.py
from PhysicsTools.NanoAODTools.postprocessing.framework.eventloop import Module import ROOT ROOT.PyConfig.IgnoreCommandLineOptions = True class countHistogramsProducer(Module): def __init__(self): pass def beginJob(self): pass def endJob(self): pass def beginFile(self, input...
dffca3f6abb512eebe230fdb302a46c93584e184
1a565140707eb6bc458fcfbd76ba807a4391898c
/tests/test_middleware_asgi.py
f0db7334858a80b801edcc0dc0fdc142f3ed25a8
[ "MIT" ]
permissive
teaglebuilt/bocadillo
ff7fa11beaf255b0f033eefb230da687ed4aa9ec
b2138e77747d3ab9f87e4b352f6b7c1e72520fe1
refs/heads/master
2020-08-04T11:05:27.198674
2019-09-11T22:28:56
2019-09-11T22:28:56
212,116,710
0
0
MIT
2019-10-01T14:25:06
2019-10-01T14:25:06
null
UTF-8
Python
false
false
2,639
py
test_middleware_asgi.py
import pytest from starlette.responses import PlainTextResponse from bocadillo import App, HTTPError class ASGIMiddleware: def __init__(self, app): self.app = app async def __call__(self, scope, receive, send): await self.app(scope, receive, send) def test_asgi_middleware(app: App, client)...
adbf769f37267c0ffd4476279761db044f5eacb2
8edb80966172780c6d2bb5c9a1bef8c181810689
/test.py
67293fc7c708686a66ce8801a16f0c3697ec9612
[ "MIT" ]
permissive
ITWSXInformatics/Group9_2021
81f1b9c60ab765a85bc5c3d72921c3a69c41e6df
f1fc4f90791454569cc6e3b97350d6220888a980
refs/heads/main
2023-04-05T11:52:33.317128
2021-04-27T07:33:58
2021-04-27T07:33:58
355,344,408
0
0
MIT
2021-04-27T07:33:59
2021-04-06T22:21:47
CSS
UTF-8
Python
false
false
1,349
py
test.py
from transformers import AutoModelForCausalLM, AutoTokenizer import torch if torch.cuda.is_available(): device = torch.device('cuda:0') else: device = torch.device('cpu') tokenizer = AutoTokenizer.from_pretrained("microsoft/DialoGPT-medium") model = AutoModelForCausalLM.from_pretrained("microsoft/DialoGPT-med...
f0200269e2cf11098ddfba5356aaa7d950ff33b8
2275413c8cc2b791a4a911126d6c7f3fc8c14691
/theremin/theremin.py
78130587f725d761cd08e9619190458c6db3eed9
[ "MIT" ]
permissive
BlackLight/theremin
8c25e85064ad5cfb6a04b9875d56e1e18b89321e
2e3cc58948f07879d9c8077d048764817996cf8c
refs/heads/master
2020-08-04T00:10:34.894003
2020-06-11T10:06:12
2020-06-11T10:06:12
211,931,623
5
1
null
null
null
null
UTF-8
Python
false
false
837
py
theremin.py
import sys import pyo from .leap import LeapMotion from .sound import SoundProcessor def theremin(wave='SineLoop', audio_output=None, audio_backend='portaudio', channels=2, min_frequency=55, max_frequency=10000, sampling_rate=44100, discrete=False, left_handed=False): dsp = SoundProcessor(output=aud...
4074f1bacac0a62515af7ab708490fb58053ffae
08e5b55ab5397ecef1f90528e1870918e2030629
/plato_control/src/gui_utils.py
646a4bde23bdce55009eae4b285f98135a8849ae
[]
no_license
RocketFlash/PlatoRobot
b43169537865647399ea0e7b2ea0000a02067ec6
1a15dc4b0d885102981f075bb2a04c9cc7c15fe8
refs/heads/master
2020-06-13T02:39:29.219133
2019-06-30T11:53:51
2019-06-30T11:53:51
194,504,596
0
0
null
null
null
null
UTF-8
Python
false
false
13,519
py
gui_utils.py
import pygame import sys BLACK = (0, 0, 0) WHITE = (255, 255, 255) RED = (200, 0, 0) GREEN = (0, 200, 0) BRIGHT_RED = (255, 0, 0) BRIGHT_GREEN = (0, 255, 0) class Slider(): """ Pygame slider class: Attributes: x: X position coordinate y: Y position coordinate width: Slider width ...
da219968228ca6e9f06301bcf9af39c51eacdbbd
994605979841b8654d704f60bcb74917de0668bb
/keras_simple_baseline_shallower_GPU_2.py
388c00c5c55d4dfceb207d99f367601eb8b6947d
[]
no_license
MichaelHarrison87/MURA
01c68275414015bcb43ec7514a3c565e0f561a7e
f8eda19cdc65411496235eef967fb4fe21bb6245
refs/heads/master
2020-03-23T18:40:31.339759
2018-08-30T12:28:56
2018-08-30T12:28:56
141,924,635
0
0
null
null
null
null
UTF-8
Python
false
false
9,384
py
keras_simple_baseline_shallower_GPU_2.py
import time import numpy as np import pandas as pd import tensorflow as tf import os from PIL import Image from sklearn.metrics import confusion_matrix, cohen_kappa_score from tensorflow.python.keras.models import Model from tensorflow.python.keras.layers import Input, Dense, Flatten, Conv2D, MaxPooling2D, BatchNorma...
a23f4911d345dc3665ec3aa23916570cd446b4c2
a00977a29668f5d99d51424b04b8b7d1584b2a45
/Project Final - Copy/DIP Project Code/diabetic.retinopathy__CNNs/scripts/build_model.py
7d2c43ddad5f71d48e72df840f52d822d43a38d7
[]
no_license
technocrat13/diabetic-retinopathy-w-cnn
16ccf5a9b0cb99039c68407bee755561bf256efe
e2b9b984d600d102738a6b5c4e7bc9ac0fa56d9a
refs/heads/master
2022-02-11T06:04:30.475626
2022-01-25T03:10:31
2022-01-25T03:10:31
228,848,013
0
2
null
null
null
null
UTF-8
Python
false
false
2,621
py
build_model.py
from time import time import datetime import os import keras.backend as K from keras.models import Sequential, Model from keras.layers import Input, Dense, Conv2D, MaxPooling2D, Dropout, Flatten, BatchNormalization from keras.optimizers import Adam from keras.callbacks import TensorBoard K.image_data_format() from sk...
50457dbaba99f0c2c43d8c44b95b6118a96f641e
743f96003d93197bf453ab37fee77590be875fa4
/swagger_server/controllers/trabajo_controller.py
479e705badb717fb64aba6cc28eb9311f794fda2
[]
no_license
rugana96/aos-ss3
47f39a3270b4ce13c4b00e9df2fe1a422484cba4
7e0af25d7ff57bdd8961d64cad82c7574fce8c4e
refs/heads/main
2023-05-13T17:17:02.154324
2021-06-08T15:32:23
2021-06-08T15:32:23
375,054,321
0
0
null
null
null
null
UTF-8
Python
false
false
3,961
py
trabajo_controller.py
import connexion import six import datetime from swagger_server.models.body import Body # noqa: E501 from swagger_server.models.http_problems import HTTPProblems # noqa: E501 from swagger_server.models.inline_response200 import InlineResponse200 # noqa: E501 from swagger_server.models.trabajo import Trabajo # noqa...
24c1492c35d9f63ac8207225f4d3c058fac600bd
5c5f8892702752a4f74155930fe2500320357661
/NN_tf_model.py
4355b6b456fdad6eef1afcd12685fe21ee9dce7e
[]
no_license
jcrousse/URLab_Prediction_Model
43d04f689dd6af1ead88c7f5a148fd1ff0ed1785
5235d2313866c87021a1182a3a3f723f81ffa416
refs/heads/master
2021-05-13T13:40:48.402421
2018-02-05T18:51:21
2018-02-05T18:51:21
116,714,245
0
0
null
null
null
null
UTF-8
Python
false
false
1,418
py
NN_tf_model.py
import pickle import numpy as np import pandas as pd from nn_graphs import nn_2_layers from nn_model import NNModelTTS, NNModelKF data = pickle.load(open("data.p", "rb")) data_dict = pickle.load(open("data_dict.p", "rb")) # NN training parameters. We use default logging, dropout prob and CV split epochs = 1000 learni...
1f41865092042212652caf68aaef58fc70f41562
a39c4273f5b921e84b698248f7983fc72c955150
/re2/compiler.py
318e8d50649516c56b0ef43157c230bb216b87e1
[ "MIT" ]
permissive
cben/re2
ef55adccc9898ccdc3c9616bea2c1a480e7b9556
24bec7ee6ef89a6bc3590a20ae25e0b5d479fb07
refs/heads/master
2020-12-25T20:43:09.099780
2015-12-27T13:58:46
2015-12-27T13:58:46
48,957,447
0
0
null
2016-01-03T19:10:31
2016-01-03T19:10:31
null
UTF-8
Python
false
false
4,827
py
compiler.py
import re from re2.parser import Concat, Either, Def, Operator, Macro, Literal, Nothing from re2 import asm EMPTY = asm.Literal('') EMPTY_CONCAT = asm.Concat([]) class CompileError(Exception): pass builtin_macros = { '#any': asm.ANY, '#linefeed': asm.LINEFEED, '#carriage_return': asm.CARRIAGE_RETURN, ...
920f9f60f34ff006f2ecaea1a2d6d572ef2f3b7a
49d7874542f47ea965d4ffa09578fbf7a9c5272c
/logger.py
93d70265441ead6aa8649e58f61897dc8d644698
[ "MIT" ]
permissive
alexandonian/relational-set-abstraction
f32318bba00f8a0b559fc52fa6c87d835a701133
8af6a6a58883ce59c7b29e4161ff970e3bded642
refs/heads/master
2022-12-19T17:11:14.860467
2020-09-17T16:55:44
2020-09-17T16:55:44
296,366,606
10
1
null
null
null
null
UTF-8
Python
false
false
7,491
py
logger.py
import os from collections import defaultdict from utils import HTML class AverageMeter(object): """Computes and stores the average and current value""" def __init__(self, name, fmt=':f'): self.name = name self.fmt = fmt self.reset() def reset(self): self.val = 0 ...
029a6d9cf1d5f651fe7c059c68be31aabffeba03
c29204663d8e5103524e47a9ed83b27e2c3b7f84
/Chi2BuonAdatt.py
865310b539a5122c418b64b79e1b685919459343
[]
no_license
RandomTesterGuys/HowMuchRandom
153c702d78294e15d51efa41c41d114f714927eb
5903b357891b65543423a24efdcec28a3d7bcfa6
refs/heads/master
2021-01-23T07:27:11.972081
2015-02-25T22:45:49
2015-02-25T22:45:49
31,330,820
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
Chi2BuonAdatt.py
#!/usr/bin/python from __future__ import division def calcolaStatisticaTest(dati): #Dividiamo l'intervallo [0,1] in k segmenti, e contiamo le occorrenze campionarie for j in range(len(dati)): #rendiamo positivi i valori negativi dati[j]= abs(float(dati[j])) k = 101 occorrenzeCampionarie = [0]...
dc3b26a0af0378ff82df0b4b41c9c04afb8c359b
f0f8a0c50d9511c179f3205f0220965d1fdcbb75
/coding/technical-skills/TIS/events/events/forms.py
a7c96e4ce13975a4449a9e3226242d3db099931c
[]
no_license
sibsones/tis_technical
9a2e1280516ff46c6e4d7291730b17002a95a1e8
13b2ebed2b34ee9914953e3fd3e2eddc08fced66
refs/heads/main
2023-07-11T03:37:12.473344
2021-08-12T18:02:46
2021-08-12T18:02:46
395,402,560
0
0
null
null
null
null
UTF-8
Python
false
false
2,006
py
forms.py
from django import forms from events.models import gig import datetime ## Maximum open/close dates year_open = datetime.date(2021,6,1) year_close = datetime.date(2021,12,31) class BookingForm(forms.ModelForm): date = forms.DateField(help_text="Enter your desired date: ") band = forms.CharField(max_length=32,h...
8fdd7cc566c5ffd86e5bae7f5bb5cdc0b24301fc
678e6c118bf96ebab26b2d46d8962392b05d6dce
/api/app.py
559651d2b5590fbc7e2f000615e29003290965dd
[]
no_license
tarkadaal/hangman
f83481dd6a2a1277c04e6d7eec72804ea998d90f
d1f0aea30d1d4396bb113beeebc689f3905ef217
refs/heads/master
2020-05-27T14:17:27.422701
2019-06-17T06:57:12
2019-06-17T06:57:12
188,656,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,878
py
app.py
import core.hangman as hangman from core.hangman_state import HangmanState from flask import Flask, jsonify, request from flask_cors import CORS from core.hangman_storage import HangmanStorage app = Flask(__name__) CORS(app) STORAGE = "./high_scores" @app.route('/hangman/api/start_game') def start_game(): state...
0d8dde95d45c92b7f7bd2b00f3c791b000a15b9e
351d95e9e9f36efb314bee68919fe6fea2f9b2c6
/server.py
f1e7eb38833184c486234127a89c249cac09da63
[]
no_license
mearajennifer/portfolio
5ec6aaffc2d6e60847e4e25fb97577a1fe866330
7789635c1974092338358b8987473a4a1a6bfe97
refs/heads/master
2020-03-23T18:53:06.297332
2018-08-31T21:36:56
2018-08-31T21:36:56
141,938,241
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
server.py
"""Jennifer Meara portfolio website""" from jinja2 import StrictUndefined from flask import (Flask, render_template) from flask_debugtoolbar import DebugToolbarExtension import os # Create app application = Flask(__name__) # Required to use Flask sessions and the debug toolbar app.secret_key = os.environ['FLASK_SECR...
ef8859b5da957a9ea5a830dbc04d37d8e7a4c65f
d1df521ea10b5cf5a267583b9206b08ba7e99b3d
/src/Python/PythonDODF/dataExtenso.py
defab1f8c925d42a5e4af11d7263e5bb3125f0a7
[]
no_license
peluz/kneedle-exploration
0fbb3900099d07b129d83cd2e99a445f1c3f2571
fbdd0a464c5f248abab56de8732ad5cb692db379
refs/heads/master
2023-05-30T00:14:18.330306
2020-05-27T18:48:13
2020-05-27T18:48:13
210,032,316
1
1
null
2021-06-15T16:05:17
2019-09-21T18:10:10
Jupyter Notebook
UTF-8
Python
false
false
1,411
py
dataExtenso.py
# coding: utf-8 ''' Elaborado por Marceo Magalhães Silva de Sousa em Abril de 2019. Permitida a utilização deste código, desde que citada expressamente a autoria. @autor: Marcelo Magalhães Silva de Sousa ''' import datetime Diasemana = ('segunda-feira','terça-feira','quarta-feira','quinta-feira','sexta-...
c996451981cd8e178317d9d9e3f0b618c4feef5f
03191967f523f41043cea9b8dc3ac14ef19cbc07
/周赛/5382.py
bb5fa8fb0b98b20aadac99c6ea05ae2559fac314
[]
no_license
ShallowAlex/leetcode-py
4fd5a07ec794649cc28dece428dd8466bd2e990d
8773574504c8a8323976827aea188246ad4f618e
refs/heads/master
2022-04-24T14:16:08.971191
2020-04-25T07:45:55
2020-04-25T07:45:55
258,499,711
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
5382.py
# -*- coding: utf-8 -*- """ Created on Sun Apr 12 10:14:10 2020 @author: Alex code for windows """ #from typing import List class Solution: def entityParser(self, text: str) -> str: dic = {'&quot;':'\"', '&apos;':'\'', '&amp;':'&', '&gt;':'>', '&lt;':'<', '&frasl;':'/'} for k in dic.keys(): ...
45fca7cff420cbe948bf3160eed209e0f49bf163
873abcb7016b65e93e21e7d557410bcd5c156da4
/day2/chapter6/functions/functions.py
8ab61bbdeddf6b6bad1bb0df3923f76bf3326e52
[]
no_license
Rae420/python-wd1902
e7864cb761d088a05dc8384b64a0ad345112d41a
f12922bc641e3b3992f436c7cf0bc640bd0ebab6
refs/heads/master
2020-05-30T06:09:12.194915
2019-05-30T16:51:21
2019-05-30T16:51:21
189,573,980
0
0
null
null
null
null
UTF-8
Python
false
false
504
py
functions.py
def greetings(name): print('hello' + name) greetings('favour') print('') greetings('far') print('') def Add(num1, num2): sum = num1 + num2 print(sum) Add(10, 10) print('') def person(name, age, occupation): result = 'My name is '+ name + ' and my age is '+ str(age) + ' and i am...
5d46f767f4e96bd8e6b2d9af8acb9ad78db3f9b9
b9840c547082d5c274b2cc945dd72ab95e7365a8
/Leart/day32.py
7aca53f02ae0212771dae0f45aada10dfcaa4951
[]
no_license
TobyLi007/Learning-Python
69009fb59041d363d1c92be86dc54b3b4d456e5f
c8e54d45a72c30fc49628120d004e702587b61c9
refs/heads/master
2022-07-01T00:57:49.735304
2020-05-07T10:20:34
2020-05-07T10:20:34
262,018,566
0
0
null
null
null
null
UTF-8
Python
false
false
1,385
py
day32.py
from time import sleep import threading from concurrent.futures import ThreadPoolExecutor from random import randint class Account(object): def __init__(self): self.balance = 0 self.lock = threading.Lock() self.condition = threading.Condition(self.lock) def deposit(self, money): ...
40446c382a785d41da698dab813906e6c033ebf1
5a76a5dd20bb8a17066e364549ebe336d3af7d9a
/tree-it.py
5158ba93fa40bc7d70c6608a036d6d7d581e395e
[ "MIT" ]
permissive
nort3x/tree-it
9af3c2277b1ccb2a87da0e3272d238412185136b
36a62ff7b5a549d35a43c044d63250acf94a62f8
refs/heads/master
2023-01-10T12:22:38.704213
2020-11-11T10:48:48
2020-11-11T10:48:48
104,554,265
1
0
null
null
null
null
UTF-8
Python
false
false
11,602
py
tree-it.py
#! /usr/bin/env python3.6 # -*- coding: utf-8 -*- import argparse import os from termcolor import colored all_dir_count = 0 all_file_count = 0 end_hail = [] def list_me_dir_file(ls, path): dirs = [] files = [] for x in ls: if os.path.isdir(path + "/" + x): dirs.append(x) if ...
b8d384dcec734c76b3080e419c07a7095ada33d6
620be09da3b48321144cf16feb0d01fae495b5ad
/breakout.py
3e5a6155679e88e995ed6419f4be907dddb7c683
[]
no_license
nipunshrestha/breakoutgameML
8c65a6b33eec67cc50a69ff702e50e2780c7680c
3efe0138fc82543aa8a774e79ef5486d3f10921e
refs/heads/master
2022-11-23T20:03:31.866895
2020-07-22T23:59:07
2020-07-22T23:59:07
278,775,431
0
0
null
null
null
null
UTF-8
Python
false
false
7,001
py
breakout.py
import os import pygame import neat import math import pickle os.environ['SDL_VIDEO_WINDOW_POS'] = "200,30" SCREEN_WIDTH = 800 SCREEN_HEIGHT = 600 BLACK = (0, 0, 0) WHITE = (255, 255, 255) GREEN = (0, 255, 0) GRAY = (100, 100, 100) gen = 0 class Brick(pygame.sprite.Sprite): def __init__(self, x, y): py...
936fd32a296f1b5c2a3200592c3fd94004a1466c
65b56361983396ddb27b03b298d483121bc45b89
/deepvariant/make_examples_somatic.py
4c9845dbfc250398ec54fa828bb75304dfcb21fc
[ "BSD-3-Clause" ]
permissive
google/deepvariant
e7bca6f3664b49466a2abfcfd19b8f7223fbfb78
ab068c4588a02e2167051bd9e74c0c9579462b51
refs/heads/r1.5
2023-08-27T16:51:05.058391
2023-02-28T07:03:48
2023-02-28T07:05:02
111,751,293
3,002
833
BSD-3-Clause
2023-08-11T21:56:52
2017-11-23T01:56:22
Python
UTF-8
Python
false
false
9,618
py
make_examples_somatic.py
# Copyright 2021 Google LLC. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of conditions and the following disclaimer. # #...
ca3fd82d15ad9e77114fd1b7795619ed64152cfc
b80d6ad08fa5dc8c21bd08f99249c8df37af3126
/hilbertpiet/cli/main.py
ecc2ef1dc2e2d40638439620836fd0083223fc52
[]
no_license
quentin-auge/hilbertpiet
717295e344ede803885fac2262816e2c115c4fb2
304c52129013c46ba71886be792039fc0a6a25be
refs/heads/master
2022-07-13T10:16:53.801796
2020-05-10T02:15:56
2020-05-10T02:18:29
257,011,699
0
0
null
null
null
null
UTF-8
Python
false
false
3,918
py
main.py
import argparse import io import logging import string import sys from pathlib import Path from hilbertpiet.color import Color from hilbertpiet.numbers import PushNumber from hilbertpiet.ops import OutChar from hilbertpiet.path import NotEnoughSpace, generate_path, map_path_u_turns, map_program_to_path from hilbertpie...
7597018ac247ebfe3f8502c91939d4ee01f28063
b6834b84a59c287f7b4b2b976c0600641efe0396
/初级算法/动态规划/爬楼梯.py
3575fad821b2b74b5d56b056e05e35884f4b0006
[]
no_license
sparkg/Leetcode
97962d221dcfbc71bb64fe72d2117180737c7701
b5f1218568fd662925a3eaca9a4fbc188996f8a1
refs/heads/master
2020-04-07T22:57:58.156074
2018-11-23T07:12:40
2018-11-23T07:12:40
158,792,107
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
爬楼梯.py
class Solution: def climbStairs(self, n): """ :type n: int :rtype: int """ num = 0 str_list = [] for i in range(n // 2 + 1): s = "" s += "2" * i s += "1" * (n - i * 2) str_list.append(s) for item in str_l...
7b313c0fba1e79ad0d22fc9a10af0550dd6cd3ef
2384d2e9331a49c710bef924fb0b7aa37b8b29f2
/tests/examples/example2/example2_2.py
9dae75535bbe1832ad42d461630a9065cc866ed9
[]
no_license
astql/astql
5c5f7875ba3b5337170c39eeb0679c381abf75b8
a0247a8b5f284cab6ca57196f017c6779eef5a8f
refs/heads/master
2020-12-26T00:46:16.855538
2016-01-19T07:50:40
2016-01-19T07:50:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
example2_2.py
class Class1_2: def m1_2(self): x='x11' y='y11' def m2_2(self): x='x12' y='y12' class Class2_2: def m1_2(self): x='x21' y='y21' def m2_2(self): x='x22' y='y22'
001566f82efaf9df0e9b504c326624fb8d83cbce
0ca218c0f54dac33a2ade4accfdf8f5be3207588
/lib/sqlalchemy/dialects/mysql/provision.py
b7faf771214a93a454703800a0e61b8f0f9a3cf3
[ "MIT" ]
permissive
sqlalchemy/sqlalchemy
9d949c67c9b5396b1f33e7ff0f3230c81babf5be
b382bff6e3464f039db0fd1f2ce1b79038675e48
refs/heads/main
2023-08-31T17:40:59.565421
2023-08-30T15:01:41
2023-08-30T15:01:41
159,271,175
8,083
1,489
MIT
2023-09-12T18:53:55
2018-11-27T03:35:03
Python
UTF-8
Python
false
false
3,226
py
provision.py
# mypy: ignore-errors from ... import exc from ...testing.provision import configure_follower from ...testing.provision import create_db from ...testing.provision import drop_db from ...testing.provision import generate_driver_url from ...testing.provision import temp_table_keyword_args from ...testing.provision impor...
a2d7020a33d6a4989756ca22a2c2548d6e205f46
2b2cca6efbfaa98c4395662bfdd335c403702a7b
/memorama.py
943b314193b4d89b776c2d7716db4a076da9f4fd
[]
no_license
PsyDuck-Online/Redes-2-ESCOM
bb38be4c796c5b81da492733f0ee9d9a7598ff08
e3144c14117dc48e6472566f7677d7e279bd4b0a
refs/heads/master
2020-12-31T10:44:03.498907
2020-05-25T19:19:41
2020-05-25T19:19:41
239,006,470
1
1
null
null
null
null
UTF-8
Python
false
false
6,632
py
memorama.py
import random import os class jugador: puntos = 0 def __init__(self,nombre): self.nombre = nombre class memorama: def __init__(self, dificultad): self.dificultad = dificultad if dificultad == "1": self.tablero = [['arbol','casa','casa','escom'], ['redes','apl...
d00ca53386db2622b77f91a5426f5021ab785b4c
1eda4fef01c07bbb9cf98828cbe1fff71829a04f
/hw1/bfs.py
95667c29534367e6caafee969730113bb9d56eb4
[]
no_license
keerthanamanivannan/Planning-Execution-and-Learning
6f72351ca3b9408c657163d5ba713fc7d8475f1e
788ad8f3ec54a6c5600699780cd65bb1dfb21aa8
refs/heads/master
2021-01-10T23:04:31.118536
2016-11-07T11:01:01
2016-11-07T11:01:01
70,426,088
0
0
null
null
null
null
UTF-8
Python
false
false
862
py
bfs.py
#!/usr/bin/env python from state import State from collections import deque import IPython def bfs(start_dict, start_name): print("Running BFS") start_state = State(start_dict) visited = {} visited[start_state] = True q = deque([start_state]) q.append(start_state) pop = 0 while len(q) > 0: state =...
159b9b1d3d49083c4c986966626d786150a167d3
10cca9d41ac6334b586819b08d32f28775f02688
/benchmarks/tests/test_views.py
f17a05b2d02d8ec68d82450b26f7d2eb1383fc9a
[]
no_license
brain-score/brain-score.web
ecaa719d4e1a32dce3ae93db28cbf8da3d70a1cb
a09cc86dd96115a511af62278654f76dce09d5dd
refs/heads/master
2023-09-01T17:49:34.680319
2023-08-30T14:59:27
2023-08-30T14:59:27
137,946,177
0
3
null
2023-08-30T14:59:29
2018-06-19T21:11:33
CSS
UTF-8
Python
false
false
4,175
py
test_views.py
from django.test import TestCase from benchmarks.views.user import split_identifier_version ALL_FIXTURES = ['fixture-benchmarkreferences.json', 'fixture-benchmarktypes.json', 'fixture-benchmarkmeta.json', 'fixture-benchmarkinstances.json', 'fixture-users.json', 'fixture-modelreferences...
dbd6a5d3f61cd7f97ee9ba4c6e0cb4f00a5974df
6b35e69652af9340feace5ef90d362ec3e30a1f2
/cogs/automoderation.py
ce596c892bf0973411779fcdf13b9994dc6df685
[]
no_license
SteveHH72/Hamburg-Bot
fd00adac3f16adec07853f87b84c1ebb3ebc5eaa
6f7b24f998e8f25ce152122506b6607ed53fe986
refs/heads/main
2023-08-27T08:32:29.967714
2021-10-28T18:46:40
2021-10-28T18:46:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
automoderation.py
import asyncio import sys import json from discord.ext import commands from discord.commands import slash_command import discord from discord.ext import commands from discord.ext.commands import * from discord.abc import * from dotenv import load_dotenv import os guild_id = 893947040869019708 def get_...
43d413240ad9868324429da6aa6cc630a1d4f312
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02556/s341689572.py
fc26c54bdccc4f43729ed5baa60f2edd3da16f87
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
s341689572.py
N = int(input()) xyp = [] xym = [] for _ in range(N): x, y = map(int, input().split()) xyp.append(x+y) xym.append(x-y) xyp.sort() xym.sort() print(max(xyp[-1] - xyp[0], xym[-1] - xym[0]))
7edcc7adabfd8a315611d3ba088b902b5d4ff3e2
98b3bc309e2f9f6d1d537fbe1283a5a3552b60df
/cbioportal/cbioportal/idp/authentication.py
01c7e050cd42b55320693eb11c53473c721ecc76
[]
no_license
jegesm/cbioportal-admin
41eb77dcb03977d852400816328f0d7b099691d5
567958d1e8b31ef0fe87bf673e210177d5cf1c92
refs/heads/master
2021-02-10T00:29:19.995542
2020-03-29T19:41:53
2020-03-29T19:41:53
244,338,035
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
authentication.py
import os import logging import requests from cbioportal.hub.models import User logger = logging.getLogger(__name__) def create_user(username, first_name, last_name, email): user = User(username = username, first_name = first_name, last_name = last_name, email = email) logger.info("Creating new user: %(usern...
58bdbf3a73e0e776446666124cf2ec8bafdb3426
37e922f69436534eb7478e88d44739346946db7f
/src/new_words_detect/export_new_words.py
17af844e142d97047e4464308129794c00ebb372
[ "MIT" ]
permissive
wuyongdec/aspect-opinion
83f22b285102b271b76876ba793297e73af7b132
b49b6f3cd58858c52b72bfa9817f1e22c42b1f12
refs/heads/master
2020-03-19T03:58:28.530927
2018-05-13T23:43:10
2018-05-13T23:43:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
export_new_words.py
#/usr/bin/env python #-*-conding:utf-8-*- words_score_path = "aspt_t.json" import json f = open(words_score_path) for _ , line in enumerate(f): data = json.loads(line) words = data.get('words') word = "".join(words.split("_")) print("%s 10000"%(word,))
97e86e8094bcfabf6165425c606a69de639de36b
9967f075b8386c5a0d1f5db72b822e45842cd174
/user/models.py
aa263ec12326e32062ff537e48b07d2bcf957584
[]
no_license
hardtosaygoodbye/homestay
6f62eb8a3d2716c4940414663337a0dad5f250bb
8be4c28a56c38406e4e025eadbdd1b4bdb089a9a
refs/heads/master
2020-04-11T07:18:15.406454
2018-12-22T05:56:49
2018-12-22T05:56:49
161,606,693
1
0
null
null
null
null
UTF-8
Python
false
false
462
py
models.py
from django.db.models import * from uuid import uuid4 class User(Model): phone = CharField('手机号', max_length = 11) username = CharField('用户名', max_length = 15, default = '悦租房用户') password = CharField('密码', max_length = 15, default = '1') def __str__(self): return self.phone class Authority(Mod...
c7d0c2673944fd895f70d81cb56b0ac93cda2435
aa06aa622a43fc52af376776229f38c8c931163d
/lesson60_2.py
df1ad6bf15b9a1327c5470c5be635d2e17ffce38
[]
no_license
DazzleTan/Turle
e55cf8f7126ccdb0a91147c497213d3096a15500
a151c64112062a9a6c7559d90ea9f0fb7a634cd2
refs/heads/master
2023-02-28T17:58:49.675002
2021-02-04T10:13:05
2021-02-04T10:13:05
314,497,839
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
lesson60_2.py
''' 使用circle()方法绘制小圆,外面均匀分布3个大圆 ''' import turtle as t t.hideturtle() for i in range(0,3): t.circle(10, 120) t.lt(180) t.circle(40) t.lt(180) t.done()
16a0b0c3836aa833ac4eed53687e3f54add6f106
014074c084c60b67843455f361d7b4786d86304d
/Checkpoint1/main.py
859f051b58541d2f5a37e97764e95143b33f14b2
[]
no_license
apurvmishra99/compSim
cc3ac9e9a4927b237540d85714cc1a099c6141d1
70b73afd80054d4cff4b27b083113d576b59deed
refs/heads/master
2020-04-19T10:54:32.957016
2019-04-03T22:56:41
2019-04-03T22:56:41
168,153,344
0
1
null
2019-07-12T07:02:53
2019-01-29T12:46:05
Jupyter Notebook
UTF-8
Python
false
false
941
py
main.py
from polynomials import Polynomials def main(): p_1 = Polynomials([2, 0, 4, -1, 0, 6]) # creates the polynomial object with the given coefficient values p_2 = Polynomials([-1, -3, 0, 4.5]) p_order1 = p_1.order() # checks order p_order2 = p_2.order() p_sum = p_1.add(p_2) # adds the 2 polynomials ...
26808de6e218e08bedc3d2ebc1b7d060c913c0e2
050e459b4682cd5f4ff0d835ed7a5a67ae716c3d
/socket_listener_wifi.py
9665adaa7fc63df32703477d9a270257c6c76791
[]
no_license
dineshkumargovindaraj/bluetoothsocket
bedde4b233efb7a92191addcdb5266cce5feb5b9
a1c59cae5d29c328d6f6939f0d131556ec1bafd2
refs/heads/main
2022-12-30T19:50:14.058053
2020-10-21T14:24:19
2020-10-21T14:24:19
302,434,643
0
0
null
null
null
null
UTF-8
Python
false
false
3,384
py
socket_listener_wifi.py
from generategatewayid import GenerateGatewayId from base64 import b64encode from hashlib import sha1 import socket import time import re SERVER_ADD = '192.168.4.1' PORT = 5002 message_wificred = 'wifi-name' gateway_id,gateway_key=GenerateGatewayId().get_gateway_info() gateway_cred=gateway_id +','+ gateway_key messag...
647c68244dc54abf252e6ea01657897fb140c886
eda430749310cfda794885acac883b128eff9177
/ceshi/12-17-01.py
99f65625d8cc3e38241bee29a1731f643abf4941
[]
no_license
ningjingzhiyuan1993/test
123d3bb74db72a016d67eea589534ca5088c10fa
b25bdf523aec8557e691362af88c4d2ff69986d8
refs/heads/master
2021-06-18T21:14:37.881031
2019-06-21T06:03:17
2019-06-21T06:03:17
130,627,560
0
0
null
null
null
null
UTF-8
Python
false
false
551
py
12-17-01.py
class Animal(object): def run(self): print('Animal is running') class Dog(Animal): def run(self): print('Dog is running') class Cat(Animal): pass dog = Dog() dog.run() print(type(dog)) l = [ x * x for x in range(1,11)] print(l) l1 = [m * n for m in range(1,5) for n in range(1,5)] print(l1) d = {'y': 'B...
cf4521016bcf8a671dc9f7db728be59cfdd6ad86
281480b8948b5557f2bad4e42bc3d8210fe01b9e
/_05_13_multi_align.py
d630072736eee828de2963a115095b69cf20f410
[]
no_license
hercules261188/bioinf-algo-2015
117e63d62bcdc4501c69c176fe0f26f4f5276041
dd18bdafd75535955babab22ecb2799a5eb37af9
refs/heads/master
2021-12-07T22:05:06.975534
2016-01-16T15:59:50
2016-01-16T15:59:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,246
py
_05_13_multi_align.py
import sys sys.setrecursionlimit(2000) def vote(a, b, c): if a == b and b == c: return 1 else: return 0 def get_backtrack(v, w, u): n = len(v) m = len(w) s = [[[0 for k in range(len(u)+1)] for j in range(len(w)+1)] for i in range(len(v)+1)] backtrack = [[[0 for k in range(len...
fa0bf04ec161d213ac834088db384a7d1ec02379
af3adca1b83df6da80a9996ba136a09dd8ec666d
/src/WaveBlocksND/ObservablesLCWP.py
da88ea7b257e72a98efb1104b46b72256a6282e7
[]
no_license
GaZ3ll3/WaveBlocksND
e4d176b3005b28608568de64705055ed5f7fa213
92e05597b128328cdadbb118a3551e90871bb42b
refs/heads/master
2021-01-12T20:06:27.527959
2013-12-23T15:23:59
2013-12-23T15:23:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,038
py
ObservablesLCWP.py
"""The WaveBlocks Project Compute some observables like norm, kinetic and potential energy of linear combinations of general wavepackets. @author: R. Bourquin @copyright: Copyright (C) 2013 R. Bourquin @license: Modified BSD License """ from numpy import zeros, complexfloating, conjugate, transpose, dot, sqrt from ...
9a17cd38c13c636d2af76c4930ca11ef9d3a1be6
dc094abdeb1bacb2f664fddb66322b527f595fe9
/listAppend.py
53a230ac3048451ba5299e9cd707488e46c3af82
[]
no_license
sv1996/PythonPractice
d67b5e11b1634bd9303070a8af3858785d327d79
c07191150ce6acc94e522a7e64de641597d0ce48
refs/heads/main
2023-03-11T13:04:14.644545
2021-03-06T18:14:38
2021-03-06T18:14:38
341,922,786
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
listAppend.py
lst=['one' , 'two' , 'Three' ,' Four'] lst2 =['five' , 'six'] lst.append(lst2) print(lst) lst=['one' , 'two' , 'Three' ,' Four'] lst2 =['five' , 'six'] lst.extend(lst2) print(lst)
88135e133a59baf56bb6d376b904f33206315582
a1c8de7e010634772eb4325b568df44be6e4eae9
/sample/libspline.py
a9d5d46efdc8b7706bffed902f909c94875cd637
[ "MIT" ]
permissive
akihikoy/ai_ctrl_1
b0e1a722e6d13149815b89826c91f064b3d29d81
dbdd28805422734eda0119103dce3251ee39bdff
refs/heads/master
2021-06-28T07:51:09.687306
2020-09-18T16:01:36
2020-09-18T16:01:36
146,562,934
1
0
null
null
null
null
UTF-8
Python
false
false
5,063
py
libspline.py
#!/usr/bin/python #Cubic Hermite Spline #Akihiko Yamaguchi, info@akihikoy.net #2014 from __future__ import print_function # Matlab-like mod function that returns always positive import math def Mod(x, y): if y==0: return x return x-y*math.floor(x/y) #Generate a cubic Hermite spline from a key points. #Key points...
e5f79b7eefe6d991d745be4cea9ae731ef8149ee
d1af5afd535e3487026a7ae7aba89b9840339bd2
/audiolib/models.py
f023fcfb6dbac9cad5b8c11445c51c9d63784785
[]
no_license
elmonolit/audiolib-v2
57ab8730183cbbab61930a8971237007b561f478
671f3c3927c84811fe7cfbe125450daf0e29a5ef
refs/heads/main
2023-02-20T17:18:31.453591
2021-01-23T00:20:59
2021-01-23T00:20:59
332,093,115
0
0
null
null
null
null
UTF-8
Python
false
false
4,208
py
models.py
from django.db import models from transliterate import translit from django.template.defaultfilters import slugify from django.urls import reverse from django.contrib.auth.models import User # class ArtistQuerySet(models.QuerySet): # def find_by_nick(self,nick): # return self.filter(nickname__icontains=nic...
5e712dc21c13df33d088a2645bc4a84b34395b1e
b781d6df5827a0a731e7e5ef4fc32c74a1b7cd15
/forcasting.py
3d2fdbc13446f261866c12b691dbdc886a4552af
[]
no_license
Harlaus1/covid-19-mutation-forcating
14b1a10e3582de731ef6aab3807bf28ccdbbfbe2
0a44e61e50ac65ba1dd5b7da5b1d1aadbf0fb1bb
refs/heads/main
2023-04-03T08:20:09.027163
2021-04-13T02:32:43
2021-04-13T02:32:43
357,397,243
1
0
null
null
null
null
UTF-8
Python
false
false
8,329
py
forcasting.py
import pandas as pd import matplotlib.pyplot as plt import tensorflow as tf from tensorflow import keras import numpy as np from numpy import savetxt from zipfile import ZipFile import os # uri = "https://storage.googleapis.com/tensorflow/tf-keras-datasets/jena_climate_2009_2016.csv.zip" # zip_path = keras...
7f0f147fd4ae7cc89422dfd19dc0b5151e72516f
b48e1edca945eb2a8ba4b0b7473a6a4f8739c457
/VideoAI/Video Identification of Suspicious Behavior.py
67e4e62ac9e6f928e7da862a058c374a44908dad
[ "MIT" ]
permissive
raina777/bp-demo
a4d16dc16695bf524bf940f2bfba2d8b3d8e2b86
064848299731d8388c3709b5b809788860b63fc5
refs/heads/master
2020-03-20T19:05:07.540129
2019-03-20T22:51:10
2019-03-20T22:51:10
137,620,371
0
0
MIT
2019-03-18T04:44:59
2018-06-17T01:09:48
Jupyter Notebook
UTF-8
Python
false
false
5,303
py
Video Identification of Suspicious Behavior.py
# Databricks notebook source # DBTITLE 0,Video Identification of Suspicious Behavior: Preparation # MAGIC %md # MAGIC # MAGIC # Video Identification of Suspicious Behavior # MAGIC # MAGIC This notebook will process your video data by: # MAGIC * Utilize the data processed in the `Video Identification of Suspicious Be...
8aa75cc41ad743559cd07ad089d1f0043529460c
b52e38667265d6824c361ffd58816435ed36b89b
/graph/urls.py
f3d38c25cfdd9450839a0d6cf3926517c1c8e5fe
[]
no_license
benhsu75/lastthought
4536c47d370f78737ee7239d4ca7bfc6453ed4cd
66a5c397b41da4dd51e82009c55d5eefe38936d2
refs/heads/master
2021-06-13T20:37:51.444829
2017-02-14T19:27:44
2017-02-14T19:27:44
64,567,673
0
0
null
null
null
null
UTF-8
Python
false
false
1,816
py
urls.py
from django.conf.urls import url, patterns from django.contrib import admin from main.views import general, log_views from main.entrypoints.messenger import messenger from main.entrypoints.twilio import twilio from django.conf import settings from django.views.generic.base import RedirectView favicon_view = RedirectVi...
710b4d79ca8a250225f54e5edfcf746a208cae64
32f709316f6af96caf1a43ba2505c19663af6b3a
/tests/test_say.py
053f59263c2958c04a6e0666ac0c44e6cb887b50
[ "MIT" ]
permissive
Atharv-Attri/AlterLang-Source
930915a9e904d15c7bdd1867aa1b16a8bef4e68a
df63cced4739ca63cc22e0dadf98d2b25b41884d
refs/heads/main
2023-03-30T09:31:12.223206
2021-03-20T20:58:54
2021-03-20T20:58:54
283,351,515
1
1
null
2021-02-15T23:42:16
2020-07-28T23:39:42
Python
UTF-8
Python
false
false
1,008
py
test_say.py
import sys import os import lid.util sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from interpreter import interpreter def test_hello(model): assert interpreter.main("tests/altr_files/hello.altr") == ["Hello World"] def test_say_var(model): assert interpreter.main("tests/altr_files/say_var...
fb9740c69d1b1865c6d8846d199729f361c6efee
3a763d156290e9f4b344dde49edff69023574596
/fabfile.py
f5e9e11265cb047bfc6df298e0a7968f4048fc27
[]
no_license
yashspatel23/MEA
d2c51dddde259b21435d7e021fd271d7c36664f3
2244db045e725e8ec71d4747add705926ffb3d6e
refs/heads/master
2020-03-15T04:30:56.034082
2018-05-03T08:49:56
2018-05-03T08:49:56
131,967,372
0
0
null
null
null
null
UTF-8
Python
true
false
1,143
py
fabfile.py
from fabpolish import polish, sniff, local, info @sniff(severity='critical', timing='fast') def find_merge_conflict_leftovers(): """ Avoid merge conflicts """ info('Finding merge conflict leftovers...') return local("! git grep -P '^(<|=|>){7}(?![<=>])'") @sniff(severity='major', timing='fast') ...
b11e1ec2e2656dc668a962dec8b69f18c2b17123
d71185247f11d7b5076b3f76d699810bc0db607c
/lab3/soap_couchDB_iface/client.py
8fbe174b0b872e827117955b6801cfec65456444
[]
no_license
MelnykAndriy/ComputerArchitecture
3dcb86707de5ce47e334734ff494733878ed6df0
7906efd71401a3fa9f94b794ebef74d7a16b83e9
refs/heads/master
2021-01-22T23:26:03.057459
2015-04-21T00:40:12
2015-04-21T00:40:12
30,797,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,449
py
client.py
__author__ = 'mandriy' from suds.client import Client def get_localhost_client(port=4242): client = Client('http://localhost:%d?wsdl' % port, cache=None) return client def list_from_string_array(string_array, func=str): return [func(el) for el in string_array.string] _programmer_translate_dict = { ...
4851fa9c997aa13375d1074e180daac97505d3b7
235f96d4b2e0fb672f20be75b114375744efc9c3
/Função para votação.py
603e04f73c4b78ac763661a5a469df7228d98d35
[]
no_license
anderportela/Learning--Python3--Curso_em_Video
f13e1c47a628aa6dee2ba883a82c36adf751d6f7
3b0abe6367d04b5043207ddacf29a4af623ebadf
refs/heads/master
2020-06-29T03:34:48.422798
2019-09-15T00:37:50
2019-09-15T00:37:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
Função para votação.py
#Definindo funções: def voto(ano): from datetime import date atual = date.today().year idade = atual - ano if idade < 16: return f'Com {idade} anos, o voto é proibido!' elif 16 <= idade < 18 or idade > 65: return f'Com {idade} anos, o voto é opcional!' else: return f'Com ...
86df080da93fb6c2a85150238bc0a33135597530
3b101fcab77246dd72b487fe1dc46d1f2a42857c
/site/apps/web/signals.py
7856892c5ba3dfb3e44d05a2371683139111b95e
[]
no_license
umair-cd/mission
34243db1b4d68b076eabddbf881b0be92c50ebad
17bb5b56b8ed25aec8f71cfac512033feb6a6eeb
refs/heads/master
2022-12-14T23:55:47.635989
2019-11-28T14:39:12
2019-11-28T14:39:12
224,673,026
0
0
null
2022-12-10T10:29:48
2019-11-28T14:40:40
Python
UTF-8
Python
false
false
347
py
signals.py
from django.core.cache import cache from django.db.models.signals import post_save from django.dispatch import receiver @receiver(post_save) def clear_cache_on_save(sender, instance, **kwargs): """ When updating things through CMS, we want to see results immediately """ if sender._meta.app_label == 'w...
e65ad8472bf9602d8c3f387435dd0a244171c7dc
de0775338f6eb4df7f8ef8c61df9cf3b563c0a28
/problems/digitcnt/digitcnt.py
9978f3240ef0e1c5fb1ba995b38cd276c119c79b
[]
no_license
sefakilic/spoj
c5b37e9cd2413e57f117b0ba83ca4b4f509868da
17c54cad2e87d1f79841038b6537ad9eee263727
refs/heads/master
2021-01-15T14:03:18.393394
2015-04-15T15:52:57
2015-04-15T15:52:57
32,475,833
1
0
null
null
null
null
UTF-8
Python
false
false
76
py
digitcnt.py
n = int(raw_input()) for i in xrange(n): print len(raw_input().strip())
6f6d7493b486b7093beab226e482ef206df37db9
1b9af872e279033c8b0f2cdb1e04d5a55a4614f8
/pages/main_page.py
e7d66d253ef8fa0effbe0b0e82f745a392c2e833
[]
no_license
Rodeni4/Python_Selenium
e82a0c7d623133c8eaf94f39a4181d8919940833
799622734ce72f980808c21361f5c98d76be0dd0
refs/heads/master
2023-04-26T03:21:18.649406
2020-07-06T17:18:02
2020-07-06T17:18:02
276,903,283
1
0
null
2021-06-02T02:20:55
2020-07-03T13:12:13
Python
UTF-8
Python
false
false
629
py
main_page.py
from .base_page import BasePage #импортируйте новый класс с локаторами from .locators import MainPageLocators class MainPage(BasePage): def go_to_login_page(self): login_link = self.browser.find_element(*MainPageLocators.LOGIN_LINK) login_link.click() #модифицируем метод проверки ссылки на ло...
376bc887c23d4c8f8fd0989de2861543ff755c8f
e961b0ea50cf91cdd70b96ea0eded73de760587c
/main.py
cf3752d8c6f7009d731d15cb6feabf1cefed85d3
[]
no_license
afelsen/fantasy-football-nn
f48a37148163f56bf260dee389293c43a8afc608
c79fc267767a7d39ca5b08d86deb4f39ba1f5da4
refs/heads/master
2020-06-09T10:09:53.076427
2019-07-05T22:41:37
2019-07-05T22:41:37
193,421,011
10
1
null
null
null
null
UTF-8
Python
false
false
435
py
main.py
from data import Data import pandas as pd def main(): positions = ["QB", "RB", "WR", "TE"] position = positions[3] df=pd.read_csv('Data/' + position + 'data.csv', sep=',',header=None) a = df.values modelname = "Models/" + position + "FantasyNNModel.h5" data = Data(a,modelname) data.pars...
4115054f3a0f9d6dad36fd49f766cddd183a03f5
c34a54b3331dc7700bebabe5bda09ca6b66bcccd
/ingredients/migrations/0004_auto_20210805_1524.py
b4ca8a549898e2ba23cc69f36505602882edf6a0
[ "MIT" ]
permissive
csl619/meal_app
9e88d053bb5ec0d66694c4143bb53319029555a6
21e00e7f9e981df3fe37469c89f8406e612ec252
refs/heads/main
2023-07-03T20:46:07.024912
2021-08-13T15:22:11
2021-08-13T15:22:11
385,636,431
0
0
null
null
null
null
UTF-8
Python
false
false
641
py
0004_auto_20210805_1524.py
# Generated by Django 3.0.8 on 2021-08-05 14:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ingredients', '0003_auto_20210802_1443'), ] operations = [ migrations.AlterField( model_name='ingredient', name='def...
51fff2f55898cb37c80494dbbcea44687bc99501
976070372d126815166e6165d0444ca3ce560ee2
/ax/wrapper/selenium.py
4c2607e0e769a33fd661f9e165fe1b6bdb426954
[ "MIT" ]
permissive
axxiao/toby
e3c93d9a4307c047a91d9bb74dfb6d38a2f9c85f
de64f4b2f5e39531d08143e99cf2785992010a13
refs/heads/master
2021-01-22T05:58:20.187589
2020-07-19T04:56:58
2020-07-19T04:56:58
92,509,181
0
0
MIT
2020-07-19T04:57:00
2017-05-26T12:37:11
Python
UTF-8
Python
false
false
485
py
selenium.py
from selenium import webdriver driver = webdriver.Firefox() def build_url(address,username=None,password=None): if username and password: cred = '://'+username+':'+password+'@' url=address.replace('://', cred) if url[-1] != '/': url += '/' else: url=address ret...
ac1e3c4c474d1f3c2bf42f28b1403d940f3b35e0
ce32e0e1b9568c710a3168abc3c638d6f9f6c31b
/vnpy/app/cta_stock/template.py
46bf93c9c41d322ee2cceab5422aaa9a23481d6c
[ "MIT" ]
permissive
msincenselee/vnpy
55ae76ca32cae47369a66bd2d6589c13d7a0bdd4
7f4fd3cd202712b083ed7dc2f346ba4bb1bda6d7
refs/heads/vnpy2
2022-05-19T10:06:55.504408
2022-03-19T15:26:01
2022-03-19T15:26:01
38,525,806
359
158
MIT
2020-09-09T00:09:12
2015-07-04T07:27:46
C++
UTF-8
Python
false
false
62,285
py
template.py
# 股票模板 # 华富资产 @ 李来佳 import os import sys import uuid import bz2 import pickle import traceback import zlib import json from abc import ABC from copy import copy,deepcopy from typing import Any, Callable, List, Dict from logging import INFO, ERROR from datetime import datetime,timedelta from vnpy.trader.constant import...
5172d1f1ae9f13a0aaeba55c7ce6c200cbaceb35
ce5beb5e0e7abcfd8a5e90b8b4b5d5fb7cc1fd8a
/PYTHON/OS/Regular Expression/Advanced/numeric_repetation_qualifiers.py
93ce94b819f93678ea203c210116e91ea6846f0d
[]
no_license
rashiraffi/Tutorials
f8b92dfe8388c4f617e277e3635c1c322708768c
6fc6fb7a72e6774b7b785b2e37b5bcd853e31869
refs/heads/master
2021-06-09T05:45:01.558160
2021-05-29T16:16:04
2021-05-29T16:16:04
181,651,412
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
numeric_repetation_qualifiers.py
import re print(re.search(r"[a-zA-Z]{5}", "a ghost")) result = re.search(r"[a-zA-Z]{5}", "a scary ghost") print(result) result = re.findall(r"[a-zA-Z]{5}", "a scary ghost appeared") print(result) result = re.findall(r"\b[a-zA-Z]{5}\b", "a scary ghost appeared") print(result) result = re.findall(r"\w{5,10}", "I real...
c3a2fb22c80f1a13b5a9f2cde600c4d47237d749
1a44425a80cc2931909827dd08f07a4fb4c1ab09
/Finding_sentences/Tekst.py
bfb71abf9734f0d4447ca35ab965c7446887ffe8
[]
no_license
GracjanBuczek/Python
dc2cc303bb518e39fa204a8962a80d4c75bb4820
655801ae58ed7ef21f7da2f69f649c556b20aaee
refs/heads/main
2023-01-10T19:15:22.498080
2020-11-16T13:27:30
2020-11-16T13:27:30
313,303,637
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
Tekst.py
#Napisać program, który #1. Będzie dzielił tekst na zdania. #2. Odszuka i wypisze najdłuższe zdanie #3. Policzy w nim słowa. text=input("Enter your text: ") r_text=text.replace("?",".").replace("!",".") sentence = r_text.split(".") longest_sentence = max(sentence, key=len) print(longest_sentence) words=longest_sent...
802b10bf14d545bdc1b6f53c2a838939f55fb824
b05761d771bb5a85d39d370c649567c1ff3eb089
/venv/lib/python3.10/site-packages/jedi/third_party/typeshed/stdlib/2and3/select.pyi
a5ad761399d15d1354335b919195200617af695d
[]
no_license
JawshyJ/Coding_Practice
88c49cab955eab04609ec1003b6b8c20f103fc06
eb6b229d41aa49b1545af2120e6bee8e982adb41
refs/heads/master
2023-02-19T10:18:04.818542
2023-02-06T21:22:58
2023-02-06T21:22:58
247,788,631
4
0
null
null
null
null
UTF-8
Python
false
false
96
pyi
select.pyi
/home/runner/.cache/pip/pool/ce/94/fa/1880e0965d8b9e0b7325b5b6655d6a2f22403292f02702cc2b29ec9312
28c9a521025814dc0d1b86d68ec033a8fac9cda8
fb699152843cc5f7f375a66f24f1c1be420ea3cb
/新闻/anhui.py
65990fbd59e4ab6d382604450b65a43529636ef6
[]
no_license
lemonbiz/xinwen
50bdfaba7d612fde37174f5af75528a221f3282c
bdd337f425cfab80b2eb7e4f3f58bce8379ee3e2
refs/heads/master
2023-03-16T09:57:42.246925
2020-08-31T03:23:54
2020-08-31T03:23:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
101,918
py
anhui.py
import time, uuid, requests, json from dao import Mysql from lxml import etree from selenium import webdriver from datetime import datetime from openpyxl import load_workbook import re, os, shutil from bs4 import BeautifulSoup def ipmax(): url = 'http://api.ip.data5u.com/dynamic/get.html?order=bd81442e74250355ff35...
3c155d4db7e37f8f8f0a0eb9c5350d14363ef6f5
163808746e51d378f69a966645b8bb8a855b4625
/MyMain0511/MyMain0511/MyMain0511.py
3caf3ed9a166c9c9fc897c26cd362c045dc6ab3c
[]
no_license
0024thiroshi/comm5.0_fall_semester
02b26b506b759dd7b18b963295a8908cb4a78245
db350599b7085e56fbf2c316e74cd7a5b48f02b8
refs/heads/main
2023-02-12T13:07:34.080809
2021-01-13T06:03:04
2021-01-13T06:03:04
329,202,576
0
0
null
null
null
null
UTF-8
Python
false
false
3,450
py
MyMain0511.py
import MyModules DF=MyModules.getDF("nirs.xlsx","Sheet1") DF1=MyModules.extractDF(DF,1,100) DF2=MyModules.extractDF(DF,101,300) DF3=MyModules.extractDF(DF,401,300) DF4=MyModules.extractDF(DF,701,300) DF5=MyModules.extractDF(DF,1001,300) DF_100=MyModules.extractDF(DF,1,100) DF_300=MyModules.extractDF(DF,1,300) T1_100...
dc72c7de9e012b03589648d542fdeb7b5333da1a
8c9b10778b9475b466f7f59e2e4a4aa4f51b5e0d
/adminapp/migrations/0014_auto_20210714_1212.py
19a2d31c24cf1c9b048898eb48a7862479476029
[ "MIT" ]
permissive
reskillamericans/MuseumExperience-Group2-Python-BE
ad51282e42e23615cc8ee4ecbe90bd4226a1b3b0
097d5ce026764b8b1ed79889dead1f6fd1ff7b3e
refs/heads/main
2023-06-30T14:13:05.548043
2021-08-06T12:20:31
2021-08-06T12:20:31
375,353,811
0
2
MIT
2021-08-06T12:20:32
2021-06-09T12:51:20
Python
UTF-8
Python
false
false
818
py
0014_auto_20210714_1212.py
# Generated by Django 3.2.4 on 2021-07-14 12:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('adminapp', '0013_auto_20210714_1202'), ] operations = [ migrations.AlterModelManagers( name='user', managers=[ ...
882f44cdef6597b699e7907412a59610eb8c2261
b57b0a14df5c6841f04cccb7b02ad04afbca18f8
/varnish/datadog_checks/varnish/config_models/defaults.py
7afec736b88d820da2635a0ed4e81826d6e36b57
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "AFL-3.0", "BSD-3-Clause-Modification", "LGPL-3.0-only", "Unlicense", "LGPL-2.1-only", "Apache-2.0", "BSD-2-Clause" ]
permissive
zeroc0d3/integrations-core
d9c99803c049668b7f9f9c796d338e343d3d46ee
634d567f3c38d32aabb3f4c16b50bcfa8a4ae0fb
refs/heads/master
2021-09-28T18:37:00.650406
2021-09-13T11:59:45
2021-09-13T11:59:45
199,758,958
0
0
BSD-3-Clause
2019-07-31T02:01:25
2019-07-31T02:01:24
null
UTF-8
Python
false
false
1,118
py
defaults.py
# (C) Datadog, Inc. 2021-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from datadog_checks.base.utils.models.fields import get_default_field_value def shared_service(field, value): return get_default_field_value(field, value) def instance_daemon_host(field, value): ...
84903a2797a11654ffea8e84cc730645bad07571
ca2df36536f58a51d168ce3a29857a0edf8b79a2
/learning_07_visual.py
417ac57d715554745ab39aa54767922b689e49a8
[]
no_license
yfraquelle/tensorflow_learning
560ea8edb05c7c8446a0acc70185321e2a52e072
7df191e914dab2378077b3fc3ced4d6cc597979a
refs/heads/master
2021-01-02T09:29:03.681006
2017-08-30T10:20:02
2017-08-30T10:20:02
99,219,848
0
0
null
null
null
null
UTF-8
Python
false
false
2,828
py
learning_07_visual.py
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt # 添加神经层的函数 def add_layer(inputs,in_size,out_size,activation_function=None):# None means linear Weights=tf.Variable(tf.random_normal([in_size,out_size]))# in_size行,out_size列的矩阵 biases=tf.Variable(tf.zeros([1,out_size])+0.1)# 向量,初始值最好不为0 ...
47dea53ce4544b3578e944f3c43fb21aad7af396
b7163b44b679e082fe97cf7fcd0c73b2fcdb38eb
/modules/dbnd/src/dbnd/_vendor/dulwich/refs.py
7a8800429cbde39d6faba5da1df88165e94bda9c
[ "Apache-2.0" ]
permissive
databand-ai/dbnd
70c95d95e12bfb8ab471a6dce27691ed658cb92d
d59c99dcdcd280d7eec36a693dd80f8c8c831ea2
refs/heads/develop
2023-06-24T18:07:56.524526
2023-05-28T07:57:36
2023-05-28T07:57:36
231,361,064
257
33
Apache-2.0
2023-08-06T08:30:28
2020-01-02T10:42:47
Python
UTF-8
Python
false
false
32,914
py
refs.py
# refs.py -- For dealing with git refs # Copyright (C) 2008-2013 Jelmer Vernooij <jelmer@jelmer.uk> # # Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU # General Public License as public by the Free Software Foundation; version 2.0 # or (at your option) any later version. You can redistribute...
bfcc2869a57d7aa9b05b414e5ff9131de9e26d1d
ada8e9a35fba00df21a72b61546e58efd3c81182
/quiz/migrations/0012_auto_20200508_1653.py
1d4b404f92099dc770a5bb6c5a45e742f648ef29
[]
no_license
pablofergus/MusicQuiz
20d7f7dcba34ceaed7cf719269d85218495a3859
a735315740412bc6be87916591909f502f3ff96a
refs/heads/master
2022-08-22T22:55:19.559601
2020-05-27T22:42:07
2020-05-27T22:42:07
263,621,500
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
0012_auto_20200508_1653.py
# Generated by Django 2.2.12 on 2020-05-08 14:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('quiz', '0011_auto_20200508_1626'), ] operations = [ migrations.AlterField( model_name='artist', name='albums', ...
cc500ff32abbdffa78102b817a2f9c34c9a023d0
3704f8d3e0386eabebcee77a8d581b8186f09ad7
/inputs/dataset_readers/ace_reader_for_bert.py
5d13ee8f8b2da0005a92b769f386944cd5ae7ed4
[ "MIT" ]
permissive
xjthm2019/ENPAR
094656d6d92b03e6f32166887cb23c5f1c34e489
decd2945d21a7be5a0f73c37cfc5e252301aab15
refs/heads/master
2023-05-02T19:12:05.799919
2021-05-30T01:07:20
2021-05-30T01:07:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,645
py
ace_reader_for_bert.py
import json from collections import defaultdict import logging logger = logging.getLogger(__name__) class TextReaderForBert(): """Define text data reader and preprocess data for bert """ def __init__(self, file_path, is_test=False, low_case=True, ...
dd3ac6803189eb28c05257c109d02d8e47f46261
1c766616cb7a7e4bc249839132696b0f2e8d34da
/crawlers/indeed_crawler.py
5b11df0650052e7cf655679143a18537e7064fb3
[]
no_license
minimal-crap/alpha
2080eadafe8f9c8d6e8d01aafad5aeb2176c79b5
66168ed918565f194bbc9b92355197b784af19fd
refs/heads/master
2021-05-12T19:56:45.780151
2018-01-15T17:04:00
2018-01-15T17:04:00
117,113,102
0
0
null
null
null
null
UTF-8
Python
false
false
6,393
py
indeed_crawler.py
import random from datetime import datetime, timedelta import json import requests as rq from bs4 import BeautifulSoup from lib.settings import PROXIES, USER_AGENT_LIST from lib.db_handler import HandleDB class IndeedCrawler: def __init__(self): self.hdb_instance = HandleDB() self.http_session =...
afa47e866ff34bc4d4c2a48846e18d15474857c8
78c3808342711fe04e662cfea3d394e34841f2fb
/docs/rg/rgkod07.py
3d421fdb4d1c7383f8fc9548e0491b306e64bbb1
[]
no_license
astefaniuk/linetc
cd0f8aa1bb2858e971caddaf6e6396363ca50a47
b23b3b4747dded19f7030862bf486a9e0f65b4e0
refs/heads/master
2021-01-22T13:08:15.266332
2015-06-12T21:37:59
2015-06-12T21:37:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
rgkod07.py
# jeżeli w odległości 2 kroków jest przeciwnik, atakuj # wersja oparta na zbiorach sasiednie_wrogowie2 = {loc for loc in sasiednie if (set(rg.locs_around(loc)) & wrogowie)} - druzyna if sasiednie_wrogowie2: ruch = ['attack', sasiednie_wrogowie2.pop()]
ba5a97f08a89991d15c8a9b6470c792fa3bd7f42
f276c916b5709e7926565ed27f52b3190a683b7b
/recomendacion/Triplestore/servicioConsulta.py
c8eda4e0807798be4e313467f982fdf4ed0b9da5
[]
no_license
Tircnais/formate
a73cd3df7de9aedf6ca13d6883484aad2b488b4c
ccae5fcbe75fa287b0e3ec229d6677ff3edfc402
refs/heads/main
2021-08-01T03:02:04.190298
2021-07-26T22:24:16
2021-07-26T22:24:16
251,054,709
0
0
null
2020-06-05T22:08:50
2020-03-29T14:41:18
CSS
UTF-8
Python
false
false
12,569
py
servicioConsulta.py
from rdflib.serializer import Serializer from SPARQLWrapper import SPARQLWrapper, JSON class entitiesDigcomp: # endpointREA ="http://localhost:7200/repositories/02" def anotacion(self, nombArea: str, nombComp: str): ''' Se consulta el detalle de la Competencia Digital. Args: ...
32c7fbb0509f57cfabbdd9ee4595f631a1d4823e
e5d5fa28999bcc6c642bb42dda93afd38e272b81
/LeetCode/110. Balanced Binary Tree/solve1.py
9a245d7dbec0867ccfc589de46d851ed82f97b40
[]
no_license
chiahsun/problem_solving
cd3105969983d16d3d5d416d4a0d5797d4b58e91
559fafa92dd5516058bdcea82a438eadf5aa1ede
refs/heads/master
2023-02-05T06:11:27.536617
2023-01-26T10:51:23
2023-01-26T10:51:23
30,732,382
3
0
null
null
null
null
UTF-8
Python
false
false
642
py
solve1.py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isBalanced(self, root: Optional[TreeNode]) -> bool: def traverse(p) -> (bool, int): ...
12d2b588a94b0b8500350b3a47333e67e6e5e28b
91a41c5ce70819a69dfc6f6f2b94f862244267da
/commands/builtin.py
e8ec2f4d117975ed7a904fff53e86ba19ce47140
[]
no_license
mions1/silvia
9e489a5537d125acdffc3089c50ffa766b739738
f2e5bf7d0c8cf1a90fcb8a663380aff91a6f63a3
refs/heads/master
2023-03-18T22:43:53.610163
2021-03-09T15:36:11
2021-03-09T15:36:11
346,031,715
0
0
null
null
null
null
UTF-8
Python
false
false
3,412
py
builtin.py
from datetime import datetime import random from gtts import gTTS import sys, os now = datetime.now() current_time = now.strftime("%H:%M:%S") print("Current Time =", current_time) class Builtin(): """ Handle built-in action, as greetings or what time is it and so on """ # Names which Silvia can call m...
c8956d6cd277fdea13c962cff42ef01b9f9d46a9
730430ba3b45d5728ef044863598199bfa33aaaa
/parl/algorithms/torch/qmix.py
2462d3b9a6826aa223f5711cb7023b9f61cce891
[ "Apache-2.0" ]
permissive
PaddlePaddle/PARL
062d1b4a5335553be6cdfc33ad12f07ebbcd7310
3bb5fe36d245f4d69bae0710dc1dc9d1a172f64d
refs/heads/develop
2023-08-09T02:12:39.741551
2023-05-19T17:52:25
2023-05-19T17:52:25
131,044,128
3,818
988
Apache-2.0
2023-07-28T03:59:20
2018-04-25T17:54:22
Python
UTF-8
Python
false
false
7,079
py
qmix.py
# Copyright (c) 2020 PaddlePaddle 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 app...
be1421330746da4cfc3c09a91371ae570b7385ef
08b8210c895ccf086f657f3664a2b785ffa9e11f
/ministerio/migrations/0002_auto_20210405_2301.py
dbaa48d62c63b87bc180e11255e2a58fb2d205fe
[]
no_license
tiagolch/Guia2.0
df72c64fa6998f5abe1e2ab1f4f61e633706c29f
80cedbe6933667692925add9e1c9abbf86c8b2b9
refs/heads/master
2023-04-17T02:10:17.717046
2021-04-28T02:10:26
2021-04-28T02:10:26
354,628,843
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
0002_auto_20210405_2301.py
# Generated by Django 3.1.7 on 2021-04-06 02:01 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ministerio', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='funcao', options={'verbose_name_plural': ...
f3ad5ad977d263e7d6ee758940f6cfc626169eb1
e3c74ce7db62273892cfc4e36d4ee883928fd130
/random_ips/ips.py
ab3e85cdd7e0de9e1aa46fd1b724ab82fc97a97a
[ "MIT" ]
permissive
ihuro/random_ips
cb89197fcd31ac8fb2e955c7bed710591193bc1c
5d4b6cd648de5de4d677c323482c427fd6d47978
refs/heads/master
2022-11-11T21:51:56.096617
2022-10-19T22:30:49
2022-10-19T22:30:49
246,395,899
0
0
null
null
null
null
UTF-8
Python
false
false
1,494
py
ips.py
from ipaddress import IPv4Address from random import ( getrandbits, randint, ) import hug from ipcalc import IP DEFAULT_QUANTITY = 5 MAX_QUANTITY = 50 @hug.local() def generate_random_ips(quantity: hug.types.number = DEFAULT_QUANTITY): """ Return a list of random IP addresses. Params: q...
418bb7778b6be31184517a10beb324c0ab7188ff
deab52eaac11e2c315f67b715f41eec345db09f4
/test1.py
b07ddf8da11b8e6ac76ae3cba861924989136b83
[]
no_license
LuoDongM/nerver_give_up
03215cd8efb2662de9c698db33db9707ab03f41a
e21917aeb7c2b7bc2824be64e8c63eaa8cae1abc
refs/heads/master
2023-03-23T17:15:35.235508
2021-03-22T13:55:02
2021-03-22T13:55:02
350,362,427
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
test1.py
#!/usr/bin/python # -*- coding: UTF-8 -*- # Author = LuoDongMei # Date = 2021/3/22 # 题目:有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少? # 程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去 掉不满足条件的排列 count = 0 for i in range(1, 5): for j in range(1, 5): for k in range(1, 5): if (i != j) and (j != k) and (k != i): ...
a21829a428f5921760032e48b51454f26cf6e174
e5cc0427af1019c52094e8311ac98841417203bd
/codility/demo_test/main.py
0965c92c8e882cb11a9d6aa6715a4be35accbbce
[]
no_license
davelis90/practise_tests
86a72b6ad117b3f5ba7680f42db91b4c1d9e4cb5
51bd2a73fa0e1ecc7872e20e702da885160679c9
refs/heads/master
2023-01-06T16:48:41.523459
2020-11-08T19:34:33
2020-11-08T19:34:33
311,037,134
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
main.py
def solution(A): # write your code in Python 3.6 A = sorted(A) # sort vector positive_counter = 1; # remove duplicate elements res = list(set(A)) # print(res) # remove negative elements res = list(filter(lambda x : x > 0, res)) # print(res) for element in A: if...
b77630cb8120af96206fe56754ca3fa87539b39d
85cb18f7777bcd03cca246661094e02dc5e2731e
/Actividades/AC04/custom_exceptions.py
df0829afdbb603233bf61f07d6068eafb958dfca
[]
no_license
JoseAvanzada2019/IIC2233-2018-1-SantiRepo
37a8662b4de6ab81b0f222412a29dd1f1fead87b
884be9365cd20a87aa0a75018a724e6ca0bc0182
refs/heads/master
2020-05-25T14:43:50.771367
2019-03-14T01:34:04
2019-03-14T01:34:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
custom_exceptions.py
class ExcesoDeLikes(Exception): def __init__(self): super().__init__("El video tiene más likes que views") class TagNulo(Exception): def __init__(self): super().__init__("El tag del video es de largo 0 o es None")
836325daf9d8addb0ff3a29ed7b27e4444b0e96f
b131c2c15ce365c4e0556c7c5fc9444301cb7405
/atcoder/ABC/100/B-Ringo's-Favorite-Numbers.py
d6849a2f735ad6a6dbf45155e0465330191de10c
[]
no_license
wilsjame/misc-algos
5ce20c28b9e7e1d53ece72346431d897629ca924
d42a5ce98764598f36cfe0bc154ecb76f2302864
refs/heads/master
2022-09-12T22:16:15.240348
2022-08-20T05:24:51
2022-08-20T05:24:51
243,411,893
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
B-Ringo's-Favorite-Numbers.py
d,n = map(int, input().split()) def div100(x): ans = 0; while x % 100 == 0: x = x / 100 ans += 1 return ans for i in range(1, int(1e9)): if div100(i) == d: ans = i; n -= 1 if n == 0: break; print(ans)
3cac86998d7e86ab847c7148649d2a4f6fef305d
9afcc889e5e187240a4ae98c40ead1585f2f0d41
/Pascal_Voc_Baseline.py
f9221d5d22be4747c1114d44113cba1b9ecedaae
[]
no_license
JudahZammit/m2-vae-for-ssss
834d132dea8e30c2c28777b814401875a3bf3279
8a4b24f5c1a6148c3dd8373f0837fe8730fab530
refs/heads/master
2022-04-20T05:52:06.763953
2020-04-14T20:02:59
2020-04-14T20:02:59
255,656,087
0
0
null
null
null
null
UTF-8
Python
false
false
28,905
py
Pascal_Voc_Baseline.py
#!/usr/bin/env python # coding: utf-8 # In[12]: # A model that takes an image an outputs a mask # In[13]: from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import keras from keras.models import Model,load_model from keras import laye...
1323482f7b88158cf11b8fca5475975bc8e30a47
fdf096f21f168b41028aeafe1d8c3dc5a34e230b
/q5/main.py
f03dcbe491ba210a97ec8243b761fb4e84258411
[ "MIT" ]
permissive
shreyasbapat/KPL2020-Taare-Zameen-Par
ff58fb278636d42dc1d15516a5c2ac50f8f75556
cbf66c839b303ec779f2cf4611fd2035a84d7aeb
refs/heads/master
2022-10-08T10:51:22.443424
2020-06-08T18:31:28
2020-06-08T19:18:26
270,271,563
5
0
null
null
null
null
UTF-8
Python
false
false
2,709
py
main.py
# all imports below import requests from bs4 import BeautifulSoup import numpy as np from datetime import datetime import matplotlib.pyplot as plt from astropy.io import fits from astropy.utils.data import get_pkg_data_filename """ Any extra lines of code (if required) as helper for this function. """ class ScraperX...
4f7c5b84781a9bd0d828004147ba7d7a40d3b445
ee3f49e651321c573ec2d1aa97302a1fdde9e6be
/NeuralNetwork/NeuralNetwork.py
4b3e09ab5890bf08985ce79f5dd3cefe1723ff4f
[]
no_license
zhaoshizi/Python-Quant-Study
16d4d1a26377823d2b79fd9791b9121e496bcb56
ea3a90649a6019164c86ecd189c988a46418c811
refs/heads/master
2020-03-18T19:59:30.301342
2019-03-28T16:31:44
2019-03-28T16:31:44
135,189,832
0
0
null
null
null
null
UTF-8
Python
false
false
4,576
py
NeuralNetwork.py
# 一个简单的神经网络模型 import numpy as np import time class NeuralNetwork(): def __init__(self): # 设置随机数种子 np.random.seed(int(time.time())) # 将权重转化为一个3*1的矩阵,其值分布为-1~1,并且均值为0 self.synaptic_weights = 2 * np.random.random((3,1)) -1 self.synaptic_b = np.random.random(1) def sigmo...
307a0ac120903d5ecdad255435ba905fae8012bf
879cf9f61ebd9b34084fd96527817cc0bb114310
/fundamentos-de-programacao/aula_03/operacao_simples.py
03ded4f04636fc4358806ff5f6960b52c0e79489
[]
no_license
kleber-costa/computacao-UFF
9018f47e660a8cae118ceaee5448d4edd675f66a
d4f6b933f0470015f8699f67724b4263b3dcf9ee
refs/heads/main
2023-08-04T06:11:32.431291
2021-09-12T13:47:44
2021-09-12T13:47:44
396,464,784
1
0
null
null
null
null
UTF-8
Python
false
false
735
py
operacao_simples.py
''' Calcular operação simples ''' valores = input("Entre com dois inteiros positivos: ").split() x = int(valores[0]) y = int(valores[1]) print("Informe o operador:\n(+)\t\tAdição\n(-)\t\tSubtração\n(*)\t\tMultiplicação\n(//)\tDivisão inteira\n(/)\t\tDivisão\n(%)\t\tMódulo\n(**)\tPotenciação") op = input("Operador: ") ...
580485f7742ecdbd8bb94972bc75f47b94eaadf4
9de0498a2b5a46c3fbc5cccea331a9183766e37e
/util.py
c133972e92439767bb5513a79210622161bb7cff
[]
no_license
SSRSGJYD/AIconference
8982bb16f1f6bee031709454fc5698f3a1957805
bbd120022844bcb1dc0e192af4ab7909f07f8de8
refs/heads/master
2020-09-15T04:08:40.384405
2019-09-22T03:17:38
2019-09-22T03:17:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,746
py
util.py
import matplotlib.pyplot as plt import importlib import json import os from bs4 import BeautifulSoup from urllib import parse import requests import re import csv import time def gen_save_name(opt,func_name): save_name = func_name + '_' if 'arxiv' in opt.conf_list: save_name += 'arxiv_' for key i...
8880f337264b97b23c8df4b379ac959847b5bc73
968aedcc9e58d718bb3895f89de5292d8caabe52
/leetcode/Unsorted/diagonal-traverse.py
7197a99aabf631024d6d9760ceee15196483dba3
[]
no_license
iCodeIN/competitive-programming-5
0729c9f09f12543455121fc633b051eb68529152
30bfafb6a7727c9305b22933b63d9d645182c633
refs/heads/master
2022-04-14T08:50:19.568207
2019-09-26T14:49:56
2019-09-26T14:49:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
diagonal-traverse.py
class Solution: def findDiagonalOrder(self, matrix: List[List[int]]) -> List[int]: # https://leetcode.com/problems/diagonal-traverse/ if matrix == []: return [] di = {} suList = [] r = len(matrix) c = len(matrix[0]) for i in range(r): #...
1293db09ab7cd3624953f2cb74a8bf4250486bc0
26a7d6b9a8b1f128d8bad5ddf6f031d940c858cb
/api/requestwifiauth.py
bb857740f2427ea0d6d2a6e06f6bfe4a36197188
[]
no_license
miyuk/waacs
06bb49b7111c24d7e9383a41d66a9113cd507026
2b5af550aa014d725346698a7e060c0aa137824c
refs/heads/master
2021-11-23T03:44:21.425205
2016-11-14T01:56:19
2016-11-14T01:56:19
34,938,311
0
0
null
null
null
null
UTF-8
Python
false
false
4,944
py
requestwifiauth.py
# -*- coding: utf-8 -*- import logging logger = logging.getLogger(__name__) import MySQLdb as db from datetime import datetime, timedelta import json import random import falcon from OpenSSL import crypto import subprocess import os import os.path import base64 import api from parameter import Parameter, TlsParameter,...
3a985182413c52c5516bee05d651e7fe12f523f5
aa507839f55f6c0e69c3aa1ca8dde9252146e06a
/ops/checksent/fyipermission.py
4304d1174b02386bcd2b0cc588ac2a5bf1e981a2
[]
no_license
dynatech/updews-pycodes
cd831eaaf77ef988df3192246541c11901317df6
39c615ec04ce6ebd7cb07f2ae2f3533a42146652
refs/heads/main
2023-08-17T20:45:43.082174
2023-08-09T09:53:24
2023-08-09T09:53:24
150,089,901
3
1
null
2019-08-20T06:37:51
2018-09-24T11:03:35
Python
UTF-8
Python
false
false
4,886
py
fyipermission.py
from datetime import datetime, timedelta import os import pandas as pd import sys sys.path.append(os.path.dirname(os.path.realpath(__file__))) import dynadb.db as db import gsm.smsparser2.smsclass as sms import ops.ewisms_meal as ewisms def get_monitored_sites(curr_release, start, end, mysql=True): ewi_sched = p...
c8a83d35f8a835d185ec903b9c7f816492de6d14
edce7fbbc978ebc22aa58e5215d546960bfeaf41
/4_14.py
6dd10e9b95911902cbee7102929ab7b3e02b0dc5
[]
no_license
yukitsushima/newcomer
3b5ad2cbeda6897f707aaea73a1a7b2dfd51adcb
7a1b66acf205b4d70c5bedd3da02ffddb0b26a42
refs/heads/master
2020-05-07T12:34:22.763579
2019-04-22T09:30:36
2019-04-22T09:30:36
180,509,342
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
4_14.py
#2019/04/15 #Yuki Tsushima #tsushima@bi.c.titech.ac.jp #For Python 3.7 #User rdkit-env import csv import sys from calc_fgprint import calc_fgprint from rdkit import rdBase, Chem from rdkit.Chem import AllChem, Draw from rdkit.Chem.Draw import rdMolDraw2D from sklearn import * from sklearn.svm import SVR from sklearn...
27500cccd1ee710cb0c3d39d6da3081dad6e5845
45f132a0c298303f21c827e95f2ab45e12267022
/blog/api/serializers.py
3499c3cbefbb6d4860d2a6ba09b0f0d499872413
[]
no_license
rahul0102/blog-api-drf
8ece4b42a1e698a44ed20e652a1063c49a64923c
fc6884d77e826de0613129f884201313878a5c61
refs/heads/master
2022-12-12T12:12:03.430447
2018-03-30T05:58:47
2018-03-30T05:58:47
124,236,773
0
1
null
2022-12-08T00:55:00
2018-03-07T13:02:39
Python
UTF-8
Python
false
false
2,806
py
serializers.py
from rest_framework.serializers import ( ModelSerializer, HyperlinkedIdentityField, SerializerMethodField ) from accounts.api.serializers import UserDetailsSerializer from blog.models import Article, Comment class ArticleListSerializer(ModelSerializer): article_url = HyperlinkedIdentityField( ...
1edbecc8e8a74e277ebfccd78902e26e67307ef5
c6ca83264d2618d7c335f99e701d5baabd46d58c
/robolearn_envs/pybullet/planarmanipulators/pusher2d_env.py
66ab394cfd1b48655fa34dcf83d1413fe037b611
[ "BSD-3-Clause" ]
permissive
domingoesteban/robolearn_envs
0ee11634df6d006098b96966230009a929ea36fa
1e10f315abcbb034e613b3b5a7a48662a839c81b
refs/heads/master
2020-03-12T10:05:06.147441
2019-04-03T07:28:14
2019-04-03T07:28:14
130,565,930
3
2
null
null
null
null
UTF-8
Python
false
false
23,898
py
pusher2d_env.py
import numpy as np from collections import OrderedDict from robolearn_envs.pybullet.core.bullet_env import BulletEnv from gym.spaces import Box from robolearn_envs.pybullet.planarmanipulators.planarmanipulator3dof \ import PlanarManipulator3Dof from robolearn_envs.pybullet.planarmanipulators.planarmanipulator4dof...
44d498a07fe615326be0b21a4f00cb8338e06f22
fa56e2ce01115a171f6712c579758fccaeb73ddf
/data_cleaning/votes_df_clean.py
7e42cbf5d6495fde81db8ec874211404e3b54976
[]
no_license
dgoverde/Congress_work
43df3d827e5f2809d50621cac45440d3595f65d1
10a77c8b6f5df435dc7575b93f106804c17bbe74
refs/heads/master
2021-01-24T11:09:01.499114
2016-01-15T18:37:35
2016-01-15T18:37:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,364
py
votes_df_clean.py
import pandas as pd import numpy as np def get_precent_party(line): '''return the percent of type of vote for a particular party''' if type(line) == list: countD, countR, count = 0, 0, 0 if len(line) > 0: if type(line[0]) == dict: for item in line: if item['party'] == 'D': countD += 1 e...
eafe5d51fcf67976ded6b51182d445c70cb998db
fa60288b43e02dd1ef392ab16d8efc91468e438e
/HSM/project_apis/urls.py
d022de635925cf4bce60e00f641560a6a29d4ed6
[]
no_license
manjot-baj/My_Python_Django
42fa5adc223888a16c3f4f017a9200cb4567d02d
43dbe17f7588bbc0ae60e403eec3a3788ebcfb36
refs/heads/master
2023-01-19T03:21:18.584091
2020-02-14T07:44:10
2020-02-14T07:44:10
232,131,850
0
0
null
2022-12-26T20:33:03
2020-01-06T15:41:27
CSS
UTF-8
Python
false
false
3,282
py
urls.py
from django.urls import path from . import views urlpatterns = [ path('users/', views.ListHsmUserSerializer.as_view()), path('users/<int:pk>/', views.DetailHsmUserSerializer.as_view()), path('society/', views.ListHsmSocietySerializer.as_view()), path('society/<int:pk>/', views.DetailHsmSocietySerialize...
0fa58effc34e00b153a800eefdbafa172402c76e
1abf148d347227a0af154cfd30eaceced76c7767
/application/auth/forms/registerform.py
b8c52f7902e1af0d0ae64c670826b4a1c40876c7
[]
no_license
MiikaProject/Ostoslista
220242f6ac997b335e5eb020d5a80d3c189cbe31
d63ba1d4ebefd2e62dab911f1207cdd20a4e8d84
refs/heads/master
2021-06-20T22:08:51.255286
2019-09-06T20:41:35
2019-09-06T20:41:35
198,475,066
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
registerform.py
from flask_wtf import FlaskForm from wtforms import PasswordField,StringField,validators #Form for register page class RegisterForm(FlaskForm): name=StringField("Name",[validators.Length(min=3)]) username=StringField("Username",[validators.Length(min=3)]) password=PasswordField("Password",[validators.Lengt...
33c901ec8a223eb1179baadb81ccc4e32317d192
38ae3131b9181b4941a4a53fb7f950e4c16808eb
/src/results_sevice.py
f4cf911cb44a5423f093940ad08639c764a11a5a
[]
no_license
andrefisch/NCAA-Calculations
5e75753d90474661efbbe962e778f2d2a12677ba
e5c015a746ab351d0f9a69e2eafc64f6b5d41470
refs/heads/master
2023-01-11T15:12:23.448198
2020-06-25T22:54:55
2020-06-25T22:54:55
85,019,688
0
0
null
2022-12-26T21:31:59
2017-03-15T02:28:28
HTML
UTF-8
Python
false
false
3,430
py
results_sevice.py
from requests.adapters import HTTPAdapter from requests.packages.urllib3.poolmanager import PoolManager from src.school import School import ssl class MyAdapter(HTTPAdapter): def init_poolmanager(self, connections, maxsize, block=False): self.poolmanager = PoolManager(num_pools=connections, ...
d78eeb2c6ed0bdbe7e1e306f36f14641ee89a3bd
6e46ad114b6a542b3fede3e511dbe2ffc8d34176
/set-system-colors
ce5ecc4bc3593827830c9c2d77cf77646941f85d
[ "BSD-2-Clause" ]
permissive
fluffynuts/scripts
dffa978fd1ff360fe5cf630407f2eb5805fcf02b
8fc9493ac6c3b43f885742b504385bb74c8b7374
refs/heads/master
2023-09-04T11:02:17.356787
2023-08-23T14:36:40
2023-08-23T14:38:28
139,478,534
1
0
null
null
null
null
UTF-8
Python
false
false
3,076
set-system-colors
#!/usr/bin/python import io import os import subprocess import re from sys import argv from datetime import datetime debug_enabled = os.environ.get("DEBUG") == "1" log_file = None openrgb = "/home/daf/code/opensource/OpenRGB/openrgb" def debug(s): line = "[%s] %s" % (datetime.now(), s) if debug_enabled: ...
b1df15e2aea0bc7c0516359eb2116ce54a6c49a5
cfd4ac85b45a38bf5115b90d19f9813ffeb9e429
/community_stats.py
784ff323720f4bb87958f12b8745386608a3cff1
[]
no_license
thausler786/communitystats
dcbcbc1fcb37860bc5767d6c1c9692bf1452a3de
fd4b9a8893455ef9c13192c21724b3a09a5a2eb2
refs/heads/master
2020-06-11T15:02:10.450218
2019-03-14T23:22:16
2019-03-14T23:22:16
75,643,842
0
1
null
2019-03-14T23:22:17
2016-12-05T16:20:00
Python
UTF-8
Python
false
false
2,381
py
community_stats.py
from dateutil.relativedelta import * import datetime import sys from community_week import CommunityWeekFinder, CommunityWeek from issue_events import IssueEvents, IssueEventsFetcher owner = sys.argv[1] repo = sys.argv[2] interval = 7 events = IssueEventsFetcher.fetch_issue_events(owner, repo, interval) end_date = d...
3bf51bd8769437bb8c4b61318ad4b8bf5bc98677
d204cc764f4cbbb4755c3b630c0790fee53628ee
/photos/models.py
8f074d43fa86286ee850159416cad05efa40fdde
[]
no_license
jace3k/satellite-backend
9e0f73e389da10126d5a38f36db9503b470adda2
bec7f19234a03134482d918fa68cd2674e14a7a1
refs/heads/master
2020-05-04T13:25:32.501293
2019-04-04T17:11:36
2019-04-04T17:11:36
179,159,795
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
models.py
from django.db import models from subscriptions.models import Subscription class Photo(models.Model): subscription_id = models.ForeignKey( Subscription, on_delete=models.SET_NULL, null=True ) date = models.DateField( auto_now_add=True, blank=True ) image_...
ffcd5915f0cd14e930c5c49de85a8682dd8b5af7
9eb5bf2db97a2fe5e584a04780c38e79e4d15672
/lesson_3/step1.py
964eb5d547965e17b871ba62dfb4bc06da32be38
[]
no_license
Alisherkz/Fundamentals-of-Python
d23d30b2e8e1efd054831ba897ce77aa30a48680
b0207db1397d860fcde5f78c92a8597d461d177f
refs/heads/main
2023-06-02T01:14:56.006723
2021-06-21T12:39:45
2021-06-21T12:39:45
378,919,537
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
step1.py
def my_func(num1, num2): try: result = num1 / num2 print(int(result)) except ZeroDivisionError or ValueError: print("error") my_func(9, 3)
343e243deee43c5c7f890470b25f262c59200df7
91622b9643c3204fd98e69c3d65bfb3c93028320
/003-Keywords/amazon/spiders/spiders.py
5053ce15e11abd0721501681e90df6253af4ec90
[ "Apache-2.0" ]
permissive
GoFireStar/PythonIsTools
1b889a36012be3ecb96cca8296676baf7ee725c7
a80cf4e81076b90d6d82d2919c76601e75898281
refs/heads/main
2023-08-29T12:03:04.075641
2021-10-29T00:59:54
2021-10-29T00:59:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,896
py
spiders.py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @Description: 爬虫页面集合 @Date :2021/09/26 @Author :xhunmon @Mail :xhunmon@gmail.com """ import re from urllib.parse import quote_plus import scrapy from my_fake_useragent import UserAgent class CheckIpSpider(scrapy.Spider): """ 检查当前代理ip信息 "...