blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7ca045d3b976ec4554de720454d67c289ae129cb | 2ae0ebfb099b3b2f5cbed3e4fb51e65d2c1eb6a3 | /flask_test/03request.py | 41208ab478e7fe027baf20affb68474aac3a1382 | [] | no_license | amxsa/python_demo | 821bf044cb9214c0bf3a1f3f0196ecaadc1d0a75 | c2cf9cf2cccb0124cb1136b5db2b3ea791426e66 | refs/heads/master | 2020-03-13T12:24:22.562380 | 2018-04-18T11:07:01 | 2018-04-18T11:07:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # coding:utf-8
from flask import Flask,request
app=Flask(__name__)
@app.route('/login',methods=['GET','POST'])
def login():
if request.method=='POST':
return 'login success'
else:
return 'login fail'
| [
"Administrator@PC-20150905NHUU"
] | Administrator@PC-20150905NHUU |
f49d115ae7accbc8b8fa06c8bd5d22ac09635921 | 5eb7563ccd7f4ce44b14ed62f011fe7523072a09 | /code/heat3.py | 2c3bd04089e22983650aee7777578a79106d4f2a | [] | no_license | arpit251/SURGE | dc1a581e6b34fe4c52b88d1ae187e607bc348c47 | 733babc517323334fb9bc3fce4443e60419a2f07 | refs/heads/main | 2023-07-14T16:32:06.080562 | 2021-08-27T06:53:18 | 2021-08-27T06:53:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | n,k=list(map(int, input().split()))
temp=list(map(int, input().split()))
slide_sum=0
ans=0
temp_k=k
j=temp_k-1
for i in range(k):
slide_sum += temp[i]
slide_sumd = slide_sum
if k==n:
ans=slide_sum/n
elif k==1 :
ans=max(temp)
else :
while temp_k < n :
j=temp_k-1
while j<... | [
"noreply@github.com"
] | arpit251.noreply@github.com |
83cf91c778e0b5abe897127237fb5f7300f8745b | 08e2f659aeac18351078468d28fbd39a19ba129f | /Funcionalidades Interfaz/Funcionalidades.py | e6f6153955ef57f61ec050ad6d2c53b314d133d8 | [] | no_license | josejfss/OLC1_Junio2021 | fa31b81b8a1248d84759882a9a26fd9056a365d4 | 36437d7da3594b3876a534f0ce9d6ed1fa0ad996 | refs/heads/main | 2023-06-06T01:04:27.235343 | 2021-06-30T20:46:25 | 2021-06-30T20:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,585 | py | import os
raiz = Tk()
def salir(): #SALIR DEL PROGRAMA
value = messagebox.askokcancel("Salir", "Está seguro que desea salir?")
if value :
raiz.destroy()
def cerrarDoc(): # CERRAR UN DOCUMENTO
value = messagebox.askretrycancel("Reintentar", "No es posible cerrar el documento.")
if value == Fal... | [
"puac235@gmail.com"
] | puac235@gmail.com |
7c56bfb08db5584fffade0c6174081a2d27d177b | 9416aa59bd0edadd7c0decc4d4a2c3e3469cace6 | /liste_animaux.py | 03c17fc022c5c21eb0e0e981367b33f74cd5476d | [] | no_license | amandineldc/git | 223452c0dd6bfcd05ea6fea61f6afac39c1c5df1 | 76997a3190780ea288fbf2a149fe43b0d50ab552 | refs/heads/main | 2023-07-10T10:39:21.419842 | 2021-04-01T10:40:22 | 2021-04-01T10:40:22 | 351,448,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | import random
liste_animaux = ['lapin', 'chat', 'chien', 'chiot', 'dragon', 'ornithorynque']
print(liste_animaux)
# liste inversé
liste_animaux.reverse()
print(liste_animaux)
liste_animaux.sort()
print(liste_animaux)
liste_animaux.append('troll')
print(liste_animaux)
animdom = ['lapin', 'chat', 'chien', 'ch... | [
"noreply@github.com"
] | amandineldc.noreply@github.com |
f11315e1cf370d2e96234d59d36b02b548789f8a | d3f47c4f648f9d1b1d488ed7ee0bc67b6bbf2aab | /erica_app/erica/pyeric/pyeric_controller.py | 1ee52d5a24e3315bd10cee1274b6510468f3067f | [
"MIT"
] | permissive | ramboldio/steuerlotse | f1ee7df4c13337d60e66876e28b07ff11deff5bb | eeebb91be6c13435d621d105ffdb19e972c8f649 | refs/heads/main | 2023-06-16T20:32:06.712669 | 2021-07-02T12:28:14 | 2021-07-02T12:28:14 | 382,943,447 | 0 | 0 | MIT | 2021-07-04T20:34:12 | 2021-07-04T20:34:12 | null | UTF-8 | Python | false | false | 3,308 | py | import os
from ctypes import pointer, c_int
from erica.config import get_settings
from erica.pyeric.eric import EricWrapper, EricResponse
from erica.pyeric.eric import get_eric_wrapper
from erica.pyeric.pyeric_response import PyericResponse
_ABRUF_CODE = get_settings().abruf_code
_INSTANCES_FOLDER = os.path.join('eri... | [
"julian.roesner@4germany.org"
] | julian.roesner@4germany.org |
aa894bb8e9aaaae4618d085bd30ce267bf607169 | 8df3784537806a8e23d5a09188bfe01a7e7f1905 | /manage.py | 184ec03691f5c6e29537944ca820e6a529058178 | [] | no_license | MyGodOnLoad/django-dash | 956dc0cf58b6af32fa880163c4e4ff75f69252b6 | 23bbd9cb99031f8238f84d18c43ff83864f9940f | refs/heads/master | 2023-04-26T15:14:56.360348 | 2021-05-26T10:53:16 | 2021-05-26T10:53:16 | 370,990,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'analyze.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"zhangbinjob@163.com"
] | zhangbinjob@163.com |
985a61e35a1166affcae13bcd6cc900782271bde | 9825db945e7bfe68319b086e9fb7091a63645d5c | /transcribe/mommy_recipes.py | 69965c1794946191d35991093b0493aa8e916c17 | [] | no_license | lupyanlab/telephone | e1ee095d5698dc228deec5ba5878a46b76d43f2d | 136f27fb2b41263f53fba6bd44711cf57598a1a4 | refs/heads/master | 2020-04-12T07:33:05.849287 | 2017-04-04T01:16:14 | 2017-04-04T01:16:14 | 41,316,823 | 1 | 1 | null | 2015-11-17T04:44:40 | 2015-08-24T17:20:23 | Python | UTF-8 | Python | false | false | 1,059 | py | from unipath import Path
from django.conf import settings
from django.core.files import File
from model_mommy.recipe import Recipe, foreign_key, related
import grunt.models as grunt_models
import ratings.models as ratings_models
import transcribe.models as transcribe_models
django_file_path = Path(settings.APP_DIR... | [
"pierce.edmiston@gmail.com"
] | pierce.edmiston@gmail.com |
833f51005cf3584f2174b27576b127ef4e2db09e | 4e89e26071d383bd5e56272716a7467f1b6ff72f | /flask/lib/python2.7/site-packages/flask_wtf/form.py | 93232c70081cc6d1ffde558c7102216af1cd5638 | [] | no_license | sunishsheth2009/ChatterBot | 8c5b751a54d6bfd81692a4aadf6e67a56a70ecf4 | b1fe94565437c27d985b41f6bf68d652641fd743 | refs/heads/master | 2021-07-23T04:27:13.741038 | 2020-09-30T21:44:40 | 2020-09-30T21:44:40 | 24,700,500 | 9 | 7 | null | 2020-10-06T05:41:32 | 2014-10-02T00:20:39 | Python | UTF-8 | Python | false | false | 4,504 | py | import werkzeug.datastructures
from jinja2 import Markup
from flask import request, session, current_app
from wtforms.fields import HiddenField
from wtforms.ext.csrf.session import SessionSecureForm
class _Auto():
'''Placeholder for unspecified variables that should be set to defaults.
Used when None is a v... | [
"sunishsheth2009@gmail.com"
] | sunishsheth2009@gmail.com |
dea1ae61b850b1e4480c8d9a64ae567fb2fb1a3c | 6c5c19a40cd0e4f35336f696ef2a11a4a96844de | /quiz-game/quiz_brain.py | 69f93d4d43933f86689cab29c4e0612c177e2d42 | [] | no_license | NaruKim/QuizGame | a0b7ebbd1a1544dc7d92faae6496f98210eb4aa7 | b4fb58d9da720835d63541be81c338d8807de627 | refs/heads/main | 2023-03-07T12:48:22.357232 | 2021-02-13T03:15:29 | 2021-02-13T03:15:29 | 338,486,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | class QuizBrain:
def __init__(self, n):
self.question_number = 0
self.question_list = n
self.score = 0
def still_has_question(self):
return self.question_number < len(self.question_list)
def next_question(self):
user_answer = input(f"Q.{self.question_num... | [
"noreply@github.com"
] | NaruKim.noreply@github.com |
36cce059f0eef1944248310def772b96b1245145 | 7039dbe4d16c79eabb8643fc7bce5dac0038ae0d | /Flask/app/models/webcrawler/meituan.py | 17a6d2c7e926710f05d290020d59f84697e0fcb9 | [] | no_license | jerryandjune/project | 3d5b550635ce646456a169e91e4350f202b972e0 | 45f87c053eae88a33579adc0d56ac62b6e90dac0 | refs/heads/master | 2022-10-10T21:09:04.642924 | 2020-06-13T10:52:29 | 2020-06-13T10:52:29 | 261,818,942 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,104 | py | # -*- coding: utf-8 -*-
from app.models.webcrawler.agent import Agent
from app.models.rating import Rating
import requests
from fake_useragent import UserAgent
import random
import time
import json
from datetime import datetime
import base64
import zlib
import uuid
# 美团数据爬取
class MeiTuan(object):
# 代理列表
mya... | [
"228777912@qq.com"
] | 228777912@qq.com |
48983f1ea96897668bf4f661b7f0605254dc330d | 02d1d89ed3c2a71a4f5a36f3a19f0683a0ae37e5 | /navigation/sonar/maxsonar_class.py~ | fbc039ae23b20329bb3f04d51f235e36260bfd38 | [] | no_license | lforet/robomow | 49dbb0a1c873f75e11228e24878b1e977073118b | eca69d000dc77681a30734b073b2383c97ccc02e | refs/heads/master | 2016-09-06T10:12:14.528565 | 2015-05-19T16:20:24 | 2015-05-19T16:20:24 | 820,388 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | #!/usr/bin/env python
import serial
import threading
import time
# need to find best way to search seria ports for find device
class MaxSonar(object):
def __init__(self):
self._isConnected = False
self._ser = self._open_serial_port()
self._should_stop = threading.Event()
self._start_reading()
self._data =... | [
"laird@isotope11.com"
] | laird@isotope11.com | |
7a5737d47f554c2642a0f6e6d6a2dbb120c0c127 | 9e440e7f966f978bd0068e358754f2c7544ddd1f | /FacebookCloneWebService/my_user/serializers.py | b531700cb6114d071a23794151a7eb3450dfe4eb | [] | no_license | toddlamb/Academic_Projects | e484b7df0d806f43c0b8b605898bc967c1bd1b3b | 49cf4d521797ae81dcffaf88a6695b35eb6c682a | refs/heads/master | 2021-09-02T03:37:45.087354 | 2017-12-30T00:59:31 | 2017-12-30T00:59:31 | 103,955,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,384 | py | from rest_framework import serializers
from .models import User, Friendship
from util import serializer_mixins as sm
from django.db.utils import IntegrityError
# Serializers define the API representation.
class UserSerializer(sm.WriteOnceMixin, serializers.ModelSerializer):
class Meta:
model = User
... | [
"toddlamb199@gmail.com"
] | toddlamb199@gmail.com |
cbcfeea91647098680903a8f637833aefe924612 | 2333a2da53a2602fc94eaf1d89e0876a44ba769c | /venv/bin/flask | 0aa424925775d13ea497d0363622488ba5e7258d | [] | no_license | suguna23/rmsit | 25ad41165c52002537aa1fcfb4012a095bf29437 | 85dd67f03be2a98af167f7377814879e535426b6 | refs/heads/master | 2022-12-05T19:40:17.328044 | 2020-08-27T13:24:31 | 2020-08-27T13:24:31 | 290,776,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | #!/home/suguna/my_flask_app/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ubuntu@ip-172-31-34-179.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-34-179.ap-south-1.compute.internal | |
54806e1c4cfdd075a3b37f53636e5dc27927555f | 9ff95e2ecc027cc909271f47e8d7e4fffe97a285 | /pytrace/world.py | 6b99ed91cba4144acec69a4e4d309c104eb1e864 | [] | no_license | fictorial/simple-raytracer | f1dc2b6f3ca4f766f1ed7b3ab658ea8a4fcf2577 | ac136d2d061fbca1bd3fc756910b603d67f63b3a | refs/heads/master | 2020-04-02T14:56:27.095301 | 2019-09-26T13:48:26 | 2019-09-26T13:48:26 | 154,544,743 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | from pytrace.entity import Entity
from pytrace.color import RGB
class WorldError(RuntimeError):
"Invalid world configuration"
class World(Entity):
_num_worlds=1
def __init__(self, name=None):
if name is None:
name = "World %d" % World._num_worlds
Entity.__init__(self, name)
World._num_worl... | [
"brian@fictorial.com"
] | brian@fictorial.com |
c5c283a87f7a1e437e08fc327d7eb3dee30328cc | 39efd1f9f2d0e4029cfd5f3a9ac12db36d1fa880 | /DR_explicit_broadband_probe_replace_j_shift_ap_only.py | f3ac9750c07ce321732682f64e3946721a31430e | [] | no_license | arana89/python_ptycho | 4b780db0cdfc4f7aa34219d4912f813ad5e24fdf | 1d7b9273d0dbea330695a1aefe3c8c72d5296718 | refs/heads/master | 2020-03-21T08:47:45.113965 | 2018-07-27T19:24:31 | 2018-07-27T19:24:31 | 138,365,273 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,427 | py | #!/u/home/a/arjunran/.conda/envs/intel_mkl/bin/python
# -*- coding: utf-8 -*-
"""
explicit probe and object update, jianhua method
@author: Arjun Rana
"""
#%%
import sys
sys.path[-2] = sys.path[-1] #because conda environment loads the global site-packages first...
import os
import numpy as np
import scipy.io as sio
imp... | [
"arjun.rana@gmail.com"
] | arjun.rana@gmail.com |
c4d362c859c78f528a87d6e4fd389d1ad46a49e9 | 737a6cf8d73b798bd1b992498d2e52983cfe7c08 | /website_i2clcda.py | ebb5a92dd426c5f3c545fd260bf921be87906bd6 | [] | no_license | floppyfish14/pi-terrarium | 56a99605576469d529c852b2daadf8ce1ad4c0e9 | b536ad6ce59c98db5bb4327bff771146324b244b | refs/heads/master | 2022-12-05T17:51:30.863147 | 2020-08-31T04:54:30 | 2020-08-31T04:54:30 | 291,616,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | # _____ _____ _____ __ __ _____ _____
#| | __| | | | | |
#| | |__ | | |_ _| | | | |
#|_____|_____|_____| |_| |_____|_____|
#
# Project Tutorial Url:http://osoyoo.com/?p=1031
#
import smbus
import time
import sys
import Adafruit_DHT
# Define some device parameters
I2C_ADDR = 0x27 # ... | [
"da3dalus"
] | da3dalus |
8eeec42ecde5a1075e6ca03b213f84525765f2dc | f6143764245600c9657c6c11c51afc60706885f5 | /DDA_lab1.py | 5d7d6012b30db4f33187f16662188e36bca6992f | [] | no_license | crescent-igor/ComputerGraphics | 6834caa27b40f04533e77456ce345930a516fbd9 | a335016e8bb84f543b9902260885ba62af6d3d68 | refs/heads/master | 2020-04-14T17:13:38.931496 | 2019-04-01T18:35:01 | 2019-04-01T18:35:01 | 163,973,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | import sys
import pygame
from pygame import gfxdraw
pygame.init()
screen = pygame.display.set_mode((640, 480))
screen.fill((255, 255, 255))
pygame.display.flip()
white = (255, 255, 255)
def ROUND(n):
return int(n+0.5)
def dda(x1, y1, x2, y2):
x, y = x1, y1
xt, yt = x2, y2
length = abs(x2-x1) if ab... | [
"noreply@github.com"
] | crescent-igor.noreply@github.com |
70f692ef781f6065de6e1005d5e0d1614ac63db5 | e7f965b3f23afe572e86bb0fb630a4db2185cb70 | /apsimRegions/preprocess/soils.py | 946a04110a9390489af2df6e6cfdfbdf9bf10204 | [] | no_license | twongsi/APSIMRegion_Biochar | b01a76e489ef19930e856b13bb66e93a9cba9174 | 1159009b225855d3568e2f7d045307ae9e98b2a2 | refs/heads/master | 2021-06-18T16:27:30.316323 | 2017-06-27T17:17:36 | 2017-06-27T17:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | #!/usr/bin/env python
#==============================================================================
# Module for parsing soil files
#==============================================================================
import lxml.etree as ET
def add_soils(element, filename):
''' Adds all soils in filename to elem... | [
"hamzed@iastate.edu"
] | hamzed@iastate.edu |
ab7dcc5f6d4aa108c68e3cd688171c670ed510f8 | ddfdce00cb6b525265efc07239cc494e36565e25 | /project_name/settings/production.py | b07d55334796c694976290798e3cee76ab9be6e5 | [] | no_license | drewbrns/Django-Sample-Project-Layout | 5bdf93ac896c3d694c285727f26c3f516d7ba011 | 4d2f8e8edc1687957515d0f83dd86b2634937701 | refs/heads/master | 2021-01-18T06:13:30.226332 | 2013-11-28T08:02:51 | 2013-11-28T08:02:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,426 | py | from .defaults import *
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = [
# ("Your Name", "your_email@example.com"),
]
MANAGERS = ADMINS
# App used only at production
INSTALLED_APPS += (
)
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.my... | [
"iskorum@hotmail.com"
] | iskorum@hotmail.com |
ed3eebeafc63f9ab053b14216164390517280d87 | 30b5179e32c3f31b56b100238ee9d14449d02071 | /tests/components/picnic/test_config_flow.py | b731fce74f9bbc1033373b6eca43f0a513a03586 | [
"Apache-2.0"
] | permissive | Verbalinsurection/Home-Assistant-core | e149c13ecae32c34b7cabd0216abcfddd6244bdc | 5f69ae436003c75b1eeac2ec488049197e87e9ff | refs/heads/dev | 2023-09-01T18:34:53.715026 | 2023-02-14T21:17:22 | 2023-02-14T21:17:22 | 247,318,244 | 0 | 0 | Apache-2.0 | 2023-02-22T06:14:24 | 2020-03-14T17:04:17 | Python | UTF-8 | Python | false | false | 9,501 | py | """Test the Picnic config flow."""
from unittest.mock import patch
import pytest
from python_picnic_api.session import PicnicAuthError
import requests
from homeassistant import config_entries, data_entry_flow
from homeassistant.components.picnic.const import CONF_COUNTRY_CODE, DOMAIN
from homeassistant.const import C... | [
"noreply@github.com"
] | Verbalinsurection.noreply@github.com |
0c2134b73618afe8066defdae021a99d1baaf6d3 | 419d2375514214f71ed79bf402fe5065c66a5143 | /bankAccountDemo/acc.py | 65044a1adfb12d6182535f8c5ef4ce22715caccd | [] | no_license | MurrayCS1/Python-Projects | a238bf32d2af797cc4733d20b5bbf4ced13c4d38 | e0f882beb91b727fbc24af1d02cea2c2c42a2d8a | refs/heads/master | 2021-05-16T17:15:21.762560 | 2017-08-15T18:47:52 | 2017-08-15T18:47:52 | 100,401,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | class Account:
def __init__(self, filepath):
self.filepath = filepath
with open(filepath, 'r') as file:
self.balance = int(file.read())
def withdraw(self, amount):
self.balance = self.balance - amount
def deposit(self, amount):
self.balance = self.balance + amo... | [
"noreply@github.com"
] | MurrayCS1.noreply@github.com |
a6a6eac619efabc8f8f09d0d3d8d820ca1fa910b | cc8c39465a8dfc82816cb501b36bc8f292e9d20a | /HW6/Question 5.py | 3d9f5a4b32df09b401ca3994a40c47aaa0f4aac2 | [] | no_license | gxavier38/CS511 | d66231954baccf91f81bca3107c964d9021d4a11 | f74b041980eca23d401708951cc5183427c98d19 | refs/heads/master | 2023-01-30T02:14:07.462558 | 2020-12-10T09:29:09 | 2020-12-10T09:29:09 | 295,649,227 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | from z3 import *
m = Function('m', IntSort(), IntSort(), IntSort())
i = Function('i', IntSort(), IntSort())
x,y,z,e = Ints('x y z e')
s = Solver()
# Axioms of group theory
s.add(m(m(x,y), z) == m(x, m(y,z))) # m is associative
s.add(m(x, e) == x) # e is a right identity
s.add(m(x, i(x)) ... | [
"gxavier@bu.edu"
] | gxavier@bu.edu |
6181d30391753ca14343ed1e5a857197478a1134 | f6689533ca448dc03d3b4e4f46e280c3bf92b0a9 | /venv/bin/miniterm.py | eff689e6788a61ecf7ec0ff06967319ea3d6a0d8 | [] | no_license | mimouncadosch/quad | 6ad42f901d75c6be623aa071c9f0a6c7a38fd5d9 | 504be285ce719cf2f629468ef6f97eb15a41270b | refs/heads/master | 2021-01-20T11:29:46.205860 | 2015-01-16T16:15:55 | 2015-01-16T16:15:55 | 29,356,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,494 | py | #!/Users/mimoun/projects/sonnartech/flask-app/venv/bin/python2.7
# Very simple serial terminal
# (C)2002-2011 Chris Liechti <cliechti@gmx.net>
# Input characters are sent directly (only LF -> CR/LF/CRLF translation is
# done), received characters are displayed as is (or escaped trough pythons
# repr, useful for debug... | [
"mimouncadosch@gmail.com"
] | mimouncadosch@gmail.com |
918c6b711b81e16dc421355ce2073c1b32bbf72e | 1c68bffb4f7696e2848a1c87ff28ff6a5f6d614e | /10_days_of_statistics/day_8/least_square_regression_line.py | 99b7a0cc9bf42ea035efc14c0bf1956964c830b2 | [] | no_license | ferpart/metodos_cuantitativos | 7e1807b132919bf75385856c73e08e66d2a27be5 | 08e7fbb5644306d69f1dac910567df7472593cb2 | refs/heads/master | 2022-11-13T17:31:50.298817 | 2020-06-20T15:01:16 | 2020-06-20T15:01:16 | 239,660,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | #!/usr/bin/python3
"""Class used for solving the least regression line problem for day 8"""
from regression_line import regression_line
def main():
"""main method for the least_square_regression_line class"""
n_count = 5
x_element = 80
x_values = []
y_values = []
for _ in range(n_count):
... | [
"ferpart@hotmail.com"
] | ferpart@hotmail.com |
bceb5d5fd70239529410c669bae6ea96ca0148fd | dbaec1262c8966d66512cadd343249786a8c266d | /tests/test_scraper.py | 1d196eeb7ad9cd52a2a34f6599ba263fbe8d42da | [] | no_license | andreqi/django-manolo | 96e50021a843cff1c223692853993c5dbb685acd | 01552875a47c4da90c89db6f0b9c05a269fa07ca | refs/heads/master | 2020-04-01T18:00:59.213208 | 2014-11-20T21:28:04 | 2014-11-20T21:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # -*- coding: utf-8 -*-
"""
test_django-manolo
------------
Tests for `django-manolo` models module.
"""
import datetime
from datetime import timedelta as td
import unittest
import dataset
import sqlalchemy
from django.conf import settings
from manolo.models import Manolo
from manolo.management.commands.scraper im... | [
"aniversarioperu1@gmail.com"
] | aniversarioperu1@gmail.com |
696567a45e36d66ebef1634dc9de2a913a41bf1b | 996ed5e00ee4d4dbf7c8d01956e14796d82bde71 | /web_service/lib/errors.py | 0aaa63cc5494b561687c9bd2901a8e9c460fff02 | [] | no_license | ngroesz/cat_swipe | 41493488a2e9a408e5c891029ebfc01778487ea0 | 269018396116f4297c1ca0ea0b181e0cb86ab07a | refs/heads/master | 2022-12-16T16:07:48.193398 | 2019-10-31T00:12:45 | 2019-10-31T00:12:45 | 165,539,828 | 0 | 1 | null | 2022-12-08T06:34:27 | 2019-01-13T18:29:47 | JavaScript | UTF-8 | Python | false | false | 414 | py | class PermissionDenied(Exception):
status_code = 400
def __init__(self, message, status_code=None, payload=None):
Exception.__init__(self)
self.message = message
if status_code is not None:
self.status_code = status_code
self.payload = payload
def to_dict(self):... | [
"nick.groesz@gmail.com"
] | nick.groesz@gmail.com |
bb5bf27549da60b54e5a034ea948dda8c9c4d2d6 | eba05d8b5f45c109b68c5d19f7658fe62f9083ec | /client/verta/tests/test_entities.py | 839a00dcf025688f0b5b507482ed6082c33d058e | [
"Apache-2.0"
] | permissive | fagan2888/modeldb | 4b47d5ded2024ae1f61fda6d2980f8228e3937a5 | 7182cb9432eeb10b84abc89f925106abf5c43d21 | refs/heads/master | 2023-01-15T01:01:42.090856 | 2020-11-21T01:49:54 | 2020-11-21T01:49:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,592 | py | import six
import itertools
import os
import shutil
import requests
import pytest
from verta._registry import RegisteredModels
from verta._tracking.deployable_entity import _CACHE_DIR
from . import utils
import verta
import verta._internal_utils._utils
import json
from verta.external.six.moves.urllib.parse import... | [
"noreply@github.com"
] | fagan2888.noreply@github.com |
64d5e06ad1a58f2d209bdbe9eafa0fa0247f8fd4 | 65bdb5b22b98e04c439b6a00761f48802bf1f03e | /for_loop.py | 94972872b01be9e70aa07397d24ca456e31c1430 | [] | no_license | sourav03561/GitLearning | 158fd57bab16d700016778f5c80ac0cc2df9218f | 31cfb33585a7d2fd0ecc0f8adb921cd97902eaaf | refs/heads/master | 2022-11-11T14:11:39.490706 | 2020-06-22T08:17:59 | 2020-06-22T08:17:59 | 274,072,260 | 0 | 0 | null | 2020-06-22T08:02:37 | 2020-06-22T07:43:36 | Python | UTF-8 | Python | false | false | 66 | py | for i in range(10)
print('yahoo')
print('done with for loop') | [
"cmbubai03561@gmail.com"
] | cmbubai03561@gmail.com |
82e810c2ba1640e7bb65e3ba6c9b71c68694f485 | af1d78a0fb6d078dbda5fe53cbbfe942f4cf3040 | /app/auth/FBAuth.py | dea24f1bd3e93fb1f07aacd0245204195700eff8 | [] | no_license | ksaetern6/MenuAppWeb | 5625c5dce9cf60e4933fdcbc72b817993f901be6 | 96780b0a1e4149d75ba198b9ffbdcbdbe5c6dc75 | refs/heads/master | 2022-10-27T12:05:01.583943 | 2020-06-12T04:43:08 | 2020-06-12T04:43:08 | 217,994,139 | 0 | 0 | null | 2022-09-23T22:30:52 | 2019-10-28T07:59:09 | HTML | UTF-8 | Python | false | false | 326 | py | import pyrebase
class FireBaseAuth():
def __init__(self, firebase):
self.firebase = firebase
def getFireBaseRef(self):
auth = self.firebase.auth()
return auth
def fireBaseLoginUser(self,email,password):
auth = self.getFireBaseRef()
user = auth.sign_in_with_email_and_password(email,password)
return u... | [
"kensaetern@Kens-MacBook-Pro.local"
] | kensaetern@Kens-MacBook-Pro.local |
8e568cef4ff7a3c2ea02171de032c587fa1c42e7 | e2271fa026cdfb5aaf145970e1d9252b8c2dd001 | /atcoder.jp/abc178/abc178_c/Main.py | 4dae8aa7e22ee6d31f247f4df27595077e5df5f9 | [] | no_license | tsuchan19991218/atcoder_achievement | 802daaae640d5157f1bd55cc5d6ef08546fc4ca2 | 15502aba97dada1809deed05ea6c349122578a01 | refs/heads/master | 2023-06-11T11:52:11.896838 | 2021-07-02T20:44:40 | 2021-07-02T20:44:40 | 290,015,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | n = int(input())
ans_max = 1
for i in range(n):
ans_max = ans_max * 10 % 1000000007
ans_mid = 1
for i in range(n):
ans_mid = ans_mid * 9 % 1000000007
ans_mid = ans_mid * 2 % 1000000007
ans_min = 1
for i in range(n):
ans_min = ans_min * 8 % 1000000007
ans = (ans_max - (ans_mid - ans_min)) % 1000000007
prin... | [
"ylwrvr.t.koga+git@gmail.com"
] | ylwrvr.t.koga+git@gmail.com |
410b0d4c2ba2e579c33b1c115448ef5426cd3d43 | deb41063447ace96175948ab088aea75c601a1a4 | /coremltools/converters/mil/mil/ops/tests/test_const.py | 44610cfbb670686463b81ed98c4743128d33cd6e | [
"BSD-3-Clause"
] | permissive | flrngel/coremltools | d3812e6a2358c9a6d61a79d1576df42417e0828c | 8b3500eb55c7d06f0cd825c33042b63279de30ce | refs/heads/main | 2023-06-17T05:30:01.259581 | 2021-07-13T03:21:41 | 2021-07-13T03:22:34 | 384,216,428 | 1 | 0 | BSD-3-Clause | 2021-07-08T18:32:06 | 2021-07-08T18:32:06 | null | UTF-8 | Python | false | false | 2,053 | py | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from coremltools.converters.mil import testing_reqs
from coremltools.converters.mil.testing_reqs impo... | [
"noreply@github.com"
] | flrngel.noreply@github.com |
e10f712169e012afe52d661cee1079d73d473cf5 | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /executale_binaries/register-variants/vpblendvb_xmm_xmm_xmm_xmm.gen.vex.py | 24114f1b5661dc25199fcafb0f1753e89bd770d4 | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | import angr
proj = angr.Project('vpblendvb_xmm_xmm_xmm_xmm.exe')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
4dd821a81a1d423a6da9d639e298646c725eca01 | 8a3dfe493abbddf222cc98efc61ba6b9917f1601 | /blender_implementations/flow_aggregation/flow_aggregation.py | d6d03a92fbeecf408f600485adca147117fe8eab | [] | no_license | lorentzo/Growth_models | fa95f80547a545374ab0fb738c5fddff9d5b4d19 | fbc4cab2fd4d5cdeade2492407a80fdc5d585a51 | refs/heads/master | 2020-04-28T22:41:07.006889 | 2019-07-04T11:20:33 | 2019-07-04T11:20:33 | 175,626,424 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,057 | py |
#
# This source file is part of Growth_models.
# Visit https://github.com/lorentzo/Growth_models for more information.
#
# This software is released under MIT licence.
#
# Copyright (c) Lovro Bosnar
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated docum... | [
"lovro.bosnar1@gmail.com"
] | lovro.bosnar1@gmail.com |
ea0e272c78a2cee45f53d09032b1d2d686ad15d7 | a8e95a6f39ab34287e526b99bf268dd8ad783083 | /azsite/azsite/urls.py | 238694ad65c0eec597fbdb6b209603dfbd5da04d | [] | no_license | Chrisgrr3/azBilling | 1b9dcb74f1152ea3bb893edd97a30a9c295a26dd | 65c0ae37120c094d59bf34a17a3cae41b73b8faa | refs/heads/main | 2023-06-01T17:46:24.962648 | 2021-06-18T01:29:29 | 2021-06-18T01:29:29 | 377,881,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | """azsite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"chrisgrr3@gmail.com"
] | chrisgrr3@gmail.com |
83428b6418ce8e4237ff44919b4a35afb15468e5 | c45f5b2283866ca12bf9090dd53bdc3b2f53724c | /python3/doit/string2.py | 17ae1d2c3449b71cb059ff59662e7392ec153def | [] | no_license | YounSik89/python | 50f826dbb365516ba9c754a40fe356cb4f465388 | 6b331bf2cb570d41160f7753885f7d86bb007e3a | refs/heads/master | 2021-08-29T16:21:20.560963 | 2017-12-14T09:33:27 | 2017-12-14T09:33:27 | 114,213,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | a = "Younsik is a student, he is a programmer"
print(a[3]) # 앞에서 4번째 문자
print(a[0]) # 가장 첫 문자 = 앞에서 첫번째 문자.
print(a[-1]) # 가장 마지막 문자 = 뒤에서 첫번째 문자
print(a[-2]) # 뒤에서 두번째 문자
b = a[0]+a[1]+a[2]+a[3]
print(b)
c = a[0:4] #맨 마지막 4는 안들어간다.
print(c)
d = a[7:14]
print(d)
e = a[10:]
print(e)
b = a[:15]
print(b)
print(a[:])
pri... | [
"younsik89c@gmail.com"
] | younsik89c@gmail.com |
15eb534642b2dbaf5eb98339e0cd15a18f7b59d6 | 4c228cca5bfdf3bd34dab2bedd7350ff501230b3 | /tools/ex_network.py | daaafecdccaa5dfaf16ca6adbc450de5273af72f | [] | no_license | gauenk/xi_uai18 | 3575b4b6db3393f4bc6a640a6b3c607a2d6bca6f | c24040f43e3d8779b7c2fff88f8ab787cf22c385 | refs/heads/master | 2022-02-24T04:29:14.037754 | 2020-04-04T16:57:17 | 2020-04-04T16:57:17 | 234,967,333 | 0 | 0 | null | 2021-03-29T23:13:54 | 2020-01-19T21:05:51 | Python | UTF-8 | Python | false | false | 2,877 | py | import plotly.graph_objects as go
import networkx as nx
def plot_network(G):
#
# plot the edges
#
edge_x = []
edge_y = []
for edge in G.edges():
x0, y0 = G.nodes[edge[0]]['pos']
x1, y1 = G.nodes[edge[1]]['pos']
edge_x.append(x0)
edge_x.append(x1)
edge_x... | [
"kent.gauen@gmail.com"
] | kent.gauen@gmail.com |
160d7d9d48b6a414a9ecd73aba6f83be96999fd9 | 93fbde41d85a69b2f964a7945fd1a4df0bc0a836 | /hello.py | 16eb3c09053e619d2b890734dd37ba0680aeb854 | [
"MIT"
] | permissive | cwp9fq/cs3240-labdemo | 01b9b05e4487c6ad21d1c017acfcd74119553f05 | e3b7c21f3ced5ec907c749752dd0f23c37c02caf | refs/heads/master | 2021-01-18T21:22:13.588941 | 2015-02-16T19:57:17 | 2015-02-16T19:57:17 | 30,884,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | __author__ = 'Cameron Peters'
print("hello") | [
"cwp9fq@virginia.edu"
] | cwp9fq@virginia.edu |
73f759e34e0bb373fed5832be2d79bf6a4727643 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/benchmarks/prime-193.py | a9022462728d26ffa25a7f481c9f9b2ca1f06f24 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Get the n-th prime starting from 2
def get_prime(n:int) -> int:
candidate:int = 2
found:int = 0
while True:
if is_prime(candidate):
found = found + 1
if found == n:
return candidate
candidate = candidate + 1
return 0 # Never happens
def is_prime... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
d1caf6aee040ebe1bd1322927c54f2163f35b3c7 | b2e4f2a9d8fabf3f667dfc2141e96af1f342f5b2 | /pyutils/mask-faster-rcnn/lib/layer_utils/proposal_target_layer.py | 69333a4e4ff1f1bffb971a2b27b272d051e29f1f | [
"MIT"
] | permissive | ChopinSharp/MAttNet | ba927d80f15c0b99105540d40809cad2f08d36d4 | 3d82fe08ad5526665d0478aee08c5113d79cc209 | refs/heads/master | 2021-08-08T05:48:01.993261 | 2020-08-11T04:58:12 | 2020-08-11T04:58:12 | 227,971,922 | 1 | 1 | MIT | 2019-12-14T05:35:02 | 2019-12-14T05:35:01 | null | UTF-8 | Python | false | false | 8,775 | py | # --------------------------------------------------------
# Faster R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick, Sean Bell and Xinlei Chen
# --------------------------------------------------------
from __future__ import absolute_import
from... | [
"mwb@zju.edu.cn"
] | mwb@zju.edu.cn |
62b1a67e47cc7c72d8dad45edd8e4105d1937e55 | c081330ffd5cefc00191685f7753b116620fa898 | /Gallery3D/Box.py | 41798addaa7d58a592802be983367c34e27ac709 | [] | no_license | yuki67/Figure | c660ce6cbccd611615df54c96ca6411343cb1ce8 | 78ab63ce518f99340d290c27de50f53b92561318 | refs/heads/master | 2021-01-22T05:20:28.531749 | 2017-05-10T13:09:15 | 2017-05-10T13:09:15 | 81,650,064 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | from Figure3D import point_3d, Box
a = point_3d(-10.0, -10.0, 10.0)
b = point_3d(10.0, 10.0, 15.0)
figure = Box(a, b)
| [
"123syokutaku@gmail.com"
] | 123syokutaku@gmail.com |
9f19d3c5fcbc1f51d9dacb5e5af1b29b1945cd46 | bbe2634c490964e3749cd4acaa825f69892d4e4e | /process.py | f3151ee13045d6cd28abc1626bd2a49b26dd3809 | [] | no_license | shailesh001/DeepLearningTests | f40eb9a4390f5408d4c2d1d65ddc84686fedc710 | 3c061df6a395960c4cc12d696f7af0d056e722df | refs/heads/master | 2021-01-24T17:02:56.370083 | 2017-03-10T16:35:19 | 2017-03-10T16:35:19 | 81,821,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import numpy as np
import pandas as pd
def get_data():
df = pd.read_csv('ecommerce_data.csv')
data = df.as_matrix()
print(data)
X = data[:, :-1] # Every thing but the Last column
Y = data[:, -1] # Last column only
print(X)
print(Y)
# 0 based index. Set Column 2 and 3
X[:, 1] =... | [
"shailesh001@mac.com"
] | shailesh001@mac.com |
0d948fbf2edf9bfd6ca10356cb953a4d41037295 | 2262ccf008ccecc1a263b8bf9954e80337147f1d | /plot_gpx_osm.py | aa55517fae601764aae495aaa8699e417e843dc6 | [] | no_license | AndrQuiroz/plot-gpx-osm | 2e74771afddffa38e4f5065727d81a25d6f293d8 | b587e36351f34eb1172526ac1602f8aba9d2954a | refs/heads/master | 2022-09-09T09:42:33.899091 | 2015-02-20T00:03:15 | 2015-02-20T00:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,831 | py | #!/usr/bin/env python
'''
Plot GPX file
create bitmaps from a GPX trace using OpenStreetMap
(c) Olivier Friard 2014
require:
- osm.py
- python-shapely
- gpx_import.py
2014-07-10: added plotting of waypoints GPX
added plot dots option (-d)
2014-04-18: added argument parsing function: gpx_map.py -h
2014-0... | [
"olivier.friard@unito.it"
] | olivier.friard@unito.it |
25a5ae8f34319e5428b6334c8d864c2d599441d7 | 6836433498d3ab4a5c3259e74ccb6a5e311d89ee | /ARCHIVE/Nishant/Nishant_coord_mapping/coord_read.py | 6fd0c95dc45dd8227c7ff635f0720e4125e2a213 | [] | no_license | stephmarky/3300-p1 | 2ad1e38dcc7c2aecab12f225c87f91db304b6257 | 5027e8b3eab4cddc6b6965971e4a131b429350bb | refs/heads/master | 2021-04-29T18:39:20.336312 | 2018-06-14T01:00:57 | 2018-06-14T01:00:57 | 121,697,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | import csv
import random
final_array = []
coordinate_array = []
randarray = []
with open('country_center_coordinates.csv', 'rb') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',')
for row in spamreader:
coordinate = []
coord = row[1]
coord = coord.split(',')
coord[0] = coord[... | [
"ng352@cornell.edu"
] | ng352@cornell.edu |
a4b3a0761970ff05e0eeef42367686402f942201 | 46a5338c5979c54e335af3d5a0523d5325845a0d | /python/fishsey/paper/paper1/slopeone_userBased_test_tp.py | 17a46d1086bdc86be2df08826d443e026b814de5 | [] | no_license | fishsey/code | 658284367b8435fa233a473341b90d746330a873 | b4275042e18ee02eb29ee285df7dce6d4d31a0c4 | refs/heads/master | 2021-07-11T18:57:11.052981 | 2017-10-06T11:15:35 | 2017-10-06T11:15:35 | 105,975,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,305 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 06 10:17:13 2016
@author: fishsey
"""
def topKUser(u, i):
global maxlen, minSim, userSimArrayObj, trainArrayObj
rowNum = trainArrayObj.shape[0]
ls = []
temp = []
#遍历每个用户
for otherUser in range(rowNum):
if trainArrayObj[otherUser, i]... | [
"ally1984aikx@gmail.com"
] | ally1984aikx@gmail.com |
7adbca764e3ddd8a62ada01668aa930b79ee74f6 | 443ad4fc2877031810dedb2390cca4aa646536a4 | /profile_dashboard/views.py | e093f0b788c23234340e343f124edf417c935660 | [] | no_license | ilhanfn/C08 | 0d6f97d215241f3c54f96f71b7f671944e5528fe | 2d023e5d751a486cc6020ad5c96eae34cb009bd0 | refs/heads/main | 2023-08-30T08:22:16.743023 | 2021-11-04T07:18:19 | 2021-11-04T07:18:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | from django.shortcuts import redirect, render
from .models import Profile
from .forms import UserUpdateForm, ProfileUpdateForm
from django.contrib.auth.decorators import login_required
@login_required
def profile(request):
if request.method == 'POST':
u_form = UserUpdateForm(request.POST, instance=request.... | [
"visianitawidya@gmail.com"
] | visianitawidya@gmail.com |
52a051a1f273e344066b4ddedd4c4d3304bced08 | b21525fdcbb9724d51fd4b317c24f218d05144d2 | /FastBridgeApp/data/Latin/cicero_de_provinciis_consularibus.py | ade71b6415b0619a3190b8717db404d9d95ebc33 | [] | no_license | HCDigitalScholarship/FastBridge | 6202da636bcc2b6a6c7efe7b2a6d067510e7fa57 | 9037b0d5dee5da7d93ea53538595883559b07cda | refs/heads/master | 2023-09-02T02:58:47.683943 | 2023-06-06T19:20:09 | 2023-06-06T19:20:09 | 218,993,365 | 1 | 5 | null | 2023-06-06T19:20:10 | 2019-11-01T13:45:05 | Python | UTF-8 | Python | false | false | 261,464 | py | import text
nan=""
section_words = {'start': -1, '1.1': 7, '1.2': 16, '1.3': 23, '1.4': 32, '1.5': 40, '1.6': 48, '1.7': 56, '1.8': 64, '1.9': 72, '1.10': 80, '1.11': 89, '1.12': 97, '1.13': 106, '1.14': 112, '2.1': 115, '2.2': 125, '2.3': 133, '2.4': 142, '2.5': 151, '2.6': 160, '2.7': 169, '2.8': 178, '2.9': 187, '2.... | [
"carter.langen@gmail.com"
] | carter.langen@gmail.com |
fa23b69c5b3e88b6089bccdcc5b53e24c3dd7df9 | 05ff9c2d32ecd44ed308cf4d2db549a7cac95abc | /2016/2016.10.py | 9344fdefb90ada4de12d10b1d0e20eefa1e1d26d | [] | no_license | boriskashentsev/AdventOfCode | e1a423f654c44b70259921cb281f161fa9d6cdc4 | 508b7a36234ddb4912fb7ca8c60d1b6a07ac67ee | refs/heads/master | 2023-01-12T03:27:00.889805 | 2022-12-05T06:06:45 | 2022-12-05T06:06:45 | 226,345,203 | 0 | 0 | null | 2022-12-05T06:06:12 | 2019-12-06T14:20:06 | Python | UTF-8 | Python | false | false | 1,883 | py | import sys
sys.path.append('./')
from utils.filename import calculateFileName
filename = calculateFileName(sys.argv)
f = open(filename, "r")
input = f.read()
lines = input.split('\n')
comparingValues = [17, 61]
if len(sys.argv) > 1:
comparingValues = [3, 5]
bots = {}
output = {}
instructions = {}
botsWithTwoCh... | [
"boris.kashentsev@gmail.com"
] | boris.kashentsev@gmail.com |
fd9051b479df526f24d4937d65fc91e13c2b0021 | 837fcd0d7e40de15f52c73054709bd40264273d2 | /More_exercise-master/Repeated_element_list.py | db01da889fb9c8d678166fab52513a0e563108a2 | [] | no_license | NEHAISRANI/Python_Programs | dee9e05ac174a4fd4dd3ae5e96079e10205e18f9 | aa108a56a0b357ca43129e59377ac35609919667 | refs/heads/master | 2020-11-25T07:20:00.484973 | 2020-03-08T12:17:39 | 2020-03-08T12:17:39 | 228,554,399 | 0 | 1 | null | 2020-10-01T06:41:20 | 2019-12-17T07:04:31 | Python | UTF-8 | Python | false | false | 477 | py | list1 = [1, 342, 75, 23, 98]
list2 = [75, 23, 98, 12, 78, 10, 1]
index=0
new=[]
while index<len(list1):
if list1[index] in list2:
new.append(list1[index])
index=index+1
new.sort()
print new
#"-------------------"
# without in operator
index=0
new=[]
while index<len(list1):
var1=0
... | [
"nehai18@navgurukul.org"
] | nehai18@navgurukul.org |
481cc0ed3a68956681f31a999d32922fb66e12af | 02b10de4dca09b516600540ce718d951a3b6781b | /main.py | 1157aba07b6429d243d30fca0283dbeadd31801e | [] | no_license | maloyan/Algebra | 378729a570b37a85bd143e65b9bebbcd727447cb | 6d4e9a6d1e67d93f763677399e8ac9c52a4d3dd4 | refs/heads/master | 2021-04-25T04:15:46.066862 | 2017-12-30T19:05:31 | 2017-12-30T19:05:31 | 115,112,443 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | import numpy as np
import bch
import gf
def main():
print(gen_pow_matrix(7))
#print(euclid(np.array([2, 3, 6]), np.array([1, 0, 1]), gen_pow_matrix(19), 0))
#(array([13]), array([13, 12]), array([15, 7]))
if __name__ == "__main__":
main()
| [
"maloyan@ispras.ru"
] | maloyan@ispras.ru |
535dfe56603f221ea285f2a1714ed7358865a71e | d7a0ecb277e42340bd0ce269f25e5ebd24d1d6d8 | /Python/Les 5/3. If else.py | 19d95cdceb78e91de02b19daf306d2d4ff67e01c | [] | no_license | diooo1231/programming1 | e327c8054ff31d14a184d6879a3b009e2e897dc0 | d7f241375c6131306287e8ae4ce6fa2111e524ce | refs/heads/master | 2020-03-28T01:31:23.916339 | 2018-11-06T23:13:32 | 2018-11-06T23:13:32 | 147,511,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | leeftijd = input("Geef je leeftijd: ")
paspoort = input("Nederlands paspoort: (ja/nee) ")
if int(leeftijd) >= 18 and paspoort == "ja":
print("Gefeliciteerd, je mag stemmen!")
else:
print("Helaas, je mag niet stemmen.") | [
"dio.snel@student.hu.nl"
] | dio.snel@student.hu.nl |
1a2624a3c3bc10919d6a6c4abd705d1cc12b5ca3 | 80cdc0bc432827479a437fd37f9bef216b5b8500 | /postgres_kernel/commands.py | bdc0dfb55a35f356e69f0f5d652e75bdc38a7d20 | [] | no_license | mreithub/postgres_kernel | d4b99036fbd3477f9b8454b665e16b3a9fc5a636 | 551b0b5f94fa28fa4fa03a900e065adb535963f8 | refs/heads/master | 2021-01-10T06:15:00.565197 | 2016-04-04T14:11:45 | 2016-04-04T14:11:45 | 54,680,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,776 | py | import itertools
def _getHtmlCheckConstraints(kernel, tblName):
# check constraints
rows = list(kernel.yieldQuery('''
SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true)
FROM pg_catalog.pg_constraint r
WHERE r.conrelid = %s::regclass AND r.contype = 'c'
ORDER BY 1;''', (tblName,)))
if len(rows) > 0:
yi... | [
"git@manuel.reithuber.net"
] | git@manuel.reithuber.net |
2627bc5bee346deeab204fa6ec44e5c9cc13abfc | 8b9e9de996cedd31561c14238fe655c202692c39 | /hackerrank/hackerrank_AntiPalindromic_Strings.py | e118373c79db90167cc964fa3d7cbc28599314dd | [] | no_license | monkeylyf/interviewjam | 0049bc1d79e6ae88ca6d746b05d07b9e65bc9983 | 33c623f226981942780751554f0593f2c71cf458 | refs/heads/master | 2021-07-20T18:25:37.537856 | 2021-02-19T03:26:16 | 2021-02-19T03:26:16 | 6,741,986 | 59 | 31 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | """hackerrank_AntiPalindromic_Strings.py
https://www.hackerrank.com/contests/101hack19/challenges/antipalindromic-strings
"""
def main():
"""if n == 1, then there is m antipalindromic string.
if n == 2, then there is m * (m - 1) antipalindromic string
if n >= 3, then there is m * (m - 1) * (m - 1)...
... | [
"laituan1986@gmail.com"
] | laituan1986@gmail.com |
b4ec9a7097d8d6e2db9d55de85ff23e2c3508cc0 | 7bc79430d2eebe3331e5b0ea9d78eee23506a95a | /sac/models.py | 2633abf4f1ada389941d2dd0bba85e8ae535a7cf | [] | no_license | IwanBurcev/rl_experiments | f0c7fa41b44d72aff10d862682adb92dad525491 | 66155195595fca5f3698d0f35c51a02133218fcf | refs/heads/main | 2023-01-24T23:50:07.442931 | 2020-12-02T11:10:47 | 2020-12-02T11:10:47 | 316,952,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,144 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torch.distributions import Normal
use_cuda = torch.cuda.is_available()
device = torch.device("cuda" if use_cuda else "cpu")
class ModelsOverseer():
def __init__(self, state_dim, hidden_dim, acti... | [
"iwanburcev@yandex.ru"
] | iwanburcev@yandex.ru |
9515eeb1cee4807edd450367209ff62ce30c779c | 16ef3f6acfc1fbadcd8019b5152ec2da3910c5f3 | /src/ututi/migration/008_add_deleted_columns_for_content_items.py | 93cec7035f0aff1abf76bf51cb58d794128bb47a | [] | no_license | Ututi/ututi | 19bf1e3c5afb8ac783775bc8107e5089c48654b6 | e1f55f155761d7b350893fc0badb70c9c51c4b2f | refs/heads/master | 2021-05-27T21:01:04.444713 | 2013-01-04T12:27:22 | 2013-01-04T12:27:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import pkg_resources
def upgrade(engine):
connection = engine.connect()
statements = pkg_resources.resource_string('ututi.migration', '008_add_deleted_columns_for_content_items.sql')
connection.execute(statements)
def downgrade(engine):
connection = engine.connect()
statements = pkg_resources.res... | [
"ignas.mikalajunas@gmail.com"
] | ignas.mikalajunas@gmail.com |
14874d1fcd7fe2d2da7e2966f6726b4912378c09 | ba6921a268198bc0af433622c021533905f5d462 | /airflow/providers/amazon/aws/operators/rds.py | df010261896fd2fd0c7fce7e1fdcbca2572dabba | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | potiuk/airflow | b6447765b1a7b586a3d6c8d7ba9262f6bf68fbfd | ca2f3013bcb123c4b3973a5b85de77094bf2c459 | refs/heads/main | 2023-08-30T13:05:50.698888 | 2023-05-21T21:08:14 | 2023-05-21T21:26:14 | 173,467,275 | 8 | 7 | Apache-2.0 | 2023-05-21T21:58:40 | 2019-03-02T15:50:53 | Python | UTF-8 | Python | false | false | 29,868 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | potiuk.noreply@github.com |
3b2d656e435c6628f3cd15756996fac6543a69e9 | 6b3793ee6f0109da63e2b040f98d2f9910032661 | /OrderingStringsOfVaryingLengthLexicographically.py | 09fe99c075c8e2454ad30301e968511562bc410e | [] | no_license | louis297/rosalind | 28998252947ab904015f33d431881caaa9c713fb | cabd487e97f2bb68fd4bfa2cedc5e80f662a117e | refs/heads/master | 2021-01-10T07:37:49.960238 | 2016-01-04T21:36:23 | 2016-01-04T21:36:23 | 48,143,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | f_name = raw_input("Please Input File Name:")
f_in = open(f_name,"r")
s = f_in.read().rstrip()
lt = s.split('\n')
ltt = lt[0].rstrip()
lttt = ltt.split()
ll = [' ']
for i in lttt:
ll.append(i)
n = int(lt[1])
single = []
temp = []
result = []
for i in range(len(ll)):
single.append([ll[i]])
result.append(single)... | [
"xl297@georgetown.edu"
] | xl297@georgetown.edu |
f45766ae0ebc407cf3095029ed15a6dec1dae165 | f96143430d469b111616fba826e6da4eba08626e | /AegeanTools/fitting.py | feb93ff10e7abfe58b49b6d0c577c7c6f7bc2d1e | [] | no_license | jnothman/Aegean | 4e3776c46f4933f5c804946de1d02915ae28a01f | d6fda00c612c1e6d34ca1c71e1a8f97494ab430e | refs/heads/master | 2021-04-06T08:19:44.630878 | 2018-03-07T07:24:24 | 2018-03-07T07:24:24 | 124,828,888 | 0 | 0 | null | 2018-03-12T03:28:28 | 2018-03-12T03:28:28 | null | UTF-8 | Python | false | false | 49,862 | py | #! /usr/bin/env python
from __future__ import print_function
"""
Provide fitting routines and helper fucntions to Aegean
"""
__author__ = "Paul Hancock"
import copy
import math
import numpy as np
from scipy.linalg import eigh, inv
import lmfit
from .angle_tools import gcd, bear
# Other AegeanTools
# from models imp... | [
"paul.hancock@curtin.edu.au"
] | paul.hancock@curtin.edu.au |
57eebd45cf857ba05fc7d6a24572be047b3d5429 | 7f51d5a95f02c15f7cc9f1eb8ca291705f55f8a7 | /utilfuncs/preproc/preprocess.py | e59b9e41ed5653a5a14f608a58f5564774fd327a | [] | no_license | darkyed/non-local-means | 987a8a40309b484504108922604339f320074d07 | a23e271063885f2ee3888e2eb413a6e26d350963 | refs/heads/main | 2023-01-30T09:01:46.787533 | 2020-12-04T22:30:55 | 2020-12-04T22:30:55 | 313,636,998 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | import os, cv2
import numpy as np
from PIL import Image
from utilfuncs.preproc.addnoise import add_gaussian_noise, add_saltnpepper
def open_image_arr(path):
return np.asarray(Image.open(path), dtype='int64')
def make_gray_dir(gray_path):
if not os.path.isdir(gray_path):
os.mkdir(gray_path)
def save_g... | [
"saumitra.sharma@iitgn.ac.in"
] | saumitra.sharma@iitgn.ac.in |
da6253440114fd11e1f73ef79045bbbb0205b7dd | f8b913d6e20cd08b78941aa0398ab4662f6a4998 | /agenda/core/admin.py | 25e0e7c09ed1c3d944e788fd2e7d812d9e02312b | [] | no_license | gabrieltren/curso-django | 1f8c3f96a497701b8f3c37b373a05ca4af1c1b79 | 3150e7705c7aab1bd1772469f8c561676d332ce4 | refs/heads/master | 2023-04-08T09:03:59.077642 | 2021-04-02T19:15:03 | 2021-04-02T19:15:03 | 353,197,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | from django.contrib import admin
from core.models import Evento
# Register your models here.
class EventoAdmin(admin.ModelAdmin):
list_display = ('id','titulo','data_evento','data_criacao')
list_filter = ('titulo',)
admin.site.register(Evento, EventoAdmin) | [
"gabriel.silveira1207@gmail.com"
] | gabriel.silveira1207@gmail.com |
183067a47327fd162070d8b72ad034b2d82d343b | 4ab26f2eb3167b08653715597bc2c78979e43ad7 | /email_sms_auto.py | 9e6aff272c613ac97f0e463c5d2b78c5653cc944 | [] | no_license | CTRL-pour-over/Automation-Using-Python | 8d1ce0766326b9e5272c4091dd51c61f30325984 | 067632b366b93bcf8a9cab73c4acd656219189a1 | refs/heads/master | 2022-06-19T11:02:39.079920 | 2020-05-07T14:15:36 | 2020-05-07T14:15:36 | 262,069,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import smtplib
import requests
import random
from bs4 import BeautifulSoup
import time
from email.mime.text import MIMEText
email = "youremail@gmail.com"
phone = "yourphonenumber@messaging.sprintpcs.com" # Boost Mobile
def scrape_data(): # this is a web scraping function that
page = requests.get("ht... | [
"noreply@github.com"
] | CTRL-pour-over.noreply@github.com |
ea6b2d4d03567346555f14b0f328b489162ee17d | 02f2fd8ff4f907eb1916848634c252fb907cce30 | /db_method/push.py | 24d5f9e0a447241af24bebb48b1acb82c595eb59 | [] | no_license | Act-mobile-health/MedicalWeb | 61b1572d5b4a0d3c65e64a09d6743b67a13707d0 | 560a39f9b35babf8e5524eb8e39b1eff4a2ff4a8 | refs/heads/master | 2020-05-25T20:05:43.869842 | 2017-07-13T14:00:42 | 2017-07-13T14:00:42 | 84,962,419 | 4 | 6 | null | 2017-07-20T03:09:28 | 2017-03-14T15:02:52 | HTML | UTF-8 | Python | false | false | 890 | py | # -*- coding:UTF-8 -*-
import jpush
from jpush import common
P_id = "110000000091"
MESSAGE = u"你好!!!"
def a():
TAG = P_id
app_key = "8f1da9d68218066965ad2157"
master_secret = "91d325746680fcd8c7154471"
_jpush = jpush.JPush(app_key, master_secret)
push = _jpush.create_push()
# if you set the log... | [
"zhangyc@TestPC"
] | zhangyc@TestPC |
6482fd17afa899f103ed82ac3493c7078a08dcd9 | 72ae11b00b4e145c4c038c2d11b64aa6ccd2b757 | /web/controllers/user/User.py | 3437203bd98c536440432d0210e47167bed16c4b | [] | no_license | zhangben6/Wechat_OrderProgram | dc6e77e86f408ecff8edf37bda165bf12c5bc4a4 | 0829b5a1a704d4782ef15d19b09c8e2d8ab0ded8 | refs/heads/master | 2020-04-23T15:32:21.075991 | 2020-03-05T07:52:36 | 2020-03-05T07:52:36 | 171,269,040 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,145 | py | # -*- coding: utf-8 -*-
from flask import Blueprint, request, jsonify, make_response, redirect, g
from common.models.User import User
from common.libs.user.UserService import UserService
from common.libs.Helper import ops_render
import json
from application import app
from common.libs.UrlManager import UrlManager
from ... | [
"1457287508@qq.com"
] | 1457287508@qq.com |
e6c242f7656466c344365678cdf6869daa23683b | 8dbb2a3e2286c97b1baa3ee54210189f8470eb4d | /kubernetes-stubs/client/models/v2beta2_metric_target.pyi | e58a49afa7ff802b89fffd13f6b7a5441e8e92a4 | [] | no_license | foodpairing/kubernetes-stubs | e4b0f687254316e6f2954bacaa69ff898a88bde4 | f510dc3d350ec998787f543a280dd619449b5445 | refs/heads/master | 2023-08-21T21:00:54.485923 | 2021-08-25T03:53:07 | 2021-08-25T04:45:17 | 414,555,568 | 0 | 0 | null | 2021-10-07T10:26:08 | 2021-10-07T10:26:08 | null | UTF-8 | Python | false | false | 694 | pyi | import datetime
import typing
import kubernetes.client
class V2beta2MetricTarget:
average_utilization: typing.Optional[int]
average_value: typing.Optional[str]
type: str
value: typing.Optional[str]
def __init__(
self,
*,
average_utilization: typing.Optional[int] = ...,
... | [
"nikhil.benesch@gmail.com"
] | nikhil.benesch@gmail.com |
f373f7fb41cef8b368430594ebbdee6e8ea6d030 | 30ab9750e6ca334941934d1727c85ad59e6b9c8a | /zentral/contrib/nagios/events/__init__.py | 32a043fbbf1aebc95d5d5f0da9196c0e025d5d16 | [
"Apache-2.0"
] | permissive | ankurvaishley/zentral | 57e7961db65278a0e614975e484927f0391eeadd | a54769f18305c3fc71bae678ed823524aaa8bb06 | refs/heads/main | 2023-05-31T02:56:40.309854 | 2021-07-01T07:51:31 | 2021-07-01T14:15:34 | 382,346,360 | 1 | 0 | Apache-2.0 | 2021-07-02T12:55:47 | 2021-07-02T12:55:47 | null | UTF-8 | Python | false | false | 1,158 | py | import logging
from zentral.core.events import event_cls_from_type, register_event_type
from zentral.core.events.base import BaseEvent
logger = logging.getLogger('zentral.contrib.nagios.events')
ALL_EVENTS_SEARCH_DICT = {"tag": "nagios"}
class NagiosEvent(BaseEvent):
tags = ["nagios"]
class NagiosHostEvent(N... | [
"eric.falconnier@112hz.com"
] | eric.falconnier@112hz.com |
a5febbe7a5eedfbbabe6af1b6c0a253823fdc6b5 | 16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3 | /docs/jnpr_healthbot_swagger/test/test_topic_schema_variable.py | d8cf50a23cf30844a79d2a6d4c4d3e87e9c010c1 | [
"Apache-2.0"
] | permissive | Juniper/healthbot-py-client | e4e376b074920d745f68f19e9309ede0a4173064 | 0390dc5d194df19c5845b73cb1d6a54441a263bc | refs/heads/master | 2023-08-22T03:48:10.506847 | 2022-02-16T12:21:04 | 2022-02-16T12:21:04 | 210,760,509 | 10 | 5 | Apache-2.0 | 2022-05-25T05:48:55 | 2019-09-25T05:12:35 | Python | UTF-8 | Python | false | false | 955 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 3.1.0
Contact: healthbot-feedback@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagg... | [
"sharanyab@juniper.net"
] | sharanyab@juniper.net |
ab365082f599ed3b687a2489f5401a36a1891558 | 894ea5f3087894c10288f65f32b7c4f667ce79f5 | /opencv_learning/D3.py | c32fda158a73f185dde3d20545df7ce53a70db1e | [] | no_license | j32u4ukh/CupoyLearning | dfe1af1992c38329ce9f7fa99aa9154a45e9b982 | 1d813a72b0f1456bc4019d42ac207d51883f892f | refs/heads/main | 2023-02-16T23:51:10.084030 | 2021-01-18T16:05:33 | 2021-01-18T16:05:33 | 319,019,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | import cv2
import numpy as np
from utils.opencv import showImages
"""Working directory: CupoyLearning
調整 飽和 / 對比 / 明亮
* 改變到 HSL color space 來調整飽和度
* 對灰階圖實作直方圖均衡
* alpha / beta 調整 對比 / 明亮
"""
path = "data/image/lena.png"
# 以彩色圖片的方式載入
img = cv2.imread(path)
"""
改變飽和度
轉換成 HLS color space, 改變 s channel 的值
"""
# 改變不同... | [
"j32u4ukh@gmail.com"
] | j32u4ukh@gmail.com |
284412a761ad3e00bca57a9da838c34744d00d20 | 990eecd5494081d5ecda124de0bdb85bc9347e0c | /Driving KPIs_idle time_and_cycle/Idle_time_indus_ETL_v14.py | 5cc91d8519a442c2f5cb7b8cff4f1b435078a845 | [] | no_license | elevenstrategy/Optimizer | 922dcd5419c4056093d63a2dc65a3e4a98fed311 | 10b191b9b829fd9a59a71d62aa9e7e510d02dcff | refs/heads/master | 2022-02-26T01:06:16.971696 | 2019-09-12T13:06:13 | 2019-09-12T13:06:13 | 98,518,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,399 | py |
# coding: utf-8
# In[3]:
import requests,json,sys,os,gc,time #, urllib.parse
from urllib.request import Request
import urllib.request
import numpy as np
import pandas as pd
from datetime import datetime,timedelta
from retrying import retry
from sqlalchemy import create_engine
"""
#NOTE WORKFLOW
a deux fois par jou... | [
"henri.bouxin@gmail.com"
] | henri.bouxin@gmail.com |
60154971e033303df3ec37c5af4870bd330cbc8c | aabcf7b509608af70ce9fa6e7665837f6b6984b0 | /bincrafters_envy/main.py | 14ef7546bb5c5216fd5a45f5e21aae151fb2df3d | [
"MIT"
] | permissive | bincrafters/bincrafters-envy | 2573177e83c8ec0687eff9c76cbc0c79b1a4135c | 584ea39c16927ca3d1ffc68b32ec8d77627c27e0 | refs/heads/develop | 2023-06-08T10:55:37.920810 | 2019-07-26T08:35:48 | 2019-07-26T08:35:48 | 113,282,817 | 1 | 0 | MIT | 2023-06-01T12:24:40 | 2017-12-06T07:21:00 | Python | UTF-8 | Python | false | false | 266 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
if sys.version_info.major == 3:
from bincrafters_envy import bincrafters_envy
else:
import bincrafters_envy
def run():
bincrafters_envy.main(sys.argv[1:])
if __name__ == '__main__':
run()
| [
"uilianries@gmail.com"
] | uilianries@gmail.com |
9f4ade293e4deed7bf08590e33fecbb9a8b287d9 | 35b58dedc97622b1973456d907ede6ab86c0d966 | /Test/2020年4月29日/001.py | c8895768d64c6ebb9f086308a28346ccff33c6e5 | [] | no_license | GithubLucasSong/PythonProject | 7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635 | e3602b4cb8af9391c6dbeaebb845829ffb7ab15f | refs/heads/master | 2022-11-23T05:32:44.622532 | 2020-07-24T08:27:12 | 2020-07-24T08:27:12 | 282,165,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # import re
# import json
# sss = '{"testfan-token": "${neeo_001>data>data}$"}'
#
# find = re.findall('\${.*?}\$',sss)
#
# for i in find:
# find = i
# print(find)
#
# print(re.sub(find,'1',sss))
import requests
# response = requests.request(method='get', url='http://www.neeo.cc:6002/pinter/bank/api/query2',params... | [
"1433880147@qq.com"
] | 1433880147@qq.com |
d3b4582309aca94f3cad2c6532f54bed4c5359e3 | 7af8313ffd56c9bc9ca4a1cd5f62555037530940 | /razlomak.py | 79df62af5bb2dbf0a1a5e8cf4d2dea8605b60a3e | [] | no_license | ivobug/zadaproinz1 | e7c6ad0231f131e759ef0893eb30d2bddf32d70f | 049dca6c0a83f27c3a7bb845e2bb394c6993cf61 | refs/heads/master | 2021-05-21T07:46:49.860138 | 2020-04-06T18:28:46 | 2020-04-06T18:28:46 | 252,606,943 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | from fractions import Fraction
class Razlomak(object):
def __init__(self, brojnik, nazivnik):
self._brojnik=brojnik
self._nazivnik=nazivnik
@property
def brojnik(self):
return self._brojnik
@brojnik.setter
def brojnik(self, value):
self._brojnik=value
... | [
"ivo.bagaric.2@gmail.com"
] | ivo.bagaric.2@gmail.com |
bf17e7537b22d61931db1e1ac18bdbaf799d3afe | 3954b4fee163290713837d9e1f20772dc3b401c1 | /basic.py | e61e2710ecd2ea395b6a620d3e28922f90dc7f31 | [] | no_license | amitmittal117/python-link-find | ee373c9770599bb6f24bfa00ec91552185b7dd74 | b41a2c8090b20e32b7c33699ea91af1acecf61d9 | refs/heads/master | 2020-03-22T07:55:53.747136 | 2018-07-04T19:39:20 | 2018-07-04T19:39:20 | 139,733,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import bs4
import re
import requests
from urllib.request import urlopen as uReq
import urllib.request as req
from bs4 import BeautifulSoup as soup
def retriever_soup(my_url):
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
return (page_soup)
my_url =... | [
"amitarmittal@gmail.com"
] | amitarmittal@gmail.com |
26f2b2dacb0d6c05657c23093507fc5e80645b32 | 45e9e93736eaee5ba1d90a47fffc2293557e73d1 | /test/test_plot.py | 380b5db2a1357dd1f42d1962fd9a5749bb76a1ad | [
"MIT"
] | permissive | sheuan/wyrm | b44efdf4a8ca3fe18e327461f54a15a26a614d27 | 95e49466c87f908d7562839dba9712ab1b30e366 | refs/heads/master | 2020-12-24T06:51:04.212290 | 2016-06-13T08:25:45 | 2016-06-13T08:25:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | #!/usr/bin/env python
import unittest
import numpy as np
import matplotlib
matplotlib.use('Agg')
from matplotlib import pyplot as plt
from wyrm.types import Data
from wyrm import plot
from wyrm.processing import CHANNEL_10_20
class TestPlot(unittest.TestCase):
@classmethod
def setUpClass(cls):
x... | [
"venthur@debian.org"
] | venthur@debian.org |
655d835a33331e2fef799e77dcd0b891a8f0eb1e | e3d07719d97ed4f5fc2663a868d6bd6621ca2d06 | /conwaycode.py | e60fa84720c9e805a64966b929845cab3d5d028c | [] | no_license | Xapakas/ConwaysGame | df19bcf18fd924250aea74640bc1a7f25567271f | f0562087f55bc41e071710dccfd76944a4b470b4 | refs/heads/master | 2020-04-26T20:37:44.369614 | 2019-03-04T20:33:10 | 2019-03-04T20:33:10 | 173,816,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | # Conway's Game of Life
from graphics import *
import time
def getInitialSetup():
r_file = open("conway.txt", "r")
l_grid = []
l_add = []
s_add = r_file.readline()
s_add = s_add.strip()
i_cols = len(s_add)
i_lines_read = 0
while s_add != "":
for i_num in range(len... | [
"noreply@github.com"
] | Xapakas.noreply@github.com |
87b4638e26c9eaf9e7f59f72d440a89b34b4040c | ff637d6b96bc4b876004c374b932a2209f5a4333 | /Face.py | 24d241633d2059a40f448e2a4d7b995b96310728 | [] | no_license | advaitparulekar/Intermittent-Exotropia-Manager | d36101a1261a7c513e6ac8c10152c1f755316789 | 7210cf8f6420787a7e09583661e134ccff0e949f | refs/heads/master | 2020-06-25T06:11:11.701666 | 2019-07-28T00:37:08 | 2019-07-28T00:37:08 | 199,226,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,283 | py | import cv2
import numpy as np
import math
from scipy import signal
np.set_printoptions(threshold='nan')
ALPHA = 2
BETA = 1
class Eye:
def __init__(self):
self.x = -1
self.y = -1
self.w = -1
self.h = -1
self.iris_center_x = -1
self.iris_center_y = -1
self.... | [
"adutheparulekar@tamu.edu"
] | adutheparulekar@tamu.edu |
3e74dac2522b1de473f5cf08b04efb7b1b480958 | 39447151741b12b438d218a2b04d9c83c105c8e5 | /numtowordconverter/owner/forms.py | 354dd7bd45c69b49ff950e8e944cce5834ed01d0 | [] | no_license | Pranavpradee/numberto_word_converter | 7fcd6a27e0d65053fe05ee54b3a236d1b30011b4 | 486f4680306d7284ba353a2db7b71dcce1dbfec9 | refs/heads/master | 2023-09-03T21:04:17.880341 | 2021-10-29T06:35:36 | 2021-10-29T06:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from django import forms
from django.forms import ModelForm
from owner.models import owner
class NumtostringForm(ModelForm):
class Meta:
model=owner
fields=["Number","Result"]
widgets={
"Number": forms.NumberInput(attrs={"class": "form-control"}),
"Result":forms.T... | [
"33pranavpradeep@gmail.com"
] | 33pranavpradeep@gmail.com |
b6dcf2a314ce8627fe4544d3209cc0bc2f508819 | 61f3ce1a93f4efc72b7b1e5836e3283fbff429a6 | /samples/hello_tensorflow.py | 9824b4b4e7fc243cae96e46a4fc592b6355af57a | [] | no_license | cilab-aragorn/HPE-Hackathon-2018-Since-Perceptron | f4966d2d50ebb6fb4244c3f7772052db105f01a7 | d958dd0e0eca083d9497a8f1b1571e46f9a71841 | refs/heads/master | 2021-09-15T15:10:33.362782 | 2018-06-05T08:01:13 | 2018-06-05T08:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | import tensorflow
print()
print("Tensorflow: " + tensorflow.__version__)
| [
"tzjie.dai@gmail.com"
] | tzjie.dai@gmail.com |
6a8a9ac0ad869a43359709201732fda3714a9f1e | 556a35688986c975b88d5a755c35aee18d600155 | /UO.py | 721cb3e162874eef58eadac37c43e73f5e1f79a1 | [] | no_license | AshMohanty/-iru.co.util | fe0305baed713698ee2519958d4a1e7dcf8612db | fd29cf90c0b497380bcf22017ca35bc69b525b07 | refs/heads/master | 2020-12-03T00:38:46.873470 | 2017-09-01T02:23:06 | 2017-09-01T02:23:06 | 96,055,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,699 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy import Spider
from scrapy.http import Request
class UoSpider(scrapy.Spider):
name = 'UO'
allowed_domains = ['urbanoutfitters.com']
start_urls = ['http://urbanoutfitters.com/mens-back-in-stock/']
def parse(self, response):
clothes = response.xp... | [
"noreply@github.com"
] | AshMohanty.noreply@github.com |
5d71468f77de49afdf245b3619550254453ab81b | c25cd48cadfa3492ec238bb033d4ece681a216f4 | /lavaralouça.py | 835fd1f90c7322dd5f7416a677d577b6dee0fdf9 | [] | no_license | nobregagui/Guicodigo1 | 1647fcebee52bab2719ab798420bbbc9f53f24d3 | 6984c8fae3502e452481a68dc40f65605af8b454 | refs/heads/master | 2022-09-02T20:55:09.648612 | 2020-05-28T03:10:08 | 2020-05-28T03:10:08 | 267,476,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from random import shuffle
n1 = input('Primeiro nome: ')
n2 = input('Segundo nome: ')
n3 = input('Terceiro nome: ')
n4 = input('Quarto nome: ')
n5 = input('Quinto nome: ')
n6 = input('Sexto nome: ')
lista = [n1, n2, n3, n4, n5, n6]
shuffle(lista)
print('A ordem de quem vai lavar a louça será: ')
print(lista)
| [
"nobregagui8@gmail.com"
] | nobregagui8@gmail.com |
a4115fbc9ff07620a727fab920062e7b0ba99592 | 2a86cc0b5fe00da0db6a5aaaeac2898c9938497b | /users/urls.py | da4123276d6aa414c7ff706bbee863f389e137ff | [] | no_license | pythonmentor/charles-p8 | 14b347dd4443efe53ba382d040fcb4d2919a75cc | f2d27834fa1f003f3b19ef8175523f068b913bda | refs/heads/master | 2020-12-28T07:13:16.577042 | 2020-02-04T13:46:23 | 2020-02-04T13:46:23 | 238,224,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | from django.urls import path
from django.contrib.auth import views as auth_views
from django.urls import reverse
from . import views
urlpatterns = [
# path('login/', views.login, name='login'),
path('login/', auth_views.LoginView.as_view(template_name='users/connexion.html'), name="login"),
# pat... | [
"charles.casassus@gmail.com"
] | charles.casassus@gmail.com |
b262b213300b5887f77289f15753e723b135456f | e6e47bbe9c7b6ad22dc6b4e1428075faf10e66f0 | /python/calories linear.py | c75416687fa38f1ce16222d35cc1664c5bb02470 | [] | no_license | sravankumarreddy9/Datascience-assignments | 9bf4fbda4e7f3ed4ff620f4303fab1507d895696 | eb1646500b125743e4956c0ab6f644124fb13287 | refs/heads/master | 2020-07-22T06:19:49.681367 | 2019-12-24T10:00:15 | 2019-12-24T10:00:15 | 207,098,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 2 13:08:36 2019
@author: Sravan
"""
import pandas as pd
import numpy as np
import scipy
from scipy import stats
import statsmodels.formula.api as smf
import matplotlib.pyplot as plt
calories = pd.read_csv("C:\\Users\\Sravan\\Desktop\\EXCEL R DATA SCIENCE... | [
"noreply@github.com"
] | sravankumarreddy9.noreply@github.com |
61736faaf743b1d71d5a9f64be98135da73cf724 | 40ece38b446618d35a9302e3e28b01831df03cf1 | /bolt/items.py | d08ffdd9f1a7005f4a0cf2e6cdb8a09be0d4b721 | [
"Apache-2.0"
] | permissive | akskap/bolt | 372174d024a1a257ae414a73f1a75cde118be5af | f9b75a879c87172a7a08ebec9eb113c0acd5a71d | refs/heads/master | 2021-01-13T03:33:52.492723 | 2016-12-26T12:37:44 | 2016-12-26T12:37:44 | 77,313,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Webpage(scrapy.Item):
title = scrapy.Field()
links = scrapy.Field()
status = scrapy.Field()
images = scrapy.Field()
class Image(... | [
"akshay.kapoor@paxcel.net"
] | akshay.kapoor@paxcel.net |
c867e8178c3e307027a310c680b5dc60c0a7aeba | 7395af9906200bb7135201ede8e238c0afb46c65 | /public_api/api_requests/create_transaction.py | 6edaac4ade0a40754dce2345e1b754c36cfb54fa | [] | no_license | bellomusodiq/public-api | 6fd21d91f9df4e1ef75d2f43f3d2ad59afc1f30c | 20b59ecc67ac6c969a9c47991f385e538762c2a6 | refs/heads/master | 2023-01-02T05:30:53.797873 | 2020-10-27T20:19:51 | 2020-10-27T20:19:51 | 305,782,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | import requests
import json
import random
import string
from .config import base_url
def generate_random_string():
choices = string.ascii_letters + string.digits
string_ = ''
for _ in range(20):
string_ += random.choice(choices)
return string_
url = "{}/test/transactions".format(base_url)
... | [
"bmayowa25@gmail.com"
] | bmayowa25@gmail.com |
77c35e61da685b86d7d099062b817c4d4650011c | aee144770c8f4ec5987777aebe5b064e558fc474 | /doc/integrations/pytorch/parlai/tasks/mnist_qa/agents.py | df1f01e28be9434fde8528ad3cb0ea9b583c46d5 | [
"CC-BY-SA-3.0",
"MIT",
"Apache-2.0",
"AGPL-3.0-only"
] | permissive | adgang/cortx | 1d8e6314643baae0e6ee93d4136013840ead9f3b | a73e1476833fa3b281124d2cb9231ee0ca89278d | refs/heads/main | 2023-04-22T04:54:43.836690 | 2021-05-11T00:39:34 | 2021-05-11T00:39:34 | 361,394,462 | 1 | 0 | Apache-2.0 | 2021-04-25T10:12:59 | 2021-04-25T10:12:59 | null | UTF-8 | Python | false | false | 2,362 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
This is a simple question answering task on the MNIST dataset. In each episode, agents
are presented with a ... | [
"noreply@github.com"
] | adgang.noreply@github.com |
3241148394327c38900042222e00277f2fb1026f | 9c562ad4d16db76e57030823bd2e800c7991c843 | /build/teleop/catkin_generated/pkg.develspace.context.pc.py | fb06735d025d8a197af07dafbfe304460f2f0217 | [] | no_license | atwang16/combot | fa5ecf9670a05475e2966bf3b2fa1447808d2282 | 56e3d4bb63992a069de18db51766ba4b814f633f | refs/heads/master | 2020-06-19T03:19:34.518851 | 2016-12-05T17:41:34 | 2016-12-05T17:41:34 | 74,923,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/austin/combot/devel/include".split(';') if "/home/austin/combot/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;rospy;std_msgs;message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIE... | [
"austin.t.wang@gmail.com"
] | austin.t.wang@gmail.com |
57e2721a86265647e4684e4999bd545378f1b910 | 3e32e7da22e54aac6a3cbdc0e24ff87f3a2645d4 | /src/util.py | 4e0f8ffdcb60f08815ee420306b12a015a8c345c | [] | no_license | markus-hinsche/weakly-supervised-semseg | d2489cc23643cfb76346d9a20b6520ba2f915e27 | 2e871b3b6305d7b5711d792746535b780bc305fa | refs/heads/master | 2023-05-09T18:53:34.343594 | 2020-08-12T18:46:39 | 2020-08-12T18:46:39 | 276,607,161 | 1 | 0 | null | 2021-06-08T21:58:58 | 2020-07-02T09:39:50 | Jupyter Notebook | UTF-8 | Python | false | false | 4,040 | py | # https://docs.fast.ai/dev/test.html#getting-reproducible-results
from functools import partial
from pathlib import Path
import re
from typing import List, Tuple
import torch
from fastai.vision.image import ImageSegment
from fastai.basic_train import Learner
from src.constants import (
GT_ADJ_TILES_DIR,
CLAS... | [
"m.hinsche@gmail.com"
] | m.hinsche@gmail.com |
76d757315656ea16b44ade34e16b2678211014f4 | e1c3ef872c2d7bd4e3efddbca3647e2a0ac12986 | /Small_NewHope/Scripts/failure-1024.py | dbb90d6a6a75844b51b96e0a87020a59f6e27c83 | [] | no_license | haiyangxc/Preprocess_Then_NTT | f461af60475f9d0405c40697a812318dbdd7df2a | 1c9e528cd55241400aa3e1abe97f8cf14342e02c | refs/heads/master | 2022-12-28T23:48:00.992987 | 2020-09-24T06:18:25 | 2020-09-24T06:18:25 | 295,906,750 | 0 | 0 | null | 2020-09-16T02:53:41 | 2020-09-16T02:53:40 | null | UTF-8 | Python | false | false | 4,016 | py | from math import *
import operator as op
import numpy as np
dim = 1024
k = 5
q = 7681
bound_CC = 40000 # Bound n*mu+beta to use in Cramer-Chernoff Ineq.
n = 2 * dim / 4 # Number of samples in Cramer-Chernoff Ineq.
check_each_y = False
# Check each distribution phi_y (slower)
# experimentally, they are alwa... | [
"noreply@github.com"
] | haiyangxc.noreply@github.com |
468af2555cac3a4bc2e06abafe5def8c58ba6fd7 | 759aae9d096aa4d14c8e16fe946fa5163b59fd44 | /main.py | 7da0b3ae591ca0cde3ef1744dcce1574597d792d | [] | no_license | rexendz/salvavida | c2cc6325de232fe7b5ad2e070e34f1525441dcfa | 363ce4cb18b784bcaef70e89d9fa59844bea99d9 | refs/heads/main | 2023-07-30T15:25:10.734509 | 2021-09-11T10:17:23 | 2021-09-11T10:17:23 | 362,212,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,144 | py | from PyQt5 import QtCore
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from HCSerial import SerialListener
import RPi.GPIO as GPIO
import os
import sys
import time
from firebase_admin import credentials
from firebase_admin import db
import firebase_admin
userpath = os.getenv("HOME"... | [
"rexendozo@gmail.com"
] | rexendozo@gmail.com |
0be675f1f85ba5f732fc877fca398ee196184613 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/fibo_20200709155400.py | 3b16f98c3d18b786e0d8adc98afc754847029ae4 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | # solving the fibonaci sequence using recursion and dynamic programming
# Recursion
# Base case if n = 1 || n == 2 then fibo is 1
def fibo(n):
if n == 1:
result = 1
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
f33ec649bb76f8158bbedcd21a834b19cbeb7a00 | 070fad3c9004ff5dfe99c55880690916c050366c | /mySite/rekshop.py | 17190baf7555ef15de2c345c06d6afb97da4531f | [] | no_license | TshalabaevCaspianLabs/AnaliticsPy_2 | 57dae7735e7c4319ccdb50eb3005a7892602c9c5 | 8fdfc9762dc477db2e089344011d859c756d6484 | refs/heads/master | 2023-04-06T18:42:48.475922 | 2021-04-19T22:01:53 | 2021-04-19T22:01:53 | 359,610,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | import time
from multiprocessing import Pool
import requests
import xlwt
from bs4 import BeautifulSoup as bs
from loguru import logger
def get_html(url):
try:
r = requests.get(url)
if r.status_code == 200:
return r.text
else:
logger.error('Not Connect Html')
... | [
"tima05ta58@gmail.com"
] | tima05ta58@gmail.com |
3ae4556e6c75bb8ded22afbfafb27e0f230024d3 | 23452dfe24005302ab41820737c1a679a7dae9b9 | /database/db_base.py | eb170cb28dd3ac0048338ef59bb3de589f61696f | [] | no_license | JevinJ/MycoID | 84311849d234c15db375338a8d9236e70b455a4c | e3b959714bd006d7bdd00288b8f94c3ea5cd3bcf | refs/heads/master | 2020-09-27T19:53:45.061469 | 2020-02-16T00:22:05 | 2020-02-16T00:22:05 | 226,597,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import inflection
from sqlalchemy.ext.declarative import as_declarative, declared_attr
from sqlalchemy.orm import sessionmaker
Session = sessionmaker()
@as_declarative()
class BaseModel:
@declared_attr
def __tablename__(self):
return inflection.underscore(self.__name__)
| [
"jevinjones@openmailbox.org"
] | jevinjones@openmailbox.org |
8899911814852aeb6037e2a5bc1f92a73324bb5b | bb6e74879df228310c19eb0135f304852cd1762c | /250 InterestingNumber.py | 9cf03940a5378b8728e3169b6b93eb4b128b90e5 | [] | no_license | lidiamcfreitas/TC.Problems | c27772bf8eb83dcba9fffac02792abe7ac4b3f8e | 883f6123fa9776d2311f6d141cf423cc8112cd23 | refs/heads/master | 2020-06-01T00:43:57.537503 | 2017-09-07T22:37:38 | 2017-09-07T22:37:38 | 18,874,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | class InterestingNumber:
def isInteresting(self, x):
dic = {}
l = len(x)
for i in range(l):
if x[i] not in dic:
dic[x[i]] = [i]
else:
if (type(dic[x[i]]) != list):
return 'Not interesting'
else:
... | [
"lidiamcfreitas@gmail.com"
] | lidiamcfreitas@gmail.com |
67a71629916683e5e4393c7741dadfd9f0bd7755 | 293e1ab8a6d6e450307715b312eb4de45251e3a5 | /scripts/virus_share_downloader.py | b514501cb08ad7a6485bfe092e6efddd05244da9 | [] | no_license | joaogodinho/thesis | e90a6d6cfd9126f43622d6cdb326dcd424133923 | 5b38bcc7d0f5004d8ee8a9b474019a1ca932b1fe | refs/heads/master | 2021-03-26T10:32:16.766570 | 2018-02-19T14:41:44 | 2018-02-19T14:41:44 | 69,254,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | """
Simple script to download virus share hashes
"""
import argparse
import gevent
import gevent.pool
from gevent import monkey; monkey.patch_all()
from urllib.request import urlretrieve
def gevent_func(pair):
print('Fetching {}...'.format(pair[0]))
urlretrieve(pair[0], pair[1])
def downloader(destinatio... | [
"joaocfgodinho@gmail.com"
] | joaocfgodinho@gmail.com |
401adce227f61bb18aa04f7107603a09fd393ac8 | c65100178864f7190d57a6ccc8fd2f2024d5e29f | /scripts/orphanDetection4/kPartId_vDayGraph.py | 0096d80354469b45587ddbaae9bd3df89cc67307 | [
"Apache-2.0"
] | permissive | bcolloran/jydoop_bcolloran | bfcc633cd6d16f2afadfd1bc37fa7dfefcc9b69c | e72c0b190be47a43cb19bcfb10e86b61d61c6ab9 | refs/heads/master | 2021-01-18T14:57:51.509445 | 2014-05-20T04:45:17 | 2014-05-20T04:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | import jydoop
import healthreportutils
import json
import datetime
import orphUtils
import dag
output = orphUtils.outputTabSep
setupjob = orphUtils.hdfsjobByType("HDFS")
def sortedDayInfoToDagInfo(sortedDayInfo):
nodes = [dag.DayNode(id=label,date=info["date"],data=info["data"]) for label,info in sortedDayInf... | [
"bcolloran@mozilla.com"
] | bcolloran@mozilla.com |
7dd9fd551ffa04472f6d303a35d2967d9345c92f | 57f5207978c5c02f79c45b866fda55aa64125a66 | /scraper.py | 46fc058fa6815ff6ae326a62dceb7d58766c5259 | [] | no_license | nid666/Pepe-Machine-Learning | 586f839276f56907a1acf71c40eb69d4a3f61df3 | eb4b401525f610cc6ea765c7c635af47d1c9977f | refs/heads/master | 2020-05-07T05:44:27.743944 | 2019-05-03T02:45:48 | 2019-05-03T02:45:48 | 180,279,607 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | #pip install ImageScraper
import image_scraper
#this uses python3
max = input("How many pepe images do you want to download - not currently working")
source = input("From which sources should images be imported")
path = input("Add the path of test_images folder - not currently working")
image_scraper.scrape_images(sour... | [
"35160315+nid666@users.noreply.github.com"
] | 35160315+nid666@users.noreply.github.com |
d6f72acbd5a87945e02e30a1fbc7fa53ce292903 | 724317c256e3c57e8573f74334be31f39ba34eb9 | /scripts/graphquestions/insert_to_db.py | 08cadc30d76f276e8821af87e44558d87e2df6ee | [
"Apache-2.0"
] | permissive | pkumar2618/UDepLambda | a36662014fc23465aff587761810b986e4dad6dd | 08f00b7dc99bb06c6912e9e83f47c32ebdd38eff | refs/heads/master | 2022-11-25T09:22:41.444891 | 2020-08-01T08:56:52 | 2020-08-01T08:56:52 | 282,916,873 | 0 | 0 | Apache-2.0 | 2020-07-27T14:09:32 | 2020-07-27T14:09:32 | null | UTF-8 | Python | false | false | 474 | py | #!/usr/bin/python
import MySQLdb
# connect
db = MySQLdb.connect(host="rudisha.inf.ed.ac.uk", user="root", passwd="ammuma1234", db="gq_german")
cursor = db.cursor()
# execute SQL select statement
cursor.execute("SELECT * FROM sentences")
# commit your changes
db.commit()
# get the number of rows in the resultset
nu... | [
"siva@sivareddy.in"
] | siva@sivareddy.in |
c83e1091ee66be758f3eb5fe1e0510efcb5b03cc | e72b0f90d83c9c24bcbd3d2938d9b430f5164149 | /blog/migrations/0001_initial.py | 75d3b9256211425bee98033edce349d0259d476b | [] | no_license | eric-pommereau/django-test-demo | a68dd77b709dc37a40cda7c4b8b5f627bf4ac011 | 7bb7f8d8188885ea8edcd5ce4714890cab323512 | refs/heads/master | 2021-05-04T22:23:32.196602 | 2018-02-02T21:23:32 | 2018-02-02T21:23:32 | 120,032,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.2 on 2018-02-02 21:01
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... | [
"eric.pommereau@gmail.com"
] | eric.pommereau@gmail.com |
3c8297cb42490eb25cce6c5c943cf17c2d02631b | 4bd1e6df114f49656ce8110030d6b996cb8a96fa | /Crash Course in Python/Graded Assignment Week 1/question_9.py | 72faf143027690f53f3e503d7b317fb03766273b | [] | no_license | tannuyadav03/wordcloudd | 93478bb949bbc9ddfcf4c44c64375b3252f3cc05 | 0b321ccb1df1777974b935fa17bb7a630f5aeab9 | refs/heads/master | 2022-12-25T23:22:33.832979 | 2020-09-30T09:19:15 | 2020-09-30T09:19:15 | 299,820,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | answer = (26**6)
print (answer) | [
"noreply@github.com"
] | tannuyadav03.noreply@github.com |
d68b622c4127cb84da1896df7dd634f69ad260ac | 925d6c11ad50f3f56a5665e1f854e83ecf0427b4 | /python/gaussian2.py | fe06435956bed8d1b5b4ab7007c1edafe0c7b270 | [] | no_license | camillanore/Studies | 244a57834f71fc1a28b4ee82ea31cf6c2678703a | a4b625e0d243fcd76f9418fb2d523dad5fd9e752 | refs/heads/master | 2021-01-25T04:57:29.787317 | 2015-12-09T15:50:29 | 2015-12-09T15:50:29 | 41,266,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 13 21:32:24 2015
@author: Camilla Nore
"""
"""
.16 (gaussian2.py, side 136), 3.23 (Heaviside.py, side 139)
"""
# Exercise 3.16 Implement a gaussian function
import pylab
import numpy as np
import math
def main():
table = gaussian_table(n=12)
print_table(table)
... | [
"camilla.nore@gmail.com"
] | camilla.nore@gmail.com |
61dc717e8adc2e6f67c46000869f02c7bb8bd50b | b570c02e2767b0ed7f0bf99edeff16bbd926de58 | /security_monkey/watchers/vpc/peering.py | 467f971bd971cb3855e9128a036db103a2e71df4 | [
"Apache-2.0"
] | permissive | Bridgewater/security_monkey | 708cbdc162f2ae9010a9e60a45bf1a30128a66c6 | 11896c788b250748c31596e75d68e5429b43c43c | refs/heads/develop | 2020-02-26T13:22:01.140503 | 2016-12-01T15:54:03 | 2016-12-01T15:54:03 | 67,235,506 | 1 | 1 | null | 2016-09-02T15:48:34 | 2016-09-02T15:48:34 | null | UTF-8 | Python | false | false | 4,389 | py | # Copyright 2016 Bridgewater Associates
#
# 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... | [
"noreply@github.com"
] | Bridgewater.noreply@github.com |
161cd2ba55e70474da6fcdf802bfe5a7511be7ff | 641c037d8b48a3f39f2141ff25c4268aa0fde96c | /SDD_chainer/environment/train.py | 4193ab76c53b47cb29bf0cf7cc98578582806155 | [] | no_license | acyloon/path_predict | a93eabba2ef97ef99e7d951c37d57ea84a549be9 | 12ae9acee3e63f0efdf2de12aff90c296edb167d | refs/heads/master | 2020-07-18T11:55:12.433974 | 2019-09-11T22:30:44 | 2019-09-11T22:30:44 | 206,241,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,922 | py | # coding:UTF-8
import time
import argparse
import cv2
from glob import glob
import numpy as np
import matplotlib.pyplot as plt
import chainer
from chainer import optimizers
from chainer import cuda
from chainer import serializers
from net import Model
from load_train import Train_DataLoader
from load_test import Tes... | [
"akira-uga@hiroshima-u.ac.jp"
] | akira-uga@hiroshima-u.ac.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.