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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47907d3f15ec79702c1837ad4b8607b8c5148ecc | c0860af34887f88ff824167d9e751a9041b9dd64 | /3/3.2.7.2.py | 6aa8321f83ffd4a64c8a7183d51e94ecb4b89431 | [] | no_license | Arthur-Akhmadullin/modules_and_files | 464ca93756cdd9898ef9cf0f1c7fb15dcb3599aa | 56991de5b66a44ed7e4460821f4f640907be1ab4 | refs/heads/master | 2020-04-10T10:23:28.287964 | 2019-02-25T18:26:46 | 2019-02-25T18:26:46 | 160,964,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | import random
sum = 0
x = random.randint(1,10)
y = random.randint(1,2)
f1 = str(x) + ".txt"
f2 = str(y) + ".txt"
print("Открываем файлы: ", f1, ", ", f2)
with open(f1, 'rt') as file_1:
try:
for s in file_1:
sum += int(s)
except Exception:
print("Ошибка содержимого в файле 1")
file... | [
"akhmadullinartur@yandex.ru"
] | akhmadullinartur@yandex.ru |
e433b3a5512397c0a9746137b020d1da9376ab1f | 7b1fb5d1d44f3300d55d0359c22e22adc73c7817 | /GraficResources/automaton.py | 69be4ccdfa7f93901982d481a03016cffde9804c | [] | no_license | MarcoContreras23/GenerarAutomata | 2563c01641e1f9c8e7c1f8d0c828926ec3e419aa | 204565bc24f39e25f854678d1a913dc008c8d975 | refs/heads/master | 2022-11-17T01:31:14.643097 | 2020-07-12T16:26:31 | 2020-07-12T16:26:31 | 277,318,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,429 | py | from GraficResources.Transition import Transition
from Resources.er import *
from Resources.alphabet import *
"""
Autores: Camilo Gomez, Marco Contreras
version: 2.0
"""
# Clase que contiene toda la administración del automata
class Automaton:
def _init_(self):
self.root = None
self.states = []
... | [
"marcocontreras2309@gmail.com"
] | marcocontreras2309@gmail.com |
8d3adffcb75347d706496e4544b6acf56113c62c | 32cad1640d04b8bb232435bcde1b33b81d5d2666 | /Project/fallingObjects.py | 90fd0e5557479f465ec0c3df39903d03605319ad | [] | no_license | minimtee/Probabilistic-Models-of-Cognition | 69323a81f325976ab918909fa483df753fac262d | 2dfc56ed752479bb3d280772e978eeba760d6e24 | refs/heads/master | 2018-12-19T23:26:14.502250 | 2018-12-13T04:02:08 | 2018-12-13T04:02:08 | 149,039,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,569 | py | from .framework import (Framework, main)
from Box2D import (b2EdgeShape, b2FixtureDef, b2PolygonShape, b2Random, b2_dynamicBody, b2CircleShape,)
class fallingObjects (Framework):
name = "fallingObjects"
description = 'A test for very fast moving objects (bullets)'
def __init__(self):
super(fallin... | [
"noreply@github.com"
] | noreply@github.com |
f199c98269eb59d4151b6dfd31cfb29ce4872f1c | a4b313d81cefab792b9a3462c34465c9e344e0d5 | /myapp/views.py | 55767b0e39931ad688451ebc73c62fb8d48dbda9 | [] | no_license | erjuhi09/myproject | 600471718d232c4993b071fedb3ee3c72c7837c6 | eef99b7413b278ab48315ec7161322721c0d7152 | refs/heads/master | 2022-05-29T17:45:35.304881 | 2020-05-04T18:29:50 | 2020-05-04T18:29:50 | 261,265,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,307 | py | from django.shortcuts import render,redirect
from .models import User,Phone,Review,Cart
from django.core.mail import send_mail
import random
from django.conf import settings
from django.views.generic.base import TemplateView
from django.conf import settings
from django.http import *
import stripe
from django.utils impo... | [
"erjuhi.kumari09@gmail.com"
] | erjuhi.kumari09@gmail.com |
5630a92bf90eb2a47b3b41d364c2ff647e07f7dc | 1e1132cbf244ad78a64383390e90fac9ca9fd6b3 | /contract/migrations/0005_supplier_email.py | 2ccbda9a244cb73b421981c196c2e68aae2fa3bc | [] | no_license | walidzakaria/Infinity | 7a3f5d8a720eb3a1fa376b3be209df180d998681 | 03534bbcaf47864a6312f9d9d8d956be667542af | refs/heads/master | 2020-04-28T17:37:16.438588 | 2019-03-29T17:42:18 | 2019-03-29T17:42:18 | 175,452,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Generated by Django 2.1.7 on 2019-03-15 17:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contract', '0004_hotelchain'),
]
operations = [
migrations.AddField(
model_name='supplier',
name='email',
... | [
"walidpiano@yahoo.com"
] | walidpiano@yahoo.com |
a5171cfc095ccedf7f67e762bc08d41c8f96d653 | b3859136ebde85ea52b5d8f3238668dd0fb6ad12 | /login/models.py | f4806e74f0911bb1e3c149aee614d7b467780998 | [] | no_license | hmoshabbar/UserLoginRegistrationPage | 174447d9b61294ec6a51b6e69b5f1f8729847c9f | 846ec4ec571ea9352bf5eb54691773303caab560 | refs/heads/master | 2021-01-11T13:36:07.160705 | 2017-06-21T12:57:18 | 2017-06-21T12:57:18 | 95,003,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | #from __future__ import unicode_literals
#from django.db import models
# Create your models here.
#class UsersList(models.Model):
#first_name = models.CharField(max_length=50, primary_key=True)
#last_name=models.CharField(max_length=230)
#email=models.EmailField(max_length=200)
#address=models.CharF... | [
"talktomoshabbar@gmail.com"
] | talktomoshabbar@gmail.com |
7158e87783927fb9354ce9b8d81f6f0ec4788c5e | 2fcc860bcc2c76f91e899de880e4c6d8a4b1abfb | /spider/users/tests/test_forms.py | caca2bfdb6e0549bfa0f222376dd815227564165 | [
"MIT"
] | permissive | dcopm999/spider | 54de2e10def4db662ce15f4e4fd3682927f2999b | 889d2ee6d3d5f54ccb1f22a645244bc7395bb202 | refs/heads/master | 2022-12-24T23:15:32.343792 | 2020-10-02T14:33:45 | 2020-10-02T14:33:45 | 300,559,008 | 0 | 0 | MIT | 2020-10-02T14:33:46 | 2020-10-02T09:03:09 | Python | UTF-8 | Python | false | false | 1,111 | py | import pytest
from spider.users.forms import UserCreationForm
from spider.users.tests.factories import UserFactory
pytestmark = pytest.mark.django_db
class TestUserCreationForm:
def test_clean_username(self):
# A user with proto_user params does not exist yet.
proto_user = UserFactory.build()
... | [
"dcopm999@gmail.com"
] | dcopm999@gmail.com |
100a646c0ba1ab7e929db839fb384c076294f916 | 554834afb4f6bf8b514405bff48f14b89b0c27ab | /view_arch.py | 70ab7f405d2175462ae6db7e242e5fd57eb63af2 | [] | no_license | Liu-sp/BinauralLocalizationCNN | 7fec3528d94f5eb719feb0b0a1874a7abd89197f | 864a58b9fa7e73ea74c832d6dad575aef424b8ac | refs/heads/master | 2022-11-30T23:41:37.493332 | 2020-08-10T17:27:00 | 2020-08-10T17:27:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | #!/cm/shared/openmind/anaconda/2.5.0/bin/python
import numpy as np
import sys
print(np.load(sys.stdin.read().rstrip()))
| [
"francl@mit.edu"
] | francl@mit.edu |
738cd5877511e17e11129d03814aae27ec4a3f2e | 2d596b46da92a2dc0779247b111c0f86ff8184c2 | /Clases/IMC.py | 54f8f331b50dc0986382fcbe82311de103207eb4 | [] | no_license | Nechi05/Programacion2021 | 4cbc9842fa47e9b2c4995b83776af0f99b0fe0d6 | cd9d71b76c1ef1eaae29a32cff930922079d3812 | refs/heads/main | 2023-05-14T00:14:15.478097 | 2021-05-27T13:11:24 | 2021-05-27T13:11:24 | 335,283,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | #......Constantes......#
PREGUNTA_PESO = "Cuanto pesas en kg? : "
PREGUNTA_ESTATURA = "Cuanto mides en mts? : "
MENSAJE_BIENVENIDA = "Hola cómo estás? Voy a calcular tu IMC"
MENSAJE_DESPEDIDA = "Tu IMC es de..."
MENSAJE_RESULTADO = "El resultado de la prueba de obesidad es..."
#......Entrada al código......#
print(MENS... | [
"iriarte.abraham@uces.edu.co"
] | iriarte.abraham@uces.edu.co |
1070d157ded22d5676508f0a1b9421d66cc241c0 | c7f428442b5dc40549a9d018d4c87d16307f4d71 | /data_helper.py | bbed6db5e28e2139cd74ce8a4c457fe4a1ecb06d | [] | no_license | TJUIRLAB/CIKM2018_QMWFLM | d4bae699696550ce41c9c4954e041486206ff675 | 013c7a276630b1e1f4f5c886bb6712e42ad33c37 | refs/heads/master | 2020-12-17T07:11:34.831534 | 2020-01-21T07:32:17 | 2020-01-21T07:32:17 | 235,286,509 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,256 | py | # -*- coding:utf-8-*-
from __future__ import print_function
import numpy as np
import random,os,math
import pandas as pd
from gensim.models.keyedvectors import KeyedVectors
import sklearn
import multiprocessing
import time
import pickle as pickle
from collections import defaultdict
import matplotlib.pyplot as plt
impor... | [
"zhansu@tencent.com"
] | zhansu@tencent.com |
3e1f295e6825076419cc4b9a199f74184b8640d6 | b6cdef81a572e02c0cbd795a8fb6bbc74f99d627 | /market/urls.py | 638b0bfb0222ca32b774f2061af49d1e112a6482 | [
"MIT"
] | permissive | sodatta/Stocks-Screener | 4afbdd68c1e80dafece50e3e0b967af35dd83c07 | 0b8da91da40b715beaf3a79163b1bdf6ea3be3b9 | refs/heads/master | 2023-07-27T13:14:47.798403 | 2021-05-03T20:04:51 | 2021-05-03T20:04:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | from django.urls import path
from market.views import *
app_name = "market"
urlpatterns = [
path('list', list_stocks, name='list_stocks'),
path('create', create_stock, name='create_stock'),
path('update/<int:pk>', update_stock, name='update_stock'),
path('delete/<int:pk>', delete_stock, name='delete_... | [
"mohammedshokr2014@gmail.com"
] | mohammedshokr2014@gmail.com |
046b923b254e89712705f27a7aa00ae78895d728 | 259c5f865ee9afdaa2971262b58a3e7f99cea46a | /main.py | 1bdeb53acc3ff82c8d52a6809b67d7a867f458c8 | [] | no_license | MrDrul/Wifi-Pass | bfde423115fd39412d9dc27093bde8eacf0adf6d | 94f907e164860007026016a92caf50f9aeaa5591 | refs/heads/main | 2023-03-26T00:58:09.654609 | 2021-03-20T14:05:59 | 2021-03-20T14:05:59 | 349,741,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,547 | py | ######################################
#Copyright of David Bombal, 2021 #
#https://www.davidbombal.com #
#https://www.youtube.com/davidbombal #
######################################
# Import subprocess so we can use system commands
import subprocess
# Import the re module so that we can make use... | [
"noreply@github.com"
] | noreply@github.com |
8f5ece5a28642b6805dc673705cf67798c278d2e | d6ac485201564a278917c870164cbfe9dc4c0dfb | /sg-carparks/carpark-dash.py | cfa9347fd2f3873c570b5a58cfbd95c9ea1eb918 | [
"Apache-2.0",
"MIT"
] | permissive | limjiaxiang/dashes-with-dash | 588ff47b198b2d99ed49dd19daf34e6b72d406a7 | 7c9730acb9088555b57aa1db38422cd4f8a80b6f | refs/heads/master | 2022-12-11T20:11:39.176455 | 2019-10-23T15:14:54 | 2019-10-23T15:14:54 | 187,992,465 | 0 | 0 | Apache-2.0 | 2022-12-08T05:09:26 | 2019-05-22T08:06:53 | Python | UTF-8 | Python | false | false | 4,689 | py | import json
import requests
from datetime import datetime
from collections import deque
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Output, Input
import plotly.graph_objs as go
def curr_carpark_data():
api_url = 'https://api.data.gov.sg/v1/tra... | [
"blakelimjiaxiang@gmail.com"
] | blakelimjiaxiang@gmail.com |
dfaa0becf5ab38dc77878869ee509763c4f3b435 | 8895f126cf2a4d1778bd9c555345f5004308311e | /X_length.py | 727a5e797d68ec1ea62f25b8a477fa601f3f72e2 | [] | no_license | Liam1809/Python_Practice_Small_Projects | 4d332bc9f6ed070fbfca4c9fa16a02b98450a5c3 | dabd09b5df4ef7f64c3f7522b59fae147071b756 | refs/heads/master | 2022-08-03T09:59:34.911324 | 2020-06-04T06:28:20 | 2020-06-04T06:28:20 | 258,716,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # Write your x_length_words function here:
def x_length_words(sentence, x):
words = sentence.split()
for word in words:
if len(word) == x:
return True
return False
# Uncomment these function calls to test your tip function:
print(x_length_words("i like apples", 2))
# should print False
print(x_length_wo... | [
"50177344+Liam1809@users.noreply.github.com"
] | 50177344+Liam1809@users.noreply.github.com |
97e9d2a3c5ed00e3fdc27b872b05998ed77c4de5 | b7b78d0f8bb0cf9608f17934fc1267b33c7d493c | /SquareCell.py | e1dd836ee92cd746718e7074c1cb515fd49ab271 | [] | no_license | imseanwei/PrintCode | 53d2b989941f79476ce2770656e7687ea6b48c6f | 2dff51980ad80dbd06e44ee3275084e53f21353c | refs/heads/master | 2021-01-10T19:50:45.947874 | 2015-08-14T20:16:19 | 2015-08-14T20:16:19 | 22,273,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,060 | py | #battery-printer
#rely on home position set with 1st code loaded (separator)
#needs to re-zero "Z" between codes/syringes, but assume same x, y
#packaging bottom
#cathode
#separator
#packaging top
#anode
#sealing
from mecode import G
#nordson Tips sizes (color, inner diameter, outer diamter, in mm)
#Olive 1.54 1.... | [
"SeanWei@Seans-MacBook-Pro.local"
] | SeanWei@Seans-MacBook-Pro.local |
750ce4228f69dff6b7ebdcfb272d6613b2c61d95 | e1f0e369afde8500d2a988029e6a64ca9db7944c | /keke/keke/spiders/kekespider.py | d92cd38d67780f1603bb7e5088f1c916429e0f42 | [] | no_license | MRKKUM/EnglishListening | aab6ce97823cca0225fbc733c2891502575d0938 | 82985d4903a5a96f560d312d289abcf350770bba | refs/heads/master | 2020-12-27T04:05:40.850954 | 2020-02-02T11:25:28 | 2020-02-02T11:25:28 | 237,759,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | # -*- coding: utf-8 -*-
import scrapy
from keke.items import KekeItem
class KekespiderSpider(scrapy.Spider):
name = 'kekespider'
allowed_domains = ['www.kekenet.com']
start_urls = ['http://www.kekenet.com/Article/chuji/List_292.shtml']
# 开始访问
def start_request(self):
yield scrapy.Request(s... | [
"619353515@qq.com"
] | 619353515@qq.com |
28d07593900fbe9c33f4f5c559e0ca97f30e0ba5 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/DatadigitalFincloudFinsaasDigitalrmbSendSyncResponse.py | 230307b7cea48730702e6bdd98d81bd253790e93 | [
"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 | 497 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class DatadigitalFincloudFinsaasDigitalrmbSendSyncResponse(AlipayResponse):
def __init__(self):
super(DatadigitalFincloudFinsaasDigitalrmbSendSyncResponse, self).__init__()
d... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
138d11dbfb17d5aba5fe7da9142ed37cd2d8d02e | a5543aefd481b899d06cac1932d468831a1d6fa6 | /richmenu_uploadimg.py | a5ad99bff845e9c145969d4877e71d65bd72bcf4 | [] | no_license | Coopathon2019/10_PYROS | 072bf3bde39d5e293294e248546bf073ae2e3704 | 93b1eed1ceeab97e50868806f9943397e6fbe921 | refs/heads/master | 2020-09-11T13:01:35.629273 | 2019-11-17T03:50:38 | 2019-11-17T03:50:38 | 222,072,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from linebot import (
LineBotApi, WebhookHandler
)
import json
with open("./rich_menu.png", 'rb') as f:
with open('./config','r') as con:
j = json.loads(con.readline())
line_bot_api = LineBotApi(j['linebotapi'])
line_bot_api.set_rich_menu_image(j['richMenuId'], "image/jpeg", f)
| [
"qqps4487@gmail.com"
] | qqps4487@gmail.com |
840dd67c5f3f7a922750b75ffd15762431a3e7fb | 0c02177afd7195cbda5c342be90a08a2b64b2e44 | /mobaas-algorithm/mobaas/algorithms/multi_user_prediction.py | 370fd1662c298079b0335b02c633b9eb98fac66a | [] | no_license | Cloudxtreme/mobaas | 002908e0b47701ec288e68b4af085d90104d893e | 43d881867d1366def195ecbb6ee632d0fa78da88 | refs/heads/master | 2020-03-31T11:59:25.249878 | 2015-11-05T17:40:41 | 2015-11-05T17:40:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,258 | py | '''
-this code calculates the transition probability for all user that have trace files, given a current time(12:44), current day(Monday) and transition time(20).
- the results save in 'IC output' folder and display in screen.
-this calculation repeated for every transition time, starting from current time
-for every r... | [
"zhongliang@zhongliang-desktop"
] | zhongliang@zhongliang-desktop |
8eb71b032e33aa03276f6cc15f6cf200ebdace33 | 1c7234af5a0c745c8f370f682ee124bb7a01b81e | /Desktop/Projects/Random Number/toss.py | 60fc13d6c7877c15ee4f94875419eb08dc99c14a | [] | no_license | 26aseem/Random-Number | b637a2047f9d3dcaadbd98c59a6fe3bb29ee99ca | ce675a6e96e0abb7949bfd2a0df9973970f0bd71 | refs/heads/master | 2020-09-06T20:59:16.238430 | 2019-11-08T21:13:11 | 2019-11-08T21:13:11 | 220,548,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | import random as rd
import numpy as np
from time import sleep
def toss_coin(coin_num,coin):
num = rd.choice(coin_num)
coin[0] = num
return(coin)
board = [0]
coin = np.array(board)
coin = coin.reshape(1)
coin_num = [1,2]
toss = str(input('Press Y for tossing a coin or press N to exit\n'))
while tos... | [
"khullar26aseem@outlook.com"
] | khullar26aseem@outlook.com |
5bef5bc9f81a44cb7270b61b022c732b0ac221fb | d3613f7c295a94ae9f5e2964dbff3cf8353010b0 | /blog/models.py | fac8f14b1d6099f5e664762f812eccd8907b9ac4 | [] | no_license | NickBell123/ptwithclaudia | b63be48b27c1966938b151f8f9d2a52a2b8e9e3b | 9885b8b6fc299848a56d8f47e0be765ea80c7c49 | refs/heads/main | 2023-02-09T08:38:04.267009 | 2021-01-03T16:18:10 | 2021-01-03T16:18:10 | 312,090,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | from django.db import models
from django.contrib.auth.models import User
from datetime import datetime, date
from ckeditor.fields import RichTextField
class Category(models.Model):
class Meta:
verbose_name_plural = 'Blog Categories'
name = models.CharField(max_length=250)
friendly_name = models.C... | [
"nick.bell2008@gmail.com"
] | nick.bell2008@gmail.com |
1dfa288faab5484bb37471149f7533c066d2365c | b37e40e4dc4ad3fc9c317b68284fb86955a64bf5 | /a1/venv/lib/python3.6/site-packages/probability/distributions/functions/discrete_function_1d.py | 604d6e50deadbe409568e07b3f193e7efeeefe6d | [] | no_license | bateikoEd/Text-mining | 89c57dec1b6ffcae82a49fc6a23acab89d7ca60e | ccd3f50b694b90269450e5304c504fac5a117f59 | refs/heads/master | 2021-01-14T18:02:35.642837 | 2021-01-13T14:04:56 | 2021-01-13T14:04:56 | 242,695,063 | 0 | 1 | null | 2020-05-20T09:46:22 | 2020-02-24T09:28:46 | Python | UTF-8 | Python | false | false | 2,324 | py | from matplotlib.axes import Axes
from pandas import Series
from scipy.stats import rv_discrete
from typing import Iterable, overload
from probability.distributions.mixins.plottable_mixin import PlottableMixin
from probability.plots import new_axes
class DiscreteFunction1d(object):
def __init__(self, distributio... | [
"bateiko0713@gmail.com"
] | bateiko0713@gmail.com |
616adc4e2b3ae5aff6e25dc4f44382fd821a211c | 10aa8b83a6c3b8a54f47c6b5602fba851a2bdd32 | /src/modules/mixers/maven_qmix.py | 2f66a430a6b85aecf81254c0512e2e8319418534 | [
"Apache-2.0"
] | permissive | HuggingNobody/pymarl2 | fa0732b34d737da64176a218d0d5da905ff9306e | b4383e9b7eef57b9a24c40135e6b2d2b490afc6d | refs/heads/master | 2023-07-09T03:12:58.774447 | 2021-08-20T08:26:24 | 2021-08-20T08:26:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,585 | py | import torch as th
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class MAVENMixer(nn.Module):
def __init__(self, args):
super(MAVENMixer, self).__init__()
self.args = args
self.n_agents = args.n_agents
self.state_dim = int(np.prod(args.state_shape)) + ar... | [
"janhu9527@gmail.com"
] | janhu9527@gmail.com |
4a63e05020e53e31b359cf93e35ecd644a037bba | 17f86278ca4c313f3b3b83aa10efe316684893a7 | /ex2/costFunReg.py | e32241947b01557b02d47b34c468ecaf26f30843 | [] | no_license | xiaoxue11/machine_learning | 490f14dc46c1a2b85f2fbdf19ed79dc3a703ad0c | ed61539bdd0dcb1c5c6e0fb9d9997427cf464410 | refs/heads/master | 2020-04-12T06:10:22.730041 | 2019-01-16T17:22:42 | 2019-01-16T17:22:42 | 162,344,736 | 2 | 0 | null | 2018-12-18T21:08:05 | 2018-12-18T21:00:58 | Python | UTF-8 | Python | false | false | 560 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 28 22:39:35 2018
@author: 29132
"""
from costFunction import sigmoid
import numpy as np
def costFunctionReg(theta, X, y, lambd):
m=np.size(y)
grad=np.zeros(np.size(theta))
g1=sigmoid(np.dot(X,theta))
grad1=1/m*np.dot(X.T,g1-y)
J1=-1/m*su... | [
"noreply@github.com"
] | noreply@github.com |
f3ccf27cfb27169b20dc78aba448e82e482efb89 | a7371301cea503bacc82619fde651aac85f2738b | /mccabe_group/scripts/test/modify_water_xml.py | 171abb566e3b394533209315a25f7a6a686931f5 | [] | no_license | PTC-CMC/McCabeGroup | b9931a022d0af52aeb2891b548c6294ebc0ab7b7 | 19e0578e91fc82cc24e974b9cc2e3b6a6722d36b | refs/heads/master | 2021-06-11T05:05:53.034326 | 2020-03-24T01:40:05 | 2020-03-24T01:40:05 | 128,414,852 | 1 | 3 | null | 2020-03-06T17:46:44 | 2018-04-06T15:47:17 | Python | UTF-8 | Python | false | false | 3,192 | py | import pdb
from lxml import etree
import numpy as np
#KJ_TO_KCAL = 0.239
#NM_TO_A = 10
# Units from the chodera group were in agreement with foyer/openmm units
# leave everything in terms of kj and nm, but I'm too lazy to modify the
# functions below, so i'm leaving the conversions here
KJ_TO_KCAL = 1
NM_TO_A = 1
... | [
"ahy3nz@virginia.edu"
] | ahy3nz@virginia.edu |
4014ac4fca105024c570c764694cbf626242bf0c | 1848410c06e2cacb9520666828dd6fb99145b1ee | /ComssService/examples/lower_service/receiver.py | 2e821be5bf50078b604c74cdbbb0eb52e57ea4f3 | [] | no_license | pawellewandowski/TIRT | a9ff8a67e1b9ed41af2669cd13bce175b17f50a5 | db9b38f1597d5dec75c799207b7f55075c078ab2 | refs/heads/master | 2020-04-13T01:41:18.820505 | 2014-06-08T16:55:55 | 2014-06-08T16:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from ComssService.dev.control import DevServiceController
import sys
desc_file_name = 'servers_emulator.xml'
controller = DevServiceController(desc_file_name)
try:
while True:
sys.stdout.write(controller.read_data('2', 1024))
sys.stdout.flush()
except:... | [
"pawel.lewandowski352@gmail.com"
] | pawel.lewandowski352@gmail.com |
0258469dcb911582032ee750ee5c71f4168a9ba0 | 2b7e7565915297cc406d6931a0a690ca85568ef7 | /py/matplotlib/savepic.py | dd0174ada2bc12a2262e10d275f6447b5089c99f | [] | no_license | pklim101/codelib | 08c504d35c2c09a493b2ef8086711908279c969d | abf0f135bd10981e4a62c6fd5fcce1b6e2b1e866 | refs/heads/master | 2022-05-02T05:07:24.296441 | 2022-03-13T03:38:51 | 2022-03-13T03:38:51 | 93,059,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | #!coding:utf-8
import matplotlib.pyplot as plt
import numpy as np
x = np.arange(1,5)
#print type(x) #<type 'numpy.ndarray'>
plt.plot(x, x*1.5, label='Normal')
plt.plot(x, x*3.0, label='Fast')
plt.plot(x, x/3.0, label='Slow')
plt.legend(loc='upper right') #图例显示的位置
#plt.show()
plt.savefig('plot123.png')
| [
"pklim101@163.com"
] | pklim101@163.com |
6867aa7938918dd4e0e2164d346d5c47d93808cd | cfc7ca191feb873a17487bdb57711e6432d67dbb | /mingProject/wsgi.py | 2f6d2573eb692ba1da7ed32c5ca3d3338d381406 | [] | no_license | min-yu-kim/ming-django-2nd-week | 20601ac1c731a26a8f3a76e26041dd5cf4cfc8c1 | 7014301456f1ae830ca88e1595d9225124d10acd | refs/heads/master | 2023-05-06T00:15:02.018470 | 2021-05-23T12:09:29 | 2021-05-23T12:09:29 | 370,040,677 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for mingProject 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"alstj0827@naver.com"
] | alstj0827@naver.com |
784873bd3ed65e78e194fc6a267078865a10b5c2 | 671d658f7346a55b252446d837d6ce9f6e44f1eb | /lab12/search_test_starter/performance_tester.py | b8d793b88c61b5d1ea8d8fdafdc57fdce2b4824e | [] | no_license | jingjingliao/PythonCourse_5001 | 686135202dbbef714cc2d683352f810ec39f6381 | 346b4637a162eba17f2ab8e4d95b23b615300c4b | refs/heads/master | 2022-11-19T15:56:14.851306 | 2020-07-25T20:20:24 | 2020-07-25T20:20:24 | 282,518,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | import math
import random
from list_searcher import ListSearcher
def main():
test_linear_search(1000, 1000, ordered=True)
test_binary_search(10000, 1000)
test_median(1000, 300)
def test_linear_search(N, num_trials, ordered):
"""
Run a linear search experiment with the given configurations:
N... | [
"55671806+jingjingliao@users.noreply.github.com"
] | 55671806+jingjingliao@users.noreply.github.com |
0331408a58ee306f644e0538cab0d811508f4a0f | 7c7a393978b2077acddc2f58e5209de0d7c44af7 | /django_CMG/manage.py | d8eb3d0860127f3f4f32423a996b698d26e690b2 | [] | no_license | metasikander/djangoCMG | 5753bfea8a8a8700aa521b2632997f86aa50d438 | 770308e1e2c4eea0ec6137f82157ff7fb0a13844 | refs/heads/master | 2020-12-24T19:05:07.754221 | 2012-12-08T22:07:17 | 2012-12-08T22:07:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_CMG.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"sikander@lhote.me"
] | sikander@lhote.me |
9b43b68d0f9d70a018b748664e91f8aeaefc9e64 | c25272cb651f141a757b49cb9d7080a696aa3d5b | /bikeshare_2.py | d90904c8953f3d1272feeb95e7907e39e6fc2abe | [] | no_license | Anas20001/bikeshare-2 | f7698a345dd1d205689a66a425a0fc5b3cf56ff3 | e7aed02e11594e27b1f4e89c21af7d050b4edcc9 | refs/heads/main | 2023-02-03T04:52:36.229454 | 2020-12-22T10:49:47 | 2020-12-22T10:49:47 | 323,597,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,065 | py | import time
import pandas as pd
import numpy as np
CITY_DATA = { 'chicago': 'chicago.csv',
'new york': 'new_york_city.csv',
'washington': 'washington.csv' }
months = ["all", "january", "february", "march","april","may","june","july"]
days = ("all","monday","tuesday","Wednesday","thuresday",... | [
"noreply@github.com"
] | noreply@github.com |
4e2f22ec7b1ffc016b73658aec4d4dc1cce87a89 | 5236ffe6a7b188b74b88a7b499967c4232c6153d | /src/app.py | 96e9be338ed4ef1896179264ef5ce5c9f01c2744 | [
"Apache-2.0"
] | permissive | sul-dlss-labs/etd-abstract-similarity | fa9f69d52756ecf013a774add33f6dc470a4a397 | ddff8c66d29fd333171dd03aff03d6a918c9ed5a | refs/heads/main | 2023-03-11T16:03:45.041496 | 2021-01-28T17:43:24 | 2021-03-01T23:31:57 | 306,506,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,902 | py | __license__ = "Apache 2"
import base64
import pathlib
import pickle
import nltk
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.widgets import Button
import streamlit as st
import detail
import helpers
st.set_page_config(page_title='ETD Abstract Similarity')
def _get_state(ha... | [
"jermnelson@gmail.com"
] | jermnelson@gmail.com |
9d7f96cd31d2cf14c0fa8f8e87e6a0638374ff0f | 6035d9968b0aaeddd43c0123bbcc89ab26f9a52e | /2-Neural network/nn_mnist.py | 67050fb49e0f3df09e3c600f9f5921dd9a16a424 | [] | no_license | ChristopherHD/FSI-Practices | 1ab707743e952bf320360d7844ce50a551de8e11 | 72a09f63969dfd999671e49b9e32871d4189cddb | refs/heads/master | 2020-12-30T13:38:36.976182 | 2017-05-14T09:57:04 | 2017-05-14T09:57:04 | 91,230,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,003 | py | import gzip
import cPickle
import tensorflow as tf
import numpy as np
# Translate a list of labels into an array of 0's and one 1.
# i.e.: 4 -> [0,0,0,0,1,0,0,0,0,0]
def one_hot(x, n):
"""
:param x: label (int)
:param n: number of bits
:return: one hot code
"""
if type(x) == list:
x =... | [
"christopher_1996vba@hotmail.com"
] | christopher_1996vba@hotmail.com |
57e9029f123f9aec0c4ddf68e011d5db83ad126a | 31641feb2b7a5a983360a4f84a55ba82ec1d9d73 | /booleans.py | 1aa98a1daf0e811b242ef8eece1342af0804df93 | [
"MIT"
] | permissive | chapman-cpsc-230/hw3-EddieWadors | cc782c2fac22d94e893aa5a85e28705f51ab912f | a3a3d4f59593b5939d9c29c9c132e1b32ccd59f9 | refs/heads/master | 2016-08-11T17:45:33.520916 | 2016-03-11T07:16:38 | 2016-03-11T07:16:38 | 53,444,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # -*- coding: utf-8 -*-
"""
File: booleans.py
Copyright (c) 2016 Eddie Wadors
License: MIT
- Defining code into boolean answers.
"""
c = 41 #c is equal to 41.
c == 40 #c equals 40, which is false considering python understands c to be 41.
c != 40 and c < 41 #c is not equal to 40 and c is less than 41.
c != 41 or c <... | [
"wador101@mail.chapman.edu"
] | wador101@mail.chapman.edu |
fa4b855a4afd05b57a0aaedea6b2c4e53258024b | 7c31ad2a69e9d8bf51c9e043145bdb02a2dff9fd | /currency_converter_CLI.py | dac09d3f62600c7efd104f5920fdc450a2b214cd | [] | no_license | cibaa/Currency-convertor-kiwi-homework | 6f6794c9ea0a2d72c6eb82eb08b3838b719893cc | 1610ac1cc49e3573b9cba9ee19896a527efb5b96 | refs/heads/master | 2021-09-09T21:37:56.313569 | 2018-03-19T20:57:46 | 2018-03-19T20:57:46 | 125,918,890 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | #!/usr/bin/env python3
import forex_python.converter
import argparse
import json
parser = argparse.ArgumentParser(description='Currency converter')
parser.add_argument('-o', '--output_currency', type=str, help='requested/output currency - 3 letters name', default=None)
requiredNamed = parser.add_argument_group('requi... | [
"ciba@Ciba-TravelMate"
] | ciba@Ciba-TravelMate |
96f529986626acf453fee6c0c15d8a67cd61db13 | 5c892bd3a0244b0698f4432eb314aac14b4bb6be | /Ch. 7 - Signal Synthesis/squareSynthesis.py | 88297a8214e41de6ed1170fd2aefabd39275d76a | [] | no_license | jlqian98/HackAudioPythonCode | bcf2406e8fd4e6ecd34eaf3464dae0c364ccfdd0 | 6ab887f5f4cec211b8da5dca1b1036b8bb25a753 | refs/heads/main | 2023-08-28T01:40:22.602263 | 2021-11-13T18:52:50 | 2021-11-13T18:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | # SQUARESYNTHESIS
# This script demonstrates the a square wave
#
# See also SINESYNTHESIS, SAWTOOTHSYNTHESIS, TRIANGLESYNTHESIS
import matplotlib.pyplot as plt
import numpy as np
from IPython.display import Audio
from plottf import plottf
# Example - Square wave signal
# 2 Hz square wave for visualization
f = 2
phi =... | [
"erin.yamabe@pop.belmont.edu"
] | erin.yamabe@pop.belmont.edu |
cd7ad04d904f05716840bcf693827de5cfecdd4d | d83ef55d6a1c8366aa459e227ddca3a7e845328f | /game_hotel/pipelines.py | fde4ba23b68cdc4537e62fa0cf5d864464a6705e | [] | no_license | jss0824/meituan | ebaebf6a0dd8a8227a166794699a18153ad6e039 | 8b77a89cee9ab2a90d521811ebdb4ab62c9b9aaa | refs/heads/master | 2020-09-30T22:57:16.143759 | 2020-01-14T01:43:27 | 2020-01-14T01:43:27 | 227,393,863 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,566 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymysql
class GameHotelPipeline(object):
def process_item(self, item, spider):
conn = pymysql.connect(host=... | [
"yinjie@dkingsoft.com"
] | yinjie@dkingsoft.com |
a826b762da02774c07c94c4213076ad10aa14a12 | ee9a391b2023ec3d02dfa44a00e9b219a56c1890 | /exercises/timers_ex1.py | f93d350c0d02c0795a340ef5fbc0a32cbaea678c | [
"Unlicense"
] | permissive | kotalbert/interprog1 | b12b5f281bd93440818275b6da6a987e206e1cec | a49ecef14453839518f1e8a6551fb3af493b1c2c | refs/heads/master | 2021-05-29T01:51:13.758768 | 2015-03-12T15:38:34 | 2015-03-12T15:38:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | """
An Introduction to Interactive Programming in Python (Part 1)
Practice exercises for timers # 1.
Counter to console.
"""
# Counter ticks
###################################################
# Student should add code where relevant to the following.
import simpleguitk as simplegui
counter = 0
# Timer handler
... | [
"pawel@daniluk.waw.pl"
] | pawel@daniluk.waw.pl |
bb430a92daa1a186500a99c66eaa6bf6641aa1d6 | 318b0becedea76f9d6f8d894ff2c34135bf18c7a | /src/inference/prepare_data.py | bfa0739625be1dc479637f529e3114f2a22fc9f3 | [] | no_license | Truebazinga/openvino-dl-benchmark | 17308974c16d1941e21c66b5e1659498c5ea0ad4 | c07555e520dcc9ad98c860914490cfff223966f0 | refs/heads/master | 2020-05-07T13:31:20.419821 | 2019-04-08T05:15:03 | 2019-04-08T05:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,879 | py | import os
import sys
import numpy as np
import logging as log
import cv2
from openvino.inference_engine import IENetwork, IEPlugin
def prepare_model(log, model, weights, cpu_extension, device_list, plugin_dir,
thread_num):
model_xml = model
model_bin = weights
if len(device_list) == 1:
... | [
"khvatov.alexander@gmail.com"
] | khvatov.alexander@gmail.com |
63a2943acd0d5a6906f4e42f7433e20520ea06cd | 8be05833162b809115ea07117a3a33ef966a3d87 | /P1-main.py | ca35bf147dbc01c82b35acfc13cac33acbaf9a12 | [
"MIT"
] | permissive | Axel13fr/SNCD_P1_Lane_Finding | 86c35553367b516eb1d8bd2bf7127e169c367798 | 4486a41fe47c8ba512ac772f693b2abc21273f63 | refs/heads/master | 2021-04-30T18:22:58.578993 | 2017-02-22T08:11:59 | 2017-02-22T08:11:59 | 80,354,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,980 | py | #importing some useful packages
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import numpy as np
import cv2
import math
def grayscale(img):
"""Applies the Grayscale transform
This will return an image with only one color channel
but NOTE: to see the returned image as grayscale
(ass... | [
"axel.durbec@gmail.com"
] | axel.durbec@gmail.com |
3d9532f5a3b3bbc62b89f781bbac4a6bf43b70d0 | 4b0e7c654249cc098ed2230f16e5a19a9329ca4b | /Day3/whileExample.py | 3d9dde6bc49db6e3f2a7ceffb0e1a7139ec1ea48 | [] | no_license | aravindanath/rio_de_janeiro | 5a1d41e4ff4201f2b6be2f81437376c01ae30238 | 43a6c0f704ff5d55256705da13057d1532510f16 | refs/heads/master | 2020-07-24T13:40:55.655457 | 2019-12-02T02:47:16 | 2019-12-02T02:47:16 | 207,945,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py |
empty=[]
tup= (1,2,3,55.3,3)
x = 0
while x<=10:
print(x)
empty.append(x)
x=x+3
# break
else:
print("Out of loop!..")
print(empty)
empty.sort(reverse=True)
print(empty)
empty.pop()
print(empty) | [
"aravindanath86@gmail.com"
] | aravindanath86@gmail.com |
677aa3639fe10a720b5b170c8406f7544d2a8ab4 | 64832dd1e64cfc6de83c5abf099461eda50f648c | /major/migrations/0006_auto_20190212_1502.py | 9a52e37c1930c929474d4d021feb9c920e6e2d76 | [] | no_license | showzvan/mysite | d7e79e16eb8c2d3598d00d1a96fa0b1940765913 | 32826c83915a2f95440c04ed20a7800d2c343ac1 | refs/heads/master | 2020-04-27T17:05:19.143296 | 2019-03-08T09:09:45 | 2019-03-08T09:09:45 | 174,504,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 2.1.5 on 2019-02-12 15:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('major', '0005_auto_20190212_1457'),
]
operations = [
migrations.AlterModelOptions(
name='majors',
options={'ordering': ['maj... | [
"1183005957@qq.com"
] | 1183005957@qq.com |
6a1ff9b893559a51aeba845b762bb1a02a1d091c | 05c34103872129a84ae5916d3e82eaa066173843 | /hash/hash.py | e4a4700556984e5fada323eb9d68ba298465f4aa | [] | no_license | adrianliuj/coursera_algorithm | 671a1b35b3464e540dd3592cbeb0a9419fc6ed60 | ab9a8d3c3c1e6d49c793e89d23c8435d663ef5fa | refs/heads/master | 2020-03-17T01:27:05.223646 | 2018-05-12T14:28:29 | 2018-05-12T14:28:29 | 133,153,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 28 19:17:24 2018
@author: heyad
"""
def hashFun(num):
return num%1000000
def search(num,ht):
index = hashFun(num)
return num in ht[index]
filename = 'array.txt'
ht = [[]]*1000000
nums = []
count = 0
f = open(filename)
while True:
line = f.readline()
... | [
"heyadrianliu@hotmail.com"
] | heyadrianliu@hotmail.com |
789e2f3d7a66de51e9df2e9c0927cdb7205a1ca0 | 3d1c8054e6ecbd1e339c2270bd7fd0745a44fcb0 | /ringbuffer.py | e7827eedb13196c8cb75aa29882b6ba30291d01f | [
"MIT"
] | permissive | guyingbo/ringbuffer | e21d6924f36fad6022ba27adcf254b84d18fc18c | 73ac4a13e9a96291df5d0cb0b3454be382e3dbd2 | refs/heads/master | 2022-12-01T09:59:36.327516 | 2020-08-19T09:09:05 | 2020-08-19T09:09:05 | 287,550,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,353 | py | class OverflowException(Exception):
pass
def _chr_len(x: int):
return len(repr(chr(x))) - 2
# RingBuffer structure
# @: data, -: blank
# [------------------------------------------] initial state
# ^head&tail
# ^data
# [@@@@@@@@----------------------------------] after first push
# ^tail ^head
# [-----... | [
"tensiongyb@gmail.com"
] | tensiongyb@gmail.com |
16d0dd3c0b65e32e8579d047dc313fedc6f5ee5e | 0e7c75be7397e5b379c809190b8d6577667d4011 | /search/build_index.py | 1021432961ad7f5701290194093538a9e137c2db | [] | no_license | amartya2969/search_engine | 835f1a7367ccab4c2d9355a931c9ffd4980fb0b4 | 2b87bb65e52982f52168265d3879bae988842409 | refs/heads/master | 2020-12-10T14:55:38.540519 | 2020-01-13T15:29:27 | 2020-01-13T15:29:27 | 233,625,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | import pandas as pd
import os
import pickle
from collections import Counter
from small_utils import tf_idf, tokenize_text, remove_punctuation,stemming
import math
if os.path.exists('docf.p'):
with open('docf.p', 'rb') as handle:
docf = pickle.load(handle)
else:
docf = {}
if os.path.exists('pos... | [
"amartya2969@gmail.com"
] | amartya2969@gmail.com |
fd285a87a946147fff7ed4074bd936ce82b3c71b | 2caf4fc121b6df2fc468c5d3c0e02d5e611b3c70 | /src/pages/views.py | d0b4cd6e6d4b494168fab4db8b6ed3e6d617bba6 | [] | no_license | plerzundi/caffeteira | ba6faa376b830dc68bfe8abc0e25ccbbe346ce4a | 59ed2c6f22a1e120a6a72c6cd1f58595edab0762 | refs/heads/master | 2020-03-21T01:30:11.012665 | 2018-06-21T22:14:58 | 2018-06-21T22:14:58 | 137,946,086 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from django.shortcuts import render, get_object_or_404
from .models import Page
def page(request, page_id, page_slug):
page = get_object_or_404(Page, id=page_id)
return render(request, 'pages/sample.html', {"pages": page})
| [
"patriciolerzundi@gmail.com"
] | patriciolerzundi@gmail.com |
2621befb9b7a9315b62b4fd2da10230c3ec21a37 | 48ac148c171463cce20de59660efc6f43590d41e | /patients/migrations/0018_auto_20180628_1711.py | 769ecd0c0a6ec99105542eac6e43b1c54dea5bd7 | [] | no_license | victorloh67/transform | 3eeeb8ada6b88de88ae363187b70fdb91427000d | b438954739d2676621084e6fc5f81ce2c1ee7b3f | refs/heads/master | 2022-12-13T06:20:02.079643 | 2018-07-03T18:31:19 | 2018-07-03T18:31:19 | 139,621,720 | 0 | 0 | null | 2022-12-08T02:15:02 | 2018-07-03T18:13:51 | Python | UTF-8 | Python | false | false | 502 | py | # Generated by Django 2.0.2 on 2018-06-28 21:11
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('patients', '0017_auto_20180628_1629'),
]
operations = [
migrations.AlterField(
model_name='profile'... | [
"victorloh@yahoo.com"
] | victorloh@yahoo.com |
9a1786cad4159b913aec33ee1d09bb8d29c00cea | db2d290957e36ad6e993d2f4421830689982cd69 | /COMP9021/Lab_5/sierpinski_triangle.py | a25e6835ea10073e182015f5f257ffca784cbf63 | [] | no_license | NblYb/UNSW | abd504445289266141e084f13a0c30405ff88b2a | 5311b985d19b4437b598fac8133af7166c1a8134 | refs/heads/master | 2021-09-05T11:31:31.862517 | 2018-01-26T23:22:20 | 2018-01-26T23:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | import sys
s = input("Input the desired size: ")
try:
size = int(s)
except ValueError:
print("Invalid value, giving up...")
sys.exit()
if size <= 0:
print("Invalid value, giving up...")
sys.exit()
triangle = [None] * (size + 3)
for i in range(size + 3):
triangle[i] = [0] * (size + 1)
triangle[1... | [
"serena.f.yu@gmail.com"
] | serena.f.yu@gmail.com |
721c9d906ada7108a96e4930e8c8a9d5a1811d9a | 015a781946795f0455bac3b0fa2ce6e0df6afec4 | /euler1.py | dbf8949fce918b75fb1d6d454e31166a03f805f2 | [] | no_license | jesscapall99/chem160module8 | 2e31adf22294d00eb49dad15db57cba65302ed91 | 701b4b81aefd196ebd03e97b31aff1d0a7bf0bb9 | refs/heads/main | 2022-12-25T14:09:02.254479 | 2020-10-05T03:59:02 | 2020-10-05T03:59:02 | 301,286,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import numpy as np
N=1000
m3=np.arange(0,N,3)
m5=np.arange(0,N,5)
m35=np.concatenate([m3,m5])
m35u=np.unique(m35)
print("Sum of 3 and 5 multiples below %d is %d"%(N,m35u.sum()))
| [
"noreply@github.com"
] | noreply@github.com |
65a6861c0691be6a03106b216d123f6149fde722 | a908793fc984b9858638e776b814795db73bc2d2 | /window.py | 56ed26d0b242c3ebff4d2992c74f4f8b6aab7fd1 | [] | no_license | DavidCampbellIII/ProgramLineCounter | a07a9e97f34d7053dc0913d3d8a41d9c205183cb | b7250b53601d0b064aa1351530fed34661344aa2 | refs/heads/master | 2023-05-10T12:08:48.675907 | 2021-06-11T04:04:22 | 2021-06-11T04:04:22 | 280,341,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,136 | py | import tkinter as tk
from tkinter.filedialog import askdirectory
import os
brackets = set("{}[]()")
STATUS_REFRESH_RATE = 1000
class Window:
def __init__(self, root, languages):
def set_up_main():
txt_status_box.pack_forget()
btn_redo.pack_forget()
lbl_instructions.pac... | [
"lapidistcubed@gmail.com"
] | lapidistcubed@gmail.com |
05f77bf55f362c947875830112ac1b7baf13a757 | 118f14634ea34b6301f076cc0137272e2a683322 | /store/migrations/0002_store.py | 5faf770281abebb25befe598b0d8fbf90754fb2f | [
"MIT"
] | permissive | vollov/ecomstore | 10fce347c100fcbaa86687a5738dcf57dba05fc9 | ba9d7e6d74b29de2e3e9411a481248afdc172a40 | refs/heads/master | 2021-01-09T21:54:21.976982 | 2015-10-28T20:31:07 | 2015-10-28T20:31:07 | 45,086,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import uuid
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Store',
fields=[... | [
"dike.zhang@gmail.com"
] | dike.zhang@gmail.com |
e1cc3368b2a5d16cb9019a30defca25fe6594cca | afdf18702737b46cc2cd22a830c2d053e1684c31 | /python/Self-driving-controlled/logger.py | 9212580f03fe2470576eb037c3ae888443f66d79 | [] | no_license | arcub/driverless-cars-2017 | 1ac5f62f7df0ae62f4124bf5868e4ba3227702bc | 9a2ca1816d42f0427954a4d5473aebbad247540f | refs/heads/master | 2021-09-10T12:19:40.750700 | 2018-03-26T07:05:09 | 2018-03-26T07:05:09 | 110,547,255 | 0 | 0 | null | 2018-03-26T07:04:20 | 2017-11-13T12:45:50 | Python | UTF-8 | Python | false | false | 1,020 | py | import logging
class Log:
def __init__(self):
self.logger = logging.getLogger(__name__)
self.logger.setLevel(logging.DEBUG)
self.fh = logging.FileHandler('log\\Red_Rover.log')
self.fh.setLevel(logging.DEBUG)
self.ch = logging.Streamhandler()
ch.setLevel(logging.ER... | [
"brandonraines98@yahoo.co.uk"
] | brandonraines98@yahoo.co.uk |
c50f4d0827019512e5a5c1ff85c3e4ed26cc6f05 | f9684c301ce50a6bbb5a75280cd4c70277119f27 | /yelpdetails/yelpdetails/middlewares.py | b5a408ed741194ce385e883725c5905470a0166d | [] | no_license | vaibhav89000/yelpdetails | 76149f2feed5cbad98b3e67d3a786223289fc1f4 | b7ce6f739a7f76fbe665e27eb097475775c0c489 | refs/heads/master | 2022-11-25T05:09:56.803075 | 2020-07-06T12:45:54 | 2020-07-06T12:45:54 | 269,969,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class YelpdetailsSpiderMiddleware:
# Not all methods need to be defined. If a method is not defined,
# scrapy act... | [
"vaibhav89000@gmail.com"
] | vaibhav89000@gmail.com |
385b947796cd7f565fd783fac4dea3070265ab44 | f9609ff4f2bbea570f3cb4cd3f9fe6b3595d4145 | /commands/cmd_pick.py | bc62e4f118aaf1f658d5fc3efcd20ce0ae76c432 | [] | no_license | VladThePaler/PythonWars-1996 | 2628bd2fb302faacc91688ad942799537c974f50 | d8fbc27d90f1deb9755c0ad0e1cf2c110f406e28 | refs/heads/master | 2023-05-08T19:51:28.586440 | 2021-05-14T04:19:17 | 2021-05-14T04:19:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,025 | py | # PythonWars copyright © 2020, 2021 by Paul Penner. All rights reserved.
# In order to use this codebase you must comply with all licenses.
#
# Original Diku Mud copyright © 1990, 1991 by Sebastian Hammer,
# Michael Seifert, Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe.
#
# Merc Diku Mud improvements copyrig... | [
"jindrak@gmail.com"
] | jindrak@gmail.com |
85ed587604b914ef8a8d2922a8737395eb48e553 | 946ff3fa181aa5ebb3e4f8d4bb7c15b6f6fe63a9 | /tests/algorithms/conftest.py | 5686332d238c67925b0c84ee05c1ed34a4376821 | [
"BSD-3-Clause"
] | permissive | VIDA-NYU/openclean-metanome | 9908e725d482fab12903e9e87307c5ddf06590c8 | 37948eb25142ed4ba884fc07bfe0cad5666769e8 | refs/heads/master | 2023-06-04T15:42:02.600499 | 2021-06-16T08:38:54 | 2021-06-16T08:38:54 | 294,754,491 | 1 | 0 | BSD-3-Clause | 2021-06-16T08:38:54 | 2020-09-11T17:02:45 | Python | UTF-8 | Python | false | false | 641 | py | # This file is part of the Data Cleaning Library (openclean).
#
# Copyright (C) 2018-2021 New York University.
#
# openclean is released under the Revised BSD License. See file LICENSE for
# full license details.
"""Fixtures for Metanome algorithm unit tests."""
import pandas as pd
import pytest
from openclean.data.... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
2540de34cdd9b8c944d955de9c5fa30879c222dc | 7ecf797224aadfc69841ea4f3bb3f741c3a9c0ff | /dashboard_mods/ViewStatsAddon.py | 01ed14f16009c88bbc93f4f9996e6abe5ddb6854 | [] | no_license | ninadmhatre/zual | 4ca10f34860f6099eb687eb10368abaa229df14b | 2c159a551c08b5afb957959d3fdf8c8ce21ae452 | refs/heads/master | 2021-01-21T13:40:31.091734 | 2020-07-08T23:25:14 | 2020-07-08T23:25:14 | 54,843,683 | 57 | 5 | null | 2020-07-08T23:26:00 | 2016-03-27T19:04:00 | Python | UTF-8 | Python | false | false | 3,576 | py | __author__ = 'ninad mhatre'
from addonpy.IAddonInfo import IAddonInfo
from libs.AddonReturnType import AddonReturnType
from jinja2 import Template
from application import page_view_stats
class ViewStatsAddon(IAddonInfo, AddonReturnType):
result = None
status = True # Data received properly
def template... | [
"ninad.mhatre@hotmail.com"
] | ninad.mhatre@hotmail.com |
3e06042469e16d9c843256b8f096b10571d0056e | ba09912a494cae7f32f31f2fb9312197270274a3 | /isAPIbbc.py | 17c7ad626cc60583b35d139cd9c252623d8dc685 | [] | no_license | sheikhmarsalan5/Web-crawling-bbc | df9b64acd1bf206671d465506c0ab76adc920eeb | cbf2f6f056ac1bca8b20b6fa1df300f09b851172 | refs/heads/master | 2020-12-02T05:26:15.510379 | 2017-10-02T18:05:49 | 2017-10-02T18:05:49 | 96,905,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py |
# coding: utf-8
# In[ ]:
# mongo.py
from flask import Flask
from flask import jsonify
from flask import request
from flask_pymongo import PyMongo
import os
import pymongo
import ssl
import re
app = Flask(__name__)
#app.config['MONGO_URI'] = pymongo.MongoClient('mongodb://arsi:123456@aws-us-east-1-portal.25.... | [
"sheikhmarsalan5@gmail.com"
] | sheikhmarsalan5@gmail.com |
3f33b75acfe94c9f9e63269c3ddac21c734f7532 | e2d6785fa7142b1b795818eec3419923a924a189 | /run.py | e842517de260b906a989c2e28b1a08a15e838cc5 | [] | no_license | TaigaTenori/pro3copy | 7156c29c48dc9464a2d2ed44057ab3dd6c4b5244 | 9d2c3c261a53a68cf257fbaad6919c75fcfacf8d | refs/heads/master | 2020-03-31T08:03:15.320566 | 2018-10-07T21:45:25 | 2018-10-07T21:45:25 | 152,043,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,366 | py | from flask import Flask, render_template, request, redirect, url_for
import operator
import os
import time
import pickle
app = Flask(__name__)
# remove passing debug (answer) to render_template on release
highscores = { }
# save_obj and load_obj are used to save highscores for persistency
def save_obj(obj, name ):... | [
"nowakowski.peter@gmail.com"
] | nowakowski.peter@gmail.com |
f672cb05e879429500f154f105cba25f6049575f | 87e6c47bf745f0b00de2dd9bfe4d4c202cd25def | /projects/vcf/__main__.py | 6d2f55cc310ca95d19a815a07c0850ab7de4803d | [
"Apache-2.0"
] | permissive | Scsabiii/vcf-automation | 16b32fabf63b63022bcf95f12d22e62d11bd5478 | b76bba2b7d490bc7c1581c9f8d75c4052baaa4e9 | refs/heads/master | 2023-06-11T20:36:50.321149 | 2021-07-07T08:50:40 | 2021-07-07T08:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | """An OpenStack Python Pulumi program"""
import pulumi
from pulumi_openstack import Provider
from vcf import ManagementStack, WorkloadStack
# stack
config = pulumi.Config()
stack_name = pulumi.get_stack()
stack_type = config.require("stackType")
#####################################################################... | [
"chuan137@gmail.com"
] | chuan137@gmail.com |
74bf53139b3f8bfc328dc22a1fe0d0984f23aa1e | 48983b88ebd7a81bfeba7abd6f45d6462adc0385 | /HakerRank/algorithms/warmup/staircase.py | f66d8b95f9711713c81d74b72fc3f7ae9288baed | [] | no_license | lozdan/oj | c6366f450bb6fed5afbaa5573c7091adffb4fa4f | 79007879c5a3976da1e4713947312508adef2e89 | refs/heads/master | 2018-09-24T01:29:49.447076 | 2018-06-19T14:33:37 | 2018-06-19T14:33:37 | 109,335,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # author: Daniel Lozano
# source: HackerRank ( https://www.hackerrank.com )
# problem name: Algorithms: Warmup: Staircase
# problem url: https://www.hackerrank.com/challenges/staircase/problem
# date: 7/10/2017
n = int(input())
for i in range(n):
print(" " * (n-1-i) + '#' * (i+1)) | [
"lozanodaniel02@gmail.com"
] | lozanodaniel02@gmail.com |
043e2c0866d46c3ddd37eb76fe44483a7ca5e30b | aa4024b6a846d2f6032a9b79a89d2e29b67d0e49 | /UMLRT2Kiltera_MM/StateMachineElement.py | 9e700e1b1b320c32953b3d9ae77e4000af6b9adb | [
"MIT"
] | permissive | levilucio/SyVOLT | 41311743d23fdb0b569300df464709c4954b8300 | 0f88827a653f2e9d3bb7b839a5253e74d48379dc | refs/heads/master | 2023-08-11T22:14:01.998341 | 2023-07-21T13:33:36 | 2023-07-21T13:33:36 | 36,246,850 | 3 | 2 | MIT | 2023-07-21T13:33:39 | 2015-05-25T18:15:26 | Python | UTF-8 | Python | false | false | 3,875 | py | """
__StateMachineElement.py_____________________________________________________
Automatically generated AToM3 syntactic object (DO NOT MODIFY DIRECTLY)
Author: gehan
Modified: Sat Aug 30 18:23:40 2014
_____________________________________________________________________________
"""
from ASGNode import *
from ATOM3T... | [
"levi"
] | levi |
2ec69504dd3a44fadc2a80f09794f49e129fa0e7 | ad531757e3b5323e8beada86263a853ab003186e | /soundwaves/wsgi.py | fe6e82a8d898cb7dc1db14c5419e10da7a37e822 | [] | no_license | CosmicAsad/FSF-Milestone-Project-4 | d0f25fa34f0d3c5c46858226b9bb4efb544a30b6 | b7ede4462b2179a13d0bc924a2aa982d7a9fdba4 | refs/heads/master | 2023-05-05T16:19:22.577141 | 2021-05-31T21:55:53 | 2021-05-31T21:55:53 | 365,752,930 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for soundwaves 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"asy_7@hotmail.co.uk"
] | asy_7@hotmail.co.uk |
05f83e01c7d8040cb4f8617bb101c60df7f9b706 | 952bb9d4447d8b00fe92c36d36041341cf5badbe | /gaussain/gaussian_process.py | 51248781e5b32f2e235549d7949dcc79932a0c45 | [] | no_license | yueshifeng/recommendSystem | a7674702d5d06fd37fcb06def38e4db0d9f3fd90 | 7926bd6781b7035a61a7622f1d8d3669bec1bc63 | refs/heads/master | 2023-02-17T03:27:44.264080 | 2023-02-16T09:42:35 | 2023-02-16T09:42:35 | 197,124,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,919 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import math
import time
from collections import defaultdict
import numpy as np
import pandas as pd
from sklearn.metrics import roc_auc_score
from gaussian_model_utils import bound_x, seek_model, train_seed_cnt, pop_size, NGEN, w_init, w_final, \
c1, c2... | [
"noreply@github.com"
] | noreply@github.com |
ad80dde2706cfd1501ff64844d95b36b010469d5 | 3748c52b13d43e47e1e966c8a6384a4da1f62400 | /HotPotato/play_melody.py | d3729d0b3519d56f6bc546fb40a7198eac404872 | [
"MIT"
] | permissive | caternuson/CircuitPython-Demos | 075c177afe8e2110f6005a73946d848ffb8fad8c | cffb226750614caed5368d7ca31c06be321f54d8 | refs/heads/master | 2021-08-22T17:29:42.346620 | 2017-11-30T20:46:38 | 2017-11-30T20:46:38 | 110,045,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | import time
from pitches import *
from adafruit_circuitplayground.express import cpx
# notes in the melody:
melody = (
NOTE_C4, NOTE_G3, NOTE_G3, NOTE_A3, NOTE_G3, 0, NOTE_B3, NOTE_C4
)
# note durations: 4 = quarter note, 8 = eighth note, etc.:
tempo = (
4, 8, 8, 4, 4, 4, 4, 4
)
# Loop forever
while True:
if... | [
"methuzla@speakeasy.net"
] | methuzla@speakeasy.net |
ed980cdffd3ea52d5a3c9dd371ea04717c78ac2d | a5150a5d40b00696e34d7a804291e5d58da1ee6a | /intro/week6/hello0.py | ca60b2fadf2ff2a4c3a6f7d863c2ae7f04894311 | [] | no_license | yuvraajsj18/CS50 | 4ce6757b00b3559b563f6c5f12d4935ad53b95f0 | 12bdd0b41dcf5f757a2bea1a74367940e29e3ead | refs/heads/master | 2020-12-04T21:14:39.378897 | 2020-07-11T07:35:58 | 2020-07-11T07:35:58 | 231,904,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | print("Hello, World")
| [
"yuvraajsj18@gmail.com"
] | yuvraajsj18@gmail.com |
304d91775752f0ea0072896b27d98e7d9d8e79ad | 6d889c6881f9d950ff416377aa8489b65fe7a89e | /src/py/Config.py | 67a6d657f3fd8bbc67d993090c0d9d2ea964aba5 | [] | no_license | towzeur/SpringChallenge2021 | a203b98fdaa07590f0345346e8c9bfc4710868c6 | 50a1ccfb2048f5fbe156a913ed9b72750f7d7f54 | refs/heads/main | 2023-04-29T18:48:56.550347 | 2021-05-15T11:19:01 | 2021-05-15T11:19:01 | 365,559,787 | 1 | 0 | null | 2021-05-08T16:20:15 | 2021-05-08T16:20:15 | null | UTF-8 | Python | false | false | 1,311 | py | from typing import Callable, Any
from py.java.compat import Properties
class Config:
STARTING_SUN: int = 0
MAP_RING_COUNT: int = 3
STARTING_NUTRIENTS: int = 20
MAX_ROUNDS: int = 24
MAX_EMPTY_CELLS: int = 10
@staticmethod
def load(params: Properties):
Config.STARTING_SUN = Config... | [
"towzeur@gmail.com"
] | towzeur@gmail.com |
8e1131d79219d690428237391ef0005dba394038 | 5ef10b7b445e646805947913457f36f5427493c8 | /Python Scripts/make folder.py | 05d3e1a0bdf98c8bf6a257a5c95b136b19458e70 | [
"MIT"
] | permissive | DavidZha1994/BIG_DATA_MRCNN | fb50a477a8d2735830b2dcf04f85241d6661eeb5 | ebbbd2ba7d0fcc1e1772cecf20ddf70c55c19e97 | refs/heads/main | 2023-06-19T14:38:36.323504 | 2021-07-17T14:30:04 | 2021-07-17T14:30:04 | 386,955,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import os
import shutil
# 获取当前目录下所有文件及目录
listDir = os.listdir()
# 遍历
for dir in listDir:
# 判断如果是文件夹或是自己则忽略
if os.path.isdir(dir) or 'make folder.py' == dir:
continue
# 分离文件名和扩展名,获取不带后缀的文件名
dirName = os.path.join(os.path.splitext(dir)[0] , "images")
# 判断是否存在同名目录,
# 不存在则将创建此目录,将同名文件移动到目录... | [
"sa-u@live.com"
] | sa-u@live.com |
07e4f6b8f7a4800410fca3be8e25edfed06d6695 | 60b933f50112dfd19053d51fbb399ce238bfd3cb | /ec2Controller/ec2Controller/asgi.py | b988b892b7e1a77c1899c03941c82d864a9531ac | [] | no_license | sysadmin-exe/vm-creation-with-terraform | 22f8be2031d19182d364dd7e693aa6d44da9d9a2 | 5a804ab4fd6ac6cc4a67e0d1fd29ba0b82d4c279 | refs/heads/main | 2023-08-27T08:43:26.990137 | 2021-10-29T14:26:50 | 2021-10-29T14:26:50 | 421,510,496 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for ec2Controller project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"victor.chukwuemeke@wizeline.com"
] | victor.chukwuemeke@wizeline.com |
df10c7affbd76dbac828bbf7e7e2e2c2252c50a9 | 54982f9506789cacd236a8890cd67c48d0e8df0e | /git_laser_scanner/devel/_setup_util.py | a6b174641e4b24fbaad0f283baadafe28bebdc2a | [] | no_license | bassie8881/ROS_stuff | 53e0d750c35f653bf9f93cf28ee7d7b604a69af6 | 627b114c6dd469a4e81085a894676e60aeb23691 | refs/heads/master | 2021-01-17T17:03:25.219628 | 2016-07-14T03:12:04 | 2016-07-14T03:12:04 | 63,243,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,356 | py | #!/usr/bin/python
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code mu... | [
"bas_bosscher@hotmail.com"
] | bas_bosscher@hotmail.com |
b67524fc6e7c23053e2b553b1571659550c940ce | e3c45f1b7f50ebf97ceaa456c2741dd96b3e465e | /hardway/ex13.py | 5eb98842a479743b10bb751d8e84d5c54b274240 | [] | no_license | js19931018/learn-python_hardway | 11800289d3fcbef665a705bcb83d971272e4c706 | 47d2498c3155c3176eb1d675b6b9afacc4f96e69 | refs/heads/master | 2021-01-23T16:04:53.168971 | 2017-09-19T11:35:19 | 2017-09-19T11:35:19 | 102,720,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from sys import argv
script, first, second, third = argv
print "The script is called:", script
print "Your first variable is:", first
print "Your second variable is:", second
print "Your third variable is:", third
#only for shell
# python ex13.py xx xx xx | [
"17362196672qq.com"
] | 17362196672qq.com |
e03ab40dfed40a54353f46ef3ac456d93ed78294 | c4a0a3ccdf27c937d0f70bf5b26677a3a1e43c7e | /cinder/volume/drivers/yadro/tatlin_iscsi.py | 5b57c24f1ed83b74bb0875faee4e522bc57af400 | [
"Apache-2.0"
] | permissive | LINBIT/openstack-cinder | 2538e1769ae95bc166ac7743f5ddbff14a594022 | 04a5d6b8c28271f6aefe2bbae6a1e16c1c235835 | refs/heads/linstor/master | 2023-08-30T20:58:08.103197 | 2023-08-28T10:07:56 | 2023-08-28T11:04:35 | 103,643,517 | 9 | 6 | Apache-2.0 | 2021-03-04T17:12:59 | 2017-09-15T10:07:48 | Python | UTF-8 | Python | false | false | 5,292 | py | # Copyright (C) 2021-2022 YADRO.
# 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 appli... | [
"v.belogrudov@yadro.com"
] | v.belogrudov@yadro.com |
59667b3ab417cea363a5350f370ad8b328698383 | 624c25ffbdf6936e86483da05570f066bee5fc85 | /youtube player.py | 9741d1012518cae483ee80aa14b4e86fd0bd1fb1 | [] | no_license | engineer-rohan-arora/Python-Mini-Projects | c0670fc772ba4fe0257bb25aed1bd185ffa28220 | cbe252c9edf9be9b7e0e7f060355c308dc690d86 | refs/heads/master | 2020-08-03T04:47:35.657397 | 2020-04-14T20:20:33 | 2020-04-14T20:20:33 | 211,628,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 15 20:36:20 2019
@author: rohan
"""
import urllib.request
import urllib.parse
import re
import vlc
import pafy
query_string = urllib.parse.urlencode({"search_query" : input()})
html_content = urllib.request.urlopen("http://www.youtube.com/results?" + query_string)
search_... | [
"engineer.rohan.arora@gmail.com"
] | engineer.rohan.arora@gmail.com |
805755339a16eaec65b2e3da58396563a002cbd3 | 28b3be3f87fc8f6697d8a6d14e87722a0c55e436 | /worker.py | fa7b4f36915b6b8d378726cffff80696c027a5b6 | [] | no_license | kdresdell/instabot | ee0d70a5c2bc5c2768ede2c8a56e367686be8001 | 40c99bb759f0b1ae705336fda6a289f34c529a98 | refs/heads/main | 2023-03-27T22:15:36.959645 | 2021-03-26T01:47:31 | 2021-03-26T01:47:31 | 347,241,921 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # sudo apt install redis-server
# sudo nano /etc/redis/redis.conf
# > supervised systemd
# sudo systemctl restart redis.service
import os
import redis
from rq import Worker, Queue, Connection
listen = ['high', 'default', 'low']
redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')
conn = redis.from_u... | [
"kdresdell@gmail.com"
] | kdresdell@gmail.com |
1ab3b3a4c874fd5fb991a72e5ee8fbd5a3aa51a6 | 04499e087c172a1f7ec2be427094508adfc0e869 | /multiple_defenders - experience replay/Env_simulation_old.py | b2bffc0b4ce3ce709a1f4b4da98f40e17149b89f | [] | no_license | lucashu1/wildlifeRL | 15e6c6a1a0d652b10b2bdaf43e621a00bbc6fd13 | 354c6a71d2462e735f44c317aea52f7a5f846cdb | refs/heads/master | 2021-01-19T11:34:40.439092 | 2018-02-20T03:18:27 | 2018-02-20T03:18:27 | 82,254,594 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,051 | py | ### Environment setup class ####
import numpy as np
from scipy.signal import convolve2d
from random import randint
from random import sample
class Env_simulation():
def __init__(self, grid_len=10, num_features=7, num_animals=75, \
num_adversaries=15, num_defenders=5):
self.grid_len = grid_len
self.n... | [
"lucashu@usc.edu"
] | lucashu@usc.edu |
a36f4578229f9c89a36cdaf42a000572b0dba212 | 67df38343a631ebb5691a06fde58f0d7fd3c77f0 | /kinbot/reac_Intra_R_Add_ExoTetCyclic_F.py | 0f9531a9c50cc2a9b7c8f51fee0b78020b50772b | [
"BSD-3-Clause"
] | permissive | rubenvdvijver/KinBot | 2e7d04f2d1ce6133474d147d2fd8cd690979e2d1 | 5bbb29c087b53bc63ffbb1d393ab4e217390eb82 | refs/heads/master | 2020-03-30T02:24:05.339808 | 2018-09-30T17:34:52 | 2018-09-30T17:34:52 | 150,629,175 | 0 | 0 | BSD-3-Clause | 2018-09-27T18:13:13 | 2018-09-27T18:13:13 | null | UTF-8 | Python | false | false | 4,890 | py | ###################################################
## ##
## This file is part of the KinBot code v2.0 ##
## ##
## The contents are covered by the terms of the ##
## BSD 3-clause license included in the LICENSE ##
## file,... | [
"rvandev@sandia.gov"
] | rvandev@sandia.gov |
5f0e411b5528cb3a6ea1dc1ae9065387ace75e92 | 52a3bd8445d0318c2f950d361067e635c8d15c45 | /climb51job/climb51job/middlewares.py | 2bcb29a846f7bf9d6ae3d6a60e5f6863f6256b3d | [] | no_license | zvz427/spider_demo | 1995cbc87c2dcd51e5eceaa3aaecc1003dec3b1f | 7557a7919411588f4c8b1a947e8ca34a51ebdbd6 | refs/heads/master | 2020-03-17T03:09:03.903764 | 2019-04-11T14:21:19 | 2019-04-11T14:21:19 | 133,222,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,158 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
from fake_useragent import FakeUserAgent
class Climb51JobSpiderMiddleware(object):
# Not all methods need to be define... | [
"zvz427@163.com"
] | zvz427@163.com |
917f4af6a9585225e469dc47ab42b37e0a3e19d9 | d130e6727bd484764520a2cb62b6fb26e075f949 | /cfg.py | 062f031e07e02007cbac2845eefca41f37ec8aad | [] | no_license | smasher0310/crawler | e7e3205e0e599ab6ed97e854bf1c36a0a5b7eab2 | ca5f9253d09d7db50e351dbf18882294d58606d6 | refs/heads/master | 2022-12-07T14:13:15.354835 | 2020-08-30T12:09:17 | 2020-08-30T15:49:42 | 289,487,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | DB_Name = 'crawlerDB'
DB_host = 'localhost'
DB_port = 27017
local_folder = 'local_files'
link_limit = 5000
link_count = 0
thread_count=5
file_ext = {
'text/html; charset=utf-8' : 'html',
'application/json; charset=utf-8' : 'json',
'application/json' : 'json'
}
d... | [
"satyajeet.kumar0310@gmail.com"
] | satyajeet.kumar0310@gmail.com |
b7d814dd182f6cd605e5fa786dc4d64ab703375f | e1fc040d0ae86548f2040ac01dded4ad56d42d29 | /com/tiffany/coding/Recursion/Fibonacci Sequence (iterate).py | 2369b48fd6a714093dd28c6ce1014e1ed8693961 | [] | no_license | Tiffanyzzx/PythonCoding | 7253cd55ccd733963e8ac2dba1c7ba3c95668b61 | c2a4c92217e8abaa3fd64a41d81f7dc44ddbe54a | refs/heads/master | 2021-05-27T13:18:17.344210 | 2020-06-14T15:38:08 | 2020-06-14T15:38:08 | 254,273,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # Get the Kth number in the Fibonacci Sequence. (K is 0-indexed, the 0th Fibonacci number is 0 and the 1st Fibonacci number is 1).
# Examples
# 0th fibonacci number is 0
# 1st fibonacci number is 1
# 2nd fibonacci number is 1
# 3rd fibonacci number is 2
# 6th fibonacci number is 8
class Solution():
def fib(self, ... | [
"tiffanyzhaozx@gmail.com"
] | tiffanyzhaozx@gmail.com |
149b25fa62fea80199d97212095fd9710c512872 | 34cc056060008c88053c1df372c83615e2dcdd12 | /sortify.py | ed8cbb5a039e76d9a4dd7988bd5fd24bf8e37db3 | [] | no_license | stephkananth/sortify | c328568cdaa31f1d191af0bc51c1454ead278996 | 2071a1ec84ba6678886a9eb736c418b83afb6553 | refs/heads/master | 2021-01-19T10:05:33.642500 | 2020-11-21T22:14:58 | 2020-11-21T22:14:58 | 87,825,173 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 115,502 | py | ################################################################################
import copy
import json
import math
import os
import unicodedata
import webbrowser
from tkinter import *
from tkinter import messagebox
from tkinter import simpledialog
import matplotlib
matplotlib.use('TKAgg')
import matplotlib.pyplot a... | [
"noreply@github.com"
] | noreply@github.com |
c03f0b2418fb0dd2ab17edc295ace80c286f9d3c | 1567fb032fb73057b60b7ae4830c195b29164c8b | /englxx/english/english.py | a80acd07870c7f03925a3c705c60bdabae4de4b2 | [] | no_license | guparo/myaddons | 76967a02135198ba53335d39f766c7d987a7b02d | 3e10debb5215a525782b84a1786d09e8927e7231 | refs/heads/master | 2016-09-06T09:03:59.992662 | 2015-11-08T23:55:17 | 2015-11-08T23:55:17 | 42,006,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,864 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"guparo@hotmail.com"
] | guparo@hotmail.com |
eb50862e1e06b68ef0b53e8d1d0c6570a66598e8 | 24a7bb5c2eb78450024ee114ef138ee05d83be4e | /modules/permutation_alignment.py | 6bd9ab474101f1515ebb2d5da79d5ab6af3b27fd | [] | no_license | karnwatcharasupat/directional-sparse-filtering-tf | ecfefc1b500a0f84ebdcd83c2dc46e8c8d830610 | 6484335e26a30a0804a6ec230f17f59a092c8661 | refs/heads/main | 2023-05-15T07:06:16.210957 | 2021-06-11T21:44:09 | 2021-06-11T21:44:09 | 334,715,907 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,230 | py | import numpy as np
import lapjv
from queue import Queue
from multiprocessing import Pool
import multiprocessing as mproc
def permAlign_fineTune_workers(
f, P, P_normalized, old_P_normalized, total_per
): # For multithreading through permalign finetuning processes
[n_freq, n_frame, n_src] = P.shape
# prin... | [
"karn001@e.ntu.edu.sg"
] | karn001@e.ntu.edu.sg |
4c2914661a8ade9913796f1e01379860f3533f71 | 77f075bd6149666cbd5822e9211df1b4532a7bef | /python/sharpsmt/myExceptions.py | d79b0d865b46df5a3b5c78c15caed6ea8564eaaa | [
"MIT"
] | permissive | anton-musrevinu/sharpNAR | 0f1cd8a530d77b53e648f1a9955b548f0934f225 | 689803d1c1d57728597d839cef8863af61a113b7 | refs/heads/master | 2020-03-21T06:17:05.148019 | 2018-07-03T19:09:22 | 2018-07-03T19:09:22 | 138,209,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #Error Hanling
class Error(Exception):
"""Base class for other exceptions"""
pass
class StopException(Error):
"""Raising when the Stop Flag is being set"""
pass
class TestException(Error):
"""Raising when an test failed"""
pass
class AlgorithmInitException(Error):
"""Raising when an alrogithm is intended... | [
"a.fuxjaeger@outlook.com"
] | a.fuxjaeger@outlook.com |
9ac452966e223226c3e1db9ec7adaaf16dfac7a3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/108.py | 8e333fdaa30e655bb563ae427b87024a7b16ab27 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | #!/usr/bin/env python
def main():
dict = [];
fin = open("A-large.in","r");
fout = open("output.out","w");
st = [];
st = (fin.readline().split());
L = int(st[0]);
# print L;
D = int(st[1]);
N = int(st[2]);
for i in range(D):
dict.append(fin.readline());
flag = 0;
f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
360e8615a2eecc73cd781e57f8b187a220fc3b42 | 1dc46aecc61b2948010a63b3f4d7a0ddf4c484dd | /Gorla/PycharmProjects/djangoProject5/FbDp/models.py | 82c8bd8c4c5556d2070f887d719a502fd6df7456 | [] | no_license | Harigorla/Django_Hari | b7eb6056893e9c9d3d25da35ba97b939e5545703 | af88447f461f4374af47b7f33fbd5e4116704009 | refs/heads/master | 2023-01-20T01:11:48.262875 | 2020-11-26T16:06:18 | 2020-11-26T16:06:18 | 316,276,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.db import models
class WallPaper(models.Model):
name = models.CharField(max_length=100)
img = models.ImageField(upload_to='images/')
| [
"harigorla91@gmail.com"
] | harigorla91@gmail.com |
c79ad8ea925dbcbafa6913dc553dcbc36d642ec6 | 8ac3fe3d861a222210912a02effea2110456d052 | /django_for_beginners/project_5_newspaper_app/project_5_newspaper_app/wsgi.py | cca475eb69cb94b0610ce991e98ef571d9d83dc4 | [
"MIT"
] | permissive | rednafi/django-unchained | 40446960f52f0c905a6ba3e318154ca11a31188b | 0f71c8d056699496d4af3ab049f9b2f9d057486b | refs/heads/master | 2022-12-10T10:11:52.906880 | 2020-09-01T17:43:58 | 2020-09-01T17:43:58 | 282,356,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | """
WSGI config for project_5_newspaper_app 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefau... | [
"redowan.nafi@gmail.com"
] | redowan.nafi@gmail.com |
c2c1496172a29a2befe5af4a54636c078fe089bd | b7bc1616cb257b14fc01fd248b3c4c8ca20da0e6 | /src/knn/kNN.py | 2a5cda0d2a497701bd645463dd22962cf398d32a | [] | no_license | suzuizui/machineLearning | 7c1614a45f83cc5d4c84b7632c16d1659cf217e8 | af63b00a2d657cb9fdfacb69f8840a09f05012e6 | refs/heads/master | 2020-04-02T21:22:26.853355 | 2018-11-02T03:06:23 | 2018-11-02T03:06:23 | 154,796,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,288 | py | '''
Created on Sep 16, 2010
kNN: k Nearest Neighbors
Input: inX: vector to compare to existing dataset (1xN)
dataSet: size m data set of known vectors (NxM)
labels: data set labels (1xM vector)
k: number of neighbors to use for comparison (should be an odd number)
... | [
"qi.shang@bianlifeng.com"
] | qi.shang@bianlifeng.com |
b6d7d8e6d552e78f7cee555afc75438f0ead2bb9 | fb3eca64e1b85bcd2ef2a84b1ac04695675be2f4 | /process_tweets.py | 2a571459b4b450fb22ecb9d7d3f9cb3e2c44cb6e | [
"MIT"
] | permissive | yogeshpv/user_recommendation | c902130556815b54cbd0f13b62644835aba5db4f | 9891df15b03cfdf5f9d2dd234ce5ee5d0a30bfdd | refs/heads/master | 2021-01-20T18:33:39.394530 | 2016-06-28T19:16:01 | 2016-06-28T19:16:01 | 61,409,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,103 | py | #!/usr/bin/python
import ast
import json
import sys
import unicodedata
import re
if len(sys.argv) < 2 :
print 'Usage: {} <input_file>'.format(sys.argv[0])
exit(1)
# Remove unicode characters from text
def remove_unicode(text_data):
if text_data == None or text_data == '':
return text_data
return u... | [
"veettily@yahoo-inc.com"
] | veettily@yahoo-inc.com |
d8427d008c5cf4825c1030e899b67126ae25f237 | 3ba067db1ec87be7ed432a65b5b6ee8f090b02ae | /lab_10/hand_test.py | 6bdab0c6decc8836e2b26f3514451cc6d57dfd7e | [] | no_license | Muntaser/PythonExploration | a50f70472a229bd3269ba660eff43c5285ad7626 | 72b430eca27b4711fe553b1cf680f39447398b3d | refs/heads/master | 2020-03-24T04:41:05.128380 | 2018-07-26T16:18:01 | 2018-07-26T16:18:01 | 142,461,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | #
# hand_test.py:
#
# Muntaser Khan
#
import deck as d
def dealHand(deck):
try:
hand = deck.dealHand()
except IndexError:
deck = d.Deck()
hand = deck.dealHand()
return hand
def main():
deck = d.Deck()
for count in range(11):
hand = dealHand(deck)
for card in hand:
print (str(card),end=' -- ')
... | [
"mkhan96@LAMU02W93BTHTD6.uhc.com"
] | mkhan96@LAMU02W93BTHTD6.uhc.com |
3ffa6b80c19a7c0e823449211e091fbea490e97e | 673c78f94d69a3cd27365d2c31c08a3e1e897467 | /python/raindrops/raindrops.py | 7e4f56a8fcf1aad4d1d99b3284950f9f32e58695 | [] | no_license | shadd-anderson/Exercism-Exercises | b91f7c2708653ea53311f193be276f5c6f97d787 | aafe197036c4634915174a41f7133179dc863afa | refs/heads/master | 2021-01-08T22:12:27.626826 | 2020-03-05T21:40:57 | 2020-03-05T21:40:57 | 242,157,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | def convert(number):
final = ""
if number % 3 == 0:
final += "Pling"
if number % 5 == 0:
final += "Plang"
if number % 7 == 0:
final += "Plong"
if final == "":
return str(number)
else:
return final
| [
"shaddanderson18@gmail.com"
] | shaddanderson18@gmail.com |
52fa25902cd920ec5106376c86c4fb0558eac41a | 744f4ffa39fb1def7f273931d6b7c61107e61896 | /KerasLearningNote/KerasCode_5/keras_parcticeLSTM.py | a35dc37559479e140e4c516f14557d8a2972eaca | [] | no_license | QinLuyao11/DeepLearningNote | 0a43f8012a46fbd8c541a983aae20541e3b1d2c6 | f9b0018e0a739fad41255b24828ac9c96ad30ceb | refs/heads/master | 2023-08-26T16:48:02.385555 | 2021-11-09T09:55:26 | 2021-11-09T09:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | from __future__ import print_function
from keras.preprocessing import sequence
from keras.models import Sequential
from keras.layers import Dense, Embedding
from keras.layers import LSTM
from keras.datasets import imdb
max_features = 20000
maxlen = 80
batch_size = 32
print('loading data...')
(x_train, y_train), (x_te... | [
"noreply@github.com"
] | noreply@github.com |
bea4cd0cbd5c164f7b157b32e2a4113a59ad3e38 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /google/cloud/aiplatform/v1beta1/schema/trainingjob/definition_v1beta1/types/automl_text_classification.py | bd52a0e808e5760a15e7a8f060d804b2c5a3c921 | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 1,485 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
494e4772c31bec3cabd93dfbd95c1aa4b4162194 | 29f3760831ed8628b4da90880f6c4e30f8aad5f9 | /tests/test_long_performance.py | 837d9f2a551fc45035cfa9022a2fef18ec7866b4 | [] | no_license | rohanmirch/spreadsheet_engine | 9e081f1e6109e2b7f1975057630da075eaf23158 | 17d087ee850693d1b320aef99f8a83a23691b263 | refs/heads/main | 2023-04-07T03:11:02.127451 | 2021-04-05T01:00:05 | 2021-04-05T01:00:05 | 354,678,456 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | '''Test long chain updates'''
import context
from sheets import Workbook
from pyinstrument import Profiler
if __name__ == '__main__':
wb = Workbook()
p = Profiler()
# Make new sheet
wb.new_sheet("Sheet1")
wb.set_cell_contents("Sheet1", "A1", "=1")
for n in range(2, 1001):
wb.set_cell... | [
"noreply@github.com"
] | noreply@github.com |
31d23e8b16164e294f7ab8575329967266600da4 | 92b409ed4b9a50047dfbcb549c4aa7b01ec1e4db | /followers_following.py | aa5584bcdf58c69c9085e76250ecd426b8c61316 | [] | no_license | hhg8840/Instagrambot | 826c95993a87bc2d5c48db2a5150800d6d9e1d15 | 8e6611fe19a0769d88e2b595a0a052dacd41f431 | refs/heads/master | 2022-12-03T16:01:49.929476 | 2020-08-21T21:27:15 | 2020-08-21T21:27:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,437 | py | from selenium import webdriver
import time
from random import randint
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
def get_names(driver, profilename):
time.sleep(1)
path = "/html/b... | [
"noreply@github.com"
] | noreply@github.com |
5f260679b0ccca312ac430d3922190317567a4ee | ffd3bebaa761448899be36639e74a317dce1baca | /spark_print.py | f7dbf6cedd95352e4fde9d5e7f5afeb6fdf9c6c6 | [
"MIT"
] | permissive | thiru56139/docker-kafka-spark1 | 0a1f7bececd285eb7dcbf4aef1ebe9e9f09ffd06 | 3858f67da16ee741a649ab6bc68fc31338190dd4 | refs/heads/master | 2023-05-08T15:52:34.392249 | 2021-05-27T14:50:31 | 2021-05-27T14:50:31 | 370,723,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | from pyspark.context import SparkContext
from pyspark.sql.session import SparkSession
sc = SparkContext('local')
spark = SparkSession(sc)
df = spark \
.read \
.format("kafka") \
.option("kafka.bootstrap.servers", "172.25.0.12:9092,172.25.0.13:9092") \
.option("startingOffsets", "earliest") \
.option("subscri... | [
"noreply@github.com"
] | noreply@github.com |
9aa0c1a2a84c4531be1654c00c14df38907975d1 | c8a6a1148b1d7797678741ff4a9d0c2a027df8d5 | /manage.py | 9d677f21772e928a166d2dbdcee5c9ca0188f393 | [] | no_license | psgpyc/stoneageentrepreneur | e69b7c753783272b98aa786f90adfd4664917aeb | 5482b84b1c278074f9a98f2a5235acebe2941011 | refs/heads/master | 2023-06-10T04:44:16.806812 | 2021-07-03T19:02:27 | 2021-07-03T19:02:27 | 261,749,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | 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', 'sae.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportErro... | [
"paritosh.ghimire666@gmail.com"
] | paritosh.ghimire666@gmail.com |
371d3803e36c602ac8dc215e9b84516bc8a47c08 | 03249810f515c8b1d7ac9a35ccf5d8a2b93f8812 | /CXSJ3/detection/craft.py | 5dece1170b1f0ae9efee11c97aa65969720b5cfe | [] | no_license | LiyunZhang0405/PhotoTranslation | c66232c187e01d12c760cede171105120c6b4fdd | 538ed25b43354a7061d53b42d10b91c121f002bf | refs/heads/master | 2023-04-01T12:05:49.946276 | 2021-04-07T16:51:55 | 2021-04-07T16:51:55 | 355,057,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | """
Copyright (c) 2019-present NAVER Corp.
MIT License
"""
# -*- coding: utf-8 -*-
import torch
import torch.nn as nn
import torch.nn.functional as F
from detection.vgg16_bn import vgg16_bn, init_weights
class double_conv(nn.Module):
def __init__(self, in_ch, mid_ch, out_ch):
super(double_conv, self).__... | [
"liyun_zhang_0405@yahoo.com"
] | liyun_zhang_0405@yahoo.com |
0295b640b26f4bb0d3530fdca137a12fec31a2bc | fc07d02eb407fd6858a63d3f4143e0feafc6e481 | /rango/migrations/0001_initial.py | 0c072c39fd90aab22d2cffcc494092fbff3dbb39 | [] | no_license | yxh1126/project_cybertrans | 0ec726c0f9537a70e136be4a64c5efc805b642ea | 453685262ca46b9531b6099c0a9051c4c2bdc373 | refs/heads/main | 2023-04-18T04:39:23.477657 | 2021-04-25T04:42:37 | 2021-04-25T04:42:37 | 360,381,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | # Generated by Django 3.2 on 2021-04-22 05: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),
]
opera... | [
"behuangyi@gmail.com"
] | behuangyi@gmail.com |
71e1afa9451e87bab05da25ac43c988d03ed75ba | 3d94a650bfdd3cf5072b2b1a3736783479daac51 | /onnx_darknet/handlers/backend/identity.py | 3ed92345f1f53985a2f54b09db427d9b93827629 | [
"Apache-2.0"
] | permissive | s94285/onnx-darknet | 50a0489d85ed753cdf07ff5c136d598b668106b5 | d0227c305710b740e6b06315d83b021a183bfdaf | refs/heads/master | 2023-03-17T14:33:54.238541 | 2018-10-12T21:41:14 | 2018-10-12T21:45:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # import tensorflow as tf
from onnx_darknet.handlers.backend_handler import BackendHandler
from onnx_darknet.handlers.handler import onnx_op
from onnx_darknet.handlers.handler import darknet_func
@onnx_op("Identity")
@darknet_func(tf.identity)
class Identity(BackendHandler):
@classmethod
def version_1(cls, node... | [
"minhoo2000@gmail.com"
] | minhoo2000@gmail.com |
7bc9c6ef9a7f0401dab021c451ad528291265ab7 | 6f8ae9748c691696f523d99cd0e53614a5b2ec86 | /processing/settings.py | ff749d58ce39cfd0c7d0fa4639ac83a29d893d6c | [
"NASA-1.3",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-us-govt-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | imagingearth/espa-processing | 23a3d0827208ef04bbdee84b25eb4c650404acc0 | 180ccef85fe86454567a272d79eee72e981a0911 | refs/heads/master | 2020-12-25T21:13:33.760107 | 2016-03-31T13:36:30 | 2016-03-31T13:36:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | ../espa_common/settings.py | [
"rdilley@usgs.gov"
] | rdilley@usgs.gov |
6c789865d217e951bf592474ea48368553797088 | 678d565ca09905c708746e5d0d8b728f34806056 | /train_autoencoder.py | e5db705a0d1faae0b627ade936eee48118e8346e | [] | no_license | pauloesampaio/binary_auto_encoder | d920a6c22c7d63bc31530f17340ea93605789d7a | 0c46a66806b13c4ec8f2d5c89eb5bd11d9e92022 | refs/heads/master | 2023-03-24T11:28:07.113968 | 2021-03-17T04:23:39 | 2021-03-17T04:23:39 | 348,357,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,440 | py | import os
import numpy as np
from utils.io_utils import (
yaml_loader,
load_dataset,
generate_tiles,
binarize_tiles,
restore_tiles,
hamming_distance,
)
from utils.model_utils import build_model
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.optimizers i... | [
"paulo.ed@gmail.com"
] | paulo.ed@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.