blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
954a6ccc30e4d525232ba97980373c8886d90bd8 | bc23b3d14d06521bc200df1e827dc9b92dbe3741 | /wake_up.spec | f28eaedb3b078efdaaab1dbb075f2aebb29cbc43 | [] | no_license | leowf/wake_up | 72d014a648e3e6d1ab32a6722641971a0f6e6c90 | b90ac4e2675ef42506ee23aa35ff83e5f34a46f6 | refs/heads/master | 2021-10-25T18:34:05.477721 | 2019-04-06T02:56:47 | 2019-04-06T02:56:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['wake_up.py'],
pathex=['F:\\record'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redir... | [
"noreply@github.com"
] | leowf.noreply@github.com |
aa922c10b77f10d3df45a5ae0ba90283e6185d9b | ab89371666c085c667a058c40426633dbd5bdf70 | /autourl/urls.py | a49bc297cb3e8f4e3f51416d166f05496ed5dfd3 | [] | no_license | kns003/autourl | 5e70bbb2a1bdcf4e878f85df8bbc66716dbe9d9f | c11a58505a1e3c68f030036e734c02b9e6fc47c2 | refs/heads/master | 2021-01-23T18:50:20.715694 | 2015-08-22T10:50:57 | 2015-08-22T10:50:57 | 41,196,824 | 0 | 0 | null | 2015-08-22T14:29:02 | 2015-08-22T07:49:17 | HTML | UTF-8 | Python | false | false | 805 | py | """autourl URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-bas... | [
"kns003@gmail.com"
] | kns003@gmail.com |
59a429c78f14208eef1fe82f32f2f42e0ff1864b | 81a503a94e3345192e0b7f044266e5fc5287cd2f | /simple-3layer-perceptron-predict.py | 3172f11df857db87b6fafa34be626954b5b4aea4 | [] | no_license | aux-di/chainer-samples | 95cc442f042747e8d1445ecdd9b78dcb08e8283a | 5850a0dc5ed98a9916e9f618d73d052b6248e3a2 | refs/heads/master | 2020-04-03T09:52:34.226078 | 2016-08-12T13:47:02 | 2016-08-12T13:47:02 | 64,039,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,290 | py | # -*- coding: utf-8 -*-
import argparse
import numpy as np
import chainer
from chainer import cuda, Function, gradient_check, report, training, utils, Variable
from chainer import datasets, iterators, optimizers, serializers
from chainer import Link, Chain, ChainList
import chainer.functions as F
import chainer.links ... | [
"aux_di@yahoo.co.jp"
] | aux_di@yahoo.co.jp |
10bb46b132d695bceec1c40fbcb8bbcad04ea9a7 | 8c488fd4b680919e777e34f8d61bcc03fb5948eb | /news.py | 026eae8a862958769903c585437e85b2c2c8f237 | [
"MIT"
] | permissive | atultherajput/iPyNews | 0f6e95f441edf5ecf105ce93545fece8385f2b26 | 1c93d218a8148a7c62c23f9a6ccf9a5924cac871 | refs/heads/master | 2020-03-08T08:29:09.199397 | 2018-04-04T08:47:52 | 2018-04-04T08:47:52 | 128,023,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | import requests
def PyNews(option, c, q):
apiKey = "9f6bb23dade24e2a9215192*********" #get api from https://newsapi.org
top_headlines = "https://newsapi.org/v2/top-headlines?country="+c+"&apiKey="+apiKey
everything = "https://newsapi.org/v2/everything?language=en&sortBy=popularity&q="+q+"&apiKey="+a... | [
"atultherajput@gmail.com"
] | atultherajput@gmail.com |
020766db10b5c980437a181a36ed6fd1ce13eb34 | dde59eec69a064e8f595b348022cb8449185c3e0 | /Ex9.5.py | 9f96624db90a781fd2d15cac44ccb92d802ac271 | [] | no_license | inwk6312fall2019/wordplay-Tarang97 | 32de9f579f813c38bf2862a9c8f4b01062a5a5a6 | f66917b7a539c24e0d6268496fe5eb7b6507c01c | refs/heads/master | 2020-07-30T01:04:07.531630 | 2019-09-21T21:57:47 | 2019-09-22T01:04:21 | 210,028,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #Write a function named uses_all that takes a word and a string of required letters,
#and that returns True if the word uses all the required letters at least once.
#How many words are there that use all the vowels aeiou? How about aeiouy?
def uses_all(word, letters):
for letter in letters:
if letter... | [
"tarangdube8@outlook.com"
] | tarangdube8@outlook.com |
7a3fc601cdbc6083904f9ef361444dc21ecd088f | 4abda16354fd81596ff9550aea2cc882e0d0718b | /json-quiz/1.py | 083a52ef84ea75a8ea54fc163ca15e445f43d7b3 | [] | no_license | hsayres/compjour-hw | 6d89e8580fe1a43a74284aad6fde9d406fd1c11f | 30f1c3f7c287b0ea90e8fdeff8ed61a95d15304a | refs/heads/master | 2021-01-18T15:12:33.080458 | 2015-06-10T01:20:31 | 2015-06-10T01:20:31 | 33,575,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import requests
import json
data_url = "http://www.compjour.org/files/code/json-examples/analyticsgov-realtime.json"
response = requests.get(data_url)
text = response.text
data = json.loads(text)
print('A. ', data['name'])
print('B. ', data['taken_at'])
print('C. ', data['meta']['name'])
print('D. ', data['data'][0]['a... | [
"hsayres@stanford.edu"
] | hsayres@stanford.edu |
ebba7615e5e9b41c5297f37d0a48fe88c1c66f93 | c5a120d7e7bd85af81151214499dc1284fadec67 | /A_C_TD_CNN_3_LSTM_GAMA_Navigation.py | ee44fb774b0578c5f1a33666b7482bcd195c295f | [] | no_license | ZHONGJunjie86/Mixed_Input_PPO_CNN_LSTM_Car_Navigation | 725fd9cc4d90c6ade1bccfa7c243353ec356f2b3 | 32f3788a25cc1bcb0090f52a6473ab02edfcf177 | refs/heads/master | 2023-05-03T05:09:40.605705 | 2021-05-22T09:47:17 | 2021-05-22T09:47:17 | 281,865,039 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,582 | py | from utils import cross_loss_curve, GAMA_connect,reset,send_to_GAMA
from CV_input import generate_img
import os
from itertools import count
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.distributions import MultivariateNormal
import numpy as np
import pandas a... | [
"is0541hx@ed.ritsumei.ac.jp"
] | is0541hx@ed.ritsumei.ac.jp |
baf9440ec4050ee7b1f88215ed7d9fe4e3b4c53c | 41ed3a71252f418f9331ee7a63023c6d9899b254 | /classify_car_model.py | 237a0a590493c774269b9c5d0f7211323082c24c | [] | no_license | may1114/triplet-loss | f2c83dcc095e92fc841022ab832f90fc3c15790f | 0f2a8c339d3c74fa74928e55f879bc8ca11989ed | refs/heads/master | 2022-04-21T23:51:49.767383 | 2020-04-16T13:11:57 | 2020-04-16T13:11:57 | 256,210,796 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,397 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
from math import ceil
from keras.applications.inception_v3 import InceptionV3
from keras.callbacks import ModelCheckpoint, ReduceLROnPlateau, EarlyStopping
from keras.layers import Dense, GlobalAveragePooling2D
from keras.models import Model
from keras.optimizers import... | [
"noreply@github.com"
] | may1114.noreply@github.com |
8cdee2cf494f61ac77b1ecbfbc512b1a7d9019cc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /DGpxmRkADuZaWHJxZ_12.py | 41dd07642af65e0da32ac3763fd2a8b55fa61e9c | [] | 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 | 1,561 | py | """
Steve and Maurice have racing snails. They each have three, a slow `s`, medium
`m` and fast `f` one. Although Steve's snails are all a bit stronger than
Maurice's, Maurice has a trick up his sleeve. His plan is:
1. Round 1: `[s, f]` Sacrifice his slowest snail against Steve's fastest.
2. Round 2: `[m, s]` U... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4061d719724d305c83bf4d0fbac69f6b220e16a7 | 34374d6db2a177c12ac3325a49b9ff791541ec9e | /qiyou/migrations/0010_hot_route.py | d2bd3ae2b72ab098cafbab3730a0e1f58f29d6a4 | [] | no_license | ge-xiao/qiyou | 2a0742cb4de6ee346c51704dc546403a2a603d71 | 1221cc8557b9f43e6d9ef9b4a90f4d9f5f125451 | refs/heads/master | 2022-11-25T13:03:46.580715 | 2020-07-24T05:04:51 | 2020-07-24T05:04:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | # Generated by Django 3.0.8 on 2020-07-19 12:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('qiyou', '0009_city_route'),
]
operations = [
migrations.CreateModel(
name='hot_route',
fields=[
('id... | [
"gx213213@126.com"
] | gx213213@126.com |
db1b90dc116d1fcbb3ac1b117fdd082c92cd9c08 | 276db4291a895c8c310fd20e4b1e108d4a8b4112 | /shop/api/products/schemas.py | 945cf352444e8693893c50b5645f2e55d8700f15 | [] | no_license | DMS/shop.flask.zc | 3f84248f86f9fcfd93243c299cff4928ed39d4be | b0c8cf616c4ebb9aaf5b6818fda3d527fec69199 | refs/heads/master | 2021-02-19T17:21:12.044994 | 2020-02-21T20:41:32 | 2020-02-21T20:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | from marshmallow import Schema, fields
class TagSchema(Schema):
tag_name = fields.Str()
class CategorySchema(Schema):
category_name = fields.Str()
class ProductReviewSchema(Schema):
id = fields.Integer()
product_id = fields.Integer()
rating = fields.Integer()
review = fields.Str()
class ... | [
"huiyueguan111@gmail.com"
] | huiyueguan111@gmail.com |
946ad2a8b370e24b92ae5d25b1d8fa26ac317a2b | 505506f12bf43f8693b95d4b19bc4e0aded8cab0 | /agents/a2c.py | 84382e8eb62cf1398354feae941e7c3aeb759546 | [
"BSD-3-Clause"
] | permissive | Aubret/gym-minigrid | 8be3fe596a0a071af4c504d215655114d4c7bc76 | fc622913333da4564a7e3343920ce4415e47c5ab | refs/heads/master | 2021-06-06T20:23:48.382545 | 2021-06-04T12:31:37 | 2021-06-04T12:31:37 | 169,751,153 | 0 | 0 | null | 2019-02-08T14:58:54 | 2019-02-08T14:58:53 | null | UTF-8 | Python | false | false | 8,055 | py | import time
import functools
import tensorflow as tf
import numpy as np
from baselines import logger
from baselines.common import set_global_seeds, explained_variance
from baselines.common import tf_util
from baselines.common.policies import build_policy
from baselines.a2c.utils import Scheduler, find_trainable_var... | [
"lalumiere3@hotmail.fr"
] | lalumiere3@hotmail.fr |
949138441ac7adbac527b9d2f42adb4ad8de2df9 | 72ad38d33d7739b28b52c228c45f703e076e25fa | /t1.py | 0e7c27c76d811b83a45cd49b2db9443daf87f1c3 | [
"MIT"
] | permissive | Manthanc007/APS-2o2o | c39dbd0606325ab29363a86afc1da7d0dd2aef01 | a84337c4e658a93b6c67515fa3ef59b09f2e5e94 | refs/heads/master | 2020-12-20T22:05:01.871426 | 2020-04-23T20:35:10 | 2020-04-23T20:35:10 | 236,221,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | n=int(input())
l=list(map(int,input().split()))
l.sort()
alice=l[:len(l)//2]
bob=l[len(l)//2:]
bob.sort(reverse=True)
if(n>2):
alice=[i*10 for i in alice]
final=sum(alice+bob)
print(final,alice,bob)
else:
print(sum(l))
| [
"noreply@github.com"
] | Manthanc007.noreply@github.com |
46cf1136357e541718505dc7f2d65b45ec650ee0 | 3c912c24fe47bbe58add168ec4aa7bc488f542f7 | /cms/plugins/text/migrations/0004_table_rename.py | 874d07231d4bbc1709dba02663e9cd701b04c6c8 | [
"BSD-3-Clause"
] | permissive | eduncan911/django_cms | eb96617f108de19c41f8502c055647a28f2d6a06 | 66c27f059ca0779157a7c3cc2e007d8090f10351 | refs/heads/master | 2021-01-20T03:17:50.894858 | 2017-04-26T20:24:08 | 2017-04-26T20:24:08 | 89,523,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,086 | py |
from south.db import db
from django.db import models
from cms.plugins.text.models import *
class Migration:
depends_on = (
("cms", "0018_site_permissions"),
)
def forwards(self, orm):
db.rename_table("text_text", "cmsplugin_text")
db.rename_table("text_publictext", "c... | [
"eduncan911+github@gmail.com"
] | eduncan911+github@gmail.com |
f012bf3372a3e6fe81130ba3ca388f4bc6b1b321 | 87247fc6010499ee572dead1ef5474ae952034c6 | /venv/bin/python-config | d1c3fe7df82310ef6aab97caad6c21eb0f152af5 | [] | no_license | fernandasj/vue-django | d4c6b0f198e1ce0e491657828f035c8307af761c | be0a92cfa1c6acd993b165f834bc9b9e28e2b558 | refs/heads/master | 2020-09-20T09:07:40.588250 | 2019-11-27T13:00:18 | 2019-11-27T13:00:18 | 224,431,748 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,361 | #!/home/fernanda/IdeaProjects/vue-django/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sy... | [
"fernanda.silva_sj@hotmail.com"
] | fernanda.silva_sj@hotmail.com | |
82f1a9eac4f13240266abc89375c0500b47a5771 | e2ec890cc48d10087bac70223c307a5b788583e2 | /test_precision.py | f95d30cf097e2a52495a8e42707cc7b149265f13 | [] | no_license | abhi1kumar/CS6190_pml_project | 489bc18bb2537be38f58fc61396111dede07cfb4 | 11b0bcbb6395216bc98f141cb0f3f5f2081f73f5 | refs/heads/master | 2022-03-26T12:46:01.576929 | 2019-12-14T05:27:41 | 2019-12-14T05:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | import argparse
from hyperparameters import *
from util import *
from test.test_read_data_split import *
from hyperparameters import *
from EM_Algorithm import *
parser = argparse.ArgumentParser(description='Read XML data from files')
parser.add_argument('--dir_path' , type=str, default='data/Bibtex' ... | [
"aish322@gmail.com"
] | aish322@gmail.com |
1ee934da947a05b39ed31df40719477ff5ab88a7 | d8b798048bb56efc949b31771bf7eb4e98cb2a96 | /1.5/Eligibility/Eligibility.py | b8e8e6a8046169fffc3d30580a6c1f81c4abd67e | [] | no_license | Varfor/Kattis | c144b535bc5b6c03c65c419d242e99f61731768a | c2c63e51a0e55e2e45d67ae37b1d178e707ad1cd | refs/heads/master | 2020-03-24T06:42:30.023405 | 2020-01-29T08:59:38 | 2020-01-29T08:59:38 | 142,538,602 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | for i in range(int(input())):
a, b, c, d = [x for x in input().split()]
print(a, end = " ")
if (int(b[:4])>=2010 or int(c[:4])>=1991):
print('eligible')
elif int(d)>=41:
print('ineligible')
else:
print('coach petitions')
| [
"38240861+Varfor@users.noreply.github.com"
] | 38240861+Varfor@users.noreply.github.com |
48b0be489716eeef9c8e8c096a4b1143b2c1b8ff | 6a946e748aed8922feffecaca77b79b5d447c48f | /main.py | 29d2f03fa800da7508cda85aeeac7e94a99484d8 | [] | no_license | Zeroqube/Yandex_lyceum_project_api_bor | 5171b594cd17c6c4e3c182804cc5a6dfe5925f69 | 25cd22c2a4b9c438469cb88dac54aceb5adf11e6 | refs/heads/master | 2023-04-12T01:03:21.812134 | 2021-04-26T19:00:48 | 2021-04-26T19:00:48 | 360,931,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,437 | py | import asyncio
import sqlite3
from discord.ext import commands
import datetime as dt
# в data храниться только токен для удобного использования и сохранения секретности токена
from data import TOKEN
SQL_FILE = 'bot_db'
def normalize(a):
res = []
for line in a:
res.append('\t'.join(str(item) for item i... | [
"maxbystrov2006@yandex.ru"
] | maxbystrov2006@yandex.ru |
eb2e1b0baf857817dbf21814013801747d376aa2 | b73e16120ea4e76991de735ee84d62c9a375f6af | /text.py | 8dea38ef992717c27c69d1404b7fdeadfc36b690 | [] | no_license | coke-killer/matploblibDemo | 00e25aab9f300c04dd9a9b4854f0319bbb97f37d | 45850510ffbe87911f141a670c63c5ef2550e3c6 | refs/heads/master | 2023-04-07T11:50:24.302751 | 2021-04-14T08:40:41 | 2021-04-14T08:40:41 | 350,229,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | # __author__: "yudongyue"
# date: 2021/3/24
import matplotlib.pyplot as plt
fig = plt.figure()
plt.axis([0, 10, 0, 10])
t = "This is a really long string that I'd rather have wrapped so that it" \
" doesn't go outside of the figure, but if it's long enough it will go" \
" off the top or bottom!"
# plt.text(4,... | [
"yudongyue@daqo.com"
] | yudongyue@daqo.com |
7a3143c4c3bb3832522335c9af725558d0b63e22 | ad761920baf5fc381c0dd5b8b17e924b84813a9d | /Python/GeneratingData/test2.py | 38734e419f20aee97484068b959a133c9f7fe308 | [] | no_license | lmasciangioli/python | 1aea5a2de6985f344417ac2d0339ed1a956a5fca | 4a3cd5cb00947b1d90d6d0fc91498a8c84b7c95e | refs/heads/master | 2023-05-20T02:48:18.211846 | 2020-07-16T12:09:39 | 2020-07-16T12:09:39 | 280,143,866 | 0 | 0 | null | 2021-06-10T23:10:21 | 2020-07-16T12:07:24 | Python | UTF-8 | Python | false | false | 566 | py | num = str(9119)
str_num = str(num)
first_digit = str_num[0]
second_digit = str_num[1]
third_digit = str_num[2]
fourth_digit = str_num[3]
first = int(first_digit)
square_first = first**2
first_str = str(square_first)
second = int(second_digit)
square_second = second**2
second_str = str(square_second)
third = int(thir... | [
"l.masciangioli@gmail.com"
] | l.masciangioli@gmail.com |
c78cd1d4353ca1a0bf3d26428106e8899a0a7514 | 304b56a2f914d348864dcea27a2d2418a8628833 | /练习11.py | ae7b0fd50d750ee5e67184037147793b1a3dd92a | [] | no_license | hjw520wsr/BigdDataHomework | 10e39101c197306c1ec5478e3d79de37951aab47 | 6766ac39fa18d5e7dd9ff6c43e7ec33f63ab31d7 | refs/heads/master | 2020-03-23T21:41:39.940712 | 2018-07-24T08:21:08 | 2018-07-24T08:21:08 | 142,125,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 24 10:09:10 2018
@author: Nothing
"""
ls=open('学校和编号.txt',encoding='gbk').readlines()
schoolls=[]
numls=[]
f=open('学校名称2.txt','a',encoding='utf-8')
f1=open('学校招生人数1.txt','a',encoding='utf-8')
for line in ls:
schoolls.append(line.split(',')[0][1:])
... | [
"noreply@github.com"
] | hjw520wsr.noreply@github.com |
72f3aa2e088dad39db8146de3b2363c8aaab344a | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /XYvyirQMkmPHGLaZi_3.py | 63738c3b1b003d83bf113ea0603818eacc7891de | [] | 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 | 210 | py |
def boom_intensity(n):
if n < 2 :
return 'boom'
boom = 'B'
for i in range(n) :
boom += 'o'
boom += 'm'
if n % 2 == 0:
boom += '!'
if n % 5 == 0:
boom = boom.upper()
return boom
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0edcb93dc8387adeb8f9bb707020cdbed6a3aced | 11574e9050699592ebf68419e3acb0efd17afa43 | /advertisements/migrations/0009_auto_20210311_1001.py | 5a54fe6b4add220ff8f9049256d7e5d59e472b20 | [] | no_license | MonikaLu/Sellpoint | ec9ff96efb929c9e878cda6ce9a686946cedac24 | 3aa19b64bc9832a8f01f9356eaf3e231a969a10f | refs/heads/main | 2023-08-12T00:29:47.969980 | 2021-10-01T10:11:33 | 2021-10-01T10:11:33 | 412,400,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # Generated by Django 3.1.6 on 2021-03-11 09:01
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('advertisements', '0008_advertisement_category'),
]
operations = [
migrations.AlterField(
model_... | [
"monika-luu@hotmail.com"
] | monika-luu@hotmail.com |
0413e65cabbf039e6af3017c3f65c9cfa72d4387 | f40ff4e12f0ee8ca15d8262a6570f025d726d165 | /ml3/envs/bullet_sim.py | 11bf844481f3af0885e6a59611069154bde53c32 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rally12/LearningToLearn | 3b884bb3ff126f6c750c4a351395909bdbd355c4 | fa32b98b40402fa15982b450ed09d9d3735ec924 | refs/heads/main | 2023-06-29T21:42:07.423866 | 2021-07-23T04:01:36 | 2021-07-23T04:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,846 | py | # Copyright (c) Facebook, Inc. and its affiliates.
import os
import numpy as np
import pybullet_utils.bullet_client as bc
import pybullet_data
import pybullet
class BulletSimulation(object):
def __init__(self, gui, controlled_joints, ee_idx, torque_limits,target_pos):
if gui:
self.sim = bc.... | [
"sarahbechtle@googlemail.com"
] | sarahbechtle@googlemail.com |
91766d1f77c32ec4c16e9725f4ffebca650eff16 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GData/GDWhenClass.py | fa46cb618eef4de0a00aea3add814235951fb549 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,838 | py | # encoding: utf-8
# module gi.repository.GData
# from /usr/lib64/girepository-1.0/GData-0.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of the ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
429886a3d1302e9f6f99ed2f817c67cba9e96e1e | 0602c50eb27021751502022ad98d8a21820de9ff | /src/solution/p122-efficient exponentiation/p122.py | 4b8d92eb111f4b3b6d0700f504b194dea967d1ec | [] | no_license | glimmercn/Euler-Project | c34b4ac787c1926e23d289bd699282588b04ee87 | d56249f274d0df74cb4465e25bd24ad1e36bb956 | refs/heads/master | 2021-01-25T07:39:57.640527 | 2014-03-31T22:13:34 | 2014-03-31T22:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | '''
Created on 2013-3-27
@author: kan
'''
import numpy as np
import numpy as np
l = [1]
s = [l]
idx = 0
reach200 = False
expons = np.zeros(201)
expons[0:2] = 1
dic = set()
while not np.all(expons):
for i in range(len(s[idx])):
for j in range(i, len(s[idx])):
if 201 > s[idx][i] + s[idx][j] > s[... | [
"huangkandiy@gmail.com"
] | huangkandiy@gmail.com |
893778dab6a8e3cb9a2788d183809792c484e0ce | 764a543c3c36b22928beceb0bdcc75426679d9b7 | /articles/migrations/0001_initial.py | dff6b4f114f46f6e25a73f9b9f4da755382fd280 | [] | no_license | kashtanov1111/qwqw | 18d122b8f23b2e60f9f79302b8e08d947922c561 | bfb0038f3266c081b957abfbca623be5a43acf0f | refs/heads/master | 2023-08-05T03:29:13.853978 | 2021-09-25T15:00:36 | 2021-09-25T15:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # Generated by Django 3.1.13 on 2021-09-25 14:21
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"1kashtanov1111@gmail.com"
] | 1kashtanov1111@gmail.com |
db802e7f87ce8b5dfce20126b66862776b36bd35 | 86e145ec81f82e54bc6e6ee46e7028232effb996 | /globals.py | 8548ae636adef5b51015e6a2a434506a19ed9916 | [
"MIT"
] | permissive | SamirOmarov/galactic-collision | 7acca71aab01caa7302a4e31af22eb4aee7ac7ca | 74694f7efcd8aa7d9aee9e1b30559f4b3275b5b5 | refs/heads/master | 2022-07-12T06:46:10.574344 | 2020-01-23T19:36:47 | 2020-01-23T19:36:47 | 234,775,368 | 37 | 12 | MIT | 2022-06-22T00:54:06 | 2020-01-18T18:05:07 | Python | UTF-8 | Python | false | false | 1,612 | py | from vpython import vector, color, sqrt, sphere, rate, scene
from math import fsum
from random import gauss
import numpy as np
# CONSTANTS
# Universal gravitational constant
G = 6.673e-11
scene.width = 1300
scene.height = 650
# Solar mass in kg (assume average stellar mass)
SOLAR_MASS = 2.000e30
# Precalculated b... | [
"samir.omarov@gmail.com"
] | samir.omarov@gmail.com |
a41a2330895be55c82a376cf0b7add8f53bbbd9a | 7bdc3d746cc9d6bff78b8a77d06253b7c489c00a | /env/lib/python3.6/site-packages/stripe/api_resources/transfer.py | 0d99a47148b44a60097f2973a84939872e558f5b | [
"MIT"
] | permissive | Ao99/e-commerce-django | fadc0de705f67b16e8dd82f6cc962fd9efd548d9 | 6fe69a03047619b199c236532f53f7c2cb22a079 | refs/heads/master | 2022-12-14T01:56:19.266754 | 2021-09-09T18:18:47 | 2021-09-09T18:18:47 | 229,646,356 | 2 | 2 | MIT | 2022-12-08T03:22:13 | 2019-12-22T23:52:46 | JavaScript | UTF-8 | Python | false | false | 921 | py | from __future__ import absolute_import, division, print_function
from stripe import util
from stripe.api_resources.abstract import CreateableAPIResource
from stripe.api_resources.abstract import ListableAPIResource
from stripe.api_resources.abstract import UpdateableAPIResource
from stripe.api_resources.abstract impor... | [
"aodong99@gmail.com"
] | aodong99@gmail.com |
13af078c635c2f1334c54bf57a9af89cd72bd397 | 934e6bc1fb3e5c900c9c89c8d667703f23bd82c0 | /app.py | ad20643131f81029dfe78ef5951ea57f16d0eeaf | [] | no_license | suneelisk/Word-Cloud | e59375eef8fd679fa6685716ac724f97e32b5acf | 9ca4b52975a30197f89df92341d6615c4156cdcb | refs/heads/main | 2023-06-11T08:28:26.089204 | 2021-06-29T02:55:16 | 2021-06-29T02:55:16 | 375,201,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | import streamlit as st
import pandas as pd
import requests
from bs4 import BeautifulSoup
import regex as re
from wordcloud import WordCloud, STOPWORDS
import matplotlib.pyplot as plt
st.title('Simple Streamlit App')
st.markdown("""
This app performs Word Cloud
* **Python libraries:** streamlit, pandas, ... | [
"noreply@github.com"
] | suneelisk.noreply@github.com |
71f5d3ffbdcb46269583870c43a0b79100a19b81 | 2c9c3dacea395e14e7749a96acd4859bb7f1ddf2 | /Function_temp.py | 9c5758247252acba205b4dc6c6729178d9b21a57 | [] | no_license | Yangzhichao95/qwertyuiop | b1370607a75df29206dc278f81c0d441dd1f277d | 702041535ecdb3cb32374f204b7dad10d8178f37 | refs/heads/master | 2020-03-21T22:10:08.188261 | 2018-07-10T02:52:24 | 2018-07-10T02:52:24 | 139,108,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,951 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 1 10:02:52 2018
@author: 25008
This is a Temp file for the function match project contract and value
"""
import re
def refine_output_contract(contract):
# 修改合同最终输出格式
contract_return = []
for i in contract:
contract_temp = re.sub('<', '<', i)
... | [
"y1995z02c07@gmail.com"
] | y1995z02c07@gmail.com |
72ace06c05b70250bf6b0869b66f53f909901aa2 | fc68fcf50fa6b62c346b6ee79718f59a9fdb7530 | /Semantic-Segmentation/preprocess_semantic.py | c786576db67010b06c0e317251aeb0bea2165347 | [] | no_license | Jeffrey-Ede/NN | 2d5be7f2fc9c3fb7bc1a8fec5dc20184b0d9b57c | 30370ea408f8f5e8f6c35448a847e1b171b372a4 | refs/heads/master | 2021-09-13T03:03:06.032555 | 2018-04-24T08:06:34 | 2018-04-24T08:06:34 | 125,896,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,889 | py | import cv2
import numpy as np
import os
def sigmoidalise(name, size):
def fancy_sigmoidaliser(img, scale=3):
'''
Rescale intensities by projecting them with a signmoid based on their variance
scale is the number of standard deviations to devide the image's deviations from the mean by
... | [
"JeffreyEde1@outlook.com"
] | JeffreyEde1@outlook.com |
d4d5b2d5ccb2e68d72ec5e9eb7dfc674ae446598 | 96a34a048c783a75736bf0ec775df22142f9ee53 | /packages/models-library/src/models_library/resource_tracker.py | 412e587f451e696f7879886a351f752c4ab5b432 | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 447 | py | from enum import auto
from typing import TypeAlias
from pydantic import PositiveInt
from .utils.enums import StrAutoEnum
ServiceRunId: TypeAlias = str
PricingPlanId: TypeAlias = PositiveInt
PricingDetailId: TypeAlias = PositiveInt
class ResourceTrackerServiceType(StrAutoEnum):
COMPUTATIONAL_SERVICE = auto()
... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
f54cb6e71d41318e8e5d77aede25cf52f6813fd1 | 670033ae1c1792b84041f587180d52e12210e0db | /ch9/tooltip_test.py | c3bf33002d63af4879e52eb21751660d116d320f | [] | no_license | CheoR/STTWP | 6adb0d79a6c81cdd810c5e943ef950a12f4f8b7f | c84ed364602840ed501831ef368e69850f07a57f | refs/heads/master | 2021-01-18T00:13:58.570223 | 2015-06-24T17:42:07 | 2015-06-24T17:42:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.ui import WebDriverWait
import unittest
class ToolTiptest(uni... | [
"cheo.roman+github@gmail.com"
] | cheo.roman+github@gmail.com |
eaf0583389c889dcce3ea401465d2eb4fa6033e9 | 88c67aed0f059523f545053286c92ed78f82227c | /padmin.py | 6739836756cb6a44addd980affe0de6484180993 | [] | no_license | dravix/pyventa | bcc173342d3880fff4a77eb22f115447e6a2f744 | 2080925db7198ce9e799863c261671cef37b05d0 | refs/heads/master | 2021-01-01T18:38:11.089306 | 2018-07-17T22:59:59 | 2018-07-17T22:59:59 | 7,473,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,305 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys, os, datetime, urllib2, tarfile, base64, sqlite3
from time import time
#aqui=os.getcwd()
aqui="/usr/share/pyventa/"
#sys.path.append(os.path.join("/usr/share/pyventa/admin"))
home=os.path.join(os.path.expanduser('~'),"pyventa")
if sys.platform == 'linux2':
h... | [
"dravix@gmail.com"
] | dravix@gmail.com |
6e3e3109f325e9b910cf211332c84e5546b3042c | 4140a1eecd862356d7d41b171d8956a7ab96be7b | /nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/network/bridgegroup_nsip6_binding.py | 2fb82fdd0791085d6769ccc6ee1dbb863a4cb702 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Citrix-TechSpecialist/NS-Init | 1c4311fef80d47d80fb5bfe107df058f5ff93e20 | bd1b695584a6acadec0140457782c7f4e97c266b | refs/heads/master | 2020-12-02T10:00:13.245312 | 2017-07-09T09:30:51 | 2017-07-09T09:30:51 | 96,673,273 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,836 | py | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# 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 l... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
1ec730ee58eb570f7330d115e12bc4c37560f281 | 7722ef476351fa40675fc97b5a330ca7f94cb9db | /FuzzyDrink/wsgi.py | 4b1bfadc9873174713ff39177378e0bb17d8b775 | [] | no_license | drmarkthrasher/fuzzydrink | a73c94f01fc395e9e4fe9ce39ff19df75585ea38 | 09a297fdd679a5fc6b737ba11a9c30d767bb6cac | refs/heads/master | 2020-04-09T01:10:15.756392 | 2018-12-06T04:21:14 | 2018-12-06T04:21:14 | 159,894,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for FuzzyDrink 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"drmarkthrasher@gmail.com"
] | drmarkthrasher@gmail.com |
f6aa0262cb69c272dd529ab640244a9ad4403ac9 | a9d54de9e0b47f6e518e0ca8c66fd264531dfd9a | /back/app/views/__init__.py | 05b33e32a9d976d39316d65c0ef9477a5b552804 | [] | no_license | astex/fable | 80d7bfecfff22fc2bc0ba090162716738762c8ed | 96a4ae2aac35ec004b3ed8b481f357324c3c4088 | refs/heads/master | 2020-03-30T03:34:31.041247 | 2015-08-05T22:00:56 | 2015-08-05T22:00:56 | 40,268,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from app.views import user, deployment, collection, run
def register(app):
user.UserView.register(app)
user.SessionView.register(app)
deployment.DeploymentView.register(app)
collection.CollectionView.register(app)
collection.StoryView.register(app)
collection.TargetView.register(app)
ru... | [
"0astex@gmail.com"
] | 0astex@gmail.com |
27af94b12828d72d9f3e81820266d4f6f92c7ba8 | 1cf1698142740120ac344b79dc72683bd62c09bf | /projeto 1.py | e8c2134265fa9310a1e664ceb591505373d63162 | [] | no_license | PedroMagaieski/projetos_python | bd66f4949dd0f51970102fd0f3bd85793b3ccf88 | dbf37d5fe2f52d821956b045806d910a22be8d62 | refs/heads/main | 2023-02-17T03:25:53.678503 | 2021-01-13T20:13:13 | 2021-01-13T20:13:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | #!/usr/bin/env python
# coding: utf-8
# In[13]:
names = []
notes = []
idn = 'S'
def get_avarage(notes):
return sum(notes) / len(notes)
def get_approved(notes):
return [notes.index(note) for note in list(filter(lambda note: note >= 6, notes))]
def get_failed(notes):
return [notes.index(note) for note i... | [
"noreply@github.com"
] | PedroMagaieski.noreply@github.com |
dbf346401a7da23e6c669222c0e8921531980339 | 3f286a92caf2ab828c64a4edfd773d3a5982378d | /checkers/pieces.py | 936a29365ada7b37882c004e69b2a05470c5b591 | [] | no_license | amitbiderman/Checkers | f0e3a0c6c0b068d0cc7b28ad570bfa7b8d1476ad | 34ed866bef5f3b4626e066dd59c4a5a9f503d5f9 | refs/heads/master | 2023-02-01T00:24:12.019680 | 2020-12-07T12:43:27 | 2020-12-07T12:43:27 | 297,669,488 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | from .constants import *
import pygame
class Piece:
PADDING = 20
OUTLINE = 2
def __init__(self, row, col, color):
self.row = row
self.col = col
self.color = color
self.king = False
self.x = 0
self.y = 0
self.calc_position()
def... | [
"noreply@github.com"
] | amitbiderman.noreply@github.com |
78b3ac2a33c639e1092ccd15d876df8032b1b0ec | 8e11807883da1e02a71d9629e1c835e16af1663b | /part2/part2.py | e3c86ff43f814601fd1ab548dc2f4b0e2996eaf0 | [] | no_license | haqueo/M3C | a773b342edd6cfda5db73d75a57f102c2f804f37 | ff8b086174dfea722263d11f51ed543891b7e2c7 | refs/heads/master | 2021-07-07T04:43:35.838273 | 2017-10-05T11:59:28 | 2017-10-05T11:59:28 | 105,883,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,728 | py | """Project, part 2"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import odeint
from n1 import network as net
from p1 import flunet as fn
import time
def initialize(N0,L,Nt,pflag):
"""Generate network, and initial conditions
If pflag is true, construct and return transport matrix
... | [
"omarhaque@hotmail.co.uk"
] | omarhaque@hotmail.co.uk |
113207597caf8b45781ab2940297f9b274b27958 | 4ef5e2e04249b718d386ff1d9210475098a16beb | /ContainsDuplicate.py | 32c3c6ea2e0cb8387800a98561413b61368d5d3d | [] | no_license | 9shivansh/CodingProblems | af1ca77ee815af9527fd8c0675f6d96d792ae881 | 573453dddff2174c84812f16a1e8d6763af5df0b | refs/heads/master | 2022-12-13T08:15:55.092539 | 2020-08-10T17:00:49 | 2020-08-10T17:00:49 | 260,389,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | class Solution(object):
def containsNearbyDuplicate(self, nums, k):
a = {}
for i in range(len(nums)):
if nums[i] in a:
if(i - a[nums[i]] <= k):
return True
... | [
"noreply@github.com"
] | 9shivansh.noreply@github.com |
aaeee56e7233b0b752d5fe7265af6a6fa95ac16c | ba8e1b26b87338e4a0e1f7ae81ab41967f5526fc | /unit6_lesson_04_understanding_fileio.py | 90edc81ca9054450121adb3980ab83591be70b88 | [] | no_license | blackjackal982/Mission-RND | e60b38627f5062494a737d00f0700b5826f39510 | d318c1e01cd2144ce8d7b74d3c211f8ed2a238eb | refs/heads/master | 2020-03-27T10:58:06.272002 | 2018-10-13T07:48:09 | 2018-10-13T07:48:09 | 146,456,334 | 0 | 0 | null | 2018-10-13T07:48:10 | 2018-08-28T14:02:21 | Python | UTF-8 | Python | false | false | 7,414 | py | __author__ = 'Kalyan'
notes = '''
Python has a good api to deal with text and binary files. We explore that
in this module. You may notice how much this is easier than the corresponding c api :-).
Use help(file.XXX) to find help on file method XXX (tell, seek etc.)
'''
from placeholders import *
import... | [
"noreply@github.com"
] | blackjackal982.noreply@github.com |
215d0469b5731e032dab5f8191e509e6048cbb2c | 28a86d4ba5435f799739b3310151b96162d3ea57 | /pyzoo/zoo/pipeline/api/keras/metrics.py | c44cc6081a40bcc419b03e1c39e74a8aaad980d9 | [
"Apache-2.0"
] | permissive | lightbend/analytics-zoo | 8f46625cc6064602e1f36e996de7efceb2537af2 | 6b75874f774a53bfaa4489b4edf4161285d988b5 | refs/heads/master | 2023-06-03T05:43:55.099261 | 2018-11-28T00:10:27 | 2018-11-28T00:10:27 | 133,023,978 | 2 | 1 | Apache-2.0 | 2019-05-30T00:21:52 | 2018-05-11T10:08:56 | Jupyter Notebook | UTF-8 | Python | false | false | 2,449 | py | #
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"boris.lublinsky@lightbend.com"
] | boris.lublinsky@lightbend.com |
9ff8cc9aba0bad549bc96c4951caa2e327054a7f | 738e54ead99e912a43a6b0cf0521bcf7324825cc | /ProjectX/bin/python-config | b74928de377945a534b2306dce0f927bef8d3d85 | [] | no_license | gugajung/HotelReservation | 413abba1a64c3cafde909fbb48cd6c0a219c3bef | d3e150aa732fe94e95f43aa708ec21c654b4be4c | refs/heads/master | 2020-04-10T19:23:11.068556 | 2018-12-04T02:25:55 | 2018-12-04T02:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,353 | #!/Users/kevinnguyen/Desktop/ProjectX/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.versio... | [
"austin_yam@yahoo.com"
] | austin_yam@yahoo.com | |
0d7f0740e4eedfeabdffdd9112ffa2b5ef7cef51 | 41914073db8bf974d72b7f68fd26f593a5c8ea20 | /gramlogin/views.py | 6a395e955d350dbc036844ec55b2a95edb1d7893 | [
"MIT"
] | permissive | k4ml/gramlogin | 6951a92c0b26e65106cc78feb7f45f24aa44bde5 | 19f4c96f6deef86666b17e8d5f8290a65e9ed93d | refs/heads/master | 2020-09-17T06:51:51.694032 | 2017-06-18T02:13:47 | 2017-06-18T02:13:47 | 94,492,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,496 | py |
import os
import json
import pprint
from django.http import HttpResponse, HttpResponseForbidden
from django.contrib.auth import authenticate
from django.views.decorators.csrf import csrf_exempt
from django.utils.crypto import get_random_string
from django.shortcuts import render, redirect
from django.contrib.auth imp... | [
"kamal.mustafa@gmail.com"
] | kamal.mustafa@gmail.com |
0c475a602aed8cc06b2cee1b466023136bc6caac | 5c567d4ff35239d31cb4cf44b4f1dc1dbfcc2e50 | /testEmbedding.py | bd48b9e0cb51d3e7bdd41135320886b4fd802a77 | [] | no_license | lgiancaUTH/vascEmbeddings | ba172f373bd481cfd1e7e8a03201b14f2ad1bb3a | c6d32b344f86ced8cb4c2662ffe68e7d5c511e59 | refs/heads/master | 2022-02-20T04:07:44.437637 | 2018-03-26T17:18:01 | 2018-03-26T17:18:01 | 122,401,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from __future__ import print_function
import sys
# include subdirectories
sys.path.insert(0, './lib/')
sys.path.insert(0, './src/')
import time
import numpy as np
import matplotlib.pyplot as plt
import keras as k
import tensorflow as tf
assert k.backend.image_dim_ordering() == 'tf'
import skimage.io as skio
import sk... | [
"you@example.com"
] | you@example.com |
d8befb9fa09f1770ae63891b3bf66a15f5585aac | 82fe32eed0992a0c78bc5d09a984b23d0ba44941 | /day_wise_work_done/3_july/django_cache/store/migrations/0001_initial.py | 2a3112d76feeffbb1368091349b46c89a87c95fc | [] | no_license | harsha444/toppr_training | 64d0c9838c14b7b3332c980d6a7b05ce20fc07a5 | 1e4ef786f2f06f242ecf483ff3dcd4481ac2d99f | refs/heads/master | 2020-03-21T07:02:48.313119 | 2018-07-03T14:11:44 | 2018-07-03T14:11:44 | 138,257,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | # Generated by Django 2.0.2 on 2018-07-03 05:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"sriharshashm@gmail.com"
] | sriharshashm@gmail.com |
0dbacaded161597e4ded3ab63e28e65e8b5de709 | 80935021d3d1af541fe52fc3c25a658a79d0dbc1 | /bank_account.py | a0e476f79ab3496091a54dde67e883f22dd28d61 | [] | no_license | boitshepo97/bank-account | ac575cbedd4968f17099c894ca3f425246cd9490 | f8f188ffdfa66ccdb1ee10dab4eedcdfce631a8c | refs/heads/master | 2021-01-02T05:31:17.958891 | 2020-03-23T10:55:51 | 2020-03-23T10:55:51 | 239,510,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | class BankAccount:
def __init__(self,balance,interest_rate,monthly_fee,customer):
self.balance =balance
self.interest_rate = interest_rate
self.monthly_fee = monthly_fee
self.customer = customer
def deposit(self,amount):
self.balance += amount
return self.balance... | [
"boitshepo.masemola@gmail.com"
] | boitshepo.masemola@gmail.com |
0b933e671812494c2b266f50f5b7331e36259a82 | bb77a939d49a1d6e789d655aa30dfc5a4bf4f50f | /week-1/single-number.py | de36f76bc10cfee90040f686f39e957fa6f00c4b | [] | no_license | johnsanc/wb-cohort3 | 0778eacb908a79c9aca124c7800c5370649b2457 | 8faeb2c3416b19c4e1950abfb11a2c3a5651babf | refs/heads/master | 2020-06-10T04:14:56.489619 | 2019-08-19T05:56:58 | 2019-08-19T05:56:58 | 193,579,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | class Solution:
def singleNumber(self, nums: List[int]) -> int:
num = 0
for n in nums:
num ^= n
return num | [
"johnny.ss@icloud.com"
] | johnny.ss@icloud.com |
14edd5c9176df33293595eaa83f3ed2de69f9a7e | f9ec5287004d14eaab61b1fbfb1feef3f1a823a8 | /str116/old_str116_reference | 311413f4ca8891696cb651725dc9efcd63d3cf3a | [
"MIT"
] | permissive | llamicron/str116 | 3171b516df9b15ab8d2dd858453175f52b683e85 | 647726096c33fff6444e74ac8edb66b2c4090a20 | refs/heads/master | 2021-05-15T04:27:59.989049 | 2018-01-25T06:18:51 | 2018-01-25T06:18:51 | 118,678,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,122 | #!/usr/bin/env python
import serial
from . import settings
import time
import binascii
import os
import logging
import sys
logging.basicConfig(filename=settings.logfile, level=getattr(
logging, settings.log_level.upper()))
class Device():
def __init__(self):
self.ser = Device.connect()
self.se... | [
"sweeney@tamu.edu"
] | sweeney@tamu.edu | |
c55a3038bc53084146757c47f6efabad8bc5d680 | 74506c5bf1141c848d8c5000a73140a35c386ff2 | /mc/tools/Colors.py | e3cce85b0842aea09eedaa1b55d9eafc7db70097 | [
"MIT"
] | permissive | zy-sunshine/falkon-pyqt5 | 398bc520c21c1cbb4eecbfc786cc7bfc61889177 | bc2b60aa21c9b136439bd57a11f391d68c736f99 | refs/heads/master | 2020-07-22T02:54:09.635104 | 2019-11-03T15:36:44 | 2019-11-03T15:36:44 | 207,053,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,629 | py | from PyQt5.Qt import QPalette
from PyQt5.Qt import QColor
class Colors:
@classmethod
def CLAMP(cls, x, l, u):
if x < l:
return l
elif x > u:
return u
else:
return x
@classmethod
def bg(cls, pal, widget):
'''
@param: pal QPale... | [
"260328360@qq.com"
] | 260328360@qq.com |
0083b4b2c1f7ee7f9bcaf28976ca06a5d973ae1f | 2675506079d3ef42c94176cd1ac1ac86a1b98a15 | /test/test_add_contact_to_group.py | 5435cf7696145a6aeccddfda318852bd9f199208 | [
"Apache-2.0"
] | permissive | TatyanaNesmeyanna/python_training | e13875993597933e7a7ccb6a264953381e976754 | 75d66dd922b9e41acb05c8aa4f765c6fc4783652 | refs/heads/master | 2020-07-07T15:22:40.863626 | 2019-10-15T06:07:04 | 2019-10-15T06:07:04 | 203,387,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | # -*- coding: utf-8 -*-
from fixture.orm import ORMFixture
from model.contact import Contact
from model.group import Group
import random
import pytest
import allure
def test_add_contact_to_group(app):
db = ORMFixture(host="127.0.0.1", name="addressbook", user="root", password="")
contact_for_test = None
gr... | [
"tatyana.kalimullina@abbyy.com"
] | tatyana.kalimullina@abbyy.com |
17dfe5439db44e75385301fb61ec3226664fda5a | c30d4f174a28aac495463f44b496811ee0c21265 | /python/helpers/python-skeletons/django/forms/formsets.py | 2f229065ce19aaf26dded3a08847eb71c13e3295 | [
"Apache-2.0"
] | permissive | sarvex/intellij-community | cbbf08642231783c5b46ef2d55a29441341a03b3 | 8b8c21f445550bd72662e159ae715e9d944ba140 | refs/heads/master | 2023-05-14T14:32:51.014859 | 2023-05-01T06:59:21 | 2023-05-01T06:59:21 | 32,571,446 | 0 | 0 | Apache-2.0 | 2023-05-01T06:59:22 | 2015-03-20T08:16:17 | Java | UTF-8 | Python | false | false | 534 | py | from django.forms import Form
class BaseFormSet(object):
"""
A collection of instances of the same Form class.
"""
def __init__(self, data=None, files=None, auto_id='id_%s', prefix=None,
initial=None, error_class=ErrorList, form_kwargs=None):
"""
:rtype: BaseFormSet[T ... | [
"Ilya.Kazakevich@jetbrains.com"
] | Ilya.Kazakevich@jetbrains.com |
1bd8ec8127ce59cbb88e9906b20e8ae52d37e54d | 194082c8bc92699ca2fb7d3965123a0727cd3c95 | /2D_2 Likelihood Function.py | e3121f8465b6a38640e0d03b06c14363cdc8f2a7 | [] | no_license | ivanlstc/computational-physics-project | d42dfc8a44aa855eb4d8a334f9e598519050d598 | 17a91764360ed331b833517e8cf4cad60ffe6010 | refs/heads/master | 2020-06-16T04:07:39.173532 | 2019-07-05T23:16:32 | 2019-07-05T23:16:32 | 195,475,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | #Importing necessary modules
import numpy as np
import scipy.integrate
import scipy.special
import scipy.interpolate
import matplotlib.pyplot as plt
from Project_1 import fitfunc2, NLL2
#Reading the datafile and extracting the decay times and errors
with open('lifetime-2018.txt', 'r') as f:
lines = [np.f... | [
"ivanlstc@gmail.com"
] | ivanlstc@gmail.com |
dea66b35cb13ae793a269b41b7bdece235e10962 | e6ff0823bf0bd21214582e74c6a277153372e41e | /website1/website1/__init__.py | 9668ebb7542b4af9cfd14f2fb4db6c7e8dbe2e62 | [] | no_license | DarkerPWQ/Amazon | 573295b60f024ee345a898fb8fb7ec6116055c09 | c5e8e46d7664854a26b6ef84b1d33cd02abb440c | refs/heads/master | 2021-01-11T00:20:09.142432 | 2016-10-11T07:31:03 | 2016-10-11T07:31:04 | 70,566,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | # -*- coding: utf-8 -*-
#!/bin/python
from __future__ import absolute_import
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app
#为了确保在django启动时加载了celery应用 | [
"584371093@qq.com"
] | 584371093@qq.com |
40948ef1504eef221b62201a06cce21a36eeac30 | 4bfa230b77e398e2d7a116cd7eeae0e7df505c30 | /meshrcnn/utils/__init__.py | f086fcb97804d3b4cb6b5e59211a716187f12f16 | [
"BSD-3-Clause"
] | permissive | ShashwatNigam99/meshrcnn | ca08d41545724fa66074ab0ca9644bb69e6c7d42 | 80bbc2c2d2024f9788f8d937bcc4cdee7c77f040 | refs/heads/master | 2022-11-25T04:50:21.511418 | 2020-07-27T13:15:42 | 2020-07-27T13:15:42 | 279,386,054 | 1 | 1 | NOASSERTION | 2020-07-14T09:48:55 | 2020-07-13T18:50:03 | Python | UTF-8 | Python | false | false | 121 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from . import model_zoo # registers pathhandlers
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
659a537b477cbd532ae9cee185bc1aab1fa753fa | eefcdd462355d844c2ae215cbc6de0f115679244 | /make_hr.py | 6bf22b3d00eba38860e3e925557a10e6bf35868a | [] | no_license | StarSTRUQ/UQ-mesa | d9b6be059ab44bb5a4a1c2a1ce20eaf52ffc70f5 | b0163ae07f0546d6a6d6437b50ed50551d388b06 | refs/heads/master | 2021-01-22T14:28:38.917228 | 2020-02-04T15:58:28 | 2020-02-04T15:58:28 | 82,343,176 | 1 | 1 | null | 2017-05-24T19:06:02 | 2017-02-17T22:20:45 | Jupyter Notebook | UTF-8 | Python | false | false | 7,650 | py | #!/bin/usr/python
# Make H-R diagram for chose folder
# M. Hoffman March 19 2016
# Try to make it so you can plot multiple folders or just the one
import mesa as ms
import numpy as np
import matplotlib.pyplot as plt
import os, re, shutil
import datetime
#from pylab import *
Q = raw_input('Do you want a single H-R plo... | [
"melissa.m.hoffman@stonybrook.edu"
] | melissa.m.hoffman@stonybrook.edu |
cab2ac38055ee00121b77316f8a0fe38891f2b90 | fcf65fabe7a82e1cd590221ec6d6d66aa1638f30 | /python/XlsxWriter-0.6.4/examples/hide_sheet.py | 822fdadd7ed2f8ff9f703f745237a13e57dcfc18 | [
"BSD-2-Clause-Views"
] | permissive | phanirajkiran/leaning-work | 845c3c766fec7d2935396d84b97405fc04f444c1 | 24336659e35b89c6d308a154390b02a084d0722d | refs/heads/master | 2020-07-29T08:45:34.599753 | 2019-04-02T10:07:06 | 2019-04-02T10:07:06 | 209,734,507 | 2 | 0 | null | 2019-09-20T07:44:29 | 2019-09-20T07:44:27 | null | UTF-8 | Python | false | false | 718 | py | #######################################################################
#
# Example of how to hide a worksheet with XlsxWriter.
#
# Copyright 2013-2014, John McNamara, jmcnamara@cpan.org
#
import xlsxwriter
workbook = xlsxwriter.Workbook('hide_sheet.xlsx')
worksheet1 = workbook.add_worksheet()
worksheet2 = workbook.ad... | [
"yanglei.fage@gmail.com"
] | yanglei.fage@gmail.com |
4b38b664c1409617c648990cf6218ac67782c60d | 226cbc68b5c2a00955656bbf28e5a7d5b62c5146 | /yatube/posts/migrations/0001_initial.py | 3a5275345e8c36f2776fc29fb05a4f23e51496d9 | [
"MIT"
] | permissive | Pavel-qy/yatube | 10378aa48428721ef1e1f97bf24b09c17a88ab26 | 172643b2e5e064bc36e028edc349d548c01144fe | refs/heads/main | 2023-05-10T02:09:51.790727 | 2021-05-31T06:18:34 | 2021-05-31T06:18:34 | 339,048,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # Generated by Django 3.1.6 on 2021-02-16 10:27
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"pavel.qy@gmail.com"
] | pavel.qy@gmail.com |
e4eb39d3df19108aa18ea11fa146fe5ed083136d | 0717e8a4336b88cd61a11f6bc4a7976baadbdf65 | /mentor001/urls.py | 25232a8c10e366231db94c634ef836f4bd4c8f70 | [] | no_license | JoanNabusoba/mentor | b46e639f6e6a5bc0b39e29e8bff8327f04320b87 | b5e9285f1a0ea6d883576c82bf0deeb366cc6360 | refs/heads/master | 2021-01-18T16:00:39.589958 | 2017-03-30T12:56:22 | 2017-03-30T12:56:22 | 86,701,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.conf.urls import url
from django.contrib import admin
from mentor001 import views
urlpatterns = [
url(r'^$', views.index, name='home'),
url(r'^admin/', admin.site.urls),
]
| [
"joannabusoba@gmail.com"
] | joannabusoba@gmail.com |
11c7e3fd7ce286e2101ca94a5177311b7d5e2fa4 | 06b16b78bca548ff41bafceff66e216ff1d6be8d | /Day31-33/Logging1.py | ee03f7565752434ccd3a190c935059e439afd34a | [
"MIT"
] | permissive | craig3050/100DaysOfCode | 4a37eab4b6484094f2363950cae3e5746160ceb3 | 16abc8b54217d210537590acd014a820a56641b3 | refs/heads/master | 2020-03-25T09:03:31.225720 | 2019-01-22T19:20:04 | 2019-01-22T19:20:04 | 143,645,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | import sys
import logbook
app_log = logbook.Logger('App')
def main():
print("This is a test of how to put together a log")
_var = input("Give me a number")
try:
_var = int(_var) * 1000
print(_var)
except Exception as x:
print(f"Oh that didn't work!: {x}")
app_log.excep... | [
"craig3050@gmail.com"
] | craig3050@gmail.com |
e11d6451d075b7c422415308bb9c757a784ab567 | 9a4a607a57e3a5edc4d7ce11918efedbf3f0fd02 | /Working with list/Counting_toTwenty.py | df7f5feda0b8aef37c4067b207d1c12e0f40fc12 | [] | no_license | Lossme8/Python_Fundamentals | c559194a630948a99da4f778dbf867c0e85b2f12 | b6e5ca8b6e941bd9ac024c62fbd005059d74ee5d | refs/heads/master | 2021-01-07T21:07:43.158676 | 2020-02-20T07:52:10 | 2020-02-20T07:52:10 | 241,820,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | for number in range(1,1000000):
print(number) | [
"noreply@github.com"
] | Lossme8.noreply@github.com |
01e8fbfaa54d0c96a8bdbbc8e80906db0ec8fc59 | 64de952ae89570de9be36d0b04aaf02981a3aa28 | /env/energy-linux-no-gpu/bin/jupyter-bundlerextension | 2e2751d6e7c3960562156c19ba6bc8515dfe86fc | [
"MIT"
] | permissive | vipulroxx/tensorflow-environments | 821a0017c0fb90938959643f302c668d0a4b60e8 | de5da11f9930ddb57752037568c2247350d30ae7 | refs/heads/master | 2022-12-25T01:28:43.221405 | 2020-01-15T16:49:38 | 2020-01-15T16:49:38 | 125,478,902 | 1 | 0 | MIT | 2022-12-09T19:03:32 | 2018-03-16T07:21:00 | Python | UTF-8 | Python | false | false | 298 | #!/home/sharm493/energy-project-tensor-flow/env/energy-linux-no-gpu/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from notebook.bundler.bundlerextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vipulsharma936@gmail.com"
] | vipulsharma936@gmail.com | |
01d7a877171b8d150218d1f20171a9a083b4ffca | 157bc0a640074a4de0cbce7bf4988bddaaad3d86 | /strstr.py | 80918a1f19110cafa1dfd2e93a3ed272812f21fb | [] | no_license | pururaj1908/leetcode | ffd36b480950c707d7d49ad7dc24da354a4431d7 | 9ce6d7df12b778fc5c31c88e89fd0d1f7893fea4 | refs/heads/master | 2022-04-03T20:14:30.851237 | 2020-02-14T09:22:55 | 2020-02-14T09:22:55 | 204,348,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | # -*- coding: utf-8 -*-
class Solution:
def strStr(self, haystack, needle):
n = len(needle)
h = len(haystack)
idx = -1
if n == 0 or needle == "":
return 0
if n <= h:
if n == h:
if needle == haystack:
return 0
... | [
"pdave2@ncsu.edu"
] | pdave2@ncsu.edu |
5a3d088220426e75b7381094a25274d8a4310820 | 2f28f376ee313c370d9a4807073de8858e36bae2 | /QueryConstructor.py | 6eb3fa4c9283a20c112bafde5429e313a8e643dc | [] | no_license | XacoboPineiro/GestorConcesionario | 5d309984b2c47a993c67478a336eac60818fb569 | 28224530d0228ad7e8d1800ffacb098dbcdc7e33 | refs/heads/master | 2023-04-18T02:04:14.681571 | 2021-05-14T15:47:17 | 2021-05-14T15:47:17 | 367,412,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | class QueryConstructor:
def __init__(self):
self.table = None
self.fields = None
self.paramenters = None
def noParametersQuery(self, table, *fields):
query = "SELECT "
for i in fields:
query = query + i + ", "
query = query[:-2]
query = query... | [
"xpineirocacabelos@danielcastelao.org"
] | xpineirocacabelos@danielcastelao.org |
4dcea38e68a220b9c577c2b5743103048b7f45a7 | 34c9b0516eae51944a32450c0cfe9e9598f5983e | /Search by Image/feature_extractor.py | de7138850c1c08863d33f39a6bb67a3317af18ca | [] | no_license | MuzammilPIAIC/Deep-Learning | ed7711ccc23d55cd1d6dd1c206ec9ee4f8fdb0a6 | 7293593defac2f369927b4e7c0a85f1c5e3df400 | refs/heads/master | 2022-03-03T15:34:51.203282 | 2022-03-03T08:15:44 | 2022-03-03T08:15:44 | 230,601,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | from tensorflow.keras.preprocessing import image
from tensorflow.keras.applications.vgg16 import VGG16, preprocess_input
from tensorflow.keras.models import Model
import numpy as np
# See https://keras.io/api/applications/ for details
class FeatureExtractor:
def __init__(self):
base_model = VGG16... | [
"noreply@github.com"
] | MuzammilPIAIC.noreply@github.com |
79f06b25bf42f600f1fe28bc6334a84c6abe68f9 | ed4c68ea69f937e5d93ac75a253e2c25b9b21935 | /thehackernews/news.py | f6f8748c1d50ad01b61e955bdafe50b4f4cea6e1 | [] | no_license | ozcanyarimdunya/mini-scrapy | dd738be24e9ca2e9c809619baf6b32bd824c5050 | f3c36c176900778028445dfd0bfd0ec32cb69db7 | refs/heads/master | 2022-12-10T03:15:11.669537 | 2020-08-09T13:08:14 | 2020-08-09T13:08:14 | 198,700,124 | 1 | 0 | null | 2021-06-02T00:47:05 | 2019-07-24T19:47:15 | Python | UTF-8 | Python | false | false | 826 | py | from bs4 import BeautifulSoup
from base import BaseScrapper
class TheHackerNewsScrapper(BaseScrapper):
url = 'https://thehackernews.com/'
next_selector = '.blog-pager-older-link-mobile'
filename = 'news.json'
max_result = 5
def scrap(self, soup: BeautifulSoup):
print('Current page: {}/{}... | [
"ozcanyd@gmail.com"
] | ozcanyd@gmail.com |
cb08da143960e7b8b76a69177a1486cf0584a81d | cf99f0dfd2ae3a50ac4dfe95dddd74d2308e7fd4 | /src/scalbo/scalbo/benchmark/dhb_loglin2.py | 3b25a26597cd84bc45c912aaacebd965395745a6 | [
"BSD-2-Clause"
] | permissive | deephyper/scalable-bo | 33923598181799410b790addcaf4ea799b276444 | 44f0afc28a19213252b59868f76a8f6918f8aabc | refs/heads/main | 2023-07-28T10:33:52.291460 | 2023-07-20T09:44:50 | 2023-07-20T09:44:50 | 464,852,027 | 2 | 2 | BSD-2-Clause | 2022-10-18T12:15:19 | 2022-03-01T10:43:47 | Jupyter Notebook | UTF-8 | Python | false | false | 152 | py | import deephyper_benchmark as dhb
dhb.load("LCu/loglin2")
from deephyper_benchmark.lib.lcu.loglin2 import hpo
hp_problem = hpo.problem
run = hpo.run
| [
"romainegele@gmail.com"
] | romainegele@gmail.com |
be118f5655fb92998cccbfd8f080c291bbfc9541 | a8b37bd399dd0bad27d3abd386ace85a6b70ef28 | /airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams/streams.py | 2f447af8630ed8e98a5169cf031e206369e91193 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Elastic-2.0"
] | permissive | thomas-vl/airbyte | 5da2ba9d189ba0b202feb952cadfb550c5050871 | 258a8eb683634a9f9b7821c9a92d1b70c5389a10 | refs/heads/master | 2023-09-01T17:49:23.761569 | 2023-08-25T13:13:11 | 2023-08-25T13:13:11 | 327,604,451 | 1 | 0 | MIT | 2021-01-07T12:24:20 | 2021-01-07T12:24:19 | null | UTF-8 | Python | false | false | 11,039 | py | #
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
import base64
import logging
from typing import Any, Iterable, List, Mapping, Optional, Set
import pendulum
import requests
from airbyte_cdk.models import SyncMode
from cached_property import cached_property
from facebook_business.adobjects.abstractobject i... | [
"noreply@github.com"
] | thomas-vl.noreply@github.com |
37ea73835115b9136162d3f4b7b8f19c2f974fe4 | 181154ddaaa87683ab72f9c42b86a4967c6d3db7 | /dijkstra.py | d26cee17a0ed2fbd8d10f81448034d2a7e914f10 | [] | no_license | DiegoAlosilla/A | 2b3db64af707eb07744bb69c0a47fd9455a457af | 25a64964b48a68ca6cfe0daa97def4428f1ec764 | refs/heads/master | 2020-06-14T05:32:19.721385 | 2019-07-02T18:58:59 | 2019-07-02T18:58:59 | 194,918,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | import math
import heapq
#pack rodrigo
def dijkstra(G, s):
n = len(G)
visited = [False]*n
weights = [math.inf]*n
path = [None]*n
queue = []
weights[s] = 0
heapq.heappush(queue, (0, s))
while len(queue) > 0:
g, u = heapq.heappop(queue)
visited[u] = True
... | [
"noreply@github.com"
] | DiegoAlosilla.noreply@github.com |
00f77802c4c9209974a0f9ed5f236882c3816423 | 56656fb0293eca2776b570c84b79a800bd81832f | /logikart/shop/views.py | fc7527bf6426322ddc4f9c64bd989f840217dbe1 | [] | no_license | sumitkumar22299/logi-kart- | 2e7c85104f4a62cc15297372fee82cc8247cd225 | 1e9a39f0eb4fa3dd033698739cd7def7d34c0d3c | refs/heads/main | 2023-06-14T00:30:42.946808 | 2021-07-07T04:04:39 | 2021-07-07T04:04:39 | 383,063,487 | 0 | 1 | null | 2021-07-05T08:47:13 | 2021-07-05T08:09:11 | Python | UTF-8 | Python | false | false | 1,783 | py | from django.shortcuts import render
from .models import Product, Contact
from math import ceil
# Create your views here.
from django.http import HttpResponse
def index(request):
# products = Product.objects.all()
# print(products)
# n = len(products)
# nSlides = n//4 + ceil((n/4)-(n//4))
allProds... | [
"sumitkumar22299@Gmail.com"
] | sumitkumar22299@Gmail.com |
08ef0ce795a6ca63ba5977fa4b11d41869236e0a | 2ac7b97e702a40bd256d8788309f312951130514 | /chapter01/input1.py | de38f56cd30004669b88e901ff2d81068fcadbdb | [] | no_license | ZeroMin-K/Doit_Algorithm | 62991700d70649e8fe72f0fccc50699092526826 | 51d9738fcc1a9452625fc25daec0f0ca5274cde2 | refs/heads/main | 2023-03-28T13:50:46.582142 | 2021-03-29T12:45:13 | 2021-03-29T12:45:13 | 328,176,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | # input name and greet
print("input name:", end=' ')
name = input()
print(f"Greeting {name}") | [
"noreply@github.com"
] | ZeroMin-K.noreply@github.com |
efe534ee7957dfd1a6d79dee5373abd183277a49 | cc0e9f312355cf296dd4c1a6d82597848e11e9cd | /python_dailies/d10/employee.py | c867be32e7caf4130cfd42f4e881d7b5e02f82db | [] | no_license | atowneND/paradigms | 3dc77016290e4e223fab1c6532a645467c346fbe | 1bfca0dbd07ce9588b8774d11d1658eb93325aa7 | refs/heads/master | 2021-01-10T14:01:08.113898 | 2016-04-28T04:08:59 | 2016-04-28T04:08:59 | 51,034,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | class Employee:
next_employee_number = 0
def __init__(self, name, title, dept, salary):
employee_number = Employee.next_employee_number
Employee.next_employee_number += 1
self.name = name
self.title = title
self.dept = dept
self.salary = salary
def __lt__(se... | [
"atowne@nd.edu"
] | atowne@nd.edu |
972808daf49ef962ecfe264fbbc399342c5d90f5 | 3be88b3343d3ae4be17eb39600e6ffe3ed8c8389 | /devito/ir/stree/algorithms.py | cb3003e2b9e1333ad0670d77eae1d8d653395bfc | [
"MIT"
] | permissive | pnmoralesh/Devito | 3938c79250784c2bf8f4c1f1151430d5100b66f9 | 1e619c0208ecf5f3817d614cd49b8df89d0beb22 | refs/heads/master | 2023-04-03T05:00:47.644490 | 2021-03-16T11:40:46 | 2021-03-16T11:40:46 | 348,607,884 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,428 | py | from anytree import findall
from devito.ir.stree.tree import (ScheduleTree, NodeIteration, NodeConditional,
NodeSync, NodeExprs, NodeSection, NodeHalo, insert)
from devito.ir.support import SEQUENTIAL, IterationSpace
from devito.mpi import HaloScheme, HaloSchemeException
from devito.p... | [
"f.luporini12@imperial.ac.uk"
] | f.luporini12@imperial.ac.uk |
6bd632262a2e99b1d09b8b51534e09364716dd60 | 56b1569a62c6a155ce9cf4b8059bd085848dd859 | /Python/search/print_path.py | 1f3ff3089c3f877da624f629274af167bd846224 | [] | no_license | Marius-Juston/Advanced-Autonomous-Vehicule | 1485ccc1a3dafbb875f845b2ba00cb05c6d6ca40 | 7f188428aafe0c0dfff75dd8567199c7067be17d | refs/heads/master | 2022-11-15T04:52:19.713449 | 2020-07-10T22:09:04 | 2020-07-10T22:09:04 | 266,609,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | # -----------
# User Instructions:
#
# Modify the the search function so that it returns
# a shortest path as follows:
#
# [['>', 'v', ' ', ' ', ' ', ' '],
# [' ', '>', '>', '>', '>', 'v'],
# [' ', ' ', ' ', ' ', ' ', 'v'],
# [' ', ' ', ' ', ' ', ' ', 'v'],
# [' ', ' ', ' ', ' ', ' ', '*']]
#
# Where '>', '<', '^',... | [
"Marius.juston@hotmail.fr"
] | Marius.juston@hotmail.fr |
169a03b6a286b98dc2a18e031348a396fa9db442 | ffb3027c11db1b51569414815bcae0066c00c37f | /scripts/hzz2l2q/DelPanj/forDaniel.py | 3c3e1d8eeda4b95e8c4f21cbeb9ca889fa6c0768 | [] | no_license | syuvivida/usercode | af8e4eba513a4791aa27d6e8075c111cf521eb8a | 54c57e39fa4765a7ead478bbf34e302c7df6d9d5 | refs/heads/master | 2020-06-05T19:41:20.506171 | 2016-12-14T17:05:38 | 2016-12-14T17:05:38 | 11,925,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | import FWCore.ParameterSet.Config as cms
isMergedJet = True
## Below are default values for the names of higgs collections
## and whether the analysis is a merged-jet analysis or not
higgsCollectionEE = "hzzeejj:h"
higgsCollectionMM = "hzzmmjj:h"
MERGED = False
if isMergedJet:
higgsCollectionEE = "hzze... | [
""
] | |
b0484d6fe57864f6d725447f7223632ceda1c563 | 22dd89c57fcff91bd577df8fa4981c04497be9d6 | /restapis/restapis/urls.py | 9269905f7e48f192235108400550c3ab60a60794 | [] | no_license | kinjal1993/DjangoRestDemo | bf060e6ee7ae74a2738afd9f7a576b8d007867f6 | 5c7e23504557464fec771435adcc336b70663d6b | refs/heads/main | 2023-05-02T20:41:06.468483 | 2021-05-28T09:12:09 | 2021-05-28T09:12:09 | 370,721,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from django.contrib import admin
from django.urls import path,include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('apis.urls')),
]
| [
"kinjal.pathak20061993@gmail.com"
] | kinjal.pathak20061993@gmail.com |
ce9f5d635ff6a4f79ab49f9bf5dbf9ef502906f8 | a84901c27e7ed258785905d88d08c7ebe68afb8e | /testing/test_base_processing.py | 38b4f4e0439d15cd1ba431fbb3b2ddd51a170df0 | [] | no_license | Ichinaru/slideSelector | 7cc27fddc68f9baed7a9a671e65c8ca7260ab070 | 7e196ddd8ef50fe00c1d8c82091a55dfb935c6ee | refs/heads/master | 2021-01-10T20:43:45.687687 | 2011-01-14T14:02:03 | 2011-01-14T14:02:03 | 841,114 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | __author__ = 'Administrator'
import unittest
from numpy import zeros_like
from numpy.testing import assert_array_equal
from src.processing.base_processing import BaseExporter
from src.annotations import get_annotation_list
annotation_folder_test = 'C:/Data'
annotation_file_test = 'C:/Data/2.ndpi.ndpa'
cla... | [
"xmoleslo@gmail.com"
] | xmoleslo@gmail.com |
ee5333aa77f9785064d17219e0f4de854bba55a4 | 37ecbb099d5d4452af91847a88c9fa7efd673a61 | /05_multiplication.py | dea80dedb0636d90e8f01678489f0bb73e7756d7 | [] | no_license | jaymitchell/miniflow | 570ce29182385ea8c6e664b2afc87881c472cc06 | bb716d5f90ebfef22a8519bbd0c7f1525f32b2bb | refs/heads/master | 2021-01-19T11:32:25.311675 | 2017-02-19T19:30:45 | 2017-02-19T19:30:45 | 82,252,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | """
No need to change anything here!
If all goes well, this should work after you
modify the Add class in miniflow.py.
"""
from miniflow import *
x, y, z = Input(), Input(), Input()
f = Mul(x, y, z)
feed_dict = {x: 4, y: 5, z: 10}
graph = topological_sort(feed_dict)
output = forward_pass(f, graph)
# should outpu... | [
"jaybmitchell@gmail.com"
] | jaybmitchell@gmail.com |
e799436d7ed93eb4507f35eac9b3e23398b0c220 | a17278755b413858e61159593d733fac95f6d00c | /tests/cmake/test_unquoted_args.py | 26d7c5aeb16960ea3bebb653a8b2cb73b4a4ff7e | [
"MIT"
] | permissive | arjo129/ros_build_assistant | 80ace56875ed7c8da61290745e697693b8497d4e | 9c8420230713a43f73390d75d19bd7a7a751474d | refs/heads/master | 2023-01-22T15:36:11.585367 | 2020-12-06T09:09:19 | 2020-12-06T09:09:19 | 318,992,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | from ros_build_assistant.parser.cmake.grammar import UnQuotedArgument, CombinatorState
import unittest
def parse_item(inp):
ba = UnQuotedArgument()
for x in inp:
res, data = ba.next_char(x)
return res,data
class TestUnquotedArguments(unittest.TestCase):
def test_unquoted_argument_default... | [
"arjo129@gmail.com"
] | arjo129@gmail.com |
6d1a80fda589561046176a5ae996e52b2423e532 | 1495f47b20b963ffbe12ebb6aac1f9850718d03d | /apps/user/serializers.py | d2c34316e93d0ac1180700c216610f4fe4cba31c | [] | no_license | clq0528/callQ-backend-master | 6223050ff1174fb7f0448e9a8fff06a94c4b2f45 | de0b83b22464e735f209269d7cd009788d1785d4 | refs/heads/master | 2022-12-23T20:20:17.928538 | 2019-11-09T14:06:42 | 2019-11-09T14:06:42 | 220,650,843 | 0 | 0 | null | 2022-11-22T04:18:18 | 2019-11-09T14:04:32 | JavaScript | UTF-8 | Python | false | false | 3,443 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/10/9 15:18
# @Author : qinmin
# @File : serializers.py
import re
from datetime import datetime,timedelta
from rest_framework import serializers
from rest_framework.validators import UniqueValidator
from django.contrib.auth import get_user_model
from ... | [
"w-feng.jun@rootcloud.com"
] | w-feng.jun@rootcloud.com |
a88f91e9bb9d42632c237da6e3a3a3b442862d09 | da3a1da66289ee08c68072543be6022393edabde | /assets/tuned/daemon/tuned/profiles/loader.py | 050c1d8d410109202da7b24197afe98058cd4ff2 | [
"GPL-2.0-or-later",
"CC-BY-SA-3.0",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | osherdp/cluster-node-tuning-operator | 83e8c6ae5301f1a4fafe421c372e81653f6be78f | 8134c31d54a10f489e1e1955e03e83e848394496 | refs/heads/master | 2023-04-01T03:30:17.739249 | 2020-12-03T20:48:19 | 2020-12-03T20:48:19 | 319,049,275 | 0 | 0 | Apache-2.0 | 2020-12-06T14:13:23 | 2020-12-06T14:13:22 | null | UTF-8 | Python | false | false | 4,570 | py | import tuned.profiles.profile
import tuned.profiles.variables
from configobj import ConfigObj, ConfigObjError
import tuned.consts as consts
import os.path
import collections
import tuned.logs
import re
from tuned.profiles.exceptions import InvalidProfileException
log = tuned.logs.get()
class Loader(object):
"""
Pro... | [
"jmencak@users.noreply.github.com"
] | jmencak@users.noreply.github.com |
c6c02cdd6224c65352f710d16f9e022c41e3b450 | a8c1c4306ff55219dd03f9370b844832a88d3ac8 | /other/test/test_write_tfrecord.py | 90615161d3bb3966f4b82ca27c6cd8222ae72598 | [] | no_license | Peilun-Li/distributed-Keras | 0e84abd4acfb28c620c38330b4be31abd8793b62 | 95ab392e103e07ec9d600c9c463d0737b2b0224b | refs/heads/master | 2021-06-16T06:25:01.682433 | 2017-05-09T14:40:04 | 2017-05-09T14:40:04 | 72,376,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,395 | py | # Copyright 2015 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... | [
"peilunli1994@gmail.com"
] | peilunli1994@gmail.com |
03a733e629c37003b623c532ad69ab5714b4ebed | 742f15ee3880306a946df7efee0020e42684b109 | /out/oneoff/python/test/test_config_option.py | 36c9d8ccaf041fe70916d5b260b8b0e7c020abf6 | [] | no_license | potiuk/airflow-api-clients | d0196f80caf6e6f4ecfa6b7c9657f241218168ad | 325ba127f1e9aa808091916d348102844e0aa6c5 | refs/heads/master | 2022-09-14T00:40:28.592508 | 2020-05-31T10:05:42 | 2020-05-31T10:15:55 | 268,128,082 | 0 | 0 | null | 2020-05-30T17:28:04 | 2020-05-30T17:28:03 | null | UTF-8 | Python | false | false | 1,384 | py | # coding: utf-8
"""
Airflow API (Stable)
Apache Airflow management API. # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: dev@airflow.apache.org
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import airfl... | [
"kamil.bregula@polidea.com"
] | kamil.bregula@polidea.com |
f9fb3d39e27b883fc6a3d2df45aeb86fa1e59f87 | 0247b4427dd37569202594dd7bea3e9a7f2abf92 | /projects/django/fupload/fup_app/serializers.py | ef304e88f918671977a238b019e3cd50a7dffa1e | [] | no_license | DenisStepanoff/LP | 0062caa26b1ded875752ebd897ae3881cdb56633 | 5a15df361c7754a09c12fc26a25b46b373bdcf11 | refs/heads/master | 2020-04-08T03:12:00.425492 | 2018-12-28T12:32:54 | 2018-12-28T12:32:54 | 158,965,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from rest_framework import serializers
from .models import File
class FileSerializer(serializers.ModelSerializer):
class Meta():
model = File
#fields = ('file', 'remark', 'timestamp')
fields = ('file', 'timestamp')
| [
"dstepanov1630@gmail.com"
] | dstepanov1630@gmail.com |
5ba84dbef3b4021c39c9648302274af505faf852 | e96a1ff8bbe1af069a850dba378118129f5aa612 | /Stat/Help_Pos.py | 0c0816bba31bfcbf13b842c4524fc1f53dc3ac8b | [] | no_license | AaronWhy/Turiss | e51dac82a6d3511e5c2f1988929b7c330f67e3ee | 6b1be44cd0993d0fd9580f18c56693c5c732bebf | refs/heads/master | 2022-03-29T22:53:24.393133 | 2020-01-17T03:16:00 | 2020-01-17T03:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
class Comment(object):
def __init__(self, seq, score, help):
super(Comment, self).__init__()
self.seq = seq
self.score = score
self.help = help
def getKey(x):
r... | [
"racoon727@racoon727deMacBook-Pro.local"
] | racoon727@racoon727deMacBook-Pro.local |
0981da73cff0fee83df38f71e17c2db6d0220801 | 976abd6cc78ba212850c6b1dc872d1bfbba9815d | /shortener/urls.py | 30d70120022dad58c1feabb9fe8ca052eb9a2256 | [] | no_license | Likael/DjangoShortener | 162460a5f87f8ea911ea9b51532b4028c81c895b | 748ba313fd382513ba44336684e7bcee1ca4044e | refs/heads/master | 2023-04-16T14:45:23.336281 | 2021-04-24T22:35:07 | 2021-04-24T22:35:07 | 358,045,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('create', views.create, name='create'),
path('<str:pk>', views.go, name='go')
]
| [
"glasekkamil@gmail.com"
] | glasekkamil@gmail.com |
c877d9b518282909602e37d29fb09658411051d4 | 687928e5bc8d5cf68d543005bb24c862460edcfc | /nssrc/com/citrix/netscaler/nitro/resource/config/vpn/vpnvserver_vpnclientlessaccesspolicy_binding.py | c34cfbf4b0f4ccbe51d39eb85d542913ee1c45ce | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | mbs91/nitro | c6c81665d6abd04de8b9f09554e5e8e541f4a2b8 | be74e1e177f5c205c16126bc9b023f2348788409 | refs/heads/master | 2021-05-29T19:24:04.520762 | 2015-06-26T02:03:09 | 2015-06-26T02:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,814 | py | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# 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 l... | [
"bensassimaha@gmail.com"
] | bensassimaha@gmail.com |
ebab06ad0e2a42021a16e2dcb7c1071bdf73b56e | 8f0a99b4fb7bdd542cf77897b2db36536bf368a8 | /btcexchange/urls.py | ebaba73b13ba05797ab9de5eec2373b67877daa5 | [] | no_license | wasuaje/btcexchange | e9dc326cbe696b70e9c62eb614e4dd44439bcf83 | b2f102fb5178ad428b80e66364dda6bdc0dbc215 | refs/heads/main | 2023-03-29T09:59:53.031999 | 2021-03-26T16:24:21 | 2021-03-26T16:24:21 | 351,843,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | """btcexchange URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class... | [
"wasuaje@gmail.com"
] | wasuaje@gmail.com |
aab46026352578a4da1faea5beb7e1274ec2ccc6 | d432e50b7cf01e3d9efaf6fd698e8bc966a1d1da | /loaded-api/flask/lib/python3.7/encodings/cp869.py | ff8973cc4cac060792ee89db50cc007d5efeb2df | [] | no_license | dylangrosz/Disarming_Loaded_Words | ab87a01c5ff3018891cdea7afa16fa3aca00cb45 | d61129979b946c00277c50953b64b4161a59651c | refs/heads/master | 2022-12-15T08:13:50.046628 | 2019-12-05T04:20:15 | 2019-12-05T04:20:15 | 214,930,325 | 0 | 0 | null | 2022-12-08T06:55:39 | 2019-10-14T02:26:02 | Python | UTF-8 | Python | false | false | 108 | py | C:/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/encodings/cp869.py | [
"dylangrosz@gmail.com"
] | dylangrosz@gmail.com |
07b32ab8ed6d8d8994575a024efc6cc37c3a066e | 11f1d9a7d7a256f7dd5af472799dd5698a43c93a | /pythonbase/04_函数/hm_05_函数的参数.py | 8232b7cdfc18e4bda1b09a342b30e5e524b4d081 | [] | no_license | hejusl/My_Learn | 13933172a198e19ef68de684d4e79aac5c9b2652 | f327905b133e60b5c18d79303361adef63c97266 | refs/heads/master | 2020-04-13T17:52:42.553492 | 2019-01-08T12:23:22 | 2019-01-08T12:23:22 | 163,358,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # !/usr/local/Cellar/python3/3.6.3/bin
# coding=utf-8
# 是定义好函数之后,只表示这个函数封装了一段代码
# 如果不主动调用函数,函数是不主动执行的
def sum_2_num(num1, num2):
"""两个数字的求和"""
# num1 = 10
# num2 = 20
result = num1 + num2
print('%d + %d = %d' % (num1, num2, result))
sum_2_num(50, 20)
| [
"44864501@qq.com"
] | 44864501@qq.com |
0d699012b8eeb8b27f755199578dd7ae5f3a5d8d | 43a1b4e79a80663e5237651f6630b2a87a7b6b24 | /api/controllers/mutant_controller.py | 2593fc1817d76a6de4b57f1fb19d76d523234dea | [] | no_license | gusdiazml/magneto-api | f5ba9ed0e21fe32c9f56d4103a7ae029f0360eaa | bfe342f7065b9f0eea8a86aa64d5faa64ba28ffe | refs/heads/master | 2023-06-29T17:54:40.362011 | 2020-10-22T16:54:42 | 2020-10-22T16:54:42 | 306,436,978 | 0 | 0 | null | 2020-12-09T19:14:59 | 2020-10-22T19:17:28 | null | UTF-8 | Python | false | false | 5,052 | py | import re
from api.models import Dna
import datetime
class MutantController:
MUTANT_SEQUENCE_SIZE = 4
MINIMUM_MUTANTS_SEQUENCES = 1
def is_mutant(self, dna):
is_mutant = False
self._validate_dna(dna)
sequences = self._decompose_dna(dna)
count = self._count_mutant_sequence... | [
"diazchg@gmail.com"
] | diazchg@gmail.com |
928db3ff5ae561f17567082ff3595807d26cecbc | daccd137b963061d96c93ec6b38e4f9a69fb44f2 | /decorators.py | e492accdcd2c10e3f31baef7b2abea88d7ca7ecf | [
"MIT"
] | permissive | Steven-Eardley/pibot_motor | 6391ec7a3b7abef10068fd748c9477da300dc13e | 8e3f96db47dd9b8687ad628f5a7f1129263df06a | refs/heads/master | 2016-08-05T21:03:08.079362 | 2015-07-12T17:49:17 | 2015-07-12T17:49:17 | 28,645,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from functools import wraps
def expect_kb_interrupt(fn):
@wraps(fn)
def decorated_fn(*args, **kwargs):
try:
fn(*args, **kwargs)
except KeyboardInterrupt:
pass
return decorated_fn
def expect_attribute_errors(fn):
@wraps(fn)
def decorated_fn(*args, **kwargs):
... | [
"steve@eardley.xyz"
] | steve@eardley.xyz |
ce10a2b1967ba47c01da55faf0f791e338de85d3 | b733a463ba1a21ac4c2756e8552ff4b251ce6b55 | /Inpainting/PIC-EC/color_domain/flist_train_split.py | a3eaff8e0ef110a8cb1051dc296ca9228a2b3e6b | [] | no_license | fengjiran/tensorflow_learning | 003047cdb396572e3535043dfff8671befcd0f21 | 44dce5bb39c8d6421ea6181338b0ea4b0e5e9797 | refs/heads/master | 2023-04-04T07:53:55.707703 | 2022-03-30T09:35:52 | 2022-03-30T09:35:52 | 100,839,372 | 3 | 0 | null | 2023-03-24T22:50:54 | 2017-08-20T04:58:21 | Python | UTF-8 | Python | false | false | 1,595 | py | import os
import argparse
import numpy as np
parser = argparse.ArgumentParser()
parser.add_argument('--path', type=str, help='path to the dataset')
parser.add_argument('--train', type=int, default=28, help='number of train in a iter')
parser.add_argument('--val', type=int, default=1, help='number of val in a iter')
pa... | [
"fengjiran@foxmail.com"
] | fengjiran@foxmail.com |
88ee67d2de1dcfcdf033dd13c68e62b6f9761986 | 136be839cd958e5e7de33e46cebee1786e7b502e | /appNomas/migrations/0002_cliente.py | e4235091fa64a2c7860799338c5fb947bdb61b8b | [] | no_license | Joacaro/NomasAccidentes | 623da00181fc12fe7f6d3d48dff4af86a30c8d8c | a791fdbdb251bee3e91bde8b6eb0186a59a416da | refs/heads/master | 2023-06-09T10:28:00.522898 | 2021-07-02T05:00:12 | 2021-07-02T05:00:12 | 381,887,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | # Generated by Django 3.1.1 on 2021-07-01 03:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('appNomas', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Cliente',
fields=[
('id',... | [
"joa.caro@duocuc.cl"
] | joa.caro@duocuc.cl |
fe512120422d5ec22a1f1710f9b6a8d6c042e47c | 597c7a552afc38d6df556b277f6f74d2a1029438 | /properties/tst/test_properties.py | 469b985536691566494253f147ca002224db57f7 | [] | no_license | hurenkam/tracker-py | 80a5fa966ca486c82c2ccf28938101e0d4607fcb | b74101f33b301c9644f2a094cb18deb0a941265d | refs/heads/master | 2021-01-25T12:01:57.006662 | 2009-09-27T23:18:21 | 2009-09-27T23:18:21 | 33,602,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | from properties import *
from e32 import ao_sleep as Sleep
sid = 1
def Wait(text = None):
if text != None:
print text,
Sleep(1)
def RunSidTests():
global sid
print "Test GetSid... ",
sid = GetSid()
#print sid,
#if sid == 4028634395L: # emulator sid
if sid == 5... | [
"mark.hurenkamp@xs4all.nl@ef54a0f8-d952-0410-8fc1-d1a2e12a3fa0"
] | mark.hurenkamp@xs4all.nl@ef54a0f8-d952-0410-8fc1-d1a2e12a3fa0 |
330d36924cf7df5102ada150cb056163cd33e9a3 | f0d671a7be0136f14158c78385ceaf284358d9d7 | /data_analysis/ipython_log.py | 57dc224cc77430125280541fdf7fec8f5d671229 | [] | no_license | epicarts/python3_practice | 3d0bd30d53976606402159d6a507c872284cd5e7 | e092d3adacd44fd9722050267b07630022cd11df | refs/heads/master | 2021-07-10T06:43:30.651712 | 2020-07-01T14:55:54 | 2020-07-01T14:55:54 | 143,696,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | # IPython log file
import numpy as np
import numpy as np
def f(x, y, z):
return (x + y) / z
def f(x, y, z):
return (x + y) / z
result = f(5, 6, 7.5)
a = np.random.randn(100, 100)
get_ipython().run_line_magic('timeit', 'np.dot(a, a)')
get_ipython().run_cell_magic('automagic', '', '')
get_ipython().run_cell_magi... | [
"0505zxc@gmail.com"
] | 0505zxc@gmail.com |
351523efcc8b35f6d0ea6c19f56d447f2a7e4ac0 | 99697559d046cdd04dd9068bd518e4da4177aaa2 | /Finish/M545_Boundary_of_Binary_Tree.py | 88c576130740e0f831bb5332c6a40362d95be6cf | [] | no_license | Azurisky/Leetcode | 3e3621ef15f2774cfdfac8c3018e2e4701760c3b | 8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04 | refs/heads/master | 2020-03-18T22:46:35.780864 | 2018-10-07T05:45:30 | 2018-10-07T05:45:30 | 135,364,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def boundaryOfBinaryTree(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
def dfs_left... | [
"andrew0704us@gmail.com"
] | andrew0704us@gmail.com |
c496121f8836365b61237c1ab508a1fd4c2bf41d | 5e239849b5588d1924f44a69f0eeac040c0454bd | /core/serializers.py | c2bf36123c0bdbe5a996af81ca76a5a5b3ccf269 | [] | no_license | mare-alta/backend | 53be33244efeab12b1e548d499bc942807275d8f | d76fc822c6bdf3f2127887fab6885d8b967ac501 | refs/heads/master | 2022-12-10T15:31:01.419861 | 2019-12-08T15:45:49 | 2019-12-08T15:45:49 | 226,612,261 | 0 | 0 | null | 2021-09-22T18:05:45 | 2019-12-08T04:05:45 | Python | UTF-8 | Python | false | false | 547 | py | from rest_framework import serializers
from .models import *
class LevelSerializer(serializers.ModelSerializer):
class Meta:
model = Level
fields = '__all__'
class ComplaintSerializer(serializers.ModelSerializer):
class Meta:
model = Complaint
fields = '__all__'
class Answe... | [
"thales.gibbon@gmail.com"
] | thales.gibbon@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.