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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7277537d5e5a370dd90d85849f460c8406aa22b | 1423a793ea82e43dbb0bfce36fad13e8f96d48d0 | /TeamChallenges/forwardCenterSecond.py | 50e1d5a0d093927b1605837ebe9ffce83e925591 | [] | no_license | ecasiano/ComputationalPhysics | d813f96030cf6711b7dacb4def43596a219c9099 | 2e002dd7f30419c668b382dee8896f454092094d | refs/heads/master | 2021-05-06T06:05:58.263003 | 2017-12-11T04:51:11 | 2017-12-11T04:51:11 | 113,813,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #Check out the forward, center and second derivatives
import numpy as np
import matplotlib.pyplot as plt
def f(x):
return np.log(x)
def df(f,x):
'''Compute the forward, centered and 2nd derivative of f = ln(x)'''
dx = x[1]-x[0]
dff = (f(x+dx) - f(x)) / dx
dcf = (f(x) - f(x-dx)) / dx
d2f = (... | [
"Emanuel.Casiano-Diaz@uvm.edu"
] | Emanuel.Casiano-Diaz@uvm.edu |
5455854aebad619ae2ea8224d420ca637a3192a0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_117/ch9_2019_06_06_16_00_07_789792.py | 79e171219a81d54f6384bc08259cc494bebbee60 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | def lista_sufixos(string):
x= []
i=0
while x in lista_sufixos(string) and i in lista_sufixos(string):
x.ppend[lista_sufixos[i]]
return x
| [
"you@example.com"
] | you@example.com |
5ed6021c2690314e7ba25a3d312a678df74f5522 | e50fb8fff29149672c581fee796e9ca1fbc128c2 | /dust_extinction/tests/test_g16.py | 9f5b60d6ad2a9f049f23e763c80ada192d7b4f0e | [
"BSD-3-Clause"
] | permissive | krislars/dust_extinction | 70cbabc4bf23e23dd6bb3c11cfe9a4ec2528e843 | 651d53d5bbbb2890dd67bd7ab93e0a318c4f14ea | refs/heads/master | 2021-09-25T08:56:51.098610 | 2018-10-20T04:18:48 | 2018-10-20T04:18:48 | 114,434,756 | 1 | 1 | BSD-3-Clause | 2018-10-20T04:18:49 | 2017-12-16T04:56:57 | Python | UTF-8 | Python | false | false | 2,533 | py | import numpy as np
import pytest
import astropy.units as u
from astropy.modeling import InputParameterError
from ..parameter_averages import G16
from ..averages import G03_SMCBar
from .test_f99 import get_axav_cor_vals as get_axav_cor_vals_fA_1
from .helpers import _invalid_x_range
@pytest.mark.parametrize("RvA_inv... | [
"kgordon@stsci.edu"
] | kgordon@stsci.edu |
fa1906332a417b7770ed39e5aceec6cbc21d271a | 91d90f8e026ae8e6594db37fdff3cda9ca65a2dd | /my_modules/comp_chem/rism_recipes.py | ab7b50c1902d339e4f948760c793c8e21b3c9dc7 | [] | no_license | MTS-Strathclyde/python-mm-scripts | 4567bc943a990b0df162d9f8dbc003d8698d4219 | 0235479c2a9f4e91ff5ffeeacfc56d604b62b551 | refs/heads/master | 2020-03-25T23:39:50.438744 | 2018-08-27T22:08:51 | 2018-08-27T22:08:51 | 144,286,211 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 4 13:29:06 2015
@author: max
"""
import numpy as np
def load_dx(fname, return_xyz=False):
"""Return dx matrix, origin coordinates tuple and spacing between points tuple.
If return_xyz is true returns dx, x, y, and z matrices."""
with open(fname, 'rb') as f:
... | [
"mishin1991@gmail.com"
] | mishin1991@gmail.com |
bac93d65826b2004d966bbb967c2b4884b2febdb | 4f65908ca7d2fb55619e664c69f593411253d937 | /api.py | b2973d951cd795b75a6a48fcbc76939d92770a70 | [
"MIT"
] | permissive | ElHackerMan/sql-injection-demo | 2cef31403de380c8b1c4305324ed9637a9520ef3 | 2dac7635527b350fe7ab06d52b42fb41a087d703 | refs/heads/master | 2022-12-23T08:39:26.944876 | 2020-10-01T12:44:00 | 2020-10-01T12:44:00 | 300,275,123 | 0 | 0 | MIT | 2020-10-01T12:41:53 | 2020-10-01T12:41:52 | null | UTF-8 | Python | false | false | 1,337 | py | from flask import Flask, request, render_template
from flask_cors import CORS
import sqlite3
app = Flask(__name__)
CORS(app)
@app.route("/get")
def get():
conn = sqlite3.connect("data.db")
c = conn.cursor()
c.execute("select * from data")
data = c.fetchall()
return "<br>".join([i[0] for i in data... | [
"vivnps.verma@gmail.com"
] | vivnps.verma@gmail.com |
5701ff7c8921d1852dee962cef036fd24765f824 | 471479fd33215ffd088e09940c78cc8b2f65ffcd | /docs/source/01-AWS/01-All-AWS-Services-Root/27-Machine-Learning/01-Sagemaker-Root/01-What-is-Sagemaker/estimator_example.py | 0dfe386849f5aa041507fb4296c9b544fed0d490 | [
"MIT"
] | permissive | MacHu-GWU/Dev-Exp-Share | a25ec59f9402e56c3bd9d98269634894fa452537 | 0b659c62bf795374ea981953b25119ca30007e7d | refs/heads/master | 2023-08-22T05:28:52.536090 | 2023-08-14T13:37:31 | 2023-08-14T13:37:31 | 84,245,070 | 3 | 1 | MIT | 2023-02-13T23:44:03 | 2017-03-07T20:53:18 | Shell | UTF-8 | Python | false | false | 779 | py | # -*- coding: utf-8 -*-
import sagemaker
from sagemaker import image_uris
from sagemaker.estimator import Estimator
sess = sagemaker.Session()
role = sagemaker.get_execution_role()
container = image_uris.retrieve("pca", "us-east-2", version="1")
pca = sagemaker.estimator.Estimator(
container,
role,
insta... | [
"MacHu-GWU@users.noreply.github.com"
] | MacHu-GWU@users.noreply.github.com |
722c318ba3f92614672fec373dc84a8c34b4b272 | 0abc546a1442cae56ddcdc43f85497b37fc89036 | /CGATPipelines/pipeline_docs/pipeline_chipseq/trackers/Annotations.py | 8faaa8fcc92605e9b18316a3f4527ae2bead797a | [] | no_license | yangjl/cgat | 01a535531f381ace0afb9ed8dc3a0fcff6290446 | 01758b19aa1b0883f0e648f495b570f1b6159be4 | refs/heads/master | 2021-01-18T03:55:14.250603 | 2014-02-24T10:32:45 | 2014-02-24T10:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,766 | py | import os, sys, re, types, itertools
import matplotlib.pyplot as plt
import numpy
import numpy.ma
from ChipseqReport import *
##################################################################################
##################################################################################
###########################... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
deeac463af0522cf25eeb9b13fcf4b08d46ca663 | 268e68da9a3a1e6a564e3650313e09d5e424f109 | /quant_engine/Strategy/stg_CC_20191106/stg_CC.py | 69b27d09ec1ac94658777d5955ab0d93f1f699fd | [] | no_license | dxcv/DFZQ | 7d101217067ead6f19f3e1450f0276f81d38af12 | cc52a6bc658fcce051a380486e3d60b432b7ee90 | refs/heads/master | 2020-09-28T14:20:15.579453 | 2019-12-09T05:40:25 | 2019-12-09T05:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,635 | py | # 开始日期: 2019-11-7
from strategy_base import StrategyBase
import pandas as pd
from dateutil.relativedelta import relativedelta
import dateutil.parser as dtparser
import joblib
import datetime
class stg_CC(StrategyBase):
def __init__(self):
super().__init__()
@staticmethod
def job_filter(code,ROE,... | [
"bright_gl@126.com"
] | bright_gl@126.com |
91c4252526dd2d808747d3f8dba7bc6ab1ca839f | 41ef2591852ef50a0a1266f19a7b841265a72e96 | /tw2018/sandbox2.py | 175787f663a689d9224ba82e553822b6a724af93 | [] | no_license | JustBeYou/ctfs | 00476bcd87d4edcaa922f28f73a591ebcb31ab6b | 91a5ecc5f2571ff4fbf27b74082f97f280e8ab58 | refs/heads/master | 2023-02-03T04:38:09.017478 | 2021-12-27T18:49:01 | 2021-12-27T18:49:01 | 137,554,267 | 16 | 7 | null | 2023-02-02T04:55:13 | 2018-06-16T05:00:12 | Assembly | UTF-8 | Python | false | false | 3,489 | py | import ast
import hashlib
def check_flag1():
sys.stdout.write('input sha512(flag1) >> ')
sys.stdout.flush()
s = sys.stdin.readline().strip()
flag = open('./flag', 'rb').read().strip()
if hashlib.sha512(flag).hexdigest() != s:
exit()
sys.stdout.write(open(__file__, 'rb').read().decode()... | [
"mihailferaru2000@gmail.com"
] | mihailferaru2000@gmail.com |
3f07d943cef6f3e9902f6a42171fb3da89d3c18f | 87b249bde7c729800f2c2530a0ee35c101e3d363 | /game/serializers.py | 4810073cf88f2532a89ccd5cb0f5e5955a6e846a | [] | no_license | infsolution/prehistory | 9c909230cdc114dfdbc97875df27de23262befcc | 70bab6b9c8352612bd46572b63330c1187dd869e | refs/heads/master | 2020-09-12T12:14:39.358521 | 2019-11-29T23:59:43 | 2019-11-29T23:59:43 | 222,422,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | from rest_framework import serializers
from django.contrib.auth.models import User
from .models import *
class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model=User
fields=('url','pk', 'username', 'email', 'password')
class KnowingSerializer(serializers.HyperlinkedModelSerializer):
clas... | [
"clsinfsolution@gmail.com"
] | clsinfsolution@gmail.com |
52a8fa5aecfd0073386b3d4557b7840f4a497d3d | 06820fccbfd2024368f56ba8cf028a54213dc497 | /src/ec_cloudspeech.py | 433743090d0738dd4c76616881e1d71237a7eba2 | [] | no_license | makelove/AIY_py | 12e4532e0eb13a305c30c7f2625d44915dc43ed0 | 5956804a19d4f42887486f9b5516c6df3f1a9ffd | refs/heads/master | 2021-09-11T20:51:10.717197 | 2018-04-12T07:35:50 | 2018-04-12T07:35:50 | 111,373,960 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | # -*- coding: utf-8 -*-
# @Time : 2017/11/14 14:49
# @Author : play4fun
# @File : ec_cloudspeech.py
# @Software: PyCharm
"""
ec_cloudspeech.py:
"""
#!/usr/bin/env python3
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compl... | [
"play4fun@foxmail.com"
] | play4fun@foxmail.com |
31f94d40a73c8814ea28b3afde6632b450c348c1 | b961c67885fe1033ec8c1d480a43ee4f2d07ce02 | /img/migrations/0003_auto_20180706_0104.py | db6e068365edd5b1387d2c45b63f07da7600aded | [] | no_license | aistiak/crude | 83590be42d5b7966398a55af0afb15e556bd9d60 | da34b50b349cef842fb77067fec2c8074f871dc3 | refs/heads/master | 2020-03-23T03:52:25.565818 | 2018-07-15T19:42:35 | 2018-07-15T19:42:35 | 141,053,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # Generated by Django 2.0.5 on 2018-07-05 19:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('img', '0002_auto_20180706_0103'),
]
operations = [
migrations.AlterField(
model_name='store',
name='img_file',
... | [
"you@example.com"
] | you@example.com |
216e34ee799c8cc5c9e6d33d5aa98dd80dd83909 | a8a86f7d2b154043078159b06db2a7ef1eb5425f | /functions_parameters.py | 41dde70924f1e23667a66860cf1f1fbb68be081e | [] | no_license | julesc00/Python-3-Exercises | ed3f42a372147b67037602d36c43a7ac05423502 | 3e3d4a9bb14bd0d27586fa913e5634587ded4267 | refs/heads/master | 2020-06-06T03:55:54.815597 | 2019-07-05T13:56:56 | 2019-07-05T13:56:56 | 192,631,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | # Functions with parameters
# def parameters(a):
# print(a)
#
#
# parameters("This is a parameter")
#
#
# def add(a, b):
# c = a + b
# return c
#
# def substract(a, b):
# c = a - b
# return c
#
# def times(a, b):
# c = a * b
# return c
#
# def division(a, b):
# c = a / b
# return c... | [
"julesc00@hotmail.com"
] | julesc00@hotmail.com |
adc5beca570d7df09d4e54d0662f940996f3eebc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02720/s356125809.py | e99b71a13874ec2f088ce5e4627a48693ce6addf | [] | 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 | 301 | py | import queue
K = int(input())
Q = queue.Queue()
for i in range(1, 10):
Q.put(i)
ans = 1
for k in range(K):
ans = Q.get()
ansm = ans % 10
if ans%10 != 0:
Q.put(10 * ans + ansm - 1)
Q.put(10 * ans + ansm)
if ans%10 != 9:
Q.put(10 * ans + ansm + 1)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4a849254e203aa9a4f2f99b295727b328ef0a2eb | 7c87beaaed3d6e1459c3328c9d14b1c64187c161 | /awesomepython3webapp/www/handlers.py | d41c7bd7c9265d0378717aa9a8dd1cf5962cc687 | [] | no_license | QAlexBall/PythonProject | 24a7061def9e31db2ef112e775c6b75710ca267c | 74b9db9d60acaa112b266fffaa799e00b2a63016 | refs/heads/master | 2020-04-22T21:39:04.508991 | 2019-05-19T15:02:17 | 2019-05-19T15:02:17 | 170,679,679 | 0 | 0 | null | 2019-09-27T07:28:05 | 2019-02-14T11:18:32 | CSS | UTF-8 | Python | false | false | 7,880 | py | # -*- coding: utf-8 -*-
""" url handlers """
import re, time, json, logging, hashlib, base64, asyncio
from aiohttp import web
import markdown2
from config import configs
from coroweb import get, post
from models import User, Comment, Blog, next_id
from apis import APIValueError, APIResourceNotFoundError, APIPermissionE... | [
"zhuderen12345@icloud.com"
] | zhuderen12345@icloud.com |
57b95fbf466f9875a9545def6dc310b69907498f | 4929dd3039d95d22cfe4dd99f2de2df3a5f442ba | /engine/threed/quaternion.py | 7a8a3f24fbdc7ff5f2300ed722ad38fe67ae5c39 | [
"MIT"
] | permissive | Nachtfeuer/engine | b82565685ab8fc2cb67e04549446ba1831d8c084 | c7d86877b84f648b229c8c958078b899ad9eeeaf | refs/heads/master | 2023-01-04T12:01:40.010060 | 2020-04-25T12:43:24 | 2020-04-25T12:43:24 | 233,201,469 | 0 | 0 | MIT | 2022-12-23T23:57:03 | 2020-01-11T08:40:16 | Python | UTF-8 | Python | false | false | 4,346 | py | """Module quaternion for mathmatical quaternion."""
from __future__ import annotations
from typing import Union
import math
from engine.threed.base.quaternion import AbstractQuaternion
from engine.threed.base.vector import AbstractVector
class Quaternion(AbstractQuaternion):
"""Mathmatical quaternion."""
def... | [
"thomas.lehmann.private@gmail.com"
] | thomas.lehmann.private@gmail.com |
6137c2767ac4a1fa838bd1c1220f62ac6ea848ad | 40571afb41d6886f3ee72259e44b31c831355ee5 | /backend/movies/newrecommend.py | 56bf43e5ea39b5cb0955f384d8e4c5956b1a463d | [] | no_license | suwonraison900206/idkmovies | e552efa6923a56bf7386f125d8e97c419a1acfe7 | ae102ba4d8a111c6efd21fce1a6934b2720ca93d | refs/heads/main | 2023-01-25T03:15:42.688861 | 2020-12-07T14:18:01 | 2020-12-07T14:18:01 | 319,341,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | # 데이터 불러오기
from numpy.linalg import norm
import pandas as pd
from pandas import Series, DataFrame
import numpy as np
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
import pymysql
def recommend_sys(searchword):
df = DataFrame()
movie_db = pymy... | [
"suwonraison@gmail.com"
] | suwonraison@gmail.com |
f4b7403859bb54f3ce9db78739674b9e0aa4799d | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/multiprocessing/multiprocessing_daemon_join.py | 129c85458ea0012dec9b138ceec8a97fea0e9098 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""Daemon vs. non-daemon processes.
"""
#end_pymotw_header
import multiprocessing
import time
import sys
def daemon():
name = multiprocessing.current_process().name
print 'Starting:', name
time.sleep(2)
... | [
"350840291@qq.com"
] | 350840291@qq.com |
ff704ccec9c5422fcf636fc4c887ab7f2ef89f81 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d44fd70d021454f4d5e4e13464669c0beb828fe8-<_permissions_service>-fix.py | b5827de750672394a1e8cdfb11010b0cd9aaa75a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | def _permissions_service(connection, module):
if module.params['user_name']:
service = connection.system_service().users_service()
entity = next(iter(service.list(search='usrname={0}'.format('{0}@{1}'.format(module.params['user_name'], module.params['authz_name'])))), None)
else:
service... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
27e92479af861924da74eb43fabe9260a03e8c76 | c9ee92af7462d4bd9f68e773bf4fb11c977ebd66 | /worker.py | cdf8776bc6072f4d9ae31f15778ebaf94d9ab1c4 | [] | no_license | gfjreg/CommonCrawl | 23737b9863c2e5394b7820cee4ada31e86ebf5d7 | 2aaa42d857a49aa04d250e0208b25dd6419af358 | refs/heads/master | 2021-01-22T23:54:28.843306 | 2014-06-24T19:05:39 | 2014-06-24T19:05:39 | 21,654,496 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,444 | py | __author__ = 'aub3'
import logging
from collections import defaultdict
from cclib import commoncrawl
from filequeue import FileQueue
from boto.s3.connection import S3Connection
from boto.s3.key import Key
import json
from config import OUTPUT_S3_BUCKET, JOB_QUEUE, CRAWL_ID
logging.basicConfig(filename='worker.log',le... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
a085f7bf4695cf325e0ee9e57edf7846036ca0e6 | eef5a6712582fec52915c5281d03a822ef47f371 | /vrequest/pyprime.py | 4b23fbd901b729b5200d461fb107481cadaf97ce | [
"MIT"
] | permissive | zhangsanfu/vrequest | 35d1948e4b2ebb9c9d6a846e7d432ca4e21ba84a | 0a483bb4ea86452b03ccf33869c1ebcd3f6c6d32 | refs/heads/master | 2021-02-15T20:39:48.915875 | 2020-03-04T12:43:32 | 2020-03-04T12:43:32 | 244,929,730 | 1 | 0 | MIT | 2020-03-04T15:03:05 | 2020-03-04T15:03:04 | null | UTF-8 | Python | false | false | 4,591 | py | import random
# miller-rabin 算法素性检测
def isprime_mr(a,b=None):
if b is None: b = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97]
if a == 2:return True
if a%2==0 or a==1:return False
for x in b:
t = a - 1
while t%2 == 0:
v = pow(x,t,a)# python自带函数pow就带... | [
"opaquism@hotmail.com"
] | opaquism@hotmail.com |
6ca13f810992c2693ed14d720b891f61e3729666 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2208/60688/274603.py | 8ddccc41e4d111844ffb168adc58bce474965db1 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | times=int(input());
#首先是单次的
results=[];
for j in range(times):
nums=int(input());
numslist = (input().split(" "));
numslist=list(int(x) for x in numslist);
result=[-1];
for i in range(1,nums):
previewnum=numslist[i-1];
if(numslist[i]>previewnum):
result.append(previewnum)... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0035741d85f8fdad03b538e34cfb885ef5e9a22d | 65f3ada144f45bd5dbaf3d37ca9366ff54796f0c | /month6-21/maxProductDifference.py | 56e642d3e0eafa3421099f9393f986debdd630be | [] | no_license | BruceHi/leetcode | 43977db045d9b78bef3062b16d04ae3999fe9ba7 | 0324d247a5567745cc1a48b215066d4aa796abd8 | refs/heads/master | 2022-09-22T14:18:41.022161 | 2022-09-11T23:45:21 | 2022-09-11T23:45:21 | 248,240,171 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from typing import List
class Solution:
def maxProductDifference(self, nums: List[int]) -> int:
nums.sort()
return nums[-1]*nums[-2] - nums[0]*nums[1]
s = Solution()
nums = [5,6,2,7,4]
print(s.maxProductDifference(nums))
nums = [4,2,5,9,7,4,8]
print(s.maxProductDifference(nums))
| [
"BruceHi@users.github.com"
] | BruceHi@users.github.com |
d2707ab0e49f8a6c6f0e66b9428cbb8da3668509 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03625/s124260947.py | b291f53eee5b0fe45988c00b23afb57577b4bfa4 | [] | 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 | 413 | py | n = int(input())
seq = sorted((int(x) for x in input().split()), reverse=True)
val1 = None
val2 = None
cur_val = seq[0]
for val in seq[1:]:
if val == cur_val:
if val1 is None:
val1 = val
cur_val = None
elif val2 is None:
val2 = val
break
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c59948e775712b277deae1b29e13cf954cfcebba | 46ae8264edb9098c9875d2a0a508bc071201ec8b | /res_bw/scripts/client/postprocessing/effectssharpen.py | 079154e4ce4235a3d59f7da3a0adbb329383df6d | [] | no_license | Difrex/wotsdk | 1fc6156e07e3a5302e6f78eafdea9bec4c897cfb | 510a34c67b8f4c02168a9830d23f5b00068d155b | refs/heads/master | 2021-01-01T19:12:03.592888 | 2016-10-08T12:06:04 | 2016-10-08T12:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | # Embedded file name: scripts/client/PostProcessing/Effects/Sharpen.py
from PostProcessing.RenderTargets import *
from PostProcessing import Effect
from PostProcessing.Phases import build9TapFilterPhase
from PostProcessing.Phases import buildBackBufferCopyPhase
from PostProcessing.FilterKernels import *
from PostProces... | [
"m4rtijn@gmail.com"
] | m4rtijn@gmail.com |
5bb2470c0166acc4ae189378f71c1bce085304b1 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /utils/Autocase_Result/Quote16/HQ_16_010.py | 5716216f268d90e0e1d43b44e79ab509f2f0d46b | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import time
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from log import *
class HQ_16_010(xtp_test_case):
def subMarketData(self, Api, stk_info, case_name, rs_ex... | [
"418033945@qq.com"
] | 418033945@qq.com |
e82327ca51579b28a3f560841036aadef7b4b2d3 | acff427a36d6340486ff747ae9e52f05a4b027f2 | /contrib/editor/master-pdf-editor/actions.py | da42af8f079017a6038a7356782509b1e9de763d | [] | no_license | jeremie1112/pisilinux | 8f5a03212de0c1b2453132dd879d8c1556bb4ff7 | d0643b537d78208174a4eeb5effeb9cb63c2ef4f | refs/heads/master | 2020-03-31T10:12:21.253540 | 2018-10-08T18:53:50 | 2018-10-08T18:53:50 | 152,126,584 | 2 | 1 | null | 2018-10-08T18:24:17 | 2018-10-08T18:24:17 | null | UTF-8 | Python | false | false | 710 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def install():
pisitools.insinto("/usr/share/pixma... | [
"erkanisik@yahoo.com"
] | erkanisik@yahoo.com |
fe18f740c6f5fb93cac20a61fda4df79ec0efaa4 | c7dd4b5501d08d7e66ad44d02fdd95a9695527d6 | /src/jk_logging/fmt/LogMessageFormatter.py | 22d339ef6c3a17e22d2ee23705afac082b68e62e | [
"Apache-2.0"
] | permissive | jkpubsrc/python-module-jk-logging | 874605f4de9b0a0c093cf45c248186a264a82deb | d4728c3079362ff9d3cc45d57eda2a3516b23ba5 | refs/heads/master | 2022-08-28T12:41:32.131472 | 2022-08-18T06:20:17 | 2022-08-18T06:20:17 | 79,403,196 | 0 | 1 | null | 2022-08-27T01:37:36 | 2017-01-19T01:35:32 | Python | UTF-8 | Python | false | false | 4,309 | py |
import typing
from .AbstractTimeStampFormatter import AbstractTimeStampFormatter
from .AbstractLogMessageFormatter import AbstractLogMessageFormatter
from .DefaultTimeStampFormatter import DefaultTimeStampFormatter
#
# This is a default formatter for log messages. It produces human readable output for log mes... | [
"pubsrc@binary-overflow.de"
] | pubsrc@binary-overflow.de |
4e92895377c78c8ef4e517352d917ad1408279ba | b538301926fd5971decf529c28094aeec082c73d | /project3/search_project/apps/movie/migrations/0010_rmovieticketinfo_ticket_type.py | 12f4010fe325f8cf15c6b1a9c621b71ef0e2efe4 | [] | no_license | so1n/Django_project | a7407a422a4f492cc67df618fe54cafdc9b27d1f | 64611e11f452faca4a7a3f2b9d0203eb1afe2e56 | refs/heads/master | 2021-09-14T20:07:04.530064 | 2018-05-18T16:30:14 | 2018-05-18T16:30:14 | 101,761,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-03-31 09:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('movie', '0009_remove_rmovieticketinfo_ticket_type'),
]
operations = [
migrati... | [
"qaz6803609@163.com"
] | qaz6803609@163.com |
edcda9c73ebd03acee0c6dfa013fe68a556d3484 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/c6854fde29659e2fbade78ae704e1e243b0781e9-<_cf_simple_api_call>-fix.py | 0d6faa7157ab3c318a97dfac4e30a4681a4d9964 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | def _cf_simple_api_call(self, api_call, method='GET', payload=None):
headers = {
'X-Auth-Email': self.account_email,
'X-Auth-Key': self.account_api_token,
'Content-Type': 'application/json',
}
data = None
if payload:
try:
data = json.dumps(payload)
exc... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
782d80896638109ce6006d31e97c5e81aaca93e6 | e18174a56f801e4daaa1fe76685e9e119b6c7652 | /hamal/hamal/service.py | 08c18de4854182700143a0a62d33c857ad5f91c6 | [
"MIT"
] | permissive | JackDan9/hamal | 10ae45e14bfe6b27b31961e75ae0269c896089df | 965be9db066209300c52f0cf17d251290d8901b7 | refs/heads/master | 2021-03-28T14:16:49.156503 | 2020-09-23T01:00:38 | 2020-09-23T01:00:38 | 247,869,364 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,795 | py | # Copyright
"""Generic Node base class for all workers that run on hosts."""
import os
import sys
from oslo_concurrency import processutils
from oslo_log import log as logging
import oslo_messaging as messaging
from oslo_service import service
from oslo_utils import importutils
import hamal.conf
from hamal import b... | [
"1835812864@qq.com"
] | 1835812864@qq.com |
3ddebd52418dd604af3ec13cea4384e0c68d9657 | a6d04a7cf14c7186534f7af255bfdf032464f45c | /schoolAdmin/settingsXXX/prod.py | d9c4e6c35b9b03fb461cf4a12dfc74e5d30e21e8 | [] | no_license | tberhanu/school-admin | 6ddb199fda77ded6379226890b88d9c272587ef8 | 40f53a2b496e61affb8109d25f5ee685f334cfe6 | refs/heads/master | 2022-12-13T12:00:19.641683 | 2020-03-15T03:22:22 | 2020-03-15T03:22:22 | 155,252,989 | 0 | 0 | null | 2022-12-08T01:21:34 | 2018-10-29T17:28:53 | Python | UTF-8 | Python | false | false | 408 | py | from schoolAdmin.settings.base import *
DEBUG = False
SECRET_KEY = os.environ['SECRET_KEY']
ALLOWED_HOSTS = ['*']
try:
from schoolAdmin.settings.local import *
EMAIL_USE_TLS = EMAIL_USE_TLS
EMAIL_HOST = EMAIL_HOST
EMAIL_HOST_USER = EMAIL_HOST_USER
EMAIL_PORT = EMAIL_PORT
EMAIL_HOST_PASSWORD =... | [
"tberhanu@berkeley.edu"
] | tberhanu@berkeley.edu |
1c02c9eb8b4bf439e161198a96f0bbcc850f478c | 31141d90a7fda02b75e11db485da9e4abf6a23d4 | /django_amazon_scrapper/scrapper/parsers/base.py | 75ec9d9ea17160c71d7afb4d0f3b74ad9dd92ab9 | [] | no_license | reckonsys/django-amazon-scrapper | 7d7482738ed68475bb004fce5cec76c1e86814be | 7c8b9f98440b749b316bc3b1575c65d355ede42d | refs/heads/master | 2022-07-16T02:36:38.850625 | 2020-05-13T03:09:49 | 2020-05-13T03:09:49 | 262,225,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py | from re import compile
from datetime import datetime
from parsel.selector import Selector
from django_amazon_scrapper.scrapper.config import (
MAX_ANSWER_PAGES, MAX_QUESTION_PAGES, MAX_REVIEW_PAGES)
non_numeric = compile('[^0-9\.]+') # noqa: W605
def rating_transform(text):
return text.split(' ')[0]
def... | [
"dhilipsiva@pm.me"
] | dhilipsiva@pm.me |
9b6c103c6162f31075ac9f777a6e95e461cd3f81 | eab5f1c8292a76babb0e1b86471db954ac0d1a41 | /guvi88.py | 28e24d48c62abf3a1feff32e153afa5c9941d185 | [] | no_license | pavanimallem/pavs3 | 56cabfa7cc56c650746cbf80296e6fe32578f953 | c43e6b2993317c438554bbcae304eb6aa6763801 | refs/heads/master | 2020-03-24T07:26:10.827892 | 2018-09-19T11:18:24 | 2018-09-19T11:18:24 | 142,564,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | N,M=map(int,raw_input().split())
if(N>M):
max1=N
else:
max1=M
while(1):
if(max1%N==0 and max1%M==0):
print(max1)
break
else:
max1=max1+1
| [
"noreply@github.com"
] | pavanimallem.noreply@github.com |
93669d48aa5488c35c0bea7bfd91f54922420401 | 1720aa75167aa0837a727e16761e3b65acadcba7 | /doc/source/serve/doc_code/monitoring/request_id.py | c7ba3d967f6c8b2b332b857db681d5f6ef6720b3 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pcmoritz/ray-1 | 3fd0dbf300cb4c1ce791555f4691e1101c1edbee | c5e78dc0c8a3e2c099451f37e54ab6b6fe8a004a | refs/heads/master | 2023-08-17T05:36:11.528122 | 2023-07-25T21:39:48 | 2023-07-25T21:39:48 | 77,173,450 | 0 | 1 | Apache-2.0 | 2023-03-04T08:57:43 | 2016-12-22T20:21:46 | Python | UTF-8 | Python | false | false | 287 | py | from ray import serve
import requests
@serve.deployment
class Model:
def __call__(self) -> int:
return 1
serve.run(Model.bind())
resp = requests.get(
"http://localhost:8000", headers={"RAY_SERVE_REQUEST_ID": "123-234"}
)
print(resp.headers["RAY_SERVE_REQUEST_ID"])
| [
"noreply@github.com"
] | pcmoritz.noreply@github.com |
8a6d280b4c76654188379111fba1e448cc3cb51a | 58dd5b7ca717527bb68d1485510dd312c52283fc | /gallery/urls.py | 04ccfd586d0a6cd4e50ddaabf4926e68612a6957 | [
"MIT"
] | permissive | kitili/MOVOTIA-GALLERY | 594e5b3b99005727ba5ada546d3ef5aad529479f | 1baea1a9451fd2c149fddfbc1ffb750b89e25da3 | refs/heads/main | 2023-07-27T07:52:25.803811 | 2021-09-07T16:57:33 | 2021-09-07T16:57:33 | 402,788,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | from django.conf.urls import url
from django.contrib import admin
from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns=[
url(r'^$',views.welcome,name='home-page'),
url(r'^search/',views.search_results, name='search_results'),
... | [
"you@example.com"
] | you@example.com |
ed9e9c81d9d6b77bf9787d9b96897f464c7c132d | 6d91c5629575f972888b695990504b89364abf6b | /processing/process.py | 50d09ceb07297f9486ee6a00b5c91eff4afdf52b | [] | no_license | YerongLi/BFGD-sgns | 5772147de3ccbaaf1d72e0bfa94c51f9dbbe2257 | e51ad4bb32d7e2aca66aaf05f751e42ba4a52e54 | refs/heads/master | 2020-03-21T10:26:37.165527 | 2018-10-16T23:36:41 | 2018-10-16T23:36:41 | 138,450,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from until.word2vec_as_MF import Word2vecMF
import numpy as np
data = []
with open('enwik9.txt') as file:
for line in file:
data+= [line[:-1]]
def wiki_to_wordlist(sentence, remove_stopwords=True ):
# Function to convert a document to a sequence of words,
# optionally removing stop words. Returns... | [
"yerong.li@outlook.com"
] | yerong.li@outlook.com |
c1aee647ea25dbaf8c0b3f15fdf7ab746a9773e4 | 76462e0a338eea3ef56d46a5e4961cb4ca3dfafe | /conv_model.py | 089f8814663f39a202fb6f95f17796e507ad873b | [] | no_license | chengyang317/information_pursuit | 7183f3b893027b014bb4a99c91599af15604489f | c0ccbb7c64bac9ba69e7c0326f6146cf2a39c8fa | refs/heads/master | 2021-01-10T13:36:32.436830 | 2016-04-16T06:50:45 | 2016-04-16T06:50:45 | 55,868,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | import conv_net
import dataset
class ConvModel(object):
def __init__(self, images_percent, network_percent, batch_size):
# self.work_path = '/scratch/dataset/information_pursue'
# self.dataset_path = '/scratch/dataset/information_pursue'
# self.images_path = '/scratch/dataset/256_ObjectCat... | [
"chengyang317@gmail.com"
] | chengyang317@gmail.com |
542541cd59d09901b3df635b452fe145209386bc | a53998e56ee06a96d59d97b2601fd6ec1e4124d7 | /线程/网络编程/block_IO.py | 91c7a77805d1761100064fd307fa5f4fb777ff3a | [] | no_license | zh-en520/aid1901 | f0ec0ec54e3fd616a2a85883da16670f34d4f873 | a56f82d0ea60b2395deacc57c4bdf3b6bc73bd2e | refs/heads/master | 2020-06-28T21:16:22.259665 | 2019-08-03T07:09:29 | 2019-08-03T07:09:29 | 200,344,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from socket import *
from time import ctime,sleep
sockfd = socket()
sockfd.bind(('127.0.0.1',8888))
sockfd.listen(5)
#设置非阻塞IO
# sockfd.setblocking(False)
sockfd.settimeout(5)
while True:
print('Waiting for connect...')
try:
connfd,addr = sockfd.accept()
except BlockingIOError:
sleep(2)
... | [
"zh_en520@163.com"
] | zh_en520@163.com |
08b2334bcc864a9bfb11eec1a58140c908b2e477 | 6646f6b92e9ff31f2f74b749ea12ace53cfc135c | /app/blueprints/payments/services.py | 97dbcf35e359b21ffbaa0c4dcd5dbeae462e0f98 | [] | no_license | EricMontague/SponsorMatch | 0a6685edb44b2694824d3d3a4d15dfcb42fdb68e | 864aa3cfe25d74c2b97b9f09f45eb9fa10dac892 | refs/heads/master | 2022-12-08T22:43:21.684165 | 2021-03-19T00:50:06 | 2021-03-19T00:50:06 | 241,396,411 | 0 | 0 | null | 2022-12-08T03:38:23 | 2020-02-18T15:27:42 | Python | UTF-8 | Python | false | false | 1,366 | py | """This module contains functions that abstract away operations for
the payment blueprint.
"""
import uuid
from datetime import datetime
from http import HTTPStatus
from app.models import Event, Sponsorship, Package
class OutOfStock(Exception):
pass
def validate_checkout_success(data, current_user, user_session... | [
"eric.g.montague@gmail.com"
] | eric.g.montague@gmail.com |
c00242f65b21ea5cc172ed575dff92f340ba4367 | bd02769c3f8cbd250c0c488c580852b28bda2ff4 | /venv/Lib/site-packages/instruments/tests/test_hp/test_hpe3631a.py | f2eda828681f93845587d0419375987f8ae70874 | [] | no_license | LiamDroog/DG645-Interface | 01ef09083b3e08de186ddef00cd0cc3a774e468b | 5f81ea76797893f807bb2a8b4a967de1f8effba0 | refs/heads/master | 2023-06-30T01:39:42.142594 | 2021-08-04T15:05:01 | 2021-08-04T15:05:01 | 387,855,182 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,792 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module containing tests for the HP E3631A power supply
"""
# IMPORTS #####################################################################
from __future__ import absolute_import
import quantities as pq
import instruments as ik
from instruments.tests import expected_... | [
"droog@ualberta.ca"
] | droog@ualberta.ca |
c9ac6bdc93fce27473332e2daf6b1cbdc2f29bb7 | c7b5349181973a0a4a43caab5f093e1b7b328a78 | /backend/users/migrations/0002_auto_20210614_1607.py | 46436b5e4d86992d9f9be5ad0842f16dc26c0069 | [] | no_license | crowdbotics-apps/carexdoc-27970 | 7f5d0d00e6dcd00b4a63e15a9c2622a821a87869 | fd010351994205f6ffd97a570ef787231833a11f | refs/heads/master | 2023-06-03T06:44:23.163755 | 2021-06-14T16:07:51 | 2021-06-14T16:07:51 | 376,880,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.20 on 2021-06-14 16:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='name',
field=... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
26e7b80b25339b4b3e5ef345dbf48294ee4c7dcc | 6c8d8b1c5b02e3181efd41b5b227f8905f474fa9 | /neural network/emnist-pytorch/test.py | 8920642f5caf813e595561ff05e512533b1e77a2 | [] | no_license | DXV-HUST-SoICT/data_mining_mini_projects | 9203990a620546fb61ee571090ef51e16242054d | c1010a4f39b5b114ad58ae1f3224435c3a84f50e | refs/heads/master | 2022-11-01T08:38:21.141429 | 2020-06-16T12:01:32 | 2020-06-16T12:01:32 | 257,429,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,243 | py |
from config import get_config
from load_data import *
from PIL import Image
import torch.nn.functional as F
import torch
import cv2
import numpy as np
import glob
from backbone.mobilev3.mobilenetV3 import mobilenetv3
import glob
from alignment.retinaface import Retinaface_Detector
import torch.nn.functional as F
imp... | [
"vuong.1998@gmail.com"
] | vuong.1998@gmail.com |
94fc1330466f2f1af57653cf1ef6ae8288d3191a | 1ffa998ab070d1b96cf6350fa8050c0ae5b3b029 | /009.GUI编程/scripts/scrolledcanvas.py | d30699152826f468f6a1d84fc3697a1ca8a60e12 | [] | no_license | YangBin1729/python_notes | 849723206833d523e39c1588aec4e4d9ff197d7d | d0e6a0e0044013efe93ee28444d444236666545a | refs/heads/master | 2020-08-14T02:50:14.845091 | 2019-10-14T16:01:20 | 2019-10-14T16:01:20 | 215,083,908 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | #!python3
# scrolledcanvas.py -
from tkinter import *
class ScrolledCanvas(Frame):
def __init__(self, parent=None, color='white'):
Frame.__init__(self, parent=None)
self.pack(expand=YES, fill=BOTH)
canv = Canvas(self, bg=color, relief=SUNKEN)
canv.config(width=500, height=300) ... | [
"360661716@qq.com"
] | 360661716@qq.com |
ee0cb6191a701cf94a798acba61fff961a626cbe | 3d31eaec2f8d1757b94316bcc78a8ad08e42e529 | /tests/conftest.py | 3edf8ea6af1c56dccbc77affe94e32a9418e6636 | [
"MIT"
] | permissive | mwchase/python-mypy-structured-data | 48d27fa6bf51c0de1872a4d576d9a65e030a5ba0 | 251ebffcb8698a9b7c2734d163144f645e5e7361 | refs/heads/master | 2020-04-29T10:11:52.803285 | 2019-03-18T11:04:22 | 2019-03-18T11:04:22 | 176,052,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | import pytest
@pytest.fixture(scope="session")
def mypy_structured_data():
import mypy_structured_data as _mypy_structured_data
return _mypy_structured_data
| [
"max.chase@gmail.com"
] | max.chase@gmail.com |
5e05b462d2d08e4b4a7a183d9f35fe302e6a3632 | daf28ed3f20340a136f19d582019fbd2554b6ea6 | /python/Ds_NonPrompt_kstar892kkpi_pt1p8_cfg.py | 3e9689a686f50d4b977fb52bfb144d5231e12781 | [] | no_license | NiharSaha/Ds_MC_Gen_fragment | ccb4d48a80e46c260da0c7c7e821ad4da12f6a43 | b9bf94cb4f0cf4ffa2619e4671a8c70ca37aaf5d | refs/heads/master | 2022-01-08T10:31:43.544326 | 2018-04-12T19:45:30 | 2018-04-12T19:45:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py |
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
from GeneratorInterface.EvtGenInterface.EvtGenSetting_cff import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
pythiaPylistVerbosity = c... | [
"peng43@purdue.edu"
] | peng43@purdue.edu |
aac0d25784e840b17c4a9184289a36081dea4159 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/monitor/models/DescribeDatasourceEnd.py | c966d56eae7d86919ac88b98c37f47f62daca439 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,426 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"tancong@jd.com"
] | tancong@jd.com |
16922aae8b82a73bb4b642746b65e4da7177d494 | 0f556b9d4e250df73bf1e0929dbd4afad51e82fe | /test_currency_sign_invalid_values/test_currency_sign_invalid_values.py | 43f1ab42deeeffaf2a43b946acadd147bfb367e6 | [] | no_license | unabl4/PythonCodeClub | 0ef1cb4d145860a4fda528c2eea513d0ba6b8327 | 72d5887342c1e0b304307a0e0ac9eb78f0202c35 | refs/heads/master | 2021-04-30T04:42:03.266029 | 2019-02-18T22:09:12 | 2019-02-18T22:09:12 | 121,541,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | # https://pyspace.eu/ws/thorgate/ch/37/
import pytest
def currency_sign_from_name(name):
mapping = {
'euro': '€',
'dollar': '$',
'pound': '£'
}
if name.lower() in mapping:
return mapping[name.lower()]
raise ValueError(f'Name of currency not one of ["euro", "dollar", "po... | [
"unabl4@gmail.com"
] | unabl4@gmail.com |
328c8a9bf1a24fce1677e71befabd5c226a2a775 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Integration/trend_MovingAverage/cycle_5/ar_/test_artificial_1024_Integration_MovingAverage_5__20.py | e1afb73035273913aa109f8e355d3ac5ab7cc8fa | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 271 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 5, transform = "Integration", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
9402361bc4ef792187d906d289f1d37b7320845f | 603284928313c2245b426ab66fff1c237019b55a | /2.79/Sets/toolplus_align/ops_main/align_mirror.py | 1e5984ed816e63f26438d970f12e306af41a947f | [] | no_license | Pumpkin-Studios/ToolPlus | d663239e61aa1a2676c14c8494c19e4d09de9ffc | fc59449c33358d1087fe798bbdae71cc7bf20778 | refs/heads/master | 2020-04-03T17:55:54.804723 | 2017-12-10T19:30:28 | 2017-12-10T19:30:28 | 155,464,330 | 1 | 0 | null | 2018-10-30T22:57:13 | 2018-10-30T22:26:52 | Python | UTF-8 | Python | false | false | 4,315 | py | # ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distrib... | [
"cgdroste@gmail.com"
] | cgdroste@gmail.com |
83ff9b23abf99b9fa13829ea8c406c5a3f05df4c | 748c4ba7058336eb2d09b413066d21582e26d71b | /discussions/migrations/0002_unique_channel_name.py | 385dcf8e866a9cc88710037a996626247ca5ad52 | [
"BSD-3-Clause"
] | permissive | mitodl/open-discussions | 6dbb8ae2843263889634849ddd9096f74536b78e | ba7442482da97d463302658c0aac989567ee1241 | refs/heads/master | 2023-08-10T02:54:45.706067 | 2023-08-01T17:05:36 | 2023-08-01T17:05:36 | 93,760,926 | 13 | 3 | BSD-3-Clause | 2023-08-01T17:05:40 | 2017-06-08T14:46:35 | Python | UTF-8 | Python | false | false | 751 | py | # Generated by Django 2.2.27 on 2022-07-22 18:42
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("discussions", "0001_add_channels"),
]
operations = [
migrations.AlterField(
model_name="channel",... | [
"noreply@github.com"
] | mitodl.noreply@github.com |
4ff655e7a1fa886fe509102222821292165e3df2 | 02e8612fbc33b6e6a26e3f935db5069693b58f76 | /prepalgo/Trees/binary-tree-preorder-traversal.py | 263d7c54623c80457b735cc2be157bf49bf182db | [] | no_license | arsaikia/Data_Structures_and_Algorithms | f6fe2547d9ebb5750e7d88cc1ee7e6a2b858ecd9 | bdb9037349e82d72d9833ea1fa7102a66b43a9f2 | refs/heads/master | 2023-07-12T20:16:43.067906 | 2023-07-12T07:10:28 | 2023-07-12T07:10:28 | 219,902,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | # O(N) Time | O(N) Space
def recursivePreorderTraversal(self, root: Optional[TreeNode]) -> List[int]:
result = []
def recursivePreorder(node):
if not node:
return
result.append(node.val)
recursivePreorder(node.left)
recursivePreorder(node.right)
return node... | [
"arunabh.matrix@gmail.com"
] | arunabh.matrix@gmail.com |
e3d3225909bfc1ea48128e4b610586143a839609 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_03_01/_configuration.py | 5ffcfcdccd3938b48fbf8078364da3cfd961d196 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 3,610 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
093d7d37b4ea21dc042777327500efa18b7b7dbc | 53bdd0fb7fd6666fec4a156a8c616bc32941c1df | /367_valid_perfect_square/_2.py | e6f324078235ae1dc3ba8ffa53326076b4ff25ed | [] | no_license | chxj1992/leetcode-exercise | 663f138c11ab8a8351fcd584199c6d103befdfac | 248b620791611001ebb471dcf8284437264b2f20 | refs/heads/master | 2021-07-08T17:57:08.329390 | 2021-04-15T09:59:17 | 2021-04-15T09:59:17 | 236,332,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import unittest
class Solution:
def isPerfectSquare(self, num: int) -> bool:
prev, curr = num, 0
while prev - curr > 1:
prev = curr if curr > 0 else num
curr = (prev + num / prev) / 2
return int(prev) * int(prev) == num
class Test(unittest.TestCase):
def test... | [
"chxj1992@gmail.com"
] | chxj1992@gmail.com |
a1af1e8f7bdea8bcf06c6a43071faa01dd04feed | 9d4a03990d94e9fb0248ec94875376c82139891a | /Python实战:四周实现爬虫系统/week_2/第二周实战项目/page_parsing.py | 56fca609d019baac9aef81fc71571b10d091f737 | [] | no_license | wenhaoliang/learn-python | 114744f3c94859f665a998b03c6d5f5d908fb94d | bd31daa34cc79f3171a2e195c149af60a7e0ebed | refs/heads/master | 2020-04-16T02:14:36.345629 | 2019-07-06T12:26:23 | 2019-07-06T12:26:23 | 58,053,238 | 7 | 7 | null | 2017-07-21T09:35:55 | 2016-05-04T13:14:26 | Python | UTF-8 | Python | false | false | 1,890 | py | import pymongo
import requests
from bs4 import BeautifulSoup
import time
client = pymongo.MongoClient('localhost', 27017)
ganji = client['ganji']
ganji_data2 = ganji['ganji_data2']
ganji_url = ganji['ganji_url']
def get_pages(base_url):
pages_url = []
# http://zz.ganji.com/xuniwupin/o2/
for i in range(1,... | [
"641541452@qq.com"
] | 641541452@qq.com |
922abc2031be5b62c9e058bd09d7b55c70ea4c04 | 0c1bfd0ba861f1abeff506f4b28289189474ca3b | /blueblog/urls.py | ba67d48d3157bdebef4af530fbde698c55b187fd | [] | no_license | jrjames83/blueblog | abc267a95cd5e2dce0b13eccca16d86764e667c2 | b5ca49e47275e384d41ffb8bd8f30882298693f1 | refs/heads/master | 2020-05-29T15:12:54.306150 | 2016-07-09T03:36:02 | 2016-07-09T03:36:02 | 62,930,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,010 | py | from django.conf.urls import include
from django.conf.urls import url
from django.contrib import admin
from django.views.generic import TemplateView
from accounts.views import UserRegistrationView
from django.contrib.auth.views import login
from django.contrib.auth.views import logout
from blog.views import NewBlogView... | [
"="
] | = |
14ae5aa5b0361304720216f6350ae303c6d27619 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /045_functions/004_closures/_exercises/001/004_closures_template_003_Python Closures.py | 23b940d5ab218fd852ad01e0253af1facb4efd25 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 450 | py | # Python program to illustrate
# nested functions
# ___ outerFunction text
# text _ t..
#
# ___ innerFunction
# print t..
#
# ?
#
#
# __ ______ __ ______
# o.. Hey!
# Python program to illustrate
# closures
# ___ outerFunction text
# text _ t..
#
# ___ innerFunction
# print t...... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f19934fbe801503013f830a2425bc39e53d0fc4d | ad1e7db1102a1310a8bd48bb3c25abc8f763faff | /Medium Problems/longest-zig-zag-subsequence.py | 48ffeb962584a7e06ecb66ecfb88359091c80919 | [] | no_license | AggarwalAnshul/Dynamic-Programming | 2b3beb3673ab83501ea954cea00d087f2c44c3d8 | b08487d45b9f1653468bb2f9169e5eac64ef5f2d | refs/heads/master | 2020-06-26T14:20:40.673045 | 2020-04-17T09:17:17 | 2020-04-17T09:17:17 | 199,656,737 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | """
#M.52
Longest Zig-Zag Subsequence
The longest Zig-Zag subsequence problem is to find length of the longest subsequence of given sequence such that all elements of this are alternating.
If a sequence {x1, x2, .. xn} is alternating sequence then its element satisfy one of the following relation :
x1 < x2 > x3 < x... | [
"anshul.aggarwal.sfd@gmail.com"
] | anshul.aggarwal.sfd@gmail.com |
d77a61e56f1ef81a78385da4e37cd5b3c2bec376 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03281/s953545433.py | c4ad34b0e8b41c0a5278ea5a839881a28d0e4c55 | [] | 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 | 278 | py | n = int(input())
cnt = 0
def sympy(num):
l = []
for i in range(1, num+1):
for j in range(1, num+1):
if (i % 2 != 0) and (i*j == num):
l.append(i)
return l
for i in range(1, n+1):
l = sympy(i)
if (i % 2 != 0) and (len(l) == 8):
cnt += 1
print(cnt) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
af6ec1da362d30e939baaf590762e77cba3f1b85 | 1113b5b7838d666d1e5fc6352ded5c47d2e1db1a | /Regex_and_Parsing/Re.findall()&Re.finditer().py | cc352d436faa37d47b5bab9ce7b6bbccfb0bc57c | [
"MIT"
] | permissive | NikolayVaklinov10/Python_Challenges | 84b118f7d9e3855b8c79659609fdc7f46b605a20 | a1052e1d527004bbb6072a3cbc802065469f66ae | refs/heads/master | 2020-08-29T00:32:23.045278 | 2019-11-06T18:11:26 | 2019-11-06T18:11:26 | 217,866,654 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | """
re.findall()
The expression re.findall() returns all the non-overlapping matches of patterns in a string as a list of strings.
Code
#>>> import re
#>>> re.findall(r'\w','http://www.hackerrank.com/')
['h', 't', 't', 'p', 'w', 'w', 'w', 'h', 'a', 'c', 'k', 'e', 'r', 'r', 'a', 'n', 'k', 'c', 'o', 'm']
re.finditer(... | [
"nikolayvaklinov@yahoo.com"
] | nikolayvaklinov@yahoo.com |
ea3d02e8f5f49d287af457fcaae3a0d08c76ca82 | 1c3f5f1bdf0e24f5d6db968572f13c860ac1c06e | /src/scs_analysis/sample_error.py | ef14ea090c5bcaff5b2b0299d65a82415cc40431 | [
"MIT"
] | permissive | kbschulte/scs_analysis | 62a97dd2f719db59e295175759d9490a59cda011 | 5df0c6ba3d284993732eb60e4275ffaaf2f55b86 | refs/heads/master | 2023-08-29T06:48:44.813246 | 2021-11-05T08:59:17 | 2021-11-05T08:59:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,674 | py | #!/usr/bin/env python3
"""
Created on 6 Nov 2019
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
source repo: scs_analysis
DESCRIPTION
The sample_error utility is used to compute either the difference between or the ratio of a reported value and a
reference value for a given path is a stream of JSON docu... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
e0041a2b6462a1b7d01224a176021c440a40066b | 06b95aa8c6133cfb2fc145b6c7836ab698d3eb31 | /seq2seq.py | 2a08a6d9101ea6c701ade2b795ec1344fcf62e04 | [] | no_license | marii-moe/course-nlp | f90640067ad837c9a943215b677d910aa6f18485 | 59c261b11a4e4e44051985062af540dee6088e32 | refs/heads/master | 2023-08-03T20:32:17.008685 | 2021-09-09T07:17:43 | 2021-09-09T07:17:43 | 384,071,869 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | from fastai.text import *
def seq2seq_collate(samples:BatchSamples, pad_idx:int=1, pad_first:bool=True, backwards:bool=False) -> Tuple[LongTensor, LongTensor]:
"Function that collect samples and adds padding. Flips token order if needed"
samples = to_data(samples)
max_len_x,max_len_y = max([len(s[0]) for s... | [
"j@fast.ai"
] | j@fast.ai |
a0f68f155556bd5e2954ab921529f4b8a08b6220 | 00f3474dfd326a7c1d21124bdc9267d8fd4373f0 | /report2/2-6-astar/field.py | 2e9f2e86eb6e5b04887bf15e206d6b5d5d21c0cc | [] | no_license | jre233kei/aia-kadai | d2d764de0ddff0fbb73ad4ae04635ef5dba75490 | 3732e8bd8772d71dc6549c971b602067a44a5537 | refs/heads/master | 2020-06-12T09:42:15.174053 | 2019-07-05T14:59:39 | 2019-07-05T14:59:39 | 194,261,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import vector2 as vec2
class field:
field = {}
def __init__(self, txt):
for i in range(len(txt)):
for j in range(len(txt[i])):
self.field[vec2.vector2(j, i)] = txt[i][j]
def get_tile(self, pos):
return self.field.get(pos)
def __str__(self):
return... | [
"jre233kei+github@gmail.com"
] | jre233kei+github@gmail.com |
2960210a9ccc0d92f11cb5128ca0f6d1dc5d32cc | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/.svn/pristine/29/2960210a9ccc0d92f11cb5128ca0f6d1dc5d32cc.svn-base | 065599a02d8ba6d88138e92acc8ca16c130d9ced | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,074 | from KratosMultiphysics import *
class PointOutputProcess(Process):
defaults = Parameters('''{
"position" : [],
"output_file_name" : "",
"output_variables" : []
}''')
def __init__(self,model_part,params):
self.model_part = model_part
# Note: params is expected... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com | |
88021272c5da86f4848aa0930cff14f6c8c60b88 | 3f31ff163eb82d915715f705e231ba3cc3bffc31 | /test/manual/hooks_progress_bar_hook_test.py | 4184b04149f42608db3b61e6daeb9c4392ca011a | [
"MIT",
"Apache-2.0"
] | permissive | facebookresearch/ClassyVision | 6b7ffb28c771579f56258f38aea0b012cbf95129 | 08a82e88fcfa143933832994ace2424c03dd43b8 | refs/heads/main | 2023-09-04T01:14:08.507494 | 2023-03-23T14:35:34 | 2023-03-23T14:35:34 | 208,358,969 | 1,673 | 321 | MIT | 2023-05-08T19:21:37 | 2019-09-13T22:54:44 | Python | UTF-8 | Python | false | false | 3,811 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import unittest
import unittest.mock as mock
import progressbar
from classy_vision.hooks import ProgressBarHook
from... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
12551e624c4178f7c93898df682093dd2847e645 | 9127a5582694a055e7c64ae65ae97a11728ff82f | /cunt/wallet/lineage_proof.py | a523e095f192e80135244e765d556767c09cc9f0 | [
"Apache-2.0"
] | permissive | nahvan/cunt-blockchain | 0f881df58f3ca5fe554b52a025437053df6f1037 | 447084a809ec0339bcd24f7141f39ee0e8dddffa | refs/heads/main | 2023-06-24T16:47:31.099801 | 2021-07-29T21:17:02 | 2021-07-29T21:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from dataclasses import dataclass
from typing import Optional
from cunt.types.blockchain_format.sized_bytes import bytes32
from cunt.util.ints import uint64
from cunt.util.streamable import Streamable, streamable
@dataclass(frozen=True)
@streamable
class LineageProof(Streamable):
parent_name: bytes32
inner_p... | [
"svginsomnia@gmail.com"
] | svginsomnia@gmail.com |
776bd875cd44410017cb82362ea93a685e2037fa | 7060767e3d4a0201f02016426c83f5be7b8f7a2b | /src/travel/views.py | 3bcb1a98a0fee28c97bd01260c6baccf60aaea21 | [] | no_license | syurskyi/dj_basic | 8a2dba011b51a90c62e5e72518af841291857da3 | 0fb58a71e49cf4dd4a8cc300284fe9ec8047468d | refs/heads/master | 2020-09-22T07:21:42.464737 | 2019-12-01T04:36:23 | 2019-12-01T04:36:23 | 225,103,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from django.http import HttpResponse
from django.shortcuts import render
# def home_view(request):
# name = "Grey"
# html = """<html> <body>
# <h1> Hello {}!!! </h1>
# </body></html""".format(name)
# return HttpResponse(html)
def home_view(request):
name = "Grey"
context = {'name': 'Maja'}... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
99c832406851ce208ab1aafc86f3ffefe3a710f0 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_96/1815.py | 30fda40c380702317a5538ced9f409e2d252bca7 | [] | 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 | 1,457 | py | import math
if __name__ == '__main__':
inputFile = open('G:\\codejam\\B-small-attempt0.in', 'r+')
outputFile = open('G:\\codejam\\output.txt', 'r+')
inputString = inputFile.read()
splitString = inputString.split('\n')
for j in xrange(1,len(splitString)):
if len(splitString[j])... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8c748b442791a9db4cfd31225382c66b734568be | 908655251066427f654ee33ebdf804f9f302fcc3 | /Tests/CartPoleAST/CartPoleNd/MultiCartPoleNd_RS.py | d3f9dfea3411355a7a537b2ae630bb677078cc3b | [] | no_license | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,917 | py | import mcts.AdaptiveStressTestingRandomSeed as AST_RS
import mcts.ASTSim as ASTSim
import mcts.MCTSdpw as MCTSdpw
import mcts.AST_MCTS as AST_MCTS
import numpy as np
from mylab.envs.tfenv import TfEnv
from mylab.rewards.ast_reward import ASTReward
from mylab.envs.ast_env import ASTEnv
from mylab.simulators.policy_simul... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
fbccdfff0aca6d2d7c011e03ffc14cecc9f1d706 | 97df2c66247e02082a68194bf1e5fb3d01c96468 | /jina/peapods/runtimes/gateway/http/__init__.py | 5ce15c0dbdf6cb2354daa1ae8a2e82e80e652941 | [
"Apache-2.0"
] | permissive | VenusTokyo/jina | fecd8ecb35928158f436ada90e773c4eccbf7b64 | 4265163fafe499f80dc52be4a437087bf3c1799f | refs/heads/master | 2023-07-31T13:18:51.727331 | 2021-10-02T12:22:59 | 2021-10-02T12:22:59 | 407,812,228 | 1 | 1 | Apache-2.0 | 2021-10-02T12:23:00 | 2021-09-18T09:10:57 | null | UTF-8 | Python | false | false | 2,300 | py | import os
import asyncio
from jina import __default_host__
from .....importer import ImportExtensions
from ...zmq.asyncio import AsyncNewLoopRuntime
from .app import get_fastapi_app
__all__ = ['HTTPRuntime']
class HTTPRuntime(AsyncNewLoopRuntime):
"""Runtime for HTTP interface."""
async def async_setup(se... | [
"noreply@github.com"
] | VenusTokyo.noreply@github.com |
e67ced7756ea90baae62d1af58b07a428526630b | f6c6085c34ac6e1b494ff039cd0173b47cc9c6c4 | /tests/unit/services/orga/test_birthday_service.py | fddb477e30a1cda9eb6cc8024edb94c0a77bc7f5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FakoorCo/byceps | 971042f598a12c00465b0c3a714f4ac7dbdc9d5b | 11290b154b83f5ac3a9530fb6cd752b3d7a3989b | refs/heads/main | 2023-01-23T18:53:59.930267 | 2020-11-30T01:09:20 | 2020-11-30T01:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | """
:Copyright: 2006-2020 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from datetime import date
from typing import Tuple
from freezegun import freeze_time
from byceps.services.orga import birthday_service
from byceps.services.orga.transfer.models import Birthday
from byceps.servic... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
378c1641d2342999ae262c3ee919759d2f11cb37 | cb43ac7cb39c1d71c465a818221fedf6831df34f | /api/serializers.py | a22e3fb3ad567d6a53ab45f974bc7632cd1fb4af | [] | no_license | manchos/umlkrest | 6f68015c02a9421d45f0f64e2f5d89ae98164e9f | 918ba3adae94cf89d5cdf6e326ab766ab0a5897a | refs/heads/master | 2021-01-25T09:45:29.084087 | 2018-02-28T17:41:21 | 2018-02-28T17:41:21 | 123,319,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from api.models import Object
from rest_framework import serializers
class ObjectSerializer(serializers.ModelSerializer):
distance = serializers.DecimalField(
source='distance.m', max_digits=10, decimal_places=2,
required=False, read_only=True
)
class Meta:
model = Object
... | [
"vladm.ru@gmail.com"
] | vladm.ru@gmail.com |
03961ca15f5ecca3a7616f95a0ef46f4b5944d2f | 0f667ab42b524010380bc9e525b3271f0b8cc50f | /discord/file.py | 8ba3a5253237f120f4b57c3a8d3f48ada57f542a | [
"MIT"
] | permissive | imayhaveborkedit/discord.py | eb20d9af63f50cadda27438903eae53bded5e017 | 0e061685b20d192599f413f5946bd5e4f1032b40 | refs/heads/voice-recv-mk2 | 2023-08-30T13:23:27.063788 | 2019-07-26T00:57:02 | 2019-12-10T22:00:36 | 56,896,450 | 51 | 55 | MIT | 2020-10-24T00:43:20 | 2016-04-23T02:34:07 | Python | UTF-8 | Python | false | false | 3,842 | py | # -*- coding: utf-8 -*-
"""
The MIT License (MIT)
Copyright (c) 2015-2019 Rapptz
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to u... | [
"rapptz@gmail.com"
] | rapptz@gmail.com |
332c87bd84f5e6b7436daccb83aa631b38b0232b | 406a3a44525e12b444d7bf52e5cf9a275fa57105 | /03StacksAndQueues/3.1three_in_one.py | a09f5c3aee456ad65d37cc14af99b19eb015aff1 | [] | no_license | seymakara/CTCI | a066cc82d8eed892f7898d8ad84cdd4c0118441d | af188647baa13de62307c0c1f317d148072eac26 | refs/heads/master | 2021-04-15T08:55:45.420072 | 2018-05-23T06:37:24 | 2018-05-23T06:37:24 | 126,376,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | class FixedMultiStack:
def __init__(self, stacksize):
self.numberOfstacks = 3
self.values = [0] * (stacksize * self.numberOfstacks)
self.sizes = [0] * self.numberOfstacks
self.stacksize = stacksize
def Push(self, item, stackNumber):
if self.IsFull(stackNumber):
... | [
"seymakara88@gmail.com"
] | seymakara88@gmail.com |
6ee05249332f3a7114c25aec3b8bd8e8f7817309 | 7f4306057991622329ed3ab43c8e338ebdfb6d74 | /pilgram/css/tests/test_brightness.py | 77150e2396de116d6c52361960504c59bab7d13e | [
"Apache-2.0"
] | permissive | akiomik/pilgram | d958312c98a5418d176ad884c50303e9f2731825 | 410252928e50e954472ff5ffcd45446aa8be32f7 | refs/heads/main | 2023-07-24T06:54:00.285954 | 2023-07-18T00:26:42 | 2023-07-18T00:26:42 | 169,348,812 | 90 | 19 | Apache-2.0 | 2023-09-12T12:31:08 | 2019-02-06T03:10:44 | Jupyter Notebook | UTF-8 | Python | false | false | 2,106 | py | # Copyright 2019 Akiomi Kamakura
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"akiomik@gmail.com"
] | akiomik@gmail.com |
6ed04aed7632b4728c5536370f320f4e4b85b0fd | 011157c49983db38489f26f51db7fe22f8519afc | /problems/1080.py | 7c4cf7c6e41f25ce77ead84e4369f944b7fcd45d | [] | no_license | chasecolford/Leetcode | c0054774d99e7294419039f580c1590495f950b3 | dded74e0c6e7a6c8c8df58bed3640864d0ae3b91 | refs/heads/master | 2023-08-04T11:33:18.003570 | 2021-09-10T21:06:55 | 2021-09-10T21:06:55 | 283,154,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | class Solution:
def sufficientSubset(self, root, limit):
if not root.left and not root.right: return None if root.val < limit else root
if root.left: root.left = self.sufficientSubset(root.left, limit - root.val)
if root.right: root.right = self.sufficientSubset(root.right, limit - root.val)... | [
"56804717+ChaseSinify@users.noreply.github.com"
] | 56804717+ChaseSinify@users.noreply.github.com |
e51b58affa51387a67e5468e76384e6d4a0d976d | 911d644fc8aba5c026ab51fa2ffb33698f7618a7 | /droidlet/perception/robot/detectron/detector/train_net.py | 515d60fda2d42d7d5c33bac98c99f65003e05c64 | [
"MIT"
] | permissive | adamlerer/droidlet | 3df03e89f0a3d6236152d96fa68c4e89a7d8701f | ada38d191dadcea9aba12330e35e8e7d6d1663d9 | refs/heads/main | 2023-05-15T07:38:22.731918 | 2021-06-09T07:09:28 | 2021-06-09T07:09:28 | 375,388,047 | 0 | 0 | MIT | 2021-06-09T14:40:15 | 2021-06-09T14:40:14 | null | UTF-8 | Python | false | false | 6,124 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
"""Locobot Detector Training Script.
This script is a simplified version of the training script in
detectron2/tools.
"""
import os
import pickle
import logging
import glob
import random
import detectron2.utils.comm as comm
... | [
"yuxuans@fb.com"
] | yuxuans@fb.com |
dc79ceafe3af25a78678fc4d928c78ab6530afd9 | 999879f8d18e041d7fa313132408b252aded47f8 | /01-codes/scikit-learn-master/examples/svm/plot_svm_regression.py | 6872adaa0b43648b58327bd3d7313dbd43852dbd | [
"BSD-3-Clause",
"MIT"
] | permissive | QPanProjects/Surrogate-Model | ebcaf05728e82dcbcd924c2edca1b490ab085173 | 848c7128201218b0819c9665e2cec72e3b1d29ac | refs/heads/master | 2022-10-11T19:03:55.224257 | 2020-06-09T14:37:35 | 2020-06-09T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | """
===================================================================
Support Vector Regression (SVR) using linear and non-linear kernels
===================================================================
Toy example of 1D regression using linear, polynomial and RBF kernels.
"""
print(__doc__)
import matplotlib.p... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
25fa99f5ec4cb7e9f79b51b46703be682bd35c1b | 7176f2afb8244e242756679d9711eb4e5fff349a | /am/search/forms.py | bfc71da216bf9fceadfe2d29a72b223d68ce1a96 | [
"BSD-2-Clause"
] | permissive | access-missouri/am-django-project | e841468ac22b305993c0a5056dd62cbd41169e9b | 2457b8089900c61c73000c1d7479b7a72f6d1855 | refs/heads/master | 2021-07-07T10:49:01.015014 | 2021-05-11T18:48:08 | 2021-05-11T18:48:08 | 85,356,930 | 4 | 1 | BSD-2-Clause | 2021-05-11T18:48:09 | 2017-03-17T21:40:41 | Python | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django import forms
from legislative.models import LegislativeSession
from select2.widgets import SelectMultiple
class SearchBillForm(forms.Form):
search_name = forms.CharField(required=False,
label="Keywords")
... | [
"nathan.Lawrence.barrick@gmail.com"
] | nathan.Lawrence.barrick@gmail.com |
1c6bfe7d692e9696743dc378203a25dc49c92186 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/call-121.py | 89221e08bf9768d0493fa422ee107ce8c7861903 | [] | 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 | 225 | py | def f() -> int:
print("start f")
g()
print("end f")
return 42
def g() -> object:
print("start g")
h()
print("end g")
def h() -> object:
print("start h")
print("end h")
print($ID())
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
9a60a22821e216048f6b2387ea62280c993b3a18 | 2aee45d23b47c6adba9eafc5a84d606a021f9300 | /hr_payroll/__manifest__.py | df655c247951580f4ce41eb2f80d254df197a709 | [] | no_license | charles-123456/Primoris-System | 23b183460ea79bfa8d896556aa35d62460154567 | 0880b8266eedfd0016a3b365c9939c34ad301155 | refs/heads/main | 2023-08-21T06:24:42.840026 | 2021-10-25T06:10:48 | 2021-10-25T06:10:48 | 385,922,247 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | #-*- coding:utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Payroll',
'category': 'Human Resources/Payroll',
'sequence': 290,
'summary': 'Manage your employee payroll records',
'description': "",
'installable': True,
'application': True,
'... | [
"charlesit333@gmail.com"
] | charlesit333@gmail.com |
71d4bb5b48567870389e4d009f0b2c9396bf54c1 | e3f8e1fb1297c2550e690404deccbaa805287962 | /fixed-point-iteration.py | b8a31b55310efc5de2c29d25007af0872a4d06c9 | [] | no_license | iluvjava/Numerical-Analysis | d5d3ac353859dc41c812e06421f2e5b9db8a69bf | facf2010f74814a0f1b7754e7c89f5e7a262dea3 | refs/heads/master | 2020-08-21T20:54:48.583703 | 2019-10-19T21:52:19 | 2019-10-19T21:52:19 | 216,243,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | InitialsConditions = [3, 5, 7]
def fix_point_itr(results, x0, func, maxItr = 6):
"""
result: (Array)
The results of the iteration will be appended to the given array.
x0: (number)
The initial condition of the iteration.
func: (Lambda function)
A function that represent the fixed point i... | [
"victor1301166040@gmail.com"
] | victor1301166040@gmail.com |
b156730ec47da3290f57950c917fb56591d1f861 | 2640ea91cc9c393e13f81661a8e6a5fc0614d035 | /rmspr/leasess/migrations/0003_auto_20181207_0842.py | dc36f904120b5c40adf591b235d6b8bde2abe250 | [] | no_license | revankarrajat/rent-management | 08a6b0e67158bcee8f5525a5129a89096fa1c7ca | c98c12e76016c82d32ea041d9aae15ef0a7ace40 | refs/heads/master | 2020-04-12T18:28:44.427296 | 2018-12-22T09:42:20 | 2018-12-22T09:42:20 | 162,680,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # Generated by Django 2.1.3 on 2018-12-07 08:42
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('leasess', '0002_renewal_leaseid'),
]
operations = [
migrations.RenameModel(
old_name='lease',
... | [
"rajatrevankar559@gmail.com"
] | rajatrevankar559@gmail.com |
02c5f1e856c0b6802ede3a5ed911e81f0c4906ee | 4c6d005d5fe864724f0d205d0efa8810f9d37c18 | /python-module/hoomd_script/globals.py | fdb737189b621299af2497d43b1d51041f2f2244 | [] | no_license | junghans/hoomd-blue | b1ee769e529c2b14de8b7427da77a5d2b5e2fd1b | f41f3484006e334ccebbe2decca25edf82fb8af1 | refs/heads/master | 2021-01-18T06:07:20.943001 | 2015-03-18T03:24:42 | 2015-03-18T13:58:29 | 32,435,100 | 0 | 0 | null | 2015-03-18T03:12:14 | 2015-03-18T03:12:14 | null | UTF-8 | Python | false | false | 5,067 | py | # -- start license --
# Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
# (HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of
# the University of Michigan All rights reserved.
# HOOMD-blue may contain modifications ("Contributions") provided, and to which
# copyright is... | [
"joaander@umich.edu"
] | joaander@umich.edu |
bfd243aaebcb701d5933bd7d55c027313ca73379 | 31299d4767361fc7c47754ac9d7b84524bffc4e3 | /bimebot.py | d3d707ac75542b9c2e45c52facafad8c151f1891 | [] | no_license | alirezahi/havijtelegram | 578fc9e232caa1d346b1f6e89c864bcb36151a75 | 33840d0dc454ca0c981fc46a7f5ba4eff0e732d5 | refs/heads/master | 2021-07-17T06:09:54.163042 | 2017-10-20T06:51:55 | 2017-10-20T06:51:55 | 107,537,202 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | import telebot
import urllib
from urllib.request import Request,urlopen
from telebot import types
token = '457388430:AAGVWHOUYzXl2i07YK_7Dw_sTvl7C5oxbxw'
bime_bot = telebot.TeleBot(token)
@bime_bot.message_handler(commands=['start','نوع پاسخگویی بات'])
def start_bot(message):
try:
markup = types.ReplyKe... | [
"alireza97hi@gmail.com"
] | alireza97hi@gmail.com |
56f7328c68b44844dd3d3be482c2bb6f7c99a404 | 900b98964288a9cb0aaf2e45706ae2b32f92657f | /examples/adspygoogle/dfp/v201208/creative_set_service/create_creative_set.py | 9f9e1b1f692692c2b4111c903448c58cb358ca40 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | krux/adspygoogle | df2405c2042aa9c9a83d97b8442afe68572e3e2e | 6505a71122f45fe3e675f27f2c29f67a1768069b | refs/heads/master | 2022-02-22T08:55:19.777002 | 2022-02-11T22:42:19 | 2022-02-11T22:42:19 | 7,103,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | #!/usr/bin/python
#
# Copyright 2012 Google Inc. 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 b... | [
"charlie@schluting.com"
] | charlie@schluting.com |
1547b184fa57c5cef025dd9c120d70863f433045 | 5332ae1af39902f893e716c608349140d067b7a9 | /orders/urls.py | 1b753b7da43cb8703fb4517748fd6865eb871ef2 | [] | no_license | Sumitpande/buyzu | 86ce967f2c750c7045d597cd13b2bef270f20a06 | ecc83dc736b1dbefb1fd9498eda9108015a84a09 | refs/heads/main | 2023-05-04T10:03:47.230050 | 2021-05-31T15:39:18 | 2021-05-31T15:39:18 | 329,566,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | from django.urls import path
from . import views
app_name = 'orders'
urlpatterns = [
path('create/', views.order_create, name='order_create'),
path('<int:pk>/invoice/', views.invoice, name='invoice'),
path('admin/order/<int:order_id>/', views.admin_order_detail,
name='admin_order_detail'),
... | [
"sumitakashpande1230@gmail.com"
] | sumitakashpande1230@gmail.com |
664741fc522f231dfafcd1c6a03cc3084ed6fd4c | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3997/codes/1671_1879.py | 39e478e293490269aa7c370e0b147a253be9962e | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # Ao testar sua solução, não se limite ao caso de exemplo.
ne = float(input("Digite nmr de hrs extras: "))
nf = float(input("Digite nmr de hrs q faltou: "))
print(ne, "extras", "e", nf, "de falta")
H = (ne) - 1/4 * (nf)
if(H>400):
G = 500.00
print("R$", round(G,2))
elif(H<=400):
G = 100.00
print("R$", round(G,2)... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
5bb5935533f26fe01d81728ce57cf00a50913b79 | 87e62af4768c0f594e675551f4c7c1c81ce7f7d9 | /lawyer/spiders/fagui/neimenggu/wlcbs_fagui_spider.py | 40880a4817f4be35ad00c314b3740652670d0453 | [] | no_license | dulei001/Spider | 78d12adbef1d865da6978704fe146cc21a8d2d3e | 628d468501c6502763ce453a58a09813b2a46b8c | refs/heads/master | 2021-01-18T17:27:11.771434 | 2019-05-14T02:14:33 | 2019-05-14T02:14:33 | 86,802,130 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
import re
import uuid
import scrapy
class wlcbsSpider(scrapy.Spider):
"""乌兰察布市"""
name = "wlcbs"
provinceName=u"内蒙古"
cityName=u"乌兰察布市"
provinceCode="15"
cityCode = "1510"
level=u"地方法规"
start_urls = [
'http://www.wulanchabu.gov.cn',
... | [
"280680441@qq.com"
] | 280680441@qq.com |
8b3cc632cc048eaeb244221093157b58ff9b0ccf | 35b6013c1943f37d1428afd2663c8aba0a02628d | /composer/airflow_1_samples/dataproc_workflow_template_instantiate_operator_tutorial.py | fff01d2d0c3b6351a97d8543d01bf471629a08d2 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 2,260 | py | # Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
8089447ce3b6c5c85cd5183df02e3decf8baf445 | 565548ff49844ed69ae16d5104e500f01c973402 | /app/test/test_post_model.py | bcf51fcceb8af1b3d8cb5b67654bbf398dafda95 | [] | no_license | jaisenbe58r/Pebrassos | 159ce5a8b372590fd9368d9b5b3c1b0513895bba | 7516a1f7bbba78547af86a9858ee381224964d28 | refs/heads/master | 2023-02-27T05:42:50.652697 | 2021-01-31T20:57:59 | 2021-01-31T20:57:59 | 299,698,630 | 3 | 1 | null | 2021-01-31T20:58:01 | 2020-09-29T18:04:36 | Jupyter Notebook | UTF-8 | Python | false | false | 1,487 | py | """Copyright (c) 2020 Jaime Sendra Berenguer & Carlos Mahiques Ballester
Pebrassos - Machine Learning Library Extensions
Author:Jaime Sendra Berenguer & Carlos Mahiques Ballester
<www.linkedin.com/in/jaisenbe>
License: MIT
FECHA DE CREACIÓN: 15/01/2020
"""
import unittest
from app.auth.models import User
from... | [
"jsendra@autis.es"
] | jsendra@autis.es |
e36eb1cbb426ae294b4c729e26a422e4223e4921 | 145cf2ab99b9510fccb58775d993ca99fc446592 | /plum_tools/utils/git.py | 28784165b5c775a52418b8b64fdcd8980b3e3726 | [
"Apache-2.0"
] | permissive | seekplum/plum_tools | b66ccc2b63bfb83ed83b58fb6aab7c64d31006b5 | 18d0f6726d3039c32cf7ac7279b2aa4f38de169c | refs/heads/master | 2023-08-04T16:36:07.931850 | 2023-07-24T10:47:01 | 2023-07-24T10:47:21 | 139,939,615 | 0 | 0 | Apache-2.0 | 2023-08-02T02:33:07 | 2018-07-06T05:57:29 | Python | UTF-8 | Python | false | false | 2,658 | py | # -*- coding: utf-8 -*-
"""
#=============================================================================
# ProjectName: plum_tools
# FileName: git
# Desc: git相关操作函数
# Author: seekplum
# Email: 1131909224m@sina.cn
# HomePage: seekplum.github.io
# Create: 2018-07-07 19:05
#=========... | [
"1131909224@qq.com"
] | 1131909224@qq.com |
7f9daaf52bb2cbc9e70e39403ffb22f2afad1a46 | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/service_processor/sp_pass_fail.py | 6b0bd0d07fdf3f9dcc0ba6188fbaad0707bb5c7c | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | class SpPassFail(basestring):
"""
Possible completion states of a task
Possible values:
<ul>
<li> "failed" - Operation failed,
<li> "passed" - Operation was successful
</ul>
"""
@staticmethod
def get_api_name():
return "sp-pass-fail"
| [
"radek@gruchalski.com"
] | radek@gruchalski.com |
b8879199d9f1ac9bd50b5d2e872ae5dd9b14bade | 060fbf2a69a90ad92de5fc877521d5ea6b298007 | /test/vanilla/Expected/AcceptanceTests/Xml/xmlservice/models/container_properties_py3.py | cd3cb11440812424656f459ab7e228c20a1cc4f6 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | iscai-msft/autorest.python | db47a8f00253148fbc327fe0ae1b0f7921b397c6 | a9f38dd762fbc046ce6197bfabea2f56045d2957 | refs/heads/master | 2021-08-02T13:06:34.768117 | 2018-11-21T00:29:31 | 2018-11-21T00:29:31 | 161,554,205 | 0 | 0 | MIT | 2018-12-12T22:42:14 | 2018-12-12T22:42:14 | null | UTF-8 | Python | false | false | 2,582 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | iscai-msft.noreply@github.com |
17d15dd646a8749ccb6bb24691ef966488214583 | a68f37fcbf069c0656d4838af7386d6a9919fe59 | /company_users/migrations/0018_auto_20191202_1453.py | 0d33b087dcb6c2c5f0271ec6d0c73a0f50c72e36 | [] | no_license | mitchellpottratz/JobMatch | 7dd2cbd979ca55cf651bcee4356a97e061145b90 | 797a9b1c3dfad57c05db52384d87d5f82be632f5 | refs/heads/master | 2022-11-26T08:44:27.535809 | 2019-12-13T20:05:11 | 2019-12-13T20:05:11 | 224,901,935 | 0 | 0 | null | 2022-11-22T04:53:46 | 2019-11-29T18:08:55 | JavaScript | UTF-8 | Python | false | false | 511 | py | # Generated by Django 2.2.7 on 2019-12-02 14:53
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('company_users', '0017_auto_20191202_1453'),
]
operations = [
migrations.AlterField(
... | [
"mitchellpottratz@Mitchells-MacBook-Air.local"
] | mitchellpottratz@Mitchells-MacBook-Air.local |
1979186f4b5e4003966f930759a9a891423965c9 | 1509ac77d7db9a89fe10141cbdc233b7ad8f24df | /setup.py | 288ce8a2077db227368e8f817f3d5457cfb35203 | [] | no_license | ljh-hello/cogue | 84ccf58e38b53e0721b262d52e91efb1261785a5 | c181da4b248dbe1cdee0ac4b71b95db2e72a0811 | refs/heads/master | 2020-12-25T04:37:16.792861 | 2015-08-11T13:47:09 | 2015-08-11T13:47:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | import os
from distutils.core import setup, Extension
# from numpy.distutils.misc_util import get_numpy_include_dirs
import numpy
include_dirs_numpy = [numpy.get_include()]
if os.path.exists("settings.py"):
import settings
try:
print "Include directories", settings.include_dirs
include_dir... | [
"atz.togo@gmail.com"
] | atz.togo@gmail.com |
1a82672456150a24e8524d979abb951b2e1ce069 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/certificate_4.py | 1abd0b5448d7f437c67e71317834376f7e340226 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 1,841 | py | from __future__ import annotations
from dataclasses import dataclass, field
from xsdata.models.datatype import XmlDate
__NAMESPACE__ = "http://www.travelport.com/schema/common_v33_0"
@dataclass
class Certificate4:
"""
Certificate Form of Payment.
Parameters
----------
number
The Certific... | [
"chris@komposta.net"
] | chris@komposta.net |
7336d0c86f4daa7c687b2ba22cd25afb545bc27c | a39d0d1f0e257d0fff5de58e3959906dafb45347 | /PythonTricks/Classes&OOP/cloning_objects.py | 85cbb8707eb6785db076d75c2810c9d0016ea172 | [] | no_license | Twishar/Python | 998d7b304070b621ca7cdec548156ca7750ef38e | 1d1afa79df1aae7b48ac690d9b930708767b6d41 | refs/heads/master | 2021-09-23T14:18:36.195494 | 2018-09-24T12:33:36 | 2018-09-24T12:33:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | import copy
# Shallow copies
xs = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
ys = list(xs) # Make a shallow copy
print(xs)
print(ys)
xs.append(['new sublist'])
print(xs)
print(ys)
xs[1][0] = 'X'
print(xs)
print(ys)
# Deep copies
xs = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
zs = copy.deepcopy(xs)
print(xs)
print(zs)
xs[1][0] ... | [
"stognienkovv@gmail.com"
] | stognienkovv@gmail.com |
d87aa46a4fec1417e8cb9c1155970269f2dbaa04 | 9301cc7eec1e149ee94bfe5dd09cde4a9b14569e | /tools/cigarError.py | a5dacb4e60a192c5046b68fac6d4f0fbf2dbf71a | [] | no_license | avantikalal/tfccs | 90b58e60a0b09f90ad8e877a88637e0dd375b6b2 | 3c1998aab39fc1bb4a13172d74b9a8a3c7615e02 | refs/heads/master | 2020-09-11T19:40:48.295966 | 2019-10-08T22:39:12 | 2019-10-08T22:39:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | import sys
for line in sys.stdin.read().splitlines():
oplen =[]
op = []
tmp = []
for ii in range(len(line)):
if line[ii] in "=XDIS":
op.append(line[ii])
oplen.append(int("".join(tmp)))
tmp=[]
else:
tmp.append(line[ii])
tlen = 0
numdel = 0
numins = 0
nummm = 0
... | [
"mbrown@pacificbiosciences.com"
] | mbrown@pacificbiosciences.com |
319a960e0809020abda1281ff84e877d0cf9e134 | 11ca0c393c854fa7212e783a34269f9dae84e8c7 | /nowcoder/剑指Offer/剑指 Offer 03. 数组中重复的数字.py | f4846010da691e9f7ffcbbad927e04155e6e50d8 | [] | no_license | VictoriqueCQ/LeetCode | dc84d81163eed26fa9dbc2114bba0b5c2ea881f4 | a77b3ead157f97f5d9599badb4d4c5da69de44ba | refs/heads/master | 2021-06-05T06:40:24.659909 | 2021-03-31T08:31:51 | 2021-03-31T08:31:51 | 97,978,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from typing import List
class Solution:
def findRepeatNumber(self, nums: List[int]) -> int:
hashmap = {}
for num in nums:
if num in hashmap:
return num
hashmap[num] = 1
| [
"1997Victorique0317"
] | 1997Victorique0317 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.