blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ee537715bd7df3657d4f39da6042f19e6275dcb | 43acf670edf24265c29b4478388e4557c7b9be59 | /ui/app/nodes/routes.py | 05b462338c4cd3dbcb3cb7c57037abaa93222d6c | [
"Apache-2.0"
] | permissive | nadenf/kubeinit | 3d957396fc3188dda8126bef0ac3336b6c558b20 | 74d279ed29a06aedb23c4d987690731be7dcab52 | refs/heads/main | 2023-06-05T10:39:33.113835 | 2021-06-26T16:20:00 | 2021-06-26T16:20:00 | 380,588,088 | 0 | 0 | Apache-2.0 | 2021-06-26T20:10:02 | 2021-06-26T20:10:02 | null | UTF-8 | Python | false | false | 4,011 | py | #!/usr/bin/env python
"""
Copyright 2019 Kubeinit (kubeinit.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 ... | [
"ccamacho@redhat.com"
] | ccamacho@redhat.com |
10576767616de48e735e9e7a939eb023c6f1e455 | aa66ecf170b778230100c8c7f3d5f28809b94194 | /overmind/counter/views.py | 0e61924f4dd51bb213d969922d0ee1491cedf9a0 | [] | no_license | kichawa/overmind | f0d57b61d121461cfad67048336a2011ebd62655 | 021fb42e64b5233e6ca619c2a00d80c391a3b836 | refs/heads/master | 2020-04-08T01:07:47.617059 | 2013-11-24T19:24:28 | 2013-11-24T19:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | import json
from django.http import HttpResponse
from . import backend
def get_counter(request):
cache = backend.default()
resp = cache.get(*request.GET.getlist('key'))
return HttpResponse(json.dumps(resp), content_type='application/json',
status=200)
| [
"phusiatynski@gmail.com"
] | phusiatynski@gmail.com |
f841a947c481cb90ee77e70119ec78d136b0703d | 99f9e8f0667b52a689f15dfe83663102c44b3b5b | /MTurkDataCreation/UnlabeledData/MNIST/SimpleActions/renumber.py | 0be892d6feaab34fa8a6bef6214a9ba2665a401f | [] | no_license | ybisk/GroundedLanguage | 3344e9ea8bf223a84d079f0d70eb512178b813be | 753072850d05ffe1669bec8c105b289e00f8bd95 | refs/heads/master | 2021-01-21T03:49:40.108549 | 2019-06-26T22:03:47 | 2019-06-26T22:03:47 | 49,595,784 | 9 | 4 | null | 2016-09-09T21:12:32 | 2016-01-13T19:15:17 | Java | UTF-8 | Python | false | false | 834 | py | import os,sys,json
## Sorts unraveledJSONs into Train/Test/Dev and Digit/Logo decoration
def logo(i):
r = i/10
c = i - 10*r
if (r+c)%2 == 0:
return "logo"
return "digit"
def label(i):
if i%10 == 7:
return "Dev"
if i%10 >= 8:
return "Test"
return "Train"
L = []
D = {}
digit = 0
for line in ... | [
"ybisk@yo-tech.com"
] | ybisk@yo-tech.com |
f9ccb2d5cbda7ce3cf933d844acff1956d35d9e7 | 6c29e5db26e3c5ff06ae861dd735360421dabc4e | /manage.py | 7988c20b168faddcd4c918ebb19a09dfd6088c34 | [] | no_license | blinit10/dfranco-paypal | f35e588eac5422971e949d22491ea79da1477247 | fc840d7607bb6226060082851174123662ebfa28 | refs/heads/main | 2023-06-08T01:30:43.934995 | 2021-06-24T01:46:26 | 2021-06-24T01:46:26 | 379,699,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dfranco.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"57692778+blinit10@users.noreply.github.com"
] | 57692778+blinit10@users.noreply.github.com |
324d2fbe929c73378727f415a8604ff7c6bd0656 | 52232247e3b60157641904b767fe658c6694406c | /jeux/pendu/pendu.py | 594dfce830392b80b8ae5ce543b0007f7f81bb3e | [] | no_license | drefa06/python | 5cc9908b08edea65b0182b9e05067e2e5782c849 | 57cd7810aed6199d79c1c11218444eb5f1798db2 | refs/heads/master | 2021-09-26T06:33:38.626021 | 2018-10-27T13:14:30 | 2018-10-27T13:14:30 | 109,701,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | #!/usr/bin/env python
import pdb
import random
import variable,fonctions
name=fonctions.get_name()
scores = fonctions.get_scores()
if not scores.has_key(name):
scores[name]=0
mot_a_trouver=variable.mots[random.randint(1,len(variable.mots))-1]
mot_status=[{l:False} for l in mot_a_trouver]
mot_tour=list("*"*len(mo... | [
"drefa06@yahoo.fr"
] | drefa06@yahoo.fr |
00e1ca8e56151c747c1a5e30186e489be828f8d6 | 6407293f9455d842b5ae8dcab0050cc1b44480f4 | /Python/dsa/LinkedList.py | bdf991dc0846b46af4768c87a9972376fb6f341f | [] | no_license | zaimeali/Data-Structure-and-Algorithms | cb3e4d40d21a2236f8e335f8d0035d1b5b18dd7d | 93a2c53b545972a382781ab74c6e8ba9f09e6eb4 | refs/heads/master | 2023-05-28T21:40:34.320368 | 2021-06-06T18:10:13 | 2021-06-06T18:10:13 | 349,294,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | class Node:
def __init__(self, data=None, next=None):
self.data = data
self.next = next
class LinkedList:
def __init__(self):
self.head = None
self.__count = 0
def insert_at_begining(self, data):
node = Node(data, self.head)
self.head = node
self.__c... | [
"zaimeali1997@gmail.com"
] | zaimeali1997@gmail.com |
73d9fc8576f187056233885bb4d56d592519d187 | 454a4c4b070f8e7c312a0641dd8431b5b169f716 | /shop_app/views.py | cd9b60c1f133522a5c95b71d03d545a63d203e8d | [] | no_license | adamdyderski/Online-shop | c6ed7736b319402866887ebd51938c5483af10c9 | a52a358122911239cd2390494dcbd8981568a9d6 | refs/heads/master | 2021-04-28T03:03:30.135701 | 2018-02-21T09:43:09 | 2018-02-21T09:43:09 | 122,127,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.views.generic import DetailView, ListView
from django.views.generic.edit import FormMixin
from .forms import AddToCartForm, OrderbyForm
from .models import Category, Product
class List(ListView):
model = Product
context_obje... | [
"adamdyderski94@gmail.com"
] | adamdyderski94@gmail.com |
03af9e0e110da82e49a2d753375404a64280b255 | ba357ee9e7e037d7ff37288cd1b63dbdb421c555 | /pattern_match/acam.py | 9d0a9726fac537aa42082df2a7137f700db6187d | [] | no_license | 43reyerhrstj/nlp_store | 9189ab88dc95b0019b0673269c4a18d5c48c8033 | e41b10ee42eb435e665abde4c62d13f5f3c10c5c | refs/heads/master | 2023-05-12T00:23:15.960901 | 2021-05-24T03:03:40 | 2021-05-24T03:03:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py |
from pattern_match.double_array_trie import DoubleArrayTrie
class AhoCorasickAutoMation(DoubleArrayTrie):
def __init__(self, keys):
super(AhoCorasickAutoMation, self).__init__(keys)
self.next = [0 for v in self.check]
self.build_next()
def build_next(self):
for key in self.ke... | [
"huilin.xu@ifchange.com"
] | huilin.xu@ifchange.com |
704283ca374161b90529da31301a1b0a744581ae | 2354db0997d9c905c415a67b2c491626e637a075 | /application.py | 3f083c0f0ff57f07c184518fe20469de838aec70 | [] | no_license | eanikolaev/bank_model | d69c0c6f15be135848bcedc87e3d4fea3d7c7ebd | 7fb794e8c8ee26923fa1cf680176a33c4d6de2bf | refs/heads/master | 2021-01-25T03:54:17.853153 | 2014-04-07T15:00:27 | 2014-04-07T15:00:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # -*- coding: utf-8 -*-
from random import randint
class Application(object):
num = 0 # начало нумерации заявок
def __init__(self, duration, arrivalTime, costRange=(3000, 50000), cost=None):
# установление стоимости заявки
if cost == None:
self.cost = int(self.getRandomCost(costRang... | [
"evgeny.albertovich@gmail.com"
] | evgeny.albertovich@gmail.com |
14e585aee2fb916abea0c37170b2fc48e40a412b | 7f32426d36f10d57bc52382a03132093830434eb | /reindeer/sys/handler/login.py | 8be915e22c9a0c0c273534a96e211364068a67c7 | [] | no_license | CuiVincent/MCMS-Python | a7b5b922f3ae5352f0535a9c42b92b76f06db73e | 07f1b8c811d0eb23ebe9bf91ab17d0a6eaa692bd | refs/heads/master | 2022-07-10T16:06:40.863179 | 2015-06-20T14:53:31 | 2015-06-20T14:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | __author__ = 'CuiVincent'
# -*- coding: utf8 -*-
from tornado.escape import json_encode
import reindeer.sys.base_handler
from reindeer.sys.model.sys_user import SysUser
from reindeer.sys.exceptions import BusinessRuleException
from reindeer.util.common_util import to_md5
from reindeer.sys import strings
class LoginHa... | [
"xoyoshin@gmail.com"
] | xoyoshin@gmail.com |
e826d7b25aac820820721f7c0e0bc015a3775dbe | 17a87c5b39e8420e82caced35709e2544349c2a3 | /03_DFS_BFS/문제/16_연구소_바이러스막기_재귀함수.py | 37e90d1446da1ef8f1b0c0d82afc57ee4e58fe79 | [] | no_license | khw11044/For_Coding_Test | 9f529ebd5513166a30321d04509852d974301b34 | b00283b390d73db594ea5ead42900e184755bb67 | refs/heads/master | 2023-01-31T21:47:45.516900 | 2020-12-18T06:20:12 | 2020-12-18T06:20:12 | 311,346,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,438 | py | # 연구소, 재귀함수
# 연구소에서 인체에 치명적인 바이러스 유출
# 바이러스 확산을 막기 위해서 연구소에 벽을 세움
# 연구소의 크기는 N x M
# 바이러스는 상 하 좌 우로 인접한 빈칸으로 모두 퍼져나감
# 세울수 있는 벽의 개수는 3개 3개를 모두 사용
# 안전 영역의 개수는 ?
# 요약 : 상하좌우로 퍼지는 바이러스 막기, 바이러스는 2, 벽은 1, 빈공간이며 안전공간은 0, 0의 개수는?
n,m = map(int, input().split())
data = []
temp = [[0]*m for _ in range(n)] ... | [
"khw11044@gmail.com"
] | khw11044@gmail.com |
403895272ccea609de0954b901012ff35ab2052c | 0336f640a2ce4a75b390b9026d400a2c90f8aca0 | /flask-app/app.py | 9694919da9e441edd14130463226cf858aa994c1 | [] | no_license | Launchpad5682/diabetes-prediction-webUI | 67ca8c159d8d8985bd54eed01ea7fcd3b4969cef | 5863c336c2972c49ea0882fb72816a92fd1cae76 | refs/heads/main | 2023-03-27T10:32:02.522614 | 2021-03-28T11:45:28 | 2021-03-28T11:45:28 | 346,109,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from keras.models import load_model
from flask import Flask
from flask import render_template
from flask import request
app = Flask("diabetes-prediction")
model = load_model('../dl-model/diabetes-model.h5')
model.summary()
@app.route("/")
def lw():
'''
p = model.predict([[1, 85, 66, 29, 0, 26.6, 0.351, 31]... | [
"launchpad5682@gmail.com"
] | launchpad5682@gmail.com |
a125da5a0075cb38eb82b362958e50d65c6cac8b | d4326a3494062b07760fcaf16dbfcef102a135e1 | /task1.py | 94947ffdf712e7073f730696ac652963da8ced43 | [] | no_license | shreyadalmia/lab1 | 424ab5d8d9fc6a82b9f420f525157466dec15540 | 7e37ba5abc98db09eeb6865324cebd2b330c4730 | refs/heads/master | 2020-12-15T05:36:54.832333 | 2020-01-20T16:34:09 | 2020-01-20T16:34:09 | 235,008,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | word = 'shreya'
for letter in word:
print(letter) | [
"noreply@github.com"
] | noreply@github.com |
b8780c3e516639749da58858ecd6c41941efd360 | e5acdf85352ac255e9a1eed8dba7ab95b73ea3f5 | /day-25/part_1.py | 560b38c3b9462d8be416d2106a918c6ededca470 | [] | no_license | ryankenney-dev/advent-of-code-2020 | 3880ef2bbceb07fd89d58d9c0dbf494a24f6861f | 8e21343c40dcc4461ce083e20398c3e0ff123e86 | refs/heads/main | 2023-02-09T04:39:03.318257 | 2020-12-25T19:48:02 | 2020-12-25T19:48:02 | 324,024,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py |
def parse_input(message):
return list(map(lambda x: int(x), message.splitlines()))
def transform_subject_number(subject_number, loop_size):
value = 1
for i in range(0, loop_size):
value = transform_subject_number_once(subject_number, value)
return value
def transform_subject_number_once(subje... | [
"ryan@ryankenney.info"
] | ryan@ryankenney.info |
c93275421b5898f3f1a73866bdf95d45b4cbf09c | 8a2f48ca1f9836d41673416a8ac516e0c0562543 | /addsol_state/addsol_state.py | f49aa3f6d8cd6e329d75ad637ff450e56c723fb9 | [] | no_license | ujjvala-odoo/hr_services | c33ad5f4d940a4862f83ad5059648e5736c1bbb2 | dfbb6c8eb840eb8ee5a7670fd993fc0a4ad61fa7 | refs/heads/master | 2021-01-18T00:32:41.615658 | 2015-04-30T10:49:38 | 2015-04-30T10:49:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,329 | py | from openerp.osv import fields, osv
from openerp import netsvc
from openerp.tools.translate import _
class addsol_state(osv.Model):
_inherit = 'sale.order'
def action_submit(self, cr, uid, ids, context=None):
res = self.write(cr, uid, ids, {'state': 'submit'}, context=context)
... | [
"ujjvalag@aitspl.com"
] | ujjvalag@aitspl.com |
4089c7f3ee424e1350113f146fbfd8d1dc49f24d | 8583730dd674731906e85c0e0f66fe07c393f281 | /tools_code/get_mean_std.py | 4064c7d66f3c76151dc861a4149945d0cdf68d3e | [] | no_license | Luyuhuan/4C_Comparative_Experiment | 097952ef443645184656a81be86f6d098a167a6d | 93b38baa189d4f72058daf7f09e3555306acc936 | refs/heads/main | 2023-03-09T19:26:58.874418 | 2021-02-28T10:54:30 | 2021-02-28T10:54:30 | 343,080,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | import os
from PIL import Image
import matplotlib.pyplot as plt
import numpy as np
#from scipy.misc import imread
import cv2
filepath = r'E:/hnumedical/4C_ABP/test' # 数据集目录
pathDir = os.listdir(filepath)
R_channel = 0
G_channel = 0
B_channel = 0
num = 0
for idx in range(len(pathDir)):
filename = p... | [
"noreply@github.com"
] | noreply@github.com |
2a730c0c977de022c76c2c650b814ec8d6a8a287 | bafb1c203362a9711f783115c7c573fdcd00a3d4 | /venv/Lib/site-packages/kivy/uix/splitter.py | 4a4f4150266aa94cc92fc95a9cbb437f991b1178 | [] | no_license | santokalayil/kivy_android_test_project | 0c41c40f6c8869767729cd153f4ce31ac09c0f1c | a4283ba4f4ca8961b2689ee7150297349aedb897 | refs/heads/main | 2023-04-14T08:18:40.453585 | 2021-04-27T19:15:21 | 2021-04-27T19:15:21 | 362,220,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,352 | py | '''Splitter
======
.. versionadded:: 1.5.0
.. image:: images/splitter.jpg
:align: right
The :class:`Splitter` is a widget that helps you re-size its child
widget/layout by letting you re-size it via dragging the boundary or
double tapping the boundary. This widget is similar to the
:class:`~kivy.uix.s... | [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
e0a0021b739a598d5e7da40233741d987a92d645 | 1040b320168c49e3fd784d93ff30923527582d26 | /calm/dsl/api/quotas.py | 172ca96fefdcfea68cac18e809db25579b1930c6 | [
"Apache-2.0"
] | permissive | nutanix/calm-dsl | 87eb8a82f202ec0c71b5c8d8fe49db29bdcf2cfc | 56c52702cec4370f551785508d284e5cbe1a744a | refs/heads/master | 2023-08-31T16:43:51.009235 | 2023-08-28T05:20:41 | 2023-08-28T05:20:41 | 227,190,868 | 41 | 59 | Apache-2.0 | 2023-08-28T05:20:43 | 2019-12-10T18:38:58 | Python | UTF-8 | Python | false | false | 1,363 | py | from .resource import ResourceAPI
from .connection import REQUEST
class QuotasAPI(ResourceAPI):
def __init__(self, connection):
super().__init__(connection, resource_type="quotas", calm_api=True)
self.CREATE = self.PREFIX
self.UPDATE_STATE = self.PREFIX + "/update/state"
self.LIST ... | [
"abhijeet.kaurav@nutanix.com"
] | abhijeet.kaurav@nutanix.com |
83f819c0ff153b8ad44eaba887b98387216f9a7a | 985adb4046babb537c14adc388dde5729da771df | /trybe-exercises/block36/36.3/examples/.venv/bin/easy_install | b98f81f17e2e43065852a8d8379b04ee6398a998 | [] | no_license | antoniopaolillo/antoniopaolillo.github.io | 317988fc0f9b7ae3999ae6ec111d19440394ba18 | 55bdabd76a0c6bc1dba1f47bd5196809bb71bdf8 | refs/heads/master | 2023-01-10T23:52:59.975010 | 2020-09-22T18:03:34 | 2020-09-22T18:03:34 | 209,153,511 | 0 | 0 | null | 2023-01-05T12:11:38 | 2019-09-17T20:46:59 | Python | UTF-8 | Python | false | false | 337 | #!/home/antonio/scripts/trybe/exercises/antoniopaolillo.github.io/trybe-exercises/block36/36.3/examples/.venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"antonio_francisco_p@live.com"
] | antonio_francisco_p@live.com | |
ea16a614a6860260b51bc4baa7ad627494618366 | 5fe5607fafe3501e4ff277133f82a1c21bff4130 | /dududu/bookstore/order/admin.py | 3dcb80aac2de90a3febc1ee34e9244c7728db44e | [] | no_license | zhangdebiao/dududu | ad9740902307d87458f42bb0cd317aad0d37e5fb | db9354f735b5fbd2162092f842fc9db0356d00ea | refs/heads/master | 2022-11-29T22:08:44.976037 | 2020-07-05T05:27:37 | 2020-07-05T05:27:37 | 149,884,189 | 1 | 0 | null | 2022-11-22T02:08:48 | 2018-09-22T14:25:08 | Python | UTF-8 | Python | false | false | 540 | py | from django.contrib import admin
from order.models import *
# Register your models here.
class OrderInfoAdmin(admin.ModelAdmin):
list_per_page = 15
list_display = ['order_id', 'passport_id', 'addr_id', 'total_count', 'total_price', 'transit_price', 'pay_method', 'status', 'trade_id', 'pay_method']
class Orde... | [
"843345000@qq.com"
] | 843345000@qq.com |
de2dd63d96c1d5091ce9008688747b280afd8102 | 78b7106d1fe997221d78b4db1f742e52182d4e90 | /stakkr/dns.py | 27eb326c92cbe0ffdcdebad0581eb4a95e41fc9d | [
"Apache-2.0"
] | permissive | 3838438org/stakkr | 7a3bd24f9056f9466c11caf0857e898d139e26c7 | 420afb577ffac6ef2a521bd6862b631791be796a | refs/heads/master | 2021-04-18T18:32:15.321020 | 2018-03-06T17:25:51 | 2018-03-06T17:25:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | """
Manage DNS Start / Stop by creating the container or attaching to the
current stakkr network
"""
import sys
import click
from docker.errors import DockerException
from stakkr import docker_actions
CT_NAME = 'docker_dns'
def manage_dns(project_name: str, action: str):
"""Control the start or stop... | [
"emmanuel.dyan@inetprocess.com"
] | emmanuel.dyan@inetprocess.com |
9d7b5b26b440954866bd1184e4f23b3e2b57c6df | 7c51402a15af8a14a7983fe53aaaea12ece3ba04 | /Concepts/arrays_one.py | 656b15ec245fac1a8fbc2e5fdc1d2943a5f73d7d | [] | no_license | lekha-badarinath/CodingForInterview | 34cde2c324694b374be6d0a391451fc671be6ceb | 121a4241e0a657266df288f93921d2f57d8340f6 | refs/heads/master | 2020-04-19T04:16:22.931850 | 2020-01-20T06:32:47 | 2020-01-20T06:32:47 | 167,958,384 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | #rotating a 1D array so that the element at pos 0 is moved to pos N-1.
def rotateOne():
arr = [10,11,12,13] #[11,12,13,10]
for i in range(len(arr)-1):
arr.insert(0,arr[-1])
del arr[-1]
print (arr)
def rotateTwo(arr):
#arr = [10,11,12,13] #[13,10,11,12]
newArr=[]
for i in rang... | [
"lekha.badari@gmail.com"
] | lekha.badari@gmail.com |
4718573ea862a295eefc4f45bd62f1e5a0ee8cad | 88952e946e4d59a29125107510f6dc6c9373d4c3 | /pytests/bucket_collections/bucket_templates/magma_dgm/80_percent_dgm/5_node_2_replica_magma_512.py | 3f13893ae1793fdd3af4a0eab6b3c37fb877e6bf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | couchbaselabs/TAF | 8fcc8877c18f9b2e32748e0208984aab66b63ff2 | 4882e593be50cecbebb2e6bf7b95dcce82324ea1 | refs/heads/master | 2023-08-30T23:25:49.407550 | 2023-08-30T16:39:17 | 2023-08-30T16:49:39 | 149,580,310 | 16 | 167 | Apache-2.0 | 2023-07-25T15:39:15 | 2018-09-20T08:54:59 | Python | UTF-8 | Python | false | false | 1,838 | py | from BucketLib.bucket import Bucket
from collections_helper.collections_spec_constants import MetaConstants
spec = {
MetaConstants.NUM_BUCKETS: 3,
MetaConstants.REMOVE_DEFAULT_COLLECTION: False,
MetaConstants.CREATE_COLLECTIONS_USING_MANIFEST_IMPORT: True,
MetaConstants.NUM_SCOPES_PER_BUCKET: 1,
Me... | [
"balakumaran.gopal@couchbase.com"
] | balakumaran.gopal@couchbase.com |
c009505d44d0ddc1c02c70300d610a460945cb46 | 96406fcaa42a56fee99efdc0533b0e5e8cc21b1c | /backend/main.py | 663a157dae89c905677e9761565e7a302d1b1941 | [] | no_license | ReemaAH/shipment-system | 33e09c44324544084a49284e297c7429ac4cd0fd | 9e7b09a556b143ac2f631045c9095818b14b0064 | refs/heads/master | 2023-06-26T14:19:06.016427 | 2021-07-18T09:41:23 | 2021-07-18T09:41:23 | 378,514,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,155 | py |
from flask import Flask, session, redirect, jsonify
from flask import Flask, request, jsonify, abort
from sqlalchemy import exc
from datetime import datetime
import uuid
import os
from os import environ as env
from flask_cors import CORS, cross_origin
from models import *
from authlib.integrations.flask_client impo... | [
"reema.amh97@gmail.com"
] | reema.amh97@gmail.com |
dcc964f82bdb5f3aeffce642d3dd52e88ddf7e9e | 2db23bb1fd456465fb26768642c086580ebd1bba | /metaclass_03.py | 88e24754cdbf91e0109089a9a910c85501be439c | [] | no_license | flaith-nycd/python-samples | 37c9b0a71829397e5a106a1b71d49da66cb26ef7 | 886427f09610bc5243a8630e7ad30e17202a4390 | refs/heads/master | 2020-06-25T22:35:00.060775 | 2017-07-12T10:25:43 | 2017-07-12T10:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | """
Définition d'une métaclasse
la méthode __new__, appelée pour créer une classe ;
la méthode __init__, appelée pour construire la classe.
"""
"""
**************************
** La méthode __new__ **
**************************
"""
"""
Elle prend quatre paramètres :
la métaclasse servan... | [
"noreply@github.com"
] | noreply@github.com |
e1847791d1ffa713673312d71bee1b7181b929e8 | 90bec4455fda175271d80a9b02c1d52833a25c8c | /3_Automate_sales_projections_with_Amazon_Forecast/workshop/lambdas/createpredictor/createpredictor.py | 93e25a2dae7469fa3531da69114e771c58915477 | [
"MIT-0"
] | permissive | mullue/timeseries_blog-1 | b0c1b745b0338b6e042c118d8d03b4b4f0bbe04a | 92dd556f8ee48cb694a0c9cd42bda1f2b2bc3916 | refs/heads/master | 2023-01-01T10:21:11.638888 | 2020-10-26T06:29:34 | 2020-10-26T06:29:34 | 299,975,787 | 0 | 0 | NOASSERTION | 2020-09-30T16:05:27 | 2020-09-30T16:05:26 | null | UTF-8 | Python | false | false | 1,197 | py | def lambda_handler(event, context):
import boto3
forecast = boto3.client('forecast')
responce = forecast.create_predictor(
PredictorName=event['detail']['requestParameters']['key'].replace('input/','').replace('.csv',''),
AlgorithmArn='arn:aws:forecast:::algorithm/Prophet',
Fore... | [
"noreply@github.com"
] | noreply@github.com |
73ade28f6bb42f1b7abbb9d670d24157975afd5a | 4ca7d5a373e3ec74962812482455f52f28d530f2 | /Ispit_1/zadatak_2.py | 6ab6422a29f7690dbef9e1a18928b18ccdac21c8 | [] | no_license | josipkrnic/krnicPAF | 8e2eb85dac4535e9d9925f134788149eaa9ae680 | 72c2833ccc85a4bbf350f1142d7dec62b9111cb1 | refs/heads/main | 2023-05-23T17:39:08.019797 | 2021-06-24T10:06:50 | 2021-06-24T10:06:50 | 344,387,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import ispit
p1 = ispit.Bullet()
p2 = ispit.Bullet()
p1.init(2, 200)
p2.init(1.5, 240)
p1.promjena_brzine(230)
p1.promjena_visine(1.76)
p2.promjena_brzine(175)
p2.promjena_visine(1.6)
| [
"noreply@github.com"
] | noreply@github.com |
f597844ce432d96d2774092744d6b634d89b6c85 | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /tests/terraform/checks/resource/aws/test_CloudfrontDistributionDefaultRoot.py | d8d77e5bbb716f2cb97de4f4c46442fb83f1cd30 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 1,337 | py | import os
import unittest
from checkov.runner_filter import RunnerFilter
from checkov.terraform.checks.resource.aws.CloudfrontDistributionDefaultRoot import check
from checkov.terraform.runner import Runner
class TestCloudfrontDistributionDefaultRoot(unittest.TestCase):
def test(self):
runner = Runner()
... | [
"noreply@github.com"
] | noreply@github.com |
1d5acff561020ce378cc17d749aba1bc6c097d96 | f36fbd782e58cda319e5f638897861e393ae9dd7 | /Helper.py | 631f3f0cf0481ac4d73923efa91b2fef9e535cc5 | [] | no_license | Johnathanseymour696/Python | 40acb9675995a20bbe023a50e9bfb91ccfe712d0 | 03d0f524ff008049ef8fc5d0c37957a8149b3b95 | refs/heads/master | 2020-08-24T14:47:08.731249 | 2019-10-24T15:14:04 | 2019-10-24T15:14:04 | 216,847,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | countDown = input("What number would you like to countdown from")
while (countDown >= 0):
if countDown != 0:
print(countDown)
countDown = countDown - 1
else:
print("Action!")
break
| [
"noreply@github.com"
] | noreply@github.com |
16c4945708dd2b7588e59f769cc9178b68bbeade | f016dd6fd77bb2b135636f904748dbbab117d78b | /L07/视频笔记/4.4继承.py | c73e1dd32f1d67db92adfd7ce88c54ac9f2b604e | [
"Apache-2.0"
] | permissive | w7374520/Coursepy | b3eddfbeeb475ce213b6f627d24547a1d36909d8 | ac13f8c87b4c503135da51ad84c35c745345df20 | refs/heads/master | 2020-04-26T23:57:42.882813 | 2018-05-24T07:54:13 | 2018-05-24T07:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#Author:xp
#blog_url: http://blog.csdn.net/wuxingpu5/article/details/71209731
class Parent:
def foo(self):
print('from Parent.foo')
self.bar()
def bar(self):
print('From parent.bar')
class Sub(Parent):
def __init__(self):
pass
... | [
"windfishing5@gmail.com"
] | windfishing5@gmail.com |
b12fa240c2b32c8fb16934b75e931614ef803ae8 | 28c552cd197af57ae9bd7c33bd2c56a8f48a5b45 | /main_app/room/urls.py | c1859b5e476f023c56d036972e08d46e3af2d24a | [] | no_license | rahul-agarwal070193/HangoutRoom | 4b2bf8d3fa462f9a0e97d23d73f6ed7d70c06fd1 | 6a9de9987682ea078dba772fb267acd71e09cba2 | refs/heads/master | 2023-03-22T13:42:40.980655 | 2021-03-21T10:48:44 | 2021-03-21T10:48:44 | 333,826,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | from django.urls import path
from . import views
from .views import *
from django.contrib.auth import views as auth_views
urlpatterns = [
path('room', RoomView.as_view()),
path('create-room', CreateRoomView.as_view()),
path('get-room', GetRoom.as_view()),
path('join-room', JoinRoom.as_view()),
path... | [
"rahulagarwal070193@gmail.com"
] | rahulagarwal070193@gmail.com |
9653551d294e6b234d7ce84aa641037304914121 | 55fee8b2fb6adf8b9458cf65c242a557c1cfea15 | /earth_enterprise/src/server/wsgi/serve/publish/publish_servlet.py | e867d6da7a559dee9d994958ca873f20ea98d843 | [
"Apache-2.0"
] | permissive | wanchaoxiong/google-earth | 8291e7f99e1038a9dd9d6d0a5ebed918f6b17766 | 64a21f336bd6a88d362bb391f32e4cab8be9a0a9 | refs/heads/master | 2021-05-09T05:55:56.626100 | 2018-01-23T18:07:13 | 2018-01-23T18:07:13 | 119,322,637 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,759 | py | #!/usr/bin/python
#
# Copyright 2017 Google 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 law or a... | [
"avnish@sunrise.mtv.corp.google.com"
] | avnish@sunrise.mtv.corp.google.com |
dbfc41984cbf346bfa046a82d4cf9dabca718183 | 7cb71c49c29155f03491eec0f73ff8a079c73b17 | /hangman_simple.py | 4d24685b3b5ad93a17da4cb889e55bf8f5521eca | [] | no_license | kopchik/3dhubs_hangman | 862cd5531bf549439fc92e45c61a25123bf92561 | 088c9045b7bb295f29c4c846165d6df9f64a0782 | refs/heads/master | 2021-01-20T19:09:39.819889 | 2016-07-24T20:32:14 | 2016-07-24T20:32:14 | 63,959,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | #!/usr/bin/env python3
from random import choice
from optparse import OptionParser
import logging
import sys
WORDS = "3dhubs marvin print filament order layer".split()
WORDS = list(map(str.lower, WORDS))
MAX_MISTAKES = 5
log = logging.getLogger('hangman')
log.setLevel(logging.DEBUG)
def hang_format(word, letters):
... | [
"exe.sre@gmail.com"
] | exe.sre@gmail.com |
a8ac4ac98821e51f688b87f0ff629d72f8439257 | 9ac7be8acba2fcbb4590069b02be5b32278e08d1 | /tests/test_cache.py | a8a67737c4eb1766caffc9f9559bc13f6499a34d | [] | no_license | gaconnet/nap | 5bc652996b9194a69db39932294df9a40956d164 | 6514eca6f049cea9b97b444c6e2b3d4ad3b0096b | refs/heads/master | 2021-01-17T22:45:22.121126 | 2013-07-03T04:48:37 | 2013-07-03T04:48:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,819 | py | import mock
import pytest
from nap.cache.base import BaseCacheBackend, DEFAULT_TIMEOUT
class TestBaseCacheBackend(object):
def get_backend(self, **kwargs):
defaults = {
'default_timeout': DEFAULT_TIMEOUT,
'obey_cache_headers': True,
}
defaults.update(kwargs)
... | [
"jacobburch@gmail.com"
] | jacobburch@gmail.com |
900f56394cc3ca6ffa736a1d73005e293c1a917b | 6420ca66601677bc90131ca368c9a1106add48e8 | /robot-name/robot_name_test.py | b107bae8f354e57bf990ea2558284dee344de59c | [] | no_license | Lucx14/Exercism-Python | fc7686a4541f471fccc6d6e729517b8680c9967e | 7e0f0f46a2feb804686045a4ffdac208fbee6490 | refs/heads/main | 2023-07-14T12:13:08.840129 | 2021-06-21T19:35:50 | 2021-08-24T21:19:57 | 378,204,835 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | import unittest
import random
from robot_name import Robot
class RobotNameTest(unittest.TestCase):
# assertRegex() alias to address DeprecationWarning
# assertRegexpMatches got renamed in version 3.2
if not hasattr(unittest.TestCase, "assertRegex"):
assertRegex = unittest.TestCase.assertRegexpMat... | [
"luciennajev@hotmail.com"
] | luciennajev@hotmail.com |
680db1fb943ca181f8f40dcab10e119240465ea0 | bda5af716a2e293a1dc83aa03230b6f94a471d21 | /myTest.py | a839073637386b98d006a256d5b25ae978fc1e7d | [] | no_license | zclblink/aliyunMongo | 36cdcb021ff7a748413a9cf4425afc9b4859687b | cddc69bd39a59f0c16b923f4bc08ec966fec2a9d | refs/heads/master | 2021-07-01T02:05:35.739794 | 2017-09-21T05:38:48 | 2017-09-21T05:38:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,308 | py | #coding=utf-8
'''
此程序运行在47.93.29.135机器上
'''
import pymongo
import datetime
import time
import re
from bson.objectid import ObjectId
flag = 2
if flag == 1:
client = pymongo.MongoClient(
"mongodb://root:2egRPV4LaDtoNUE18ZSwB7@dds-2ze898a8f674d1741.mongodb.rds.aliyuncs.com:3717,dds-2ze898a8f674d1742.mongo... | [
"zhouchunlu@blinnnk.com"
] | zhouchunlu@blinnnk.com |
2b3a7be33ab7b51588348c500e06a242e0f84d08 | dcd3e32674735d40f5b6bc10929f8ed891e0663c | /ProjectEuler/Project Euler 13.py | 46b76955a9bd2b865e2cd02a3d2860a6202b2993 | [] | no_license | zlatankr/Coding-Challenges | b9a8ff339a9d6c82b129163c0f84384a49b97148 | 9204563cd1de41c94b440703fae3060a319ed097 | refs/heads/master | 2021-06-13T04:28:07.972499 | 2017-04-06T18:59:10 | 2017-04-06T18:59:10 | 48,595,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,474 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 21 17:59:31 2015
@author: zlatan.kremonic
"""
"""
Work out the first ten digits of the sum of the following one-hundred 50-digit numbers.
"""
raw = """
37107287533902102798797998220837590246510135740250
46376937677490009712648124896970078050417018260538
74324986199524741... | [
"zlatankr@gmail.com"
] | zlatankr@gmail.com |
9362bfbe15c850ef4711769abd97cb5b1a358e37 | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderBeginnerContest/1XX/107/D_pypy.py | 0cdd99bfb61357c3953e409610ae3e254b7b3a46 | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 2,636 | py | # 解説を参考に作成
# https://qiita.com/DaikiSuyama/items/7295f5160a51684554a7
# https://algo-logic.info/binary-indexed-tree/
# import sys
# sys.setrecursionlimit(10 ** 6)
# import bisect
# from collections import deque
class BinaryIndexedTree:
"""
l = [1, 2, 3, 4, 5, 6, 7, 8] のlistを例とした場合、
以下のような範囲での演算結果(sum)を配列に... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
e8a50983377f65d2da71b54d89d57940244cf6bc | 43770f95f4abc447b347ccef8d978c58b2197fd1 | /CTPN-TensorFlow_TB/proposals_connector/graph_builder.py | b76710a0c35a9945c30f4b64c0fe5eee87b650d2 | [] | no_license | Trapti04/text_detection_ensembles | f0e7838a34367c261cd8dc091a908008f0c9ff81 | ee00410988a053440301551e6f008ee671de6bab | refs/heads/master | 2022-12-24T19:22:02.971373 | 2020-10-08T07:44:25 | 2020-10-08T07:44:25 | 263,037,320 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,056 | py | """Build graph of text proposals for connecting them."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
from os import path
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
import numpy as np
from configuration import Infere... | [
"trapti.kalra@gmail.com"
] | trapti.kalra@gmail.com |
8b245ac565391c9ec4ad25d8bbff0079a865d5de | a1a51cee340c7087a359a6698e28b71f341e351f | /Tamara/plugins/clock.py | 07add4f87c718ee8ca2cd75908d7d50e9b29a1d8 | [] | no_license | hydrius/Tamara | 4a356b963fd9a297bcb35d5ce3971a423f501835 | 99858a7fd026686a33d1d5e14391743f62aa2a49 | refs/heads/master | 2021-01-23T22:23:28.992446 | 2017-05-08T14:53:50 | 2017-05-08T14:53:50 | 83,126,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import datetime
import random
class Clock():
def __init__(self, Tamara):
self.Tamara = Tamara
self.hasRun = False
self.Tamara.__logger__("Clock is online")
def run(self, data):
now = datetime.datetime.now().time()
if now.hour == 16 and now.minute == 20:
if n... | [
"a.fordham@iinet.net.au"
] | a.fordham@iinet.net.au |
e1e69599554fc2a6265bebc374c81fc5ce30e2c7 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20171208/tinyparse/src/00.py | 67a7bccef96e3d12ce568646dbc86e3a7ecbac8c | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 67 | py | def f(x):
return g(x) # error
def g(x, y):
return g + y
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
ff7f3e0b34ed65a3a275028e11cf15bbbb1fe0dc | 0508b27ceb194af611cf142d5c0d913e72094da1 | /main.py | b10eaa406ca15e85fbfa045549ddab24376bae30 | [] | no_license | figitaki/scoutbase | b82229b9f34bda60bb81cc1bae801d33674cc4be | 8d463469846f11c17763e4b8f4584d6b4f72398d | refs/heads/master | 2016-09-06T15:38:16.046372 | 2014-02-08T19:49:44 | 2014-02-08T19:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | import web
from models import Team
from web import form
render = web.template.render('templates/', base='layout')
db = web.database(dbn='postgres', user='figitaki', pw='', db='mydb')
urls = (
'/', 'index',
'/new', 'new',
'/add', 'add',
'/team/(.*)', 'view',
'/edit/(.*)', 'edit',
'/static/(.*)', 'static',
)
myFo... | [
"figitaki96@yahoo.com"
] | figitaki96@yahoo.com |
7a9b08c82ee5d56bd844a340d6b4c340d3f44825 | 5f028f7e30c5626521018d3049a900a2977b56db | /zxc/main/urls.py | c3c82afd73635ae7beffe9c9af49055a32c42a61 | [] | no_license | vladchell/Site.project | 68110acae1f67aa60cbfa55f5a2b6890b53a515b | c3431baae2ae053fdc6c8977d0e8167916b50044 | refs/heads/master | 2023-09-05T15:26:48.021347 | 2021-11-19T16:29:30 | 2021-11-19T16:29:30 | 429,853,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.urls import path
from .views import *
urlpatterns = [
path('',index,name='index'),
path('about',about,name='about'),
path('portfolio',portfolio,name='portfolio'),
path('contact',contact,name='contact'),
path('<slug:portfolio_slug>',work),
]
| [
"vlad.chell@bk.ru"
] | vlad.chell@bk.ru |
67696dd4b522e76790c52c4da92aec955ffa92a7 | b34ff1d7bd294fd42e1b8db2281fc3314ffdf5aa | /ai_benchmark/tests/test_console.py | 3af01644c7ff33d9d03e0723392f4d2f1a6125a8 | [
"Apache-2.0"
] | permissive | shuowang-ai/ai-benchmark | f84c079ec9b1a5c05559cda2d5ba8fd9349356c0 | aab417ecda94dab97bb99505aabc077dc376e779 | refs/heads/main | 2023-04-10T01:17:20.717945 | 2021-04-12T23:23:46 | 2021-04-13T02:30:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | import unittest
from ai_benchmark import console
class MainTest(unittest.TestCase):
# @unittest.mock.patch('sys.argv', [])
@unittest.mock.patch('ai_benchmark.AIBenchmark.run')
def test_func(self, mock_run):
console.main()
self.assertTrue(mock_run.called)
| [
"anthony.monthe@gmail.com"
] | anthony.monthe@gmail.com |
e3acc96cdec69452d058a2e5b59e985e75d25deb | 180cf51c41549849877086abf73173ddce61b42d | /polls/admin.py | 2b484f26ce7b187f821c4936ed632fa651d35022 | [] | no_license | anmolblues/mysite | f5c940a5530f8fa255588f7602b49297837cd0d1 | 7ebefec3a6db66e9b7411972ef317d484df0f4c4 | refs/heads/master | 2021-09-04T04:58:57.365713 | 2018-01-16T03:56:41 | 2018-01-16T03:56:41 | 117,194,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from django.contrib import admin
# Register your models here.
from .models import Question, Choice, Emp, Dept
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fieldsets = [
(None, {'fields': ['question_text']}),
('Date... | [
"anmolblues@gmail.com"
] | anmolblues@gmail.com |
e6d6e896779a478cec918d049273809c98cf54ab | 9a29cc25d7961e9fb51c5a7b63ae8752a446f38f | /polls/urls.py | d5a52e769bb8627ae934bfc467d1ddc83ed0805d | [] | no_license | Subh0m0y/polls-app | bbe174e9b23efccd8113ec7477e2c7da089ea0c6 | 36e00de6d62b7f1aa118c58de3d62e464956845a | refs/heads/master | 2020-03-21T05:25:26.653233 | 2018-06-21T11:07:29 | 2018-06-21T11:07:29 | 138,159,512 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | from django.urls import path
from . import views
app_name = 'polls'
urlpatterns = [
# /polls/
path('', views.IndexView.as_view(), name='index'),
# /polls/4
path('<int:pk>/', views.DetailView.as_view(), name='detail'),
# /polls/4/results
path('<int:pk>/results', views.ResultsView.as_view(), na... | [
"subhomoyhaldar@gmail.com"
] | subhomoyhaldar@gmail.com |
b29e534c65043b457aaea0addeaa9f9fcc93cedd | 337855cba159a26cf0d243e26d011de541824e9f | /FileArbDevOpsPythonTests/CMakeTests.py | 958c1c19760ea93631982d62e1adfdc41af7f519 | [
"MIT"
] | permissive | NeilJustice/FileArb | be2e91f49259f190f4d0b864dd2685b5d41340c8 | 7755956248e5bbfd7d2e0908c0c89656236dc000 | refs/heads/main | 2023-08-16T18:54:53.893169 | 2023-08-12T18:30:03 | 2023-08-12T18:30:03 | 286,283,428 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,489 | py | import os
import platform
import unittest
from unittest.mock import patch
from FileArbDevOpsPython import CMake, Process
from FileArbDevOpsPythonTests import Random, UnitTester
testNames = [
'test_generate_CreatesAndCdsToDirectory_RunsCMakeWithGeneratorAndBuildType'
]
class CMakeTests(unittest.TestCase):
... | [
"njjustice@gmail.com"
] | njjustice@gmail.com |
6e409b07464f1439d41832bc07e1c3dd6e25543f | 2fa0844b15642b7d2aebd5ff78a04204d053eb14 | /Next Greatest element.py | c60247175710f6d7c40ea6fa4e651b4239370293 | [] | no_license | vishwatejn/30DayChallenge | def5614ab720d5be11e9f771f09bd0e8e4229e6a | 5b55d94617bee7933e3d9143aa3b7064f4850e41 | refs/heads/master | 2022-11-21T11:05:50.792630 | 2020-07-27T17:28:11 | 2020-07-27T17:28:11 | 280,362,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | # Next Greatest element
for _ in range(int(input())):
n = int(input())
a = [int(i) for i in input().split()]
ans = []
stack = []
for i in range(n-1, -1, -1):
if len(stack) == 0:
ans.append(-1)
stack = stack+[a[i]]
else:
while len(stack) ... | [
"noreply@github.com"
] | noreply@github.com |
680a0e0de6073f3abe65423cb7fb5db81be49057 | b551208270a971fbd5aa8f8c66e2825381a5fe11 | /tarea_4_v2.py | 0ad67e29f9feb1c35364ee4ffeb553ea4a403287 | [] | no_license | evq1529/tarea_4 | cef498af41a13690905ea8327dfce08b9d37b314 | 2dde0ca9e6aa27e89f3934613e5e327485b0427f | refs/heads/master | 2020-04-22T02:20:11.975331 | 2019-02-12T17:58:32 | 2019-02-12T17:58:32 | 170,044,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | import math
import random
# Super clase
class Carro():
numero_ciclos = 1
def __init__(self):
self.fuerza_motor = random.uniform(0, 9)
def rendimiento(self):
return self.fuerza_motor
# Subclases camion, tractor, sedan y bus
class camion(Carro):
def __init__(self):
... | [
"noreply@github.com"
] | noreply@github.com |
28c91f379d6f7e52de4f2d24f3ab989eb31b410d | c71b3aa6091d3cc0469198e64cd394fa9dae1817 | /setup.py | f108ef64003f3065d39aab473ffa5fb5a93686e0 | [
"MIT"
] | permissive | offermann/elizabeth | 8a30f65f93aee244437de4cd42084cb29607c724 | 3b89512e566895846136809e571abf50b93c5312 | refs/heads/master | 2020-01-23T21:40:46.324687 | 2016-11-23T07:21:03 | 2016-11-23T07:21:03 | 74,689,354 | 0 | 1 | null | 2016-11-24T16:27:52 | 2016-11-24T16:27:52 | null | UTF-8 | Python | false | false | 1,385 | py | from distutils.core import setup
import elizabeth
setup(
name='elizabeth',
version=elizabeth.__version__,
packages=['elizabeth'],
keywords=['fake', 'data', 'testing',
'generate', 'faker', 'elizabeth',
'bootstrap', 'db', 'generic',
'church', 'dummy'
... | [
"likid.geimfari@gmail.com"
] | likid.geimfari@gmail.com |
5d2b7b16ff69dd14d2b2b20f09a09e2859f1c705 | 24a9dc5ef1cb84c81cda2078cdcd7add93aa742d | /1_merhaba_dunya.py | 68d1c3a37c2593c9279435cafa5bcc9fda50cb7d | [] | no_license | huseyin1701/python_giris | 22512d9a516b4bad76995fa2025b8922c68f9522 | e5d701e333e46f1718a5fe203071425c4f03b0d7 | refs/heads/master | 2023-04-13T02:59:49.940900 | 2021-04-26T23:07:26 | 2021-04-26T23:07:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | print('merhaba Dünya!') | [
"donmezz.huseyin@gmail.com"
] | donmezz.huseyin@gmail.com |
3e5495cb48392cb45a583ddd32af10a533ca0703 | 663a6ad82afc4f977e4b115e7f426c325f2d5dea | /app.py | 2dca4dc388f5a14b1a691d7b3b8987b6d5e20549 | [] | no_license | u9510136/ETL-project | 7b4f04fc47ec7696451b3bdd9dd2488858fa8e65 | e22f448c14246a989bd83a3d6d07c52babcc939b | refs/heads/master | 2020-04-25T19:58:22.369367 | 2019-03-07T00:36:56 | 2019-03-07T00:36:56 | 173,039,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | from flask import Flask, render_template, request
import pymysql
app = Flask(__name__)
db = pymysql.connect("localhost", "root", "password", "climatechange_db")
@app.route("/")
def main():
cursor = db.cursor()
sql1 = "SELECT * FROM temp_averages_final"
cursor.execute(sql1)
results1 = cursor.fetchall()... | [
"ktaliah57@gmail.com"
] | ktaliah57@gmail.com |
3a571f666d8d314fa5c6f9d60e5db6b48d04df70 | 8cf236717df097e183f245c6e1a9d76c3b12d2e5 | /XML_DOM.py | f66338258fb85af0f5209f5d1cfbb59f99b79da9 | [] | no_license | Benson-Jhang/Hello-World | b8aeba54f9bf1ddba6aaacd932f9b39ef5a29e96 | ef5c46b824d1d7fbb3dc9de403df7f77e460470f | refs/heads/master | 2021-01-16T19:36:43.548480 | 2017-09-21T13:46:58 | 2017-09-21T13:46:58 | 100,181,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | from xml.dom.minidom import parse
import xml.dom.minidom
# 使用minidom解析器打开 XML 文档
DOMTree = xml.dom.minidom.parse("..\XML\movies.xml")
collection = DOMTree.documentElement
if collection.hasAttribute("shelf"):
print ("Root element : %s" % collection.getAttribute("shelf"))
# 在集合中获取所有电影
movies = collection.g... | [
"noreply@github.com"
] | noreply@github.com |
2db441df96d69d4eda30cd22d74ee1b62a47205e | 9680c27718346be69cf7695dba674e7a0ec662ca | /Pattern-Python/A shape.py | ad545c440e124919825e93bc861239a679658909 | [] | no_license | Md-Monirul-Islam/Python-code | 5a2cdbe7cd3dae94aa63298b5b0ef7e0e31cd298 | df98f37dd9d21784a65c8bb0e46d47a646259110 | refs/heads/main | 2023-01-19T05:15:04.963904 | 2020-11-19T06:10:09 | 2020-11-19T06:10:09 | 314,145,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | for row in range(7):
for col in range(5):
if ((col==0 or col==4) and row!=0) or ((row==0 or row==3) and (col>0 and col<4)):
print('*',end='')
else:
print(end=' ')
print() | [
"61861844+Md-Monirul-Islam@users.noreply.github.com"
] | 61861844+Md-Monirul-Islam@users.noreply.github.com |
c186dc58541a842fa25180f53f81e383f452aa63 | dcedc0e42543879a26f5ddd0675150c724ecd065 | /04_b.py | b1c288f14882dbdf826795aad60c95fa9d87d80f | [] | no_license | tchapeaux/advent2019 | 914d40eae96e8c33b71c3dbfd6f59f84c67ef05e | 1475274c388dfb09ebdc3e450ad10eaf0df1784f | refs/heads/master | 2022-11-17T11:15:14.679076 | 2020-07-15T09:48:24 | 2020-07-15T09:48:24 | 279,828,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | ## ADVENT OF CODE 2019
# Day 4 - Part I
# Basically find out how many numbers in a range respect some conditions
RANGE = (108457, 562041)
def condition1(number):
# 6-digits number
return 99999 < number < 1000000
def condition2(number):
# in the range of my input
# my input is hardcoded in this case
... | [
"tom@wooclap.com"
] | tom@wooclap.com |
5cb4bea24ec8cb56b25d43314f597cbdc352b4cc | e749e94163a0e20c551875583baef4e02e72de5e | /Github/IPS-10/test_script.py | e65add9190f155013f39296105ebadd5a65a640f | [] | no_license | tritims/TensorFlow-Program-Bugs | 3445200179f4b7f5cc4ac1c6f076468ec19e51bb | 158ba0a23e0cb74e73dbab08571b05fc36848f2a | refs/heads/master | 2022-07-08T16:33:38.511696 | 2020-05-20T14:20:47 | 2020-05-20T14:20:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | import tensorflow as tf
import sys
import os
import subprocess
try:
assert len(sys.argv) == 2
version = ["-buggy", "-fix"][int(sys.argv[1])]
except:
print(
"Please run 'python test_script 0' for testing the buggy-version and "
"'python test_script 1' for testing the fix-version.\nAborted...... | [
"zyhzyhzyh@pku.edu.cn"
] | zyhzyhzyh@pku.edu.cn |
49b656d166969c71c5bb1e9e8bdb3df55a8e63fe | 81082d411233eceff044910a91acd5cfc5e6bb8e | /encoding/datasets/__init__.py | 5c0ca6e628bb196ff163e7009281c9b600801f32 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | JiayiShenTAMU/DANet | 2b309b1e2ec53fe676d29435d4f74848bc5fba9b | 192d4182ec4154b973a6b1752bcfdfc4576ad78c | refs/heads/master | 2022-11-30T19:10:32.500096 | 2019-07-16T06:15:55 | 2019-07-16T06:15:55 | 182,199,728 | 2 | 1 | NOASSERTION | 2022-11-24T02:13:22 | 2019-04-19T04:09:36 | Python | UTF-8 | Python | false | false | 588 | py | from .base import *
from .ade20k import ADE20KSegmentation
from .pascal_voc import VOCSegmentation
from .pascal_aug import VOCAugSegmentation
from .pcontext import ContextSegmentation
from .cityscapes import CityscapesSegmentation
from .isic import ISICSegmentation
datasets = {
'ade20k': ADE20KSegmentation,
'p... | [
"noreply@github.com"
] | noreply@github.com |
4a69fa615d9778b92059eae0425dffeaf3bd4224 | e5f7110708511c7b5fe8a569258a4b77e910a255 | /file_size_email_report | cdae00927f1eb453a91d2ea60c6f2c992e064ba1 | [] | no_license | Couperin100/email_report | 90c9ccfea50c509f1105cfbf797777d756dafdf5 | 34c642a2dc4fd22ab4d9669b1e2864f65d4168d4 | refs/heads/master | 2021-01-01T15:35:40.191459 | 2015-05-11T10:56:35 | 2015-05-11T10:56:35 | 35,413,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | #!/usr/bin/python
import fnmatch
import os
import smtplib
import time
suffixes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB']
def humanreadable(nbytes):
if nbytes == 0: return '0 B'
i = 0
while nbytes >= 1024 and i < len(suffixes)-1:
nbytes /= 1024.
i += 1
f = ('%.2f' % nbytes).rstrip('0').rst... | [
"couperin100@yahoo.co.uk"
] | couperin100@yahoo.co.uk | |
39a92f5247d16fbfd306ef360f566dc65705a8a4 | d167ec2fbf5f4e2c15f0bc19b1095ecdb34e1673 | /telegram_bot.py | 917189934b7dde487d10893f25649f744ef47240 | [] | no_license | rayoriz/kvr-officer | 9ff784467d8951f4a1e20c3db94b6a39311f1ef0 | 97034f23a4947b64284272e5e9ef43108d2a82d8 | refs/heads/master | 2020-05-31T23:34:35.799757 | 2019-06-03T12:14:06 | 2019-06-03T12:14:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | from requests import Session
from os.path import join, dirname
from dotenv import load_dotenv
import os
dotenv_path = join(dirname(__file__), ".env")
load_dotenv(dotenv_path)
class TelegramBot:
def __init__(self):
self.session = Session()
self.telegram_token = os.environ['TELEGRAM_TOKEN']
... | [
"bugraaydingoz@gmail.com"
] | bugraaydingoz@gmail.com |
d84f3a04f3fbaf81044facc8f383ffadfd07234d | 8d533e7f0b992953e22ad37668235c5cb3912e64 | /reyproxy.py | b71cc39d796f4d024124723e9390d165eebee1c9 | [] | no_license | reyluar03/error | ff578cc3a24b28006c1d13e5a56a7917baa899c0 | 3456d713cf9c6066172bafe1f3cc588bb287329d | refs/heads/master | 2021-09-11T07:53:35.191304 | 2021-08-29T07:38:14 | 2021-08-29T07:38:14 | 202,907,796 | 0 | 0 | null | 2020-01-22T06:32:52 | 2019-08-17T16:47:53 | Shell | UTF-8 | Python | false | false | 7,341 | py | import socket, threading, thread, select, signal, sys, time, getopt
# CONFIG
LISTENING_ADDR = '0.0.0.0'
LISTENING_PORT = 80
PASS = ''
# CONST
BUFLEN = 4096 * 4
TIMEOUT = 60
DEFAULT_HOST = '127.0.0.1:2500'
RESPONSE = 'HTTP/1.1 101 200 established \r\n\r\n'
class Server(threading.Thread):
def __init__(self, host... | [
"noreply@github.com"
] | noreply@github.com |
4d74d3e2dd4aa95681366c3abeb986acc91346b5 | cee5bc8011cefa0cd1ff7534706460094cb29acf | /ipadic/build.py | b711bd7870f3bbb773ffbc5fb7256646c5d8069e | [
"NAIST-2003",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | liben2018/janome | 42fdf4add82a6f8da31fcfffcd36e39b9be09ea7 | 3521e7c8018896dae46c380994596ff968bfc7c0 | refs/heads/master | 2020-04-10T00:04:13.084414 | 2018-12-05T14:01:45 | 2018-12-05T14:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,129 | py | # -*- coding: utf-8 -*-
# Copyright 2015 moco_beta
#
# 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 agr... | [
"tomoko.uchida.1111@gmail.com"
] | tomoko.uchida.1111@gmail.com |
20830159ad68156382f2aa94cbf864cf608c2ba6 | 89507deb802d78ceaafd22050047a6a4ce3d2292 | /holidays/affiliate.py | 7bd5fb03b9bbba5d543ed51ac41cf5a90fc07967 | [] | no_license | codebro850/tourastic-v-3-digital | d8514865ed844772c89dc421c8b1d5a398070582 | a32a8dee977d4aac1957bfbdddf24f39f302d670 | refs/heads/master | 2023-04-25T18:14:52.030083 | 2021-05-22T06:53:51 | 2021-05-22T06:53:51 | 369,737,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,214 | py | from .models import *
from django.shortcuts import render, redirect, HttpResponse
from django.http import JsonResponse
from datetime import datetime
from django.utils import timezone
def test(request):
a = request.GET.get('id', '')
if request.GET.get('id'):
affly = affiliateaccounts.objects.filter(aid... | [
"iqbalkhangori850@gmail.com"
] | iqbalkhangori850@gmail.com |
17339636ead67317781cc68df9f562403ce8bcc0 | 7604b6fdcaf0958d55858743186a36661632bb7c | /fabfile.py | d1dee03d97dee110d94c0078bfb10441516bcaf6 | [
"MIT"
] | permissive | sungvadan/docker-starter | b426215866ce0a342d3aa0a8c7db0edbaa548259 | d786f1fcd900668e9a4f90af741862d8bd8e1125 | refs/heads/master | 2021-02-17T23:11:01.431458 | 2020-03-05T10:35:33 | 2020-03-05T10:35:33 | 245,134,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 7,397 | py | from fabric.api import task, env, shell_env
from fabric.operations import local, _shell_escape, settings
from functools import wraps
from fabric.context_managers import quiet
from fabric.colors import green, yellow
import os
import re
from sys import platform
# This will be used to prefix all docker objects (network,... | [
"svd.phan@gmail.com"
] | svd.phan@gmail.com |
873a8308e38342abbe3b70f9e94e969ab2c19597 | 6f40583719c58c08ceed535e01b758a7f9b734ab | /Running up stairs.py | 55c83161465efbdfe96a95dff15efcc381347521 | [] | no_license | UdaraN98/IEEEXtreme_Answers | 80ce798e811a3e2404f51a056fa995cad3dc26c1 | 76cd906be72c698b45985e932008a9a2d74b41a4 | refs/heads/main | 2023-08-31T06:36:42.141989 | 2021-10-21T16:42:57 | 2021-10-21T16:42:57 | 419,195,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py |
#100% solution for running up stairs problem
def model(n):
out = [1,1]
for i in range(2, n + 1):
out.append(out[i - 1] + out[i - 2])
return out[n]
n = int(input())
for i in range(n):
l = int(input())
print(model(l))
| [
"noreply@github.com"
] | noreply@github.com |
71255ae81f166c90deb84e017fa23456c8574c0c | e768825834c6fa4b5195fb3a75a86951ccccfb23 | /Celebrities-Births/test_celebrity_birth.py | a46d6ff94d0e425ffe61eff2ee520da606a1e4fe | [
"MIT"
] | permissive | t3chnicalc0der/Celebrities-Births | 7b1fa0430e91d93988842009f30a99433053ac5d | 7ba7f3ffcadc85b5c1b523904e0d17a4f2486a94 | refs/heads/main | 2023-08-12T18:45:08.062970 | 2021-10-11T18:53:09 | 2021-10-11T18:53:09 | 414,319,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py |
from datetime import Date
import unittest
class DateTestCase(unittest.TestCase):
def test_it__(self):
date = DateTestCase('day', 'month', 'year')
expected_value = '01/01/2021'
actual_value = DateTestCase.test_it__()
self.assertEqual(expected_value, actual_value)
d... | [
"noreply@github.com"
] | noreply@github.com |
581055b16a4234a23782d06c58d517fe4d652495 | ca9828b053844e125eff47ee12983833de37f24b | /W1_A1_Q1_TopisterOnyango.py | 6bb7fa13fd9dc2fb765fa2dfd1f015885773a131 | [] | no_license | topisteronyango/alu_week_1_assignment | 7dca51d1e0af92d5e6025d980f6c5d82a5308e83 | 836c2b638a1478ee352b252332b34228132a9558 | refs/heads/main | 2023-08-04T01:43:48.465762 | 2021-09-24T15:07:26 | 2021-09-24T15:07:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # Write a program that prints your initials in big letters: Topister Onyango (TO)
# str = "TO"
# create two full nested list
print_T = [[" " for i in range(10)] for j in range(10)]
print_O = [[" " for i in range(10)] for j in range(10)]
# Code for two initials separately and finally combine the two
# Use a for loop
# ... | [
"t.onyango@alustudent.com"
] | t.onyango@alustudent.com |
fb4e2be5ba66f212f6895df79274b889e2894fbe | 5b0111abc9fc9af9bbafb30d7a25d5f420e0064e | /Desktop/mentes/movingraspi-master/MovingRaspiPlus/Server/config.py | 4f9d897e20835c2497267d55a05befc20469270e | [] | no_license | elekeszss/raspmentes | d1cecf20a0b1f226ae0e1cabeef153a268e7a146 | 882df1be74332e3e60c00b04b5cc9f3f46187168 | refs/heads/master | 2021-05-16T11:28:33.512681 | 2017-09-27T12:30:19 | 2017-09-27T12:30:19 | 105,014,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | """
" Edit below this line to fit your needs
"""
# Interface to LISTEN ("0.0.0.0" for all interfaces)
IFACE = "0.0.0.0"
# Network port to LISTEN
PORT = 8000
| [
"elekzsol6a@gmail.com"
] | elekzsol6a@gmail.com |
50f36588bf089a13782f0178fd5cb4d341d4ed75 | 5175745fe66fe258952b7b568d428a55ceec52c5 | /recipe_helper.py | 9932d50678fb46ce100427d6d2ea183c46205b2a | [] | no_license | ZhibaiLuo/ML_Fall_2019 | 21acbe2897d20b247df886282947d0e943d1bf7c | 61701d166ef4ee4955668d3e0543375b46f8c1fe | refs/heads/master | 2021-04-15T02:25:37.682304 | 2019-12-05T17:01:24 | 2019-12-05T17:01:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,480 | py | import matplotlib.pyplot as plt
import numpy as np
from sklearn import datasets, linear_model
from sklearn.metrics import mean_squared_error, r2_score
import functools
from mpl_toolkits import mplot3d
from ipywidgets import interact, fixed
import pdb
class Recipe_Helper():
def __init__(self, **params):
... | [
"ken.perry.quant@gmail.com"
] | ken.perry.quant@gmail.com |
13f15def94d42ab1168c57dc08af350377c93f6e | 848b347287b3e68e0ab0419cbe3501e0e074a4a6 | /scripts/geo.py | 46ee58f20be1deb1ac0d444698b61b9ef2847a7c | [
"MIT"
] | permissive | Stefal/V4MPod | 51b74dd44c732679446b27e43035e8c0ca9c3e26 | 91f729a34e65265e596ed56b44c119433a79d64d | refs/heads/master | 2023-07-20T22:08:56.915763 | 2020-09-11T15:54:38 | 2020-09-11T15:54:38 | 80,815,818 | 5 | 1 | MIT | 2023-08-29T20:37:21 | 2017-02-03T09:37:43 | Python | UTF-8 | Python | false | false | 6,872 | py | # -*- coding: utf-8 -*-
import datetime
import math
WGS84_a = 6378137.0
WGS84_b = 6356752.314245
def ecef_from_lla(lat, lon, alt):
'''
Compute ECEF XYZ from latitude, longitude and altitude.
All using the WGS94 model.
Altitude is the distance to the WGS94 ellipsoid.
Check results here http://www... | [
"stephane.peneau@wanadoo.fr"
] | stephane.peneau@wanadoo.fr |
a1bbecb3c489e3adf7a346b839907ce2356359f7 | ec48a223562d2aad9ccb3daf7ad149ce178d3da1 | /chipper-asm.py | 5b5603044a38b38e67e0e93783c09198f19959d2 | [
"BSD-3-Clause"
] | permissive | Michaeel4/chipper-asm | a8304101fa97a304dd4d442d2959b9e7dbfc45e3 | a0bf0b380cada56128cadf8861fd355bd0c7400f | refs/heads/master | 2023-03-24T22:04:59.403235 | 2019-06-18T07:43:54 | 2019-06-18T07:49:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,134 | py | #!/usr/bin/env python3
import sys
import re
offset = 0x200 #chip8 start address
lineNumber = 0
labels = {}
executable = bytearray()
#Helper funcs
def numberValid(number, bits):
try:
if number.startswith('0x'):
number = int(number, 16)
else:
number = int(number)
if... | [
"flyingsky@pop-os.localdomain"
] | flyingsky@pop-os.localdomain |
73aa117c1863006ad30d050c997fa4c02461376e | 1319be8b316780ae0d07c11d770553df83fb5dca | /reid/evaluators.py | f759508bfa5a2b3bb5633f759df7cf2a443e4157 | [
"MIT"
] | permissive | dapengchen123/flow_analysi | 7f74e4317eb5c57aebbe60b4203a2b2b2e62f0b7 | c09418aedfa0bccb4ed561794d423637df51f525 | refs/heads/master | 2021-01-25T11:41:01.080893 | 2017-06-12T10:31:27 | 2017-06-12T10:31:27 | 93,943,231 | 0 | 0 | null | 2017-06-11T23:19:48 | 2017-06-10T14:11:22 | Python | UTF-8 | Python | false | false | 6,707 | py | from __future__ import print_function, absolute_import
import time
from collections import OrderedDict
import torch
from .evaluation_metrics import cmc, mean_ap, avepool_dismat
from .feature_extraction import extract_cnn_feature
from .utils.meters import AverageMeter
def extract_features(model, data_loader, print_... | [
"dapengchenxjtu@foxmail.com"
] | dapengchenxjtu@foxmail.com |
17f68d304904019959c476e8e9e99d6d13e6e4cd | fea1a96ae970490ff582b031b6c78aae38829cb5 | /.history/app_20210829153017.py | 63a97667d23e9d0b2259096c68e02696d65d4ef4 | [] | no_license | endomasato/flask_hayatasu | 03fc77be9e44dc50d796640c4c1fd84d5ea03074 | 08f933b920c909d43f3b87d2638e6963d577cb6f | refs/heads/master | 2023-08-01T06:28:54.605717 | 2021-09-04T13:36:57 | 2021-09-04T13:36:57 | 400,898,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | from flask import Flask, render_template
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///todo.db'
db = SQLAlchemy(app)
class Post(db.Model):
id = db.Column(db.Integer, primary_key=True)
title = db.Column(db.String(30), nullable=False)
detail... | [
""
] | |
5a2bb246ebbe80a00da1a90ab45763913cb85500 | b8256b281e45b7e85e37c39d1393d15c6d634690 | /Rekursif/TugasDefRek2.py | 36e2f0bb4e5ffc72061ab604ed3533516998c2b1 | [] | no_license | ZaidanNur/PojectProjectan | 888c116acc2ab6b10bf4303b576bf8b7f2719619 | 520c6137d06df35186cfeb4abb16a2a9b434d290 | refs/heads/main | 2023-07-17T15:47:59.864054 | 2021-08-16T12:10:48 | 2021-08-16T12:10:48 | 305,222,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | Input_user = input("Masukkan kalimat :")
def palindrome(text=Input_user):
dictio = {""}
text= text.translate({ord(i):None for i in ". ,"}).lower()
return len(text) < 2 or text[0] == text[-1] and palindrome(text[1:-1])
palindrome()
if palindrome() == True:
print("Kalimat tersebut palindrom")
else... | [
"noreply@github.com"
] | noreply@github.com |
034668760af63dc9a0c81999c2992dfaef6ca5a2 | 34c1927ef35ba8e4084e3747cd261343b68c18de | /Django/random_word/apps/rand_word/views.py | a2b3e611995e8d10ff74ed3c521d0f9263dac020 | [] | no_license | py2-10-2017/JoeCalise | 35217d7414bc18209f3527ccf32d211317e00e6c | 8abcda17b29b6fcbd4530ebf95fa4e9f63b10eb2 | refs/heads/master | 2021-09-14T01:00:56.636441 | 2018-05-06T22:15:36 | 2018-05-06T22:15:36 | 105,604,653 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from django.utils.crypto import get_random_string
def index(request):
if "counter" not in request.session:
request.session["counter"] = 1
else:
request.session["counter"] += 1
con... | [
"josephcalise@Josephs-MacBook-Pro.local"
] | josephcalise@Josephs-MacBook-Pro.local |
84f344382c8c4e1507b007ec2e7e013fb1fdd869 | 0c210421675b9c83515cb8d71b5e9cdde7cd0b77 | /mysql_testdb/config.py | 198a6d0fdb245478848e081f4889e4f3a44985dc | [] | no_license | jqb/.boilerplates | 40dd1d3e2591047387a9ed688d2be2bbe452022a | 61331b575108743b971c928dc406fc7c1c2b4716 | refs/heads/master | 2021-01-10T19:28:49.153384 | 2018-07-28T16:55:20 | 2018-07-28T16:55:20 | 4,997,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from boilerplate import Configuration
conf = Configuration(__file__, {
'mysql_user': 'root',
'mysql_pass': 'admin',
})
| [
"kuba.janoszek@gmail.com"
] | kuba.janoszek@gmail.com |
4087a3e1da2b2d3aac4af121e2f1a6ea2f1c4e9b | e1732756e25fbbd5a019af512abbe087394a4075 | /main/dataDispose.py | f0017ce28f5e3cab64f00b9f5031897eec20360c | [] | no_license | ricky777melo/dataScienceProject | 5314e7fead7d2dc72c9f21349818d0d68f04ca9f | 46fae31e74a36a0a46450e68f88ff8b7941c5a1b | refs/heads/master | 2022-04-23T06:08:28.032801 | 2020-04-23T13:38:07 | 2020-04-23T13:38:07 | 258,122,408 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import data.RawData as RawData
import util.file as file
if __name__ == '__main__':
rawdata=RawData()
rawdata.dispose(file.getRootPath()+'data\sample.json')
rawdata.save(file.getRootPath()+'data\dataBase\\rawData.csv') | [
"181250139@smail.nju.edu.cn"
] | 181250139@smail.nju.edu.cn |
183e2af0650d8c37d8a20a17832530637e0782da | d18c9e4bccc85d3c5770515966ce9866f8bc39dc | /tests/test_stream_xep_0077.py | c47c4de5941515e66302ac4bad41a3d39db6f0b6 | [
"MIT",
"BSD-3-Clause"
] | permissive | dhsc19/slixmpp | fa1192e05477ebff1ab1fcf92389f75c6a66e30f | 2ba89727a6627f86e66ec4f3baba464da1b0b19c | refs/heads/master | 2023-03-07T14:27:33.863558 | 2021-02-19T18:06:41 | 2021-02-19T18:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,044 | py | """
This only covers the component registration side of the XEP-0077 plugin
"""
import unittest
from slixmpp import ComponentXMPP, Iq
from slixmpp.xmlstream import register_stanza_plugin
from slixmpp.test import SlixTest
from slixmpp.plugins.xep_0077 import Register
class TestRegistration(SlixTest):
def setUp(s... | [
"mathieui@mathieui.net"
] | mathieui@mathieui.net |
1c557226222f8ae8fd3b3380ddf57faa8460ae07 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/documentdb/v20210401preview/sql_resource_sql_role_definition.py | cb30538f8830dbc7262f71c0d975a9f11388df98 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 15,536 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
6989fd2845b1a0ef16e6da8575db02d921d872c6 | 82522ec55f9165ed26fec174eb278c68a53711c6 | /django_project/blog/migrations/0001_initial.py | 12d18a2b71b11fd4805d795b9551cee54498e851 | [] | no_license | mohd-hussain/django-project | 363e9269cfe9906e5c15dee017f576fb92ea7490 | cacc5622b6ee285d7e1c311cbde982ab8e8ce7fb | refs/heads/master | 2020-04-29T04:07:06.657513 | 2019-03-15T14:45:15 | 2019-03-15T14:45:15 | 175,836,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | # Generated by Django 2.1.5 on 2019-03-06 18:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"mohammedhussain8273@gmail.com"
] | mohammedhussain8273@gmail.com |
09900557e13191fe7b23e98ddf0f10fc11d17428 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayFundJointaccountAccountModifyResponse.py | 58d20e1c923c22e32b35d37c8b7fca6babba5937 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 470 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayFundJointaccountAccountModifyResponse(AlipayResponse):
def __init__(self):
super(AlipayFundJointaccountAccountModifyResponse, self).__init__()
def parse_response_... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
726a58f240a14d830f89b9cd7b5a471348a412ed | bc2763a3f2b224b1126918c93407a4c75a02c1d0 | /tweetSearch.py | f3b2d2c8d56036c96542407e4e76fc8f80cb11f2 | [] | no_license | jhrrsn/twttrStream | 502a1d90a403592907579afa68c22dae34f6e692 | fb2e6f2ad914ed97a87c25fe17d6f1a2571392a0 | refs/heads/master | 2021-01-13T01:28:46.967049 | 2013-02-05T16:24:44 | 2013-02-05T16:24:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | import bottle
from bson.code import Code
from pymongo import Connection
##
## Set up connection to MongoDB
connection = Connection()
db = connection.twitterstream
## Home page
@bottle.route('/')
def home_page():
return bottle.template('home')
## Results page
@bottle.post('/results')
def results():
keyword = bottle... | [
"jack@jhrrsn.com"
] | jack@jhrrsn.com |
6fd7ab16aec3e11a12f934268050bab75d09ea8b | 562d4bf000dbb66cd7109844c972bfc00ea7224c | /addons/efact/models/account/account_move.py | f03773b2e4e3da25665a8331f5175c34c931716c | [] | no_license | Mohamed33/odoo-efact-11-pos | e9da1d17b38ddfe5b2d0901b3dbadf7a76bd2059 | de38355aea74cdc643a347f7d52e1d287c208ff8 | refs/heads/master | 2023-03-10T15:24:44.052883 | 2021-03-06T13:25:58 | 2021-03-06T13:25:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | from odoo import api,fields,models,_
from odoo.exceptions import UserError, ValidationError
class AccountMove(models.Model):
_inherit = ['account.move']
@api.multi
def post(self):
invoice = self._context.get('invoice', False)
self._post_validate()
for move in self:
... | [
"root@vmi414107.contaboserver.net"
] | root@vmi414107.contaboserver.net |
951505c501fbaadeb5da86e0a7e8d1942d24ca8c | 0ba7a4571720e8e8af2944ed61fae7542b1fd556 | /plugins/modules/influxdb_user.py | 4080c1da7750743aeb3661988c34d375e3138a3e | [] | no_license | ansible-collection-migration/database.influxdb | 1395a40bb2f27482465f1ab190c9275d6cb1bceb | 81f060e5e02d1e0fa8a0679f45650c6f21ed4cb4 | refs/heads/master | 2020-12-18T13:02:11.364756 | 2020-02-03T21:58:43 | 2020-02-03T21:58:43 | 235,393,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,106 | py | #!/usr/bin/python
# (c) 2017, Vitaliy Zhhuta <zhhuta () gmail.com>
# insipred by Kamil Szczygiel <kamil.szczygiel () intel.com> influxdb_database module
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__meta... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
89bb7237f5f168c220272f5503a65ac37058bda4 | 6e94b466fd873cc3b5deabd0fc424c65cc66fdf2 | /naive_lstm/models/history/LSTM_9layers.py | a1f0f705d4aa0b1d2359072ada6228741f497ec8 | [] | no_license | Fischer19/DeepMusic | 0d120099aaf2ec4a9c9813576663f20e26222555 | bef38929ea1c097fc4a8bb748ef860f0491209eb | refs/heads/master | 2021-07-21T05:45:03.248942 | 2018-11-14T15:08:18 | 2018-11-14T15:08:18 | 140,699,867 | 1 | 1 | null | 2018-07-12T12:52:31 | 2018-07-12T10:43:36 | null | UTF-8 | Python | false | false | 11,507 | py |
# coding: utf-8
# naive LSTM model trained with smooth data
import torch
import torch.nn as nn
from torch import optim
import torch.nn.functional as F
import numpy as np
from torch.autograd import Variable
device = torch.device(3 if torch.cuda.is_available() else "cpu")
class DecoderRNN(nn.Module):
def __... | [
"zhaojinyu19@163.com"
] | zhaojinyu19@163.com |
dff2b857b3735fe0797c8f8953b6bb394c5bfbec | 166d9db788a567b37816bb5652e22efe64c1f453 | /pertemuan1.py | 5331a5c8e9dbff3387da0e371d65641a7e08a974 | [] | no_license | nizarsuryadi89/python-dasar | 87df403168e2b9c60252a8dca045224f8ea8722d | b3c27301a0a293acfe73fda23ca23a7f1ddd85b2 | refs/heads/master | 2020-07-13T15:31:42.842344 | 2019-08-29T07:50:50 | 2019-08-29T07:50:50 | 205,106,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | print('ini percobaan pertama')
print('ini jga masih pertemuan pertama')
print('ini maish percobaan dari python dasar')
| [
"nizarsuryadi89@gmail.com"
] | nizarsuryadi89@gmail.com |
a2bdac8dca716df9877a17c9a0c04aab575a62f1 | 5279b762e0cbfaee89a5c65fee36bfc76e4a0d45 | /npc/zombie.py | c89c3785d7d0b2e174e37458189a9e1b7469bb65 | [] | no_license | edriclin1/343-zork | 07346bbf1d83e8c3d3e8cc6f4833c6dffbd68ba8 | 015d7ac095315459ced409301b098303988f87d9 | refs/heads/master | 2021-04-09T13:49:46.369462 | 2018-03-19T18:09:44 | 2018-03-19T18:09:44 | 125,538,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py | from npc import Npc
from weapon.hersheyKiss import HersheyKiss
from weapon.sourStraw import SourStraw
from weapon.chocolateBar import ChocolateBar
from weapon.nerdBomb import NerdBomb
from player.player import Player
import random
# Class to create the Zombie object. Inherits from
# the Npc class.
#
# @author Edric ... | [
"line@mail.gvsu.edu"
] | line@mail.gvsu.edu |
c75f84f20e771674176cbd904fd7adf259635e28 | 758ac341257ea099e678fd08830a7b95f5d85e59 | /tc_gan/networks/tests/test_euler_ssn.py | 0faf3937702d1e05a5834e3d49e983876d109aa7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ahmadianlab/tc-gan | 98d17e087e89d70bc571cb35e7e7b035e87ca0f2 | 06c549e8ae74bc6af62fddeed698565ea1f548c5 | refs/heads/master | 2020-04-12T16:52:15.051511 | 2018-12-21T01:06:53 | 2018-12-21T01:06:53 | 162,626,424 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | import copy
import numpy
import pytest
from ... import ssnode
from ...utils import report_allclose_tols
from ..fixed_time_sampler import new_JDS
from ..ssn import BandwidthContrastStimulator, EulerSSNModel
from ..wgan import DEFAULT_PARAMS, grid_stimulator_inputs
def make_ssn(model_config):
kwds = dict(model_co... | [
"aka.tkf@gmail.com"
] | aka.tkf@gmail.com |
baf86efde77e669c26a16a2636a47d246e9c6551 | 724d4b6d4d7a834f138b6fe620db30fb9e0fb686 | /design_principles/modularity_tutorial/parametrized_ml.py | ba372e0e5dd4f6b499090803355b13bba47bd53c | [] | no_license | spierre91/medium_code | 0b1d9b8c683b7432d7b1bfb980f436c1afb6e61f | 0ad618b7a557083216e77717705bc49aa847b17e | refs/heads/master | 2023-09-04T11:03:59.291613 | 2023-08-16T22:18:02 | 2023-08-16T22:18:02 | 214,266,919 | 85 | 80 | null | 2022-08-06T05:56:10 | 2019-10-10T19:20:05 | Python | UTF-8 | Python | false | false | 2,443 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 9 15:22:18 2023
@author: sadrach.pierre
"""
import numpy as np
import pandas as pd
import catboost as cb
import seaborn as sns
from sklearn.model_selection import train_test_split, GridSearchCV
from sklearn.metrics import confusion_matrix, precisi... | [
"noreply@github.com"
] | noreply@github.com |
5097e022046f18b13e5260b89c8f292eb264a408 | 967056372d123ad5a86705156aea928d7352fe6a | /python实战/pytesttraining/src/ut/test_module.py | a20576ceafeee7df7faaa7acddff08cce684ca89 | [] | no_license | lxy39678/Python | ea179ef929eb9ddddb2460656aad07880ae67f84 | aba0434bc8ca7a2abdaa3ced3c4d84a8de819c61 | refs/heads/master | 2020-04-18T22:05:11.683134 | 2019-01-27T07:49:09 | 2019-01-27T07:49:09 | 167,783,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | #!/usr/bin/env python
# encoding: utf-8
#author: Jim Yin
import unittest
import logging
def setUpModule():
print("setup method\n")
global foo
foo = list(range(10))
class simple_test(unittest.TestCase):
def test_1st(self):
logging.info('info')
logging.error('error')
... | [
"895902857@qq.com"
] | 895902857@qq.com |
0311c6a3549e18a30a292174843bd902f85395ed | 32077d3bc34297d3daf931f3beb347562c491a76 | /app/src/python/readwrite.py | f6442a52be86d1dce60447eb098a1312349f6585 | [] | no_license | zhaobenbing/jenkinstest | 3aebf2aa83245f7d6abc90c3e196fe1cb0049bf9 | 0733d5210f0f0651dc0c085c5db37ef5b6bb36bf | refs/heads/master | 2022-01-24T12:32:07.354487 | 2019-07-18T06:17:22 | 2019-07-18T06:17:22 | 115,790,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | # -*- coding: utf-8 -*-
#import sys
updateFile = 'update.lrs'
randomHigh = "ThinkTimeRandomHigh"
randomLow = "ThinkTimeRandomLow"
totalVusersNumber = "<TotalVusersNumber>"
groupName = "<GroupName>"
config = "Config="
log = "[Log]"
def read_write_file(file,oldWorld,newWorld):
file_data = ""
with open(file... | [
"zhaobenbing@wanda.cn"
] | zhaobenbing@wanda.cn |
e0f20b6077317ea4ce1daf0cb6cee99767e8b6ea | 50a45dd74ffea8cd459de1876f3f67f6a2c21457 | /Study/Week_9/BOJ_13305_주유소/BOJ_13305_주유소_yeonggyun.py | c166b92edce46a914bea06a12a86cd2342c191a6 | [] | no_license | bomin1/Algorithm_Study | 70b8c58dc7f77f2a2266e911542955f894c1c2b2 | 2daccd992b0165405fe9f21e6b72dc051feb8069 | refs/heads/master | 2023-04-25T07:44:04.416439 | 2021-05-18T11:54:36 | 2021-05-18T11:54:36 | 354,817,808 | 5 | 0 | null | 2021-05-18T11:54:36 | 2021-04-05T11:52:46 | Python | UTF-8 | Python | false | false | 730 | py |
N = int(input())
distance = list(map(int, input().split()))
price = list(map(int, input().split()))
# 초기에는 무조건 첫 주유소에서 기름사서 가야함
total = distance[0] * price[0]
# 최솟값 설정
min_value = price[0]
# 실제 갈 거리 설정
d = 0
for i in range(1, N-1):
# 싼 주유소를 찾았으면
if price[i] < min_value:
# 거리만큼 기름을 사자
total +=... | [
"independenceday888@gmail.com"
] | independenceday888@gmail.com |
e692d7540ebbcd152e9cb9b958002b5c933ad7ec | eef72818143c9ffef4c759a1331e8227c14be792 | /sktime/forecasting/online_learning/tests/test_online_learning.py | 151298059c33206969c1a11bb443b9eb09866944 | [
"BSD-3-Clause"
] | permissive | jattenberg/sktime | 66a723d7844146ac1675d2e4e73f35a486babc65 | fbe4af4d8419a01ada1e82da1aa63c0218d13edb | refs/heads/master | 2023-08-12T07:32:22.462661 | 2022-08-16T10:19:22 | 2022-08-16T10:19:22 | 298,256,169 | 0 | 0 | BSD-3-Clause | 2020-09-24T11:20:23 | 2020-09-24T11:20:23 | null | UTF-8 | Python | false | false | 3,221 | py | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
"""Test OnlineEnsembleForecaster."""
__author__ = ["magittan"]
import numpy as np
from sklearn.metrics import mean_squared_error
from sktime.datasets import load_airline
from sktime.forecasting.e... | [
"noreply@github.com"
] | noreply@github.com |
a348d5caa0e5af73c7542f4843f4543b572b0c3f | 9459e16e0c3c9a86cb2f05d36f4fe59426dbeb99 | /Utilities/scripts/top2root.py | 7bd2c9f87419465d0b8f990786c53239d98f6d7f | [] | no_license | dntaylor/CombineLimits | b6767df87441aa2d92256aeb8a7b3d422bbb8cc9 | 2861f4097f09535f4a38bfd97174f60d80fbf6e1 | refs/heads/master | 2020-03-07T02:06:21.692444 | 2019-11-14T19:40:17 | 2019-11-14T19:40:17 | 127,201,059 | 0 | 4 | null | 2018-10-15T18:46:15 | 2018-03-28T21:32:40 | Python | UTF-8 | Python | false | false | 3,344 | py | #!/usr/bin/env python
import os
import sys
import argparse
from array import array
import ROOT
class TopPlot(object):
def __init__(self,lines):
self.lines = lines
def convert(self,tfile):
self.graph_names = []
self.graph_styles = []
self.graph_values = []
inLabel = Fal... | [
"dntaylor@ucdavis.edu"
] | dntaylor@ucdavis.edu |
fd17c9e6dd6c6aed3823add395b315b0ef9dcd2a | d98138ffe5d1d274315dc0fd38a1e0245ad5187f | /learning_users/basic_app/forms.py | 7617ceb079a042c37585125491eaa0974479d81e | [] | no_license | Razhty/django-deployment-example | f5ca24bd17064a1a60105eb18d63e493e4ff3573 | ce79bb07ffb714ad34988a3f323280cc1051d77a | refs/heads/main | 2023-05-09T20:36:06.625396 | 2021-06-08T03:03:08 | 2021-06-08T03:03:08 | 374,855,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from django import forms
from django.contrib.auth.models import User
from basic_app.models import UserProfileInfo
class UserForm(forms.ModelForm):
password = forms.CharField(widget=forms.PasswordInput())
class Meta():
model = User
fields = ('username', 'email', 'password')
class UserProfileI... | [
"juliox92@hotmail.com"
] | juliox92@hotmail.com |
22ec2e96d14446bcf60465990b4176d86f9ef90f | 840bcb11014543dd754e8473eb63e05ea21e129b | /gym_nyc_yellow_taxi/utils/simulator.py | 2fb811fa300f05c816948ade7d1aa53f2c123c84 | [] | no_license | transparent-framework/optimize-ride-sharing-earnings | e6fab49377bd8e960487c6c09fa51055ed894f78 | f7fcd2cc1d6ba18b199d176d4d39193f025ee281 | refs/heads/master | 2020-07-05T21:26:31.185185 | 2020-06-22T00:30:17 | 2020-06-22T00:30:17 | 202,781,217 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,401 | py | """
These methods help match passengers to drivers during each step
"""
import numpy as np
def initialize_driver_distribution(S, num_drivers, distribution='uniform'):
"""
Creates driver distribution at time 0
:param S:
:param num_drivers:
:param distribution:
:return driver_distribution:
"... | [
"noreply@github.com"
] | noreply@github.com |
a28be7269827ce18b4396b146f315e17ae433e7a | a66ca59e052e33db88b9c6ae648ba91b7af9a619 | /tictactoe1.py | d5f7196c8f8094433509f51098c81e4aef90efb1 | [] | no_license | cb992/basicGames | 07d9da0a3b1eeec0aae042859801e4768ecc9623 | 0cda628af4cb0ec09e2e15e03323589e84133031 | refs/heads/master | 2022-06-23T15:03:57.855107 | 2020-05-06T12:05:35 | 2020-05-06T12:05:35 | 261,740,356 | 0 | 0 | null | 2020-05-06T12:05:36 | 2020-05-06T11:38:30 | Python | UTF-8 | Python | false | false | 2,770 | py |
import itertools #cycle class/ method next(iter)
def win(current_game):
# to eleminate row.count(row[0])== len(row) and row[0]!= 0: use all_same(l):
def all_same(l):
if l.count(l[0])== len(l) and l[0]!= 0:
return True
else:
return False
#horizontal
for row in game:
print(row)
if all_s... | [
"noreply@github.com"
] | noreply@github.com |
1f81164812a251d01cbe9a9eba64ff23621ea640 | 4ef17f4244fe7f1b0a96c722610fef2ae417675c | /Planners/kenny-algorithms/file_manipulation.py | f486f03977ef14ca60850f0af6aadeb19095c128 | [] | no_license | vvannini/drone_arch | dd8cf9dcf058ac4a146c91c71509098d13542a17 | e3d3333c0229e6827cb63bfce8f015e34813fcd1 | refs/heads/master | 2021-07-19T02:03:41.626641 | 2020-08-04T21:38:06 | 2020-08-04T21:38:06 | 202,139,703 | 2 | 0 | null | 2020-02-11T12:31:01 | 2019-08-13T12:29:23 | Java | UTF-8 | Python | false | false | 5,961 | py |
# KML Google Earth .kml
# -------------------------------------------------------------------
'''
Faz a criação do arquivo KML para poder fazer a visualização da rota
final no Google Earth.
@param routes
@param mission
@throws FileNotFoundException
'''
def save_kml(filename, routes, mission): #throws Fil... | [
"vee.vannini@gmail.com"
] | vee.vannini@gmail.com |
68d260d4180a943e59b5538ff99aed8fc77fd545 | a77232d12fde9d1440bac32b0d3f1eb69ff38b08 | /speechsep/tests/spectrograms.py | 7ea4e1286a6abc60ab5b414e87da3ea5c6e4b2af | [
"Apache-2.0"
] | permissive | holyfiddlex/Speech-Separation | 7572aa6f70ad94542a3c9ee8eedf3c50cd6901c8 | 25bcae7a4716392a8b69332e39ea886797b30c13 | refs/heads/master | 2023-05-01T22:17:59.169274 | 2022-08-08T18:21:41 | 2022-08-08T18:21:41 | 224,290,903 | 1 | 0 | Apache-2.0 | 2023-04-12T05:35:28 | 2019-11-26T21:40:07 | Jupyter Notebook | UTF-8 | Python | false | false | 1,086 | py | import numpy as np
from scipy.io import wavfile
# from scipy.signal import stft, istft
# from scipy.signal import spectrogram
from librosa.core.spectrum import griffinlim
from librosa.core import stft, istft
import matplotlib.pyplot as plt
AUDIO_FILE = "data/AudioTest1_full.wav"
def create_spec_from_file(file_name):
... | [
"hoftherose@gmail.com"
] | hoftherose@gmail.com |
e1a6226b11ec2e292ddf15432608709851741dfc | 1605dcd79bc65cd101c844c2b9153df55fdca412 | /worktracker/migrations/0012_userstat_is_running.py | e22f2b9c83f9ddf3de6f012f8d31b66d2897d559 | [] | no_license | Sunil-bp/django_project | a71c1a6b456ede4d25b77c5d12dfb9643729cd23 | 4331d4aaeb5c38b56c90ad7d4257841caf1a76b1 | refs/heads/master | 2021-03-29T00:39:58.013216 | 2020-11-17T18:03:05 | 2020-11-17T18:03:05 | 247,908,871 | 1 | 0 | null | 2020-06-28T05:34:19 | 2020-03-17T07:46:17 | JavaScript | UTF-8 | Python | false | false | 397 | py | # Generated by Django 3.0.2 on 2020-02-23 05:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('worktracker', '0011_auto_20200223_0705'),
]
operations = [
migrations.AddField(
model_name='userstat',
name='is_runn... | [
"sunilbpoojari@gmail.com"
] | sunilbpoojari@gmail.com |
e2997c7f2c9473f23e58fc3b9d8e197a81943c02 | 16e842bcb73638586d93c17e9838fb89bc2b60bc | /Module-13/13.1 Django Framework/django-model-forms/Django-Demos-feature-django-model-forms/model_form_project/model_app/models.py | 7aed7bad4cb083d98332cb7a9d1e9a1f370c6161 | [] | no_license | krupa-thakkar/Python | dcbda2fe8296ffdd25641cf1e039132f41e0e44e | cbf0ec0399084a9a0a4ba5cebe739580bff4ce06 | refs/heads/master | 2023-03-24T05:43:58.799704 | 2021-01-25T06:20:44 | 2021-01-25T06:20:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from django.db import models
class UserDetails(models.Model):
Firstname = models.CharField(max_length=100)
Lastname = models.CharField(max_length=255)
Mobile = models.CharField(max_length=11,default='123')
def __str__(self):
return self.title
| [
"47570231+enji-coder@users.noreply.github.com"
] | 47570231+enji-coder@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.