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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22b52baa97f6c9f43ec6a0fe1d14cca0d53bcb29 | a479a5773fd5607f96c3b84fed57733fe39c3dbb | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/afi_safis/afi_safi/l2vpn_vpls/prefix_limit/__init__.py | d906df51b8afd5b73162886273b14cd1ac454c87 | [
"Apache-2.0"
] | permissive | napalm-automation/napalm-yang | 839c711e9294745534f5fbbe115e0100b645dbca | 9148e015b086ebe311c07deb92e168ea36fd7771 | refs/heads/develop | 2021-01-11T07:17:20.226734 | 2019-05-15T08:43:03 | 2019-05-15T08:43:03 | 69,226,025 | 65 | 64 | Apache-2.0 | 2019-05-15T08:43:24 | 2016-09-26T07:48:42 | Python | UTF-8 | Python | false | false | 18,958 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
82666241fc5a8c6f26b68e9a4ac5dc292ae7288b | ef2657fb5bed5774f5ca1ee605db3075166acfdf | /server.py | 42d22a0cf975179ec19f291a2b0614186502dc55 | [] | no_license | MaksKolodii/Laba_3 | cf60229152028c13a11bbf22b82415cd2c99bae5 | d008296a4b65c57543bf7f17a03a1150234a8748 | refs/heads/master | 2020-09-23T23:14:48.927796 | 2019-12-03T12:22:34 | 2019-12-03T12:22:34 | 225,612,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | import socket
import time
host = socket.gethostbyname(socket.gethostname())
port = 4050
clients = []
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind((host, port))
quit = False
print("[ Сервер включився ]")
while not quit:
try:
data, addr = s.recvfrom(1024)
if addr not in clients:
... | [
"noreply@github.com"
] | MaksKolodii.noreply@github.com |
05f33c528960d55f2689d4225198a59fd0202a5e | e7bba3dd662bf2778c36a406f72ee93b2ea05e11 | /CardinalityEstimationTestbed/Overall/neurocard/job_2/masking.py | 655c05a601a00c96603aa0b87d98acadd79ce3c2 | [] | no_license | TsinghuaDatabaseGroup/AI4DBCode | 37e45b176bc94e77fe250ea45f0ad7b9054c7f11 | a8989bfadcf551ee1dee2aec57ef6b2709c9f85d | refs/heads/master | 2023-07-07T05:42:15.590000 | 2023-07-04T01:04:15 | 2023-07-04T01:04:15 | 217,175,047 | 53 | 35 | null | 2023-06-20T13:00:17 | 2019-10-24T00:03:14 | Scala | UTF-8 | Python | false | false | 7,697 | py | """Masking module: random input masking, table masking, etc."""
import common
import numpy as np
import torch
# TODO: refactor made.py to use this class.
class Masking(object):
"""Column masking logic."""
@classmethod
def Params(cls):
p = {}
p['draw_dropout_per_col'] = False
p['pe... | [
"zhouxuan19@mails.tsinghua.edu.cn"
] | zhouxuan19@mails.tsinghua.edu.cn |
e13a78dc8cf4b2b7293983675af39a87fb170d1a | b4c6e6f8529c7f15b9c0bca94ea7e14ed6ee60cf | /presentacion01/asgi.py | 6c701404908a41a85dfe78f48f4183c26638aefb | [] | no_license | 03PatriciaG/presentacion | 454b038feb1dae7fb56b023d7dedfcbee83ed1ac | caae2dc0133b382bc0d81ed37e958d44aaf939a0 | refs/heads/master | 2023-03-08T04:35:38.484349 | 2021-02-25T18:49:45 | 2021-02-25T18:49:45 | 341,394,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
ASGI config for presentacion01 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANG... | [
"patricia.garcia.almanza@gmail.com"
] | patricia.garcia.almanza@gmail.com |
3e8a521b5a0feede72017331fb4fb3d85fc35344 | 3972bfc4b9c5774f61f82dc6de036cebb96c9e07 | /src/crawl_whichuni_universities.py | 0587945078fe40a65bb993922280f2dffec2d7b6 | [] | no_license | devm1023/GeekTalentDB | 0ce2e9733360bdc66626daaaceed2d8672205df7 | a8035b9815b98de4f5f45f83291d6889b080df14 | refs/heads/develop | 2021-06-19T21:37:47.898323 | 2019-09-12T08:15:37 | 2019-09-12T08:15:37 | 211,267,986 | 0 | 0 | null | 2021-05-06T19:42:08 | 2019-09-27T08:04:50 | Python | UTF-8 | Python | false | false | 6,264 | py | """Crawl public whichuni subjects
"""
from whichuni_university_crawler import WhichUniUniversityCrawler
from tor_crawler import TorCrawler
from parse_datetime import parse_datetime
from logger import Logger
import argparse
class WhichUniUniversityTorCrawler(TorCrawler, WhichUniUniversityCrawler):
def __init__(s... | [
"devm1023@gmail.com"
] | devm1023@gmail.com |
889b8cb815be7341ffd84d3115f87063a227f2ce | 3685aff583c31f525b7e01eb1c78b90e54db4dce | /Frontend/searchpopupmenu.py | f8f5081c9b7eef323d4cfe9594533cb0b02d9959 | [] | no_license | KeerthanG01/Capstone_Project | 044cf1a7f3beab4e667c169c4890bae2f73e5987 | abaafd11e80c599ce1f4cafa666c9129b13615f4 | refs/heads/main | 2023-04-07T12:01:20.530333 | 2021-04-18T16:03:07 | 2021-04-18T16:03:07 | 359,170,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | from kivymd.uix.dialog import MDInputDialog
from kivy.app import App
import sqlite3
class SearchPopupMenu(MDInputDialog):
title = "Search by Location"
text_button_ok = "Search"
def __init__(self):
super().__init__()
self.size_hint = [.9,.3]
self.events_callback = self.callback
def callback(self,*args):
l... | [
"keerthan.g2011@gmail.com"
] | keerthan.g2011@gmail.com |
029407d1e14c7fc1ed8abcb69b7c10f34a00efdd | c1fab9248da3d60b47f786961eb4242f43aa8667 | /mjjeon/bj_dp/2156.py | 9d29b10fcc3b56e29c68f8a141781a9a6942a858 | [] | no_license | justzino/algorithm | 5ac5757a97a800c4568a9edc3d618c68dd533168 | 4c49d03e15db7f317dd0d29247b75c89fb9df310 | refs/heads/master | 2023-02-25T18:08:30.435570 | 2021-01-25T09:40:24 | 2021-01-25T09:40:24 | 284,649,367 | 0 | 0 | null | 2020-08-14T08:50:50 | 2020-08-03T08:47:32 | null | UTF-8 | Python | false | false | 367 | py | # 런타임 에러
import sys
n = int(sys.stdin.readline())
numbers = [0] * n
D = [0] * (n+1)
for i in range(n):
numbers[i] = int(sys.stdin.readline())
D[0] = 0
D[1] = numbers[0]
D[2] = numbers[0] + numbers[1]
for i in range(3, n+1):
a = D[i-1]
b = D[i-2] + numbers[i-1]
c = D[i-3] + numbers[i-2] + numbers[i-1]
... | [
"mseagle2023@gmail.com"
] | mseagle2023@gmail.com |
ac3dff350b1edbf449f6c7c4bb273a5ec443c410 | b91721113fcea40545e8f12ce7a58fb4f9e19bfb | /tests/test_parametric_components/test_DivertorITER.py | 23f034db3fccb30dc747aa8c51f5be8020157be1 | [
"MIT"
] | permissive | shen3443/paramak | 91f217d57dc5fb6e1c68e0c73b1f102e87c05159 | 7f5acbd65f904a1ccb527e061a3b7e3f86b8a26f | refs/heads/main | 2022-12-30T15:41:20.683250 | 2020-10-10T10:26:54 | 2020-10-10T10:26:54 | 304,412,355 | 0 | 0 | null | 2020-10-15T18:17:15 | 2020-10-15T18:17:14 | null | UTF-8 | Python | false | false | 684 | py |
import paramak
import unittest
class test_DivertorITER(unittest.TestCase):
def test_DivertorITER_creation(self):
"""creates an ITER-type divertor using the ITERtypeDivertor parametric component and
checks that a cadquery solid is created"""
test_shape = paramak.ITERtypeDivertor()
... | [
"jonathan.shimwell@ukaea.uk"
] | jonathan.shimwell@ukaea.uk |
86a34702cbedf1d0188e48f2c70efe8600be0e29 | 78cafe3c91ffa777c4b78483b462620941b632d6 | /pyamf/remoting/__init__.py | c0b0ce096170de11176fd86f7c14e2e0291ece10 | [] | no_license | haabaato/pyamf_chatroom | d6dd38b212f194d6604ef928437a162b4f45178a | cebbb362929b21933c6da2a61b4e5840863876ba | refs/heads/master | 2016-08-04T20:27:26.218467 | 2010-07-21T13:19:25 | 2010-07-21T13:19:25 | 726,257 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,542 | py | # Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE.txt for details.
"""
AMF Remoting support.
A Remoting request from the client consists of a short preamble, headers, and
bodies. The preamble contains basic information about the nature of the
request. Headers can be used to request debugging information, sen... | [
"Herbert@herbnetbook.(none)"
] | Herbert@herbnetbook.(none) |
a4e56035bbd31cee1147805ce43a14020fc4f602 | a5b89980586ba6d18831e7acaa00e941e5188455 | /code.py | e591f59ad9e15c7b3e431b74162195026bdf9a08 | [] | no_license | jhuang389/Web-Script-Visualization-actors-rank | e95889cf65c552d1e09dd1f3156b7be64b5eeb3d | b5c0d63cb7f07e12ddfa461d6144d5ebc7c08b3a | refs/heads/main | 2023-06-12T02:00:18.298414 | 2021-07-11T20:32:18 | 2021-07-11T20:32:18 | 385,045,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,250 | py | import http.client
import json
import csv
class Graph:
def __init__(self, with_nodes_file=None, with_edges_file=None):
self.nodes = []
self.edges = []
if with_nodes_file and with_edges_file:
nodes_CSV = csv.reader(open(with_nodes_file))
nodes_CSV = list(nodes_CSV)[1... | [
"noreply@github.com"
] | jhuang389.noreply@github.com |
75fc5dc0b0a6deb095175d87595020b85fa716ad | 016b5e2c9e30d44d6b11fc97e58435f9dc756d9b | /calculations/urls.py | 785aa05f388f4ee346d32aab4bcb5fa5386713ea | [] | no_license | Ladarius-Brooks/django_112 | 52a7fc1cf976d9e47a72c434de3673f150b25168 | 02bf23f7ea515f7e993647bcb087cee2e0bdf676 | refs/heads/master | 2022-12-30T20:40:36.683966 | 2020-10-22T02:09:49 | 2020-10-22T02:09:49 | 306,196,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from django.urls import path
from .views import CalculationViewTemplate
urlpatterns=[
path('', CalculationViewTemplate.as_view(num=100), name="calc"),
] | [
"lbrooks2312@yahoo.com"
] | lbrooks2312@yahoo.com |
b5b728f7ac53633871c7d3763debeceac437fd00 | 4cbf7e2f0edb6a1017f8c1223a32d45e801f08c0 | /Number Dragon游戏.py | 27c23c4cddc493096109ab8b86f80180a8bef6c8 | [] | no_license | jrc-bill/Horizon | aac280224690902fda6df1030bce18a87bd8e24f | 8b0e046c219a3e589c437e5023cac5e04b18fb57 | refs/heads/master | 2020-09-21T01:56:44.191746 | 2020-04-28T05:06:22 | 2020-04-28T05:06:22 | 224,647,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,981 | py | from random import *
import time
J = 11
Q = 12
K = 13
A = 1
pk_list = [3, 4, 5, 6, 7, 8, 9, 10, J, Q, K, A, 2]
readyToOut = None
def computer_output():
time1 = 0
readyToOut = -1
if int(lastOutPut) == -1:
if state == 0:
for i in playerList:
if i - 1 in co... | [
"noreply@github.com"
] | jrc-bill.noreply@github.com |
f98a6b8c239ddc9f232ac96e6cc9c919564fc468 | ff4711f87b8e818d52399b3d91601bc4850ddc3d | /user/migrations/0001_initial.py | 3d72644aed29748638cbc0d4bad510f6aa3599df | [] | no_license | Javoh1001/Django_user | 3932b1af37b7bf012adfefb1e0aa033bcb3e4e78 | 9195e1b434de7b901172b8625fbafb6a31cbddb0 | refs/heads/main | 2023-06-16T15:18:58.985851 | 2021-07-10T10:16:50 | 2021-07-10T10:16:50 | 384,667,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 3.2.5 on 2021-07-09 14:54
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"javoh1001@gmail.com"
] | javoh1001@gmail.com |
c62e5e6dbdc11ffbd32876ab8283488de84fc9e0 | 635a81339db4dc4ce21e72f2d77faa92461404d9 | /python/generators/trace_processor_table/public.py | c8bdb0be5968fbc6eb34b7bb9393202221e9fa88 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google/perfetto | b3fee34767174ca8c9e8e501eeec6f73fb3e0cda | 4201d29ef8ce94a064dfbba6d9c9518b297dbc3f | refs/heads/master | 2023-09-04T07:16:27.954459 | 2023-09-03T01:33:19 | 2023-09-03T01:33:19 | 227,091,502 | 1,920 | 274 | Apache-2.0 | 2023-09-13T18:18:23 | 2019-12-10T10:32:44 | C++ | UTF-8 | Python | false | false | 5,056 | py | # Copyright (C) 2022 The Android Open Source Project
#
# 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 ... | [
"lalitm@google.com"
] | lalitm@google.com |
9496334044a21e0b2bc97e70e86491576db752d0 | 04d3f8765cd769d6a98550c144c30440bd601834 | /preprocessing/1_find_entrances_and_departures.py | 129a429f9dc61678399f13fda3ddf86bb5abab72 | [] | no_license | olly-styles/Multi-Camera-Trajectory-Forecasting | 44d5ab186b1346dabdbc9ec5abb52d000c9187af | c412d54a871916030743bc95df4366e0ae0345f6 | refs/heads/master | 2023-08-08T02:35:56.380015 | 2022-02-13T22:15:58 | 2022-02-13T22:15:58 | 247,671,885 | 38 | 7 | null | 2023-07-23T08:50:45 | 2020-03-16T10:21:00 | Python | UTF-8 | Python | false | false | 3,788 | py | import pandas as pd
import numpy as np
# Experimental setup
IMAGE_WIDTH = 1920
IMAGE_HEIGHT = 1080
MIN_BOX_WIDTH = 35
MIN_BOX_HEIGHT = 70
MIN_TRACK_LENGTH = 20
DATA_PATH = '../data/'
def get_track_length(df):
'''
Given a dataframe, returns the dataframe with track length field
df: Dataframe of bounding b... | [
"ollystyles@gmail.com"
] | ollystyles@gmail.com |
7bff3584caa1c2837eb5bc27232d0f261e823734 | 315743e12d0259fff52e181492d5f59d9838de9e | /Code/TrafficSign_TF_Network_3.py | 2b16de99594569a98bce21254a7e8fd9a45442d3 | [
"MIT"
] | permissive | mairob/Trafficsign-classification-in-TensorFlow | 4cbd7ba9d4930eeda90faafed1ac6ac75f3351f5 | aa28c464897ed8d7b949a7045b1291a9062383e2 | refs/heads/master | 2021-01-25T00:57:54.309189 | 2017-06-22T14:54:11 | 2017-06-22T14:54:11 | 94,712,836 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,375 | py | import numpy as np
import tensorflow as tf
image_size = 48 #width = height
col_channels = 3 #RGB
def initVariable(name, shape):
"""
Initialize weights and biases based on http://proceedings.mlr.press/v9/glorot10a/glorot10a.pdf
"""
return tf.get_variable(name, shape, initializer=tf.contrib.laye... | [
"noreply@github.com"
] | mairob.noreply@github.com |
a7da31f03571873c60b76be03ce9bf35bc949d7a | ce3bd1c0f8ecb9bbe41ded050c702a35e82191f5 | /khat3680_data_structures/src/morse.py | 7acdbd7d0bd3062894425b0ced58d63a8510e8df | [] | no_license | khat3680/Data_Sturct_Python | e368133d01cd790206f49e3f401b73961234955a | 4ae75031b3abf36119331064bb119061ae6cd586 | refs/heads/master | 2022-12-10T02:59:01.016483 | 2020-09-11T16:46:31 | 2020-09-11T16:46:31 | 294,755,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,831 | py | """
-------------------------------------------------------
Morse Code Definitions and Functions
-------------------------------------------------------
Author: Anshul Khatri
ID: 193313680
Email: khat3680@mylaurier.ca
Section: CP164 Winter 2020
__updated__ = "2020-03-09"
----------------------------------------... | [
"anshulskhatri@gmail.com"
] | anshulskhatri@gmail.com |
ff5d828f191caedeb35e19e6d722d463c0fd9495 | 9e5e21735aed104f872e41de22d28235449f4b29 | /notifications.py | f0b995f577410e77db51891909bd3e7dddcbc922 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | thiemok/pokeminer | 064a580a7292aa56b2a30ba96d2827bc7b46313c | c7b1e978a6f3188771e210e0ec94c2a0652c370d | refs/heads/master | 2020-12-29T02:06:46.287886 | 2016-08-15T19:20:01 | 2016-08-15T19:20:01 | 64,648,903 | 0 | 0 | null | 2016-08-01T08:15:45 | 2016-08-01T08:15:45 | null | UTF-8 | Python | false | false | 4,374 | py | import discord
from discord.ext import commands
import asyncio
import signal
import sys
import time
from geopy.geocoders import GoogleV3
import json
import config
import db
from names import POKEMON_NAMES
from messages import DISCORD_MESSAGES
# Check whether config has all necessary attributes
REQUIRED_SETTINGS = (
... | [
"krausethiemo@posteo.de"
] | krausethiemo@posteo.de |
fe8e8fa48ff8cbdadacab8934b993e74c1cbb710 | c8a056310e50466098ff0859c658d4cdc4ab428c | /env2/bin/easy_install | e53056946bdf6cda5c96c46d8c5443324572bad0 | [] | no_license | Kaylindaww/schoolSystem | 422f0571886b2d1b9a0ee18308553f55e2f680eb | cf1e2d190f71ad96470a6112907367188f41db20 | refs/heads/master | 2023-07-13T19:43:40.111255 | 2021-08-24T06:37:45 | 2021-08-24T06:37:45 | 386,018,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | #!/home/student/Desktop/pythonn_web/env2/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"akullukaylinda@gmail.com"
] | akullukaylinda@gmail.com | |
0c24e11f974e8f79a2e0c1d0648255fe52a33160 | e8cd34697ddea01e24b24adc6201de81ce4ae35b | /412. Fizz Buzz.py | d8c98b54b42d6af5f52cb93938633ae950428b96 | [] | no_license | hanyunxuan/leetcode | 154cfcfe8208c639f1311cdaa4163cdbb3c9bb79 | 67c7f43b7d66e3ccf22622bdf6b6fccf0015195c | refs/heads/master | 2020-04-02T13:36:15.713648 | 2019-01-09T07:05:01 | 2019-01-09T07:05:01 | 154,488,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """
Write a program that outputs the string representation of numbers from 1 to n.
But for multiples of three it should output “Fizz” instead of the number and for the multiples of five output “Buzz”. For numbers which are multiples of both three and five output “FizzBuzz”.
Example:
n = 15,
Return:
[
"1",
"... | [
"408968382@qq.com"
] | 408968382@qq.com |
a5b6a73bbc9e2335f3ad50d33afa44501b630465 | 2e7c2b7560baa0682afa8059515b124ac504dfe9 | /tests/test_shared_libs.py | b545d7c988e3768b61ee10f5188da45ef5645a62 | [
"MIT"
] | permissive | abn/pipx | 2588bdc11ffd1c445db32399f0175712d1b8a683 | 20238b1153eb5ade0eb851511dc2cf51c7eac4eb | refs/heads/master | 2022-12-30T23:29:49.699827 | 2020-08-30T03:10:29 | 2020-08-30T03:10:29 | 291,733,934 | 0 | 0 | MIT | 2020-08-31T14:13:56 | 2020-08-31T14:13:56 | null | UTF-8 | Python | false | false | 713 | py | import os
import time
import pytest # type: ignore
from pipx import shared_libs
@pytest.mark.parametrize(
"mtime_minus_now,needs_upgrade",
[
(-shared_libs.SHARED_LIBS_MAX_AGE_SEC - 5 * 60, True),
(-shared_libs.SHARED_LIBS_MAX_AGE_SEC + 5 * 60, False),
],
)
def test_auto_update_shared_libs... | [
"noreply@github.com"
] | abn.noreply@github.com |
fbbcb14f9a0cf804864130a258cc442d3e622c57 | 97e2233be1e152174f2d7138bccdffd4b438ec35 | /tests/wrappers/test_reader.py | bbdd89847d1a7aa918c6dff8df2b31ea13f03814 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | lamyj/odil | a5eea306c478bacd304fa6bd14808c65e5b059cd | 7e50e4eaccb5e7d6d6716705ff6252d342f60685 | refs/heads/master | 2022-11-21T07:09:24.547750 | 2022-04-23T07:21:52 | 2022-04-23T07:21:52 | 33,601,264 | 77 | 25 | NOASSERTION | 2022-09-12T19:55:28 | 2015-04-08T10:55:06 | C++ | UTF-8 | Python | false | false | 4,905 | py | import os
import tempfile
import unittest
from io import BytesIO
import odil
class TestReader(unittest.TestCase):
def test_constructor(self):
stream = odil.iostream(BytesIO())
reader = odil.Reader(stream, odil.registry.ImplicitVRLittleEndian)
self.assertEqual(
reader.transfer_... | [
"lamy@unistra.fr"
] | lamy@unistra.fr |
a098ed31838af88f4c99fda9cee68d68941729bd | 3f14c13b854f5f64ec78fda4db2e3d40027d07e1 | /vgae_tensorflow/optimizer.py | d11fc75f1ef8becb894f9f989d0064b16de0d0fe | [
"MIT"
] | permissive | geneprophet/VGAE | ae03a11d52d3a57d0b25d23b0324c56b3966aa5b | b5ca4f6987c2376cd04bff047716d2e8c7ae97b9 | refs/heads/master | 2023-07-18T19:58:56.548964 | 2021-09-22T04:32:01 | 2021-09-22T04:32:01 | 407,718,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | import tensorflow as tf
flags = tf.compat.v1.app.flags
#flags = tf.compat.v1.flags
FLAGS = flags.FLAGS
class OptimizerAE(object):
def __init__(self, preds, labels, pos_weight, norm):
preds_sub = preds
labels_sub = labels
self.cost = norm * tf.reduce_mean(input_tensor=tf.nn.weighted_cross... | [
"geneprophet@163.com"
] | geneprophet@163.com |
b8d583fe713e03667917cda9664597adef0fcd95 | 03376912b360f90a96d9f9683f987634225488e3 | /Python/PE206.py | 941646e012c76cb10c88ea93b0e53ced71ddf9c8 | [] | no_license | lenaindelaforetmagique/ProjectEuler | ed27b15d120631b6d3af30ee7e1305f59fdc9afa | 53ce546ed72e6d3f9cfb547ac44c7be457c5b2ec | refs/heads/master | 2021-01-01T20:45:52.260877 | 2018-12-20T16:09:22 | 2018-12-20T16:09:22 | 98,928,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | """Problem 206
Find the unique positive integer whose square has the form 1_2_3_4_5_6_7_8_9_0,
where each “_” is a single digit.
"""
from time import time
from math import *
def test(j):
return "1234567890"==str(j)[::2]
def prog():
#s="1_2_3_4_5_6_7_8_9_0"
#n=int("0".join(s.split("_"... | [
"noreply@github.com"
] | lenaindelaforetmagique.noreply@github.com |
9593772f2c53621dd344e5d2759c853bd389be7f | 27b7a3788ea84313142a041e8dec0a748cf7475b | /atm.py | 5fe4bd71533896c4e6371ded3309b84898b6246d | [] | no_license | atakancicekk/ATM | 54b93c77da442c255e632bed0cf5eb80fb6a3baa | a9951e9b1873bc228b8fb85e7fc3544d85ad0ad6 | refs/heads/master | 2022-04-27T00:40:16.894478 | 2020-04-28T18:03:40 | 2020-04-28T18:03:40 | 259,712,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | import time
customer_db = {
"atakan cicek": {
"username": "atakancicek",
"password": "1234",
"balance": 4000
},
"harry potter": {
"username": "harrypotter",
"password": "7890",
"balance": 5000
},
"miley cyrus": {
"username": "mileycyrus",
... | [
"noreply@github.com"
] | atakancicekk.noreply@github.com |
1d1a7d6d13aa5d73009fae2ef1a5f4abe9ddd4d4 | 6efac3ffa26d60b0c8d5a1d578c16333b3f5aca5 | /contact/urls.py | ab317699b7358fcb1416c35b55d0be1acd6ea280 | [] | no_license | tohfaakib/consultancy | bdd8418eb3b1b3989294f80917b290102769c1a9 | 36500ab4fe1820021d4efa70ba7d96bbc9c32795 | refs/heads/master | 2023-04-28T08:50:36.585756 | 2019-09-25T09:17:05 | 2019-09-25T09:17:05 | 210,766,485 | 0 | 0 | null | 2023-04-21T20:37:45 | 2019-09-25T05:57:33 | Python | UTF-8 | Python | false | false | 191 | py | from django.urls import path
from .views import contact, email_sending
urlpatterns = [
path('contact/', contact, name='contact'),
path('send_mail', email_sending, name='send_mail')
] | [
"tohfaakib@my.smccd.edu"
] | tohfaakib@my.smccd.edu |
d34d4f9429938c1d28d7ba32a18e18444add5004 | 314a95c3255bfce718478950ab7762fb8bda6697 | /flowers.py | 1660ca480eabae4ee166ac71b823e8c318503a7c | [] | no_license | dbrody112/cosine_ohem_loss_exploration | f18b60557020b575da3ad2e74ea8dce506f9a059 | 519cae34976f2a7a268e35cb7d06e2e8616080c4 | refs/heads/main | 2023-02-22T21:58:06.351721 | 2021-01-24T15:19:25 | 2021-01-24T15:19:25 | 322,007,771 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,909 | py | from chexpert import showImage
import tensorflow as tf
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import glob
from PIL import Image
from scipy.ndimage import zoom
import regex as re
import os
import sys
from sklearn.preprocessing import OneHotEncoder
import torch
from torchvision import tr... | [
"noreply@github.com"
] | dbrody112.noreply@github.com |
fc33431767ae7f0cbe8b98c9af00f73ba5c31f36 | 4a8b75956a93fb5a1b440ba944afd5e5927b7db9 | /billetera-python/ejemplos/estructuradedatos1.py | c0f916d5685f509519a204e790f88f60cdc2912f | [] | no_license | darkunchain/NextU_LFPJ | a051f9baaa548a7d4d8c6a667b604302a3bd631f | 7c9b2eb9cf264e4421df10c1fd967b396d3ca64c | refs/heads/master | 2023-03-09T00:11:18.789730 | 2022-02-17T18:41:29 | 2022-02-17T18:41:29 | 176,357,442 | 0 | 0 | null | 2023-03-03T18:51:05 | 2019-03-18T19:39:56 | HTML | UTF-8 | Python | false | false | 393 | py | i=0
cripto=['']
cant=['']
cotiz=['']
while i<3:
cripto[i]=input("Ingrese el nombre de la moneda: ")
cant[i]=float(input("Ingrese la cantidad de "+cripto[i]+":"))
cotiz[i]=float(input("Ingrese la cotización en USD de"+cripto[i]+":"))
print(cripto,cant,cotiz)
i=+1
i=0
while i<3:
print("Moneda: "+c... | [
"luisfer74081@gmail.com"
] | luisfer74081@gmail.com |
3d676bf2847cdec78845f0366fe652d30460a17a | db4e793adfbff5e402f1713e043622c59da11923 | /main.py | 06e649fe5a9594d80131dd670aaabec3b217c908 | [] | no_license | hrhm47/python_project | f69ae556acbbd82a1890f13258995eb4cd120425 | 99a5a7c87c44d7d67fc2cc4aa691e76ae82d7d7c | refs/heads/master | 2023-07-17T18:20:45.342036 | 2021-09-03T03:28:38 | 2021-09-03T03:28:38 | 402,630,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | import random
# print("\n\t\t****** Gussing Number ******* \n\n")
#
# def guess_number(rng):
# random_number = random.randint(1,rng)
# guess = 0
# while guess != random_number:
# guess = int(input('Guess the Number: '))
# if guess > random_number:
# print("Guess is to high")
# ... | [
"haseebr470@gmail.com"
] | haseebr470@gmail.com |
70a14dafff85c24c10a206c643501755c37cac39 | fe4218d4c729cc394702927c5914bc0836799e9a | /core/views.py | ff74e0a27a09d809ebdd6e5ef47374eacd9671e0 | [] | no_license | harsh-gautam/django_blog | e2f4d8f378bc20f64c52faf0d28e144c1be5d8e9 | 92bf2e032a10c506f974cf020fe656f464979127 | refs/heads/main | 2023-02-12T23:44:32.856900 | 2021-01-09T16:03:08 | 2021-01-09T16:03:08 | 327,074,478 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,121 | py | from django.shortcuts import render, redirect, HttpResponse, Http404
from django.urls import reverse
from django.contrib import messages
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User
from core.models import ContactForm
from blog.models import Post
# Create your ... | [
"hgautam208@gmail.com"
] | hgautam208@gmail.com |
8fe3bf170f7782a185234598748ce2f8353609e3 | 2a53ed3b1f659a434e8dcdef435dd931532431d6 | /ssm/ssm/assessments/tests/factories.py | 96117ba5af305976f399c7ee5e7f35e58a2fcb7a | [] | no_license | twistedFantasy/staff | 92d759eb3ce0bdcb01fd82ccd163cd22aa8da526 | 1daa297d57e8078e80efb910aff1a6fc35b18524 | refs/heads/master | 2023-01-09T22:15:29.480064 | 2019-12-22T12:40:53 | 2019-12-22T12:40:53 | 154,378,776 | 9 | 2 | null | 2023-01-03T18:55:39 | 2018-10-23T18:37:22 | JavaScript | UTF-8 | Python | false | false | 952 | py | from factory import DjangoModelFactory, Faker, SubFactory
from ssm.assessments.models import Assessment, Checkpoint, Task, STATUS
from ssm.users.tests.factories import UserFactory
class AssessmentFactory(DjangoModelFactory):
class Meta:
model = Assessment
user = SubFactory(UserFactory)
decision... | [
"twisteeed.fantasy@gmail.com"
] | twisteeed.fantasy@gmail.com |
bcd63a11924d3fdad2c28da08f42c29f3cc54416 | 88da3fef6830ad9beea58c2871255f081cb30983 | /questions.py | 5cf3ea8a3ed8961afa721e17de91f6c98bbbef4c | [] | no_license | kardandon/CS50x-AI | b05e59e551b41b292ee3cab8b718b267cac0bfd0 | 3a013e990956852c46e66721a70c63fa794e4087 | refs/heads/main | 2023-01-02T08:10:30.456688 | 2020-08-21T03:14:16 | 2020-08-21T03:14:16 | 305,349,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,647 | py | import nltk
import sys
FILE_MATCHES = 1
SENTENCE_MATCHES = 1
def main():
# Check command-line arguments
if len(sys.argv) != 2:
sys.exit("Usage: python questions.py corpus")
# Calculate IDF values across files
files = load_files(sys.argv[1])
file_words = {
filename: tokenize(file... | [
"kardandon@users.noreply.github.com"
] | kardandon@users.noreply.github.com |
273d693da31970ef981197bdb0e1c975a44133ec | bc3bfdb96031646d576b42c24554546988146df6 | /src/brokerlib/ibapi/client.py | a339dd47a09421f2c77c49ec8a2b1f818988f0dc | [] | no_license | SivaanandM/HRHD_Worker | 56a9a486403aca92989a30a9018ffd30e8f7f953 | c6eaf920607c4b589cefea248f2c1b1a09e1050a | refs/heads/master | 2020-08-29T23:07:04.387731 | 2020-04-25T08:33:48 | 2020-04-25T08:33:48 | 218,197,181 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 128,485 | py | """
Copyright (C) 2018 Interactive Brokers LLC. All rights reserved. This code is subject to the terms
and conditions of the IB API Non-Commercial License or the IB API Commercial License, as applicable.
"""
import time
"""
The main class to use from API user's point of view.
It takes care of almost everything:
- imp... | [
"sivaanand.m@gmail.com"
] | sivaanand.m@gmail.com |
60836e6996d4b49c40653064368fbd4c6ac99b27 | be1bf32f73f04f60de9a09a9ee1ccd547823b08d | /exer2.py | b570135e9b84abaca7c8a6c31939163c74f2b91a | [] | no_license | gpf1991/re | 3f296f6104a9aabd587d123e76feac9acbfd62ad | c0b12b3fee4ecc2abf3b3abdab232265845ff1d3 | refs/heads/master | 2020-04-28T04:40:04.363016 | 2019-03-11T11:29:19 | 2019-03-11T11:29:19 | 174,987,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | # import re,sys
# print('请输入端口:')
# port = sys.stdin.readline().strip('\n')
# # print('hello', port)
# if sys.argv[1] ==
# f = open('1.txt')
# data = r.read()
import re,sys
def get_address(port):
#提取一段内容
f = open('1.txt')
while True:
data = ''
for line in f:
if line != '... | [
"1203990207@qq.com"
] | 1203990207@qq.com |
a258bb33e374469a18dee26c2f706b121fc92b13 | 8cd5b6d65226a7fc50a7820b1c15161bbfdc32fb | /articles/migrations/0002_load_news.py | 0e377fc87c527680ab3dd8a0fa8b10b53ffa9632 | [
"MIT"
] | permissive | FashtimeDotCom/gobcl-plataforma | fd48159fae249ff8a965ef35788b6cdff54e199a | 395afd461a0726acca03e7b0030c4f49cf001ac4 | refs/heads/master | 2020-03-21T02:53:45.043103 | 2018-06-12T19:31:18 | 2018-06-12T19:31:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-04-04 14:57
from __future__ import unicode_literals
from django.db import migrations
def load_articles(apps, schema_editor):
Article = apps.get_model('articles', 'Article')
OldArticle = apps.get_model('aldryn_newsblog', 'Article')
Tag = apps.ge... | [
"ignacio.munizaga.t@gmail.com"
] | ignacio.munizaga.t@gmail.com |
ec1a8e6bc522c5530fa3c6b8becadfbb43a59e08 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /raw_scripts/132.230.102.123-10.21.11.31/1569574792.py | 2956314f1f44b77d279ae6226a702e94d5c5661c | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,752 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def is_palindromic(n: int) -> bool:
"""Tests if a given number is a palindrome.
Args:
A natural number n.
Returns:
If the number is a palindrome or not.
"""
if n > 0:
if str(n) ==... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
be228e8cb4ace859b0e86155d213dd34dcd6112d | 65c09454d389fe0eefbfbc75792c969d85c46809 | /robot/task_10.py | 6474376f17089f9f8b0403eefd09407cfc8b99ee | [] | no_license | curlymario/mpit_cs_py_hw | 0d790e972fe1286e308772d728e803f1a2159fa7 | 0a793bcea170dd8b4f449943a578b932486940ae | refs/heads/master | 2020-04-30T12:24:33.136215 | 2020-01-30T15:05:07 | 2020-01-30T15:05:07 | 176,825,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | #!/usr/bin/python3
from pyrob.api import *
def paint_if_wall():
if wall_is_above() or wall_is_beneath():
fill_cell()
@task
def task_8_3():
while not wall_is_on_the_right():
paint_if_wall()
move_right()
paint_if_wall()
if __name__ == '__main__':
run_tasks()
| [
"maxim@sivokon.me"
] | maxim@sivokon.me |
4e99ad75ad388b2a2c9e5fedec17ba453a630b0f | 415b3a3591a115640bde0d794dff604c96cdae31 | /catkin_ws/build/beginner_tutorials/catkin_generated/stamps/beginner_tutorials/talker.py.stamp | b9007d4d3a9125deb4d66bdd2aac9993e418b433 | [] | no_license | rbed23/ros-catkin-ws | aaf4b96f0fcae9e4fe3d6f4c5ac33f03244b89d4 | 70dd4de1633bbbd9357a6fb66ff1f20e83bb0552 | refs/heads/master | 2023-01-19T13:53:27.452804 | 2020-11-12T09:03:47 | 2020-11-12T09:03:47 | 311,613,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | stamp | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, 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... | [
"rbed23@gmail.com"
] | rbed23@gmail.com |
884389e2e29a25efc31465e5159dd79a098a839d | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/adepg/entity.py | 5e5ecb34e34d4097f5be7c90c6022027e531c050 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 5,106 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
166efb42531590143daa24b457398e71d777f4fe | 61d92f98d12c45f83980ba14b0450f8ec3077a3e | /recSys4.py | f1bf6d87168d9cc148e693e94542b642aeb27b20 | [] | no_license | sandersona3/CS4319_RecSys4 | db8a3845dd5563cb19e5d3c590bdedd7429aa738 | 758aae2deecf82c6fe21313006485116a89ccee5 | refs/heads/master | 2020-03-15T18:49:42.115079 | 2018-05-05T18:52:08 | 2018-05-05T18:52:08 | 132,293,266 | 0 | 0 | null | 2018-05-05T23:57:27 | 2018-05-05T23:57:27 | null | UTF-8 | Python | false | false | 9,850 | py | import numpy as np
from tkinter import *
from lightfm.datasets import fetch_movielens
from lightfm import LightFM
from sklearn.metrics.pairwise import cosine_similarity
import pandas as pd
import importlib
import time
#----------------------------------------------------------------------------------------------------... | [
"noreply@github.com"
] | sandersona3.noreply@github.com |
67ee6a173d7aa3b99a2a4a1122caa97f13a4073c | 9e1feb0bbfaa3c4c87f867d7412a43fab3556897 | /scheduler.py | 526392f387a41ec5b9e94d48ac1c5ca1b4470f77 | [] | no_license | utkarshmalkoti/Autologin-Bot | 4760bec18293039c365e6fff98786d4cc8c73420 | 95901bcef1b90770ca9ea127539311981acda69a | refs/heads/main | 2023-01-02T23:16:47.090489 | 2020-10-26T19:41:07 | 2020-10-26T19:41:07 | 307,485,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,177 | py | from datetime import datetime
import schedule
import time
from bot import open_class
from selenium import webdriver
import json
# def job(m,tp):
# open_class(m,tp)
# print("wtf is happening")
# driver = webdriver.Chrome()
# driver.get("https://accounts.google.com/signin/v2/identifier?service... | [
"noreply@github.com"
] | utkarshmalkoti.noreply@github.com |
c8e80d578cd68aa8317e0953f7ef5935284a2f87 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_291/ch79_2019_04_04_13_07_33_181091.py | 3938c50619a76c817676aede76fdf6570d5cfa14 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | def monta_dicionario(lista1, lista2):
dicionario = {}
for e in lista1:
dicionario.keys() = e
for e in lista2:
dicionario.items() = e
return dicionario
| [
"you@example.com"
] | you@example.com |
162492fa49235bd7b871cc325317b45371b97927 | e7a3f7e0886c2f7a91bc16c6aedb0bc0fb1d9a0d | /train_deep.py | beed594927122b5b1ecf38a4e5bf7bfbcceded89 | [] | no_license | arun-apad/nlp_name_classification_network | a7ee810cd50fb6412883d8e4f0c3ab899ecf076f | f9d5cb752e5fd39a443b91b8b36fa241a5786b56 | refs/heads/master | 2021-07-08T05:04:40.975337 | 2017-10-04T18:30:55 | 2017-10-04T18:30:55 | 105,803,771 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,438 | py | #IMPORT ALL THE THINGS
import h2o
import numpy as np
import pandas as pd
import os
from h2o.estimators.deeplearning import H2OAutoEncoderEstimator, H2ODeepLearningEstimator
from h2o.estimators.gbm import H2OGradientBoostingEstimator
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
from h2o.estimators.rando... | [
"arun.apad@gmail.com"
] | arun.apad@gmail.com |
e2fa549f3821aa6f53db01fb073523c2046d5353 | a9037108c99befa7bfeaa8c56761bfa3131921bc | /pages/views.py | ce424c4ff53a04b90601b4fb6a2416dfc614018a | [] | no_license | dogusy/Senior-Project | 9e11e5fce45489c4f35d570260869a873c3f0929 | e9b8c6dc6845c0b922831aaf3f52e1d649a4d21e | refs/heads/master | 2022-11-17T18:05:14.356362 | 2020-07-08T17:23:10 | 2020-07-08T17:23:10 | 278,139,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.core.paginator import Paginator,EmptyPage,PageNotAnInteger
from listings.models import Listing
from listings.choices import state_choices,bedroom_choices,price_choices
def index(request):
listings=Listing.objects.order_by('-list_da... | [
"dogusyuksel41@gmail.com"
] | dogusyuksel41@gmail.com |
a7117831dd9623057e67c2bb8e55c442b67bf56d | c7330806e61bb03e69e859b2ed33ae42fc7916e6 | /SpritzPlusPlus/Content/Stuffs/Fader.py | a69e5c90e9637de5140e8c6edbe86c52db16728d | [] | no_license | ixfalia/ZeroProjects | ec2f91000a5ce014f7413f32873b10fb01a3ed20 | 17bd2c0f9c3a5ef3705b008f6b128d589aef4168 | refs/heads/master | 2020-06-03T05:20:44.370134 | 2019-06-24T05:01:18 | 2019-06-24T05:01:18 | 191,456,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import Zero
import Events
import Property
import VectorMath
class Fader:
DebugMode = Property.Bool(default = False)
FadeInDuration = Property.Float(default = 1)
FadeOutDuration = Property.Float(default = 1)
def Initialize(self, initializer):
pass
def FadeOut(self, me, target, ... | [
"systematisoperandi@gmail.com"
] | systematisoperandi@gmail.com |
b79bbe18abea66b53e892571650df5362621c0a5 | ca8cb5c270beae72cd2524d3fadb94a0b9db4f92 | /nike_sneaker/nikesnkrs.py | 23737626fa1fac7d33173391599485c89e23f9fa | [] | no_license | savasaurusrexx/nike_sneaker | 9a72f8fd79513954b00965db82b41104548414c5 | 0b8d72bebf495b7baaf4376b165e612a66592047 | refs/heads/master | 2021-05-07T04:20:08.591001 | 2017-09-21T09:25:37 | 2017-09-21T09:25:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,296 | py | # -*- coding: utf-8 -*-
import logging
import re
import time
from bs4 import BeautifulSoup
from selenium import webdriver
from nike_sneaker.config import NIKE_SNEAKER_URL
from nike_sneaker.sneaker import NikeNewSneaker
formatter = '%(asctime)s - %(levelname)s - %(message)s'
logging.basicConfig(level=logging.INFO, fo... | [
"zhangyan@patsnap.com"
] | zhangyan@patsnap.com |
09958b6d7276060b6782a499b420b3c26ef4636a | bad298748162926d58a88503b97dd773c1d37b5e | /lungcancer/Pruebas/Pruebas PyQt/app.py | 13e820fdd86e452122d4a744b3514b0c8e527ea4 | [] | no_license | amarogs/lung-cancer-image-processing | 3aee478e89f1e501709b2b8fdf2c7ff7ddd278aa | 05985953d29d5f858e40b53b3f9926e373184e23 | refs/heads/master | 2020-09-14T05:33:27.182675 | 2020-01-16T11:54:17 | 2020-01-16T11:54:17 | 223,031,439 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,267 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 26 17:44:36 2019
@author: Quique
"""
from principal_ui import *
from PyQt5.QtGui import QPixmap,QImage,QColor
import main as main
from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel, QGridLayout, QWidget
class MainWindow(QtWidgets.QMainWindow, Ui_LCDetection)... | [
"ruizmo.e@gmail.com"
] | ruizmo.e@gmail.com |
7a391276ecf9a15a98ec4c70651688dd5cb41015 | f580680389877a9dc4e24c5558b6452af890fcc1 | /Pert-2.py | 0f34656edfe39dfbb4abb0f7c1829b624ee5f0ff | [] | no_license | diviandari/ninjaxpress-training | b899e92959eb73848eefbb0dedfab0bb6f0f271d | b8b525e02e2fd8340f75ae4e12ed556ff7966ab2 | refs/heads/main | 2023-08-22T09:00:20.485133 | 2021-10-27T10:03:25 | 2021-10-27T10:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # name = input("Enter name: Divi")
# print ("Your name is" + name)
my_string = "Hello world!"
print(len(my_string))
print(my_string[0:7])
my_string = my_string.replace("world","friend")
print(my_string)
a = "Diviandari"
b = "Sabitha"
c = a + " " + b
print(c)
a = "Siap"
b = 86
c = a + " " + str(b)
print(c)
nama = "... | [
"diviandari.sabitha@ninjavan.co"
] | diviandari.sabitha@ninjavan.co |
b7c2bdb022be0ef908184f13ff620a83aa4873b9 | 97c1a7a5a0b634426bb2698d33fa967805523e29 | /odoo/addons/bnc_member/wizards/proc_sync_jsport.py | aa7dcb56cc288b6859b341f570584b5e6cdd0ac6 | [] | no_license | gongfranksh/bn_bnc | 5017d530140fcb9df45aed6f69368731a434ded6 | 8b043d2938a2f3fc8fdabfd451a20c3c62e27073 | refs/heads/master | 2021-06-07T17:42:05.427639 | 2020-05-14T02:25:53 | 2020-05-14T02:25:53 | 132,710,496 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 30,045 | py | # -*- coding: utf-8 -*-
import logging
import threading
import datetime
from odoo import api, models, tools, registry
from BNmssql import Lz_read_SQLCa
# from idlelib.SearchEngine import get
_logger = logging.getLogger(__name__)
TOTAL_DAY = 10
class proc_sync_jsport(models.TransientModel):
_name = 'proc.sync.... | [
"gongfranksh@qq.com"
] | gongfranksh@qq.com |
b6f885a036c0c323dfed1c093d25f21f84920b10 | c91b31020eec49a269e9efb6d2d52ed25cc0d59a | /.history/skillathon_ocr/uploader/models_20201028150648.py | a831e650d2121d4c9676c19dc21d83283415ca9e | [] | no_license | Pvnsraviteja/Django-Image2Text | b1df3bd7ff46cff293441f76a0ba2f97cfd5aa07 | 6a6982b1ebb1be7cc9f470a1fe7d8f268764f072 | refs/heads/main | 2023-01-04T13:38:01.150128 | 2020-10-28T13:06:26 | 2020-10-28T13:06:26 | 307,948,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,229 | py | from django.db import models
from core import utils
import hashlib
from PIL import Image
import pytesseract
import datefinder
class ImageFileManager(models.Manager):
def search(self, query):
return self.get_queryset().filter(models.Q(internal_reference__icontains=query) |
... | [
"pvnsraviteja1120@gmail.com"
] | pvnsraviteja1120@gmail.com |
f2f94aae32c421c20add1c502b815fd1898e114a | 801f462c3533d93bdf6c6668b7243aceb1948073 | /hw3/scripts/p4_df_function_count.py | 4f0840942ff70d9a4354d77031eba6d8a809cb68 | [] | no_license | amitanalyste/e63-coursework | 942affba05e893030a0a9df7e7d61cae2d513914 | 731af65e43f9b3a308920d85d7e984645329685a | refs/heads/master | 2020-03-28T13:46:24.848273 | 2017-12-20T15:13:05 | 2017-12-20T15:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Import libraries
import findspark
findspark.init("/opt/spark-2.2.0-bin-hadoop2.7")
from pyspark.sql import SparkSession
# Create Session
spark = SparkSession.builder.master("local") \
.appName("p4_df_filter_count").getOrCreate()
# Read data
df_ulysses = spark.read.text("/home/tim/e63-coursework/... | [
"tim@ip-172-31-18-124.eu-central-1.compute.internal"
] | tim@ip-172-31-18-124.eu-central-1.compute.internal |
7a8775276f876072a243f8dff155f1477d9c4f67 | 2e0b0182b137ddacecbbbf91a209178e427cf5da | /user_data/strategies/Martin.py | 808313f06fbe7b74e057176c49cced745209be02 | [] | no_license | mpicard/lucy | 0bec1fc00172d8862fc9eabdaf53654e98412816 | 34591dd9f5365682e709091c567051d63d749552 | refs/heads/main | 2023-03-20T18:44:05.734890 | 2021-02-25T20:26:09 | 2021-02-25T20:26:09 | 341,551,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,614 | py | # pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement
# --- Do not remove these libs ---
import numpy as np # noqa
import pandas as pd # noqa
from pandas import DataFrame
from freqtrade.strategy.interface import IStrategy
# --------------------------------
# Add your lib to import he... | [
"martin.picard@thoughtworks.com"
] | martin.picard@thoughtworks.com |
085f0719a2e1ea2cf251de48b2646dd7055c61ec | 9783a96d0e5545041536975d86b736e552ccbdd1 | /constants.py | af2ae621fe4469440f748165fcf5f2dcd9c45597 | [] | no_license | ar852/flappy-bird-reinforcement-learning | 05ab02c8460a5e649035c2a10da75de34bf59e83 | 5e795e3ef36513eb158c650cf8d1bfa928824c52 | refs/heads/main | 2023-06-09T11:43:11.241866 | 2021-06-29T19:17:43 | 2021-06-29T19:17:43 | 381,468,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | ACTION_SIZE = 2
STACK_SIZE = 4
TESTING_EPISODES = 4 # run after each epoch of training
PROCESSED_IMG_SIZE = (81, 56) # 5 times reduction, was originally 3 but that took even longer to train
STATE_SIZE = (81, 56, 4)
EXPLORE_START = 0.5
EXPLORE_STOP = 0.02
DECAY_RATE = 0.001
WEIGHTED_ACTIONS = [1] * 40 + [0... | [
"noreply@github.com"
] | ar852.noreply@github.com |
ab3e6ff2c55132dec35a9a2fd75213d401744a40 | fb3194f5022d63279432772b90e6d43e7a55afff | /positive.py | ade9fd65888ec9e2d870f7de1fe90385b8af39f0 | [] | no_license | Remithasakthi/python | d6d9d2080eed06afef7c54460e70b2cd814c5a82 | 97fd569415046699987d632419917e469df17cfe | refs/heads/master | 2020-03-29T02:28:01.682353 | 2019-02-13T08:44:29 | 2019-02-13T08:44:29 | 149,438,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | x=6
if(x==0):
print("zero")
elif(x>0):
print("positive")
else:
print("negative")
| [
"noreply@github.com"
] | Remithasakthi.noreply@github.com |
7c89c6b6d6cb9ef4568a2c4f37ca8d8002d5cb2f | 154a50e20e85762d00ba72404df419b249ed0ee7 | /view.py | 0e903388178cabe57b0649f06ab8a75e62ed04c8 | [] | no_license | Edwin-zzp/pythonpjUI | 68cddbfbbca985f3446923c1ee925b014c5ace60 | 4da467fe40e9d341fcc56967e6a44651e0b03daf | refs/heads/master | 2021-09-25T00:42:27.899460 | 2018-09-24T12:02:33 | 2018-09-24T12:02:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: UTF-8 -*-
import os#, sys
import time
import win32api
import win32con
#import win32gui
#from ctypes import *
fname="D:/VIDEO/12.mp4"
fn="12.mp4"
#print(fn)
#print(fname)
#os.system(r"D:/VIDEO/mplayer.exe -fs -loop 0 -fixed-vo " + fname)
os.popen(r"D:/VIDEO/mplayer.exe -loop 0 -fixed-vo " + fname) #-... | [
"zhangzzpcxxy@163.com"
] | zhangzzpcxxy@163.com |
83edf902700fd6fc2933f74604fddf42f8643f67 | e0160cc64c1b1d4de8475627eb7d69843784b287 | /smooth_filter.py | 4756d835ced6b064cd26025dfc4575131a38ae68 | [] | no_license | ocean1100/stereo-disparity | d1aba8faf3647e7c7994b9a7db6a4480ebaac9bc | d26f5af0927aed9ce54c4ea48b2daa1b08f230c2 | refs/heads/master | 2020-07-05T08:42:49.232987 | 2018-03-05T20:14:24 | 2018-03-05T20:14:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from scipy.signal import convolve2d
from numpy import *
def gaussian_grid(sigma, alpha=4):
sig = max(sigma, 0.01)
length = int(math.ceil(sig * alpha)) + 1
m = length / 2
n = m + 1
x, y = mgrid[-m:n,-m:n]
g = exp(m ** 2) * exp(-0.5 * (x**2 + y**2))
return g / g.sum()
def filter_image(image,... | [
"noreply@github.com"
] | ocean1100.noreply@github.com |
5cc497220acc91b16224bbca65b4ddc141c2d45d | 59b27bea463addbade9e0f048eb08358c6901ded | /Caesar Cipher Code.py | 51d62c47eca27743bebe503b6e5d5b7e83b797f9 | [] | no_license | Jlamba2108/Basic-Python-Projects | 86bf9c6a54dbd1f2d57e356bfb36c7d190a937ad | 8b7a34cfa54896c8fd9191704b948e93ad69c511 | refs/heads/master | 2023-05-08T10:47:01.239786 | 2021-06-07T05:22:31 | 2021-06-07T05:22:31 | 364,494,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | logo='''
______ ______ ______ ______ ______ ______ ______ __ ______ __ __ ______ ______
/\ ___\ /\ __ \ /\ ___\ /\ ___\ /\ __ \ /\ == \ /\ ___\ /\ \ /\ == \ /\ \_\ \ /\ ___\ /\ == \
\ \ \____ \ \ __ \ \ \ __\ \ \___ \ \ \ _... | [
"jlamba2108@gmail.com"
] | jlamba2108@gmail.com |
7e3a58228ddcf49afd4818d3f4ec6b4a5cdd8fcb | 36ec12f0c3b9017953f8204461bdef8f8106e475 | /tests/test_run_settings.py | 50cf3032e16dc28487a29843d36daae5a800a566 | [
"BSD-2-Clause"
] | permissive | mradaideh/SmartSim | f580f63af4397d298e6ac5b57f0c1738509a873d | 05e299a1315125737f950860e33441214345cf77 | refs/heads/master | 2023-04-29T03:24:52.501295 | 2021-05-08T01:48:17 | 2021-05-08T01:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | from shutil import which
import pytest
from smartsim.settings import RunSettings
def test_run_command_exists():
# you wouldn't actually do this, but we know python will be installed
settings = RunSettings("python", run_command="python")
python = which("python")
assert settings.run_command == python
... | [
"spartee@hpe.com"
] | spartee@hpe.com |
e8b8085ef78e060f7a0e58f5c9392846b9c9d4ae | 19333aed645a4721108a67ba4d90292d2383314e | /300lengthOfLIS.py | 1fdad80e02084716ce4cbca1fe34f25fd15eb83f | [] | no_license | qinzhouhit/leetcode | f39f8720a19259310293c1eb2975ce459f7cf702 | 502e121cc25fcd81afe3d029145aeee56db794f0 | refs/heads/master | 2023-06-24T09:18:25.715450 | 2021-07-21T07:21:42 | 2021-07-21T07:21:42 | 189,679,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | '''
keys:
Solutions:
Similar: 334
T:
S:
'''
from typing import List
from bisect import bisect_left
# similar question: 673
class Solution:
# https://leetcode.com/problems/longest-increasing-subsequence/discuss/152065/Python-explain-the-O(nlogn)-solution-step-by-step
def lengthOfLIS4(self, nums: List[int]) -> ... | [
"qinzhouhit@gmail.com"
] | qinzhouhit@gmail.com |
989bd3b744c128364ef06697ca66be44e6759ac3 | a56252fda5c9e42eff04792c6e16e413ad51ba1a | /resources/usr/local/lib/python2.7/dist-packages/sklearn/gaussian_process/__init__.py | 815fa78dc9c1700f6b6c0d30a5a9fc0f8fd1997f | [
"Apache-2.0"
] | permissive | edawson/parliament2 | 4231e692565dbecf99d09148e75c00750e6797c4 | 2632aa3484ef64c9539c4885026b705b737f6d1e | refs/heads/master | 2021-06-21T23:13:29.482239 | 2020-12-07T21:10:08 | 2020-12-07T21:10:08 | 150,246,745 | 0 | 0 | Apache-2.0 | 2019-09-11T03:22:55 | 2018-09-25T10:21:03 | Python | UTF-8 | Python | false | false | 472 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Vincent Dubourg <vincent.dubourg@gmail.com>
# (mostly translation, see implementation details)
# Licence: BSD 3 clause
"""
The :mod:`sklearn.gaussian_process` module implements scalar Gaussian Process
based predictions.
"""
from .gaussian_process import Gau... | [
"szarate@dnanexus.com"
] | szarate@dnanexus.com |
e7d077a9e663822d9ac4d1fa6335919432dc7ce0 | 02cfe8774a1b0b3cff383d157a7c8178748db919 | /BS_Scrape.py | 290228dc4e0b465ed8bf2af0475abc7a5e9cfdd7 | [] | no_license | chadcooper/nbi | 72839f08c667a6af3062fd05ca4e713d8965e7e3 | 9ea93f3c0277ae5f3eb19aa8b2be2ba7cb0b1319 | refs/heads/master | 2021-01-17T05:22:29.110071 | 2014-01-13T19:08:11 | 2014-01-13T19:08:11 | 15,878,211 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | import BeautifulSoup as bs
import urllib2, re
def FetchFipsCodes( ):
""" Fetches a table of FIPS codes form a EPA webpage and tosses them
into a dictionary """
url = 'http://www.epa.gov/enviro/html/codes/state.html'
f = open('C:/temp/python/data/outputs/fips.csv', 'w')
# Fetch and... | [
"supercooper@gmail.com"
] | supercooper@gmail.com |
dbd02cfbb502a3367b992b88e7b0375ee5d28dc7 | 8909c690853d2bb1c55419d38162256888c0418b | /final_regression_with_keras.py.html | 427869355998ef18c1679a8310537673c22faaf0 | [] | no_license | ismaelsiffon/keras | 8d101b0ec3a192598acba084d8f32f60e33f94c1 | 3a3cbdfc28413005c0b3fcb568b0483a30e6d8e1 | refs/heads/master | 2022-09-11T03:32:42.027486 | 2020-05-29T07:07:46 | 2020-05-29T07:07:46 | 267,789,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,522 | html | #!/usr/bin/env python
# coding: utf-8
# # Final Assignment: Build a Regression Model in Keras
# Imports:
# In[62]:
import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.metrics import mean_squared_error
# Let's download the data:
# In[2]:
concrete_data= pd.re... | [
"noreply@github.com"
] | ismaelsiffon.noreply@github.com |
30279ab7a6271c42ff99dee903f7994bace44415 | 35393783fa61a0f205b82f5e31bff91252714512 | /02.project.02.image.classification/helper.py | eaa43d4a051ee42851f247849df58328ce406a3c | [] | no_license | buffos/DLFoundationsND-projects | e6637210fe67eaf66f53408029837aef0f58d982 | 884f2b178343354a73dd2b56d845df5bcd1ac543 | refs/heads/master | 2021-01-09T05:52:22.953139 | 2017-05-24T09:07:51 | 2017-05-24T09:07:51 | 80,853,430 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,646 | py | import pickle
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import LabelBinarizer
def _load_label_names():
"""
Load the label names from file
"""
return ['airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck']
def load_cfar10_batch(ci... | [
"kostas.oreopoulos@gmail.com"
] | kostas.oreopoulos@gmail.com |
24e7bcacc5f706d7da0d52276f320df51aaf134b | da56b4b47c7402449cc41f10887d00d7101dd9c9 | /Word a10n (abbreviation)/word-a10n-abbreviation.py | e28ea73f7c2f8f9e9175e97e964c64e6ab3f0562 | [] | no_license | kovalevcon/practice-code | 8e20312fb0b14b48c696a3397f4e978ef1782292 | 663838488ff21e475ad73bc902dc3759c8d37684 | refs/heads/master | 2021-06-04T13:52:37.404698 | 2019-07-09T09:35:11 | 2019-07-09T09:35:11 | 138,029,120 | 1 | 1 | null | 2020-04-20T08:38:32 | 2018-06-20T12:21:11 | PHP | UTF-8 | Python | false | false | 869 | py | import re
def abbreviate(s):
"""
:type s: str
:rtype: str
"""
result = ''
word = ''
for symbol in s:
if re.search("[^a-zA-Z]", symbol):
result += "{}{}".format(i18n(word), symbol)
word = ''
else:
word += symbol
if len(word):
r... | [
"kovalevcon@mail.ru"
] | kovalevcon@mail.ru |
3582e43c0be6814c00a89d2f42cd2a4270a2c2c1 | 07683accff81c1f4bede1ad10ba21aeaca94581f | /training/manticore_player_config.py | 08b0cb3fe8f6dc16c0e635ccfe17bfba773043ed | [
"MIT"
] | permissive | NoMoor/AGC | b052114c1f8398be8b75a6cae960d1189e23909f | 5cb72871ed33c9484c5699496db106f24338564e | refs/heads/master | 2021-07-06T14:09:12.880561 | 2021-01-14T21:07:45 | 2021-01-14T21:07:45 | 222,946,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from pathlib import Path
from rlbot.matchconfig.match_config import PlayerConfig, Team
__cfg_path = Path(
__file__).absolute().parent.parent.parent / 'SpaceInvaders' / 'manticore' / 'manticore' / 'manticore.cfg'
manticore_blue = PlayerConfig.bot_config(__cfg_path, Team.BLUE)
manticore_orange = PlayerConfig.bot_co... | [
"andrewscotthat@gmail.com"
] | andrewscotthat@gmail.com |
4055a201dbd907c9650090b2d35e0e88aa47f35c | ffd6bc549caad10ee99ed20a13b0dac51393f24a | /server/healthcheck.py | a20e17723c9d5aa537dad0d0d6c9ac9620088a87 | [] | no_license | giovaninppc/MC030 | 52a579290e0dcd1d28744f9ac98f49a8857ae275 | 382a60e330f1cdbb82fa8648029fa410db6a5cf5 | refs/heads/master | 2022-12-14T19:53:49.604330 | 2022-09-13T16:53:12 | 2022-09-13T16:53:12 | 208,359,198 | 2 | 0 | null | 2022-12-11T08:42:36 | 2019-09-13T22:56:44 | Python | UTF-8 | Python | false | false | 234 | py | import sys
# Takes first name and last name via command
# line arguments and then display them
print("Output from Python")
print("First name: " + sys.argv[1])
print("Last name: " + sys.argv[2])
# save the script as hello.py | [
"bianca.itiroko@ifood.com.br"
] | bianca.itiroko@ifood.com.br |
9a2ec1197f71e206b1e7e693a6289439c6797b7f | be426351438937c646cee339d6c381ba14fd8de2 | /trafficLight.py | bf0f5dd1b05631363fc4c71357166183e1c905b7 | [] | no_license | Marist-CMPT120-FA19/Anthony-Gandini-Lab-4 | 8c8c895dd950a02eb4a3edd967d84211d839cdf3 | fff60008703634aaf8eac6e777c8d6841ff0c330 | refs/heads/master | 2020-07-28T23:23:50.530323 | 2019-09-19T14:37:48 | 2019-09-19T14:37:48 | 209,577,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | #Anthony Gandini
from graphics import *
def main():
win = GraphWin("Traffic Light" , 1000 , 1000)
body = Rectangle(Point(300 , 100) , Point(700 , 900))
body.setFill("white")
body.draw(win)
redLight = Circle(Point(500 , 250) , 100)
redLight.setFill("red")
redLight.draw(win)
ye... | [
"54862709+Tones55@users.noreply.github.com"
] | 54862709+Tones55@users.noreply.github.com |
845b8ca2b84cf398d1092751737e01837b49cb76 | fd720c03d9ac965e7555e67769a879daf073c0d5 | /Level 1/8.py | 4c5e4ca0046cf1c4b8da8963525ced03dd5953ce | [
"Unlicense"
] | permissive | chris-maclean/ProjectEuler | 84045fb3a01897fb4ce4b312aabfd582077e6a89 | 861387b130a05cb98518492ac099ef6470f14dab | refs/heads/master | 2021-05-26T22:46:54.114622 | 2013-08-06T01:08:02 | 2013-08-06T01:08:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # CJAA 4/6/2013
# Project Euler Problem 8
# Find the largest product of 5 consecutive numbers in the 1000-digit
# number below
x = str(7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096... | [
"canna12@gmail.com"
] | canna12@gmail.com |
4d0e73899310c05f60aaee3ed53464b71cdc931d | 5027fe1a0a95f3391566b53fa8c29a2c29e4f04c | /python/Python/python/flask/route.py | fc67ea0b8808294aee29bdbd1674a9c919ae009c | [] | no_license | chelroot/script | 5e79e9609fb602ef63ee33e36262e4d3a79ea28f | e1f915b3b8e834417fdb07d2b6894e22674071e1 | refs/heads/master | 2020-03-29T01:18:55.090645 | 2017-12-14T15:02:13 | 2017-12-14T15:02:13 | 94,638,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
@app.route('/hello')
def hello2():
return 'Hello World 2'
@app.route('/user/<username>')
def show_user_profile(username):
return 'User %s' % username
@app.route('/post... | [
"you@example.com"
] | you@example.com |
071103df533889be44bf1e6e096e4b568562b9a6 | 8ac6655dfe6b8a43867646ab34ad608f74db2f0f | /B-SGD.py | d29c96f4221a7b4fb5823baf5135dde6c86293fe | [] | no_license | banglh/B-SGD | 22cf9075c7437c5a9058bcf39ebca1be2dc30ecd | 27b65d90c4a0294265aeb837b042ceb2385ad2f0 | refs/heads/master | 2021-01-19T13:25:41.426822 | 2015-01-03T12:59:36 | 2015-01-03T12:59:36 | 28,743,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | from DataPreparation import prepareData
from LatentFeaturesInit import initParamsRandom1
from Output import printToFile
from BSGD_Engine import trainParams
if __name__ == "__main__":
############################### Dataset information #################################
# MovieLens 10M dataset
# data... | [
"ice.banglh@gmail.com"
] | ice.banglh@gmail.com |
a41d1afce03ea94b835c03fec6c228f7a67c0d71 | 0c88267776f6c7590cfed3d3184eb872ad38c642 | /pendataan.py | 61d7a15980aacbc6edf5118c1839c76154f73ad2 | [] | no_license | blanktix/data-nilai-mahasiswa-python-mongodb | 9d004f684b20804a63fa362aa88ef34c82563e67 | b773eb8b2981d81aa4f6d8d3a742507096683f9c | refs/heads/main | 2023-03-02T18:21:42.837329 | 2021-02-12T01:22:59 | 2021-02-12T01:22:59 | 338,195,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,210 | py | from os import system
from mongoengine import *
from functools import reduce
from model.model import *
# ============================================================================= #
# Penggunaan closure untuk melihat nilai mahasiswa pada matkul tertentu
def cek_nilai_matkul(data):
nilai=dict()
for mhs in dat... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
11de29e50bd736b819c94dbb49f1f8e2dffa6da0 | 4c5715acd2415d40b3459d6b099f164fc4b3e671 | /Practica2/Practica2_ejercicio2.py | f586abb8a4908313077fb48bf8c468dfc66a6465 | [] | no_license | Mata13/ModelacionNumerica | 5099d2af694cf22cc6d15df86e0cd9de54956ffd | 03660a39caaa1f3a54059e4deba872517ef000c6 | refs/heads/master | 2021-07-04T23:13:12.387330 | 2020-08-01T22:00:53 | 2020-08-01T22:00:53 | 137,001,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | """Aproximar la segunda derivada de f(x)=2**(sin(x**2+1))*cos(sqrt(|sin(x-1)|))
en x=sqrt(2), usar h=0.001 y diferencias centradas"""
import numpy as np
x_i=np.sqrt(2)
h_0=0.001
def f2primadex(x,h):
f=2**(np.sin(x**2+1))*np.cos(np.sqrt(np.absolute(np.sin(x-1))))
fmash=2**(np.sin((x+h)**2+1))*np.cos(np.sqrt(np... | [
"zick13"
] | zick13 |
ebb49bb3f585477fbe8713bf66c4a6abc9d0576b | e18c9af2d5f4360efdea7f8299d03f277b65500e | /Temperatures/temperatures.py | 855ad4695d3e5fbdf1cd1be168bb3aa56a4c1df7 | [] | no_license | Hravan/codingame | 9147236c4384edb9d55b509fc634d0666ea61d9b | 2547b6071be576db57e966bc1f3ed44660a01003 | refs/heads/master | 2020-04-24T20:44:04.305741 | 2019-02-23T19:22:16 | 2019-02-23T19:22:16 | 172,253,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | # Write a program that prints the temperature closest to 0 among input data.
# If two numbers are equally close to zero, positive integer has to be considered
# closest to zero (for instance, if the temperatures are -5 and 5, then display 5).
from functools import reduce
def closestZero(numbers, n):
'''Consume a ... | [
"krzysztof.krenc@gmail.com"
] | krzysztof.krenc@gmail.com |
54f21d408917fa7ed27fa8fef789ccef6c026982 | 6997fab0dc0610d0eba804206cabed9b0f7e6e89 | /pyobjc/RandomGenerator/random_generator.py | c3a45264f583adb6250c937303b782e2f84cbe7b | [] | no_license | chanshik/practice | 9797b25f4d25fd29be875b4c8b1a7b90d8658e3d | 55baf3b08c0d288711b33ea190ee425f70d1dcbb | refs/heads/master | 2021-01-02T08:47:12.379934 | 2014-02-03T12:33:29 | 2014-02-03T12:33:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,561 | py | """
Random number generator in Cocoa Programming for MAC OS X book.
Written by Chan Shik Lim. (chanshik@gmail.com)
"""
import random
import time
from Cocoa import *
from Foundation import NSObject
from PyObjCTools import AppHelper
class RandomGeneratorController(NSWindowController):
numberTextField = objc.IBOut... | [
"chanshik@gmail.com"
] | chanshik@gmail.com |
bbdf4e72c06405a112fb686c4ef98f9eacdf5f36 | 02011fb7b9685b2506b89641b0ff01416742a854 | /笔记本电脑的东西/暑期线上培训/供应链商品销售/02.代码/供应链商品销售.py | 52cff7d30aff86c50f25b8036a0c44b7ad8f4c5b | [] | no_license | hhongker/java | 062ea17aa2375d3c59bf5094eca3f2cf13d10ed9 | 78babd156ed849596c6f633979f40c4549197338 | refs/heads/main | 2023-03-14T16:39:04.078349 | 2020-11-24T12:12:37 | 2020-11-24T12:12:37 | 315,620,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,221 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 26 10:03:43 2020
@author: hhr
"""
# In[数据准备]
import pandas as pd
data = pd.read_excel('../01.中间数据/供应链商品销售数据.xlsx',header=None)
data = data.iloc[1:,1:] #将读取多余的第一行与第一列干掉
data.columns = data.loc[1] #将列设置为第1行的值
data = data.drop([1]) #将多余的第一行干掉
data.reset_index(drop=True, inpl... | [
"1004681771@qq.com"
] | 1004681771@qq.com |
2131fe65e7d0c961cc4bf0696a75133d6b38ee27 | 6da4349a80e90693b2bcb23f5f1c5fc3b4c3a7a1 | /products/migrations/0010_auto_20160119_0421.py | f75f2a9b0a5b978e7b91f8e1b7ab7274e6bb0eb5 | [] | no_license | netlabreal/Django-ESHOP | 1f7379a5aeff0562be655cc868071adcb395a52a | dafd3a277226168f4fc3e42338aed0f162c5c422 | refs/heads/master | 2021-01-10T07:05:22.287887 | 2016-02-21T07:14:11 | 2016-02-21T07:14:11 | 52,196,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import products.models
class Migration(migrations.Migration):
dependencies = [
('products', '0009_remove_category_kol'),
]
operations = [
migrations.AlterField(
model_nam... | [
"site2012@list.ru"
] | site2012@list.ru |
fa6c3f8621bf3529d05cdccbd3acba3c26987d49 | 113c3bf772df1d7a7fbd391f777802e45222e5a4 | /PSO/swarm.py | 9d705f479e7787e6ea0bac14614d9c5a79767e7b | [] | no_license | TeoMoisi/AI | 3dbad28eead5362825133568a3626c2d9cc1fad9 | afb468a44a5b609e6a5069a38c9beefd5138e791 | refs/heads/master | 2020-07-18T04:34:02.696907 | 2019-09-03T21:23:24 | 2019-09-03T21:23:24 | 206,174,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | from particle import Particle
from random import randint
import copy
class Swarm:
def __init__(self, noOfPaticles, nSize):
self.noOfParticles = noOfPaticles
self.particles = self.create()
self.nSize = nSize #neighbour size
def getParticles(self):
return self.particles
de... | [
"teofana.moisi@gmail.com"
] | teofana.moisi@gmail.com |
dad8d5e9df27a1a51889538cfc0bcb8c30bc6dda | 0764c823e1b594fc3ec5db2c28436bab6e345f4d | /This is codingTest/그리디/만들 수 없는 금액/만들 수 없는 금액.py | 613129cc6e12d0b4a4e5df5e62ccc0c0cbe80691 | [] | no_license | BTOCC24/Algorithm | ecf5b94bf31aa69549be4aa73ff1d4874243e696 | 24a6c3c6d8cf62d14b60dbc12c7d5fa4c4d80f31 | refs/heads/master | 2023-04-10T22:02:41.435820 | 2021-04-15T15:09:30 | 2021-04-15T15:09:30 | 231,168,262 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | n = int(input())
data = list(map(int, input().split()))
data.sort()
avail = []
for coin in data:
if not avail:
avail.append(coin)
else:
avail += [x + coin for x in avail]
avail = sorted(list(set(avail)))
for i in range(len(avail)):
if avail[i] != i+1:
break
print(i + 1) | [
"kisses6938@gmail.com"
] | kisses6938@gmail.com |
410c3e297eb1958e9ec9baa64166a76010c7b27e | c37d25681f16b042a1357102d7eaa9835d160756 | /calculator.py | e069cf25e4764cd12984f05a156d2827949b3092 | [] | no_license | FlorentinPopescu/wsgi-calculator | fd9ae9542f40d413e5331ef54db2df26dd94f268 | d9161744704b49e789047ac3c568bf61a76114e7 | refs/heads/master | 2020-12-26T14:16:14.896368 | 2020-02-08T04:31:29 | 2020-02-08T04:31:29 | 237,535,019 | 0 | 0 | null | 2020-01-31T23:42:03 | 2020-01-31T23:42:02 | null | UTF-8 | Python | false | false | 7,587 | py | """ calculator.py script """
#imports
import traceback
import operator as op
from functools import reduce
# =============================================
"""
For your homework this week, you'll be creating a wsgi application of
your own.
You'll create an online calculator that can perform several opera... | [
"popescu01@gmail.com"
] | popescu01@gmail.com |
911bd56ce7d096b537e2228d71145283066fecd3 | b62a74192561e950e53574aaab178eebec713d1b | /plots/utilities/load_pickled_result_file.py | 368e0deca292b212233306998164a640538b934b | [] | no_license | LEAVESrepo/leaves | a094fdf9bc020c43dd1af485502e196db41f2188 | 0a8590733c0b85c93c404ef1154bb96b4ab51edb | refs/heads/master | 2020-12-30T01:06:33.501736 | 2020-06-07T22:33:00 | 2020-06-07T22:33:00 | 239,523,846 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | import pickle
import os
def load_pickled_result_file(input_file_absolute_path, rm_file=False):
try:
with open(input_file_absolute_path) as f:
try:
loaded_obj = pickle.load(f)
except pickle.PickleError:
print("Cannot load " + input_file_absolute_path... | [
"leavesgit@gmail.com"
] | leavesgit@gmail.com |
c437bc7c363870c11572c85bed8dafde7feebd24 | a742a7fc0f179cfdc6a19afe355b50bafe262bf4 | /djsite/search_func.py | 5b3bd2f53e607c66ac43f5d01bb3a054a0345642 | [] | no_license | RaisoLiu/zipf-distribution-network-visualization | 76d470bea93e4ffc4a514d32c0cc83f121194a49 | 135eeda2f529a1bded43fed6a601e0d47c4d7cf4 | refs/heads/main | 2023-02-24T15:05:01.221036 | 2021-01-28T06:22:34 | 2021-01-28T06:22:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | import json
from os import listdir
from os.path import isfile, isdir, join
from .js_func import is_json, normalize_word
from nltk.metrics import edit_distance
import time
def art_get(f, res):
tStart = time.time()
art_js_set = []
inquire = res
with open(f, 'r') as f_stream:
f_str = f_stream.read... | [
"raisoliu@gmail.com"
] | raisoliu@gmail.com |
22b6d88065cac062432597e4311b35e7574812ec | be5705e00aacb4313cf27e57fbfb009633e181ba | /assignment5/diff.py | 884f32db4f6f6b0b0baaffa20935b103861aa509 | [] | no_license | yosephog/INF3331 | 667a2c5f7431cf33aa37598e11d393178ed009bc | 86d1b54e2c97b0748b9cb3ab5c79ba6b0045577b | refs/heads/master | 2020-04-27T03:19:16.121546 | 2019-04-14T10:21:30 | 2019-04-14T10:21:30 | 174,021,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | import sys
import re
import itertools
def read_file(file_name):
"""
this method just read a file and return it
as a list spliting at new line
"""
sourcefile=open(file_name,'r')
file=sourcefile.read()
sourcefile.close()
return file.split('\n')
def diff(original_listinal,modified):
""" This method find the di... | [
"thorfry@yahoo.com"
] | thorfry@yahoo.com |
d74c2505271b130d0407164abf41de7cc872f416 | 616fa7b1261c3703c34ffb8c8fcdcf2c301f1744 | /3MinuteDeepLearning/venv/Scripts/easy_install-script.py | 61985098dda703bc4db848f076fc8feb22c721e3 | [] | no_license | ann234/ML-Study | c483ea62273568d1a4a2e5674abb34944d690433 | 72c8253bdc5ca24f09917eedf9f272e118a0cc9a | refs/heads/master | 2021-10-24T18:37:35.730031 | 2019-03-27T16:06:49 | 2019-03-27T16:06:49 | 178,026,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!C:\Users\cuvit\PycharmProjects\3MinuteDeepLearning\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scr... | [
"cuvitiny@gmail.com"
] | cuvitiny@gmail.com |
42959d61c0f436a1872bbfa0c592c00f7a8b486e | 7b3c2887a3d5d28748cfc15f5b079cdbf8c691e0 | /scene_parsing_model/batch_eval.py | b6f9073ac094b5cc4ef4ac9b711a1e9a26a9d8f6 | [] | no_license | unizard/Colorization-project | f6b33d9073890f9524dd7eece4de6933734df0df | 6479105b74ea8cd8eebc8cad02663ce40865dd5e | refs/heads/master | 2021-01-13T17:09:06.140235 | 2016-06-07T18:34:29 | 2016-06-07T18:34:29 | 69,160,682 | 1 | 4 | null | 2016-09-25T11:35:45 | 2016-09-25T11:35:44 | null | UTF-8 | Python | false | false | 1,514 | py | caffe_root = '../../caffe-future/'
import sys
import os
import scipy.io as sio
sys.path.insert(0, caffe_root + 'python')
import numpy as np
from PIL import Image
import caffe
def rgb2gray(rgb):
return np.dot(rgb[..., :3], [0.299, 0.587, 0.114])
gray_flag = True
testdata_path = 'testset'
testresult_path = 'test_... | [
"zerobigpark@gmail.com"
] | zerobigpark@gmail.com |
01d597f6437a51fe5e5010b528dc6fabf5779ebc | a2d4ed422e72ea6c87cc6f2f4c033f4fed55d9e1 | /poll/migrations/0002_auto_20210114_2215.py | 65b9bd2ad1163a0006a5a233a9d9d9cd5e6a3646 | [
"MIT"
] | permissive | slk007/SahiGalat.com | cdf803fe7c4ffa8842942fd43e9607e906378ed4 | 786688e07237f3554187b90e01149225efaa1713 | refs/heads/master | 2023-02-18T04:04:02.838852 | 2021-01-18T20:48:47 | 2021-01-18T20:48:47 | 329,948,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | # Generated by Django 3.1.5 on 2021-01-14 22:15
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('poll', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Topic',
fields=[
('id', model... | [
"shubham.soni.lko@gmail.com"
] | shubham.soni.lko@gmail.com |
cc55fc5791d42b5b92121217ccd66d67d71c0166 | 0cf407c7e7cab89489e4f16e27769367005ccc4f | /pydap/wsgi/file.py | 1a1eac2bbe107110c485340f8556c5a5b6caa163 | [] | no_license | QPromise/pydap | e520a6b52b174986664f7dfc6f25df073105a301 | 7d68533fdb5f1972bab5b2075b98c41e67b700a1 | refs/heads/master | 2020-05-05T13:56:49.035636 | 2013-11-14T18:17:16 | 2013-11-14T18:17:16 | 180,100,672 | 1 | 0 | null | 2019-04-08T08:08:57 | 2019-04-08T08:08:57 | null | UTF-8 | Python | false | false | 6,179 | py | """
A simple file-based Opendap server.
Serves files from a root directory, handling those recognized by installed
handlers.
"""
import re
import os
from os.path import getmtime, getsize
import time
from email.utils import formatdate
from paste.request import construct_url
from paste.httpexceptions import HTTPNotFo... | [
"roberto@dealmeida.net"
] | roberto@dealmeida.net |
87be072d919be62dd86ffe6083240bc43ebcb926 | ccebf0768f2ba17530c465042646687ce90658fe | /src/autoencoder/tables.py | c645b4f99023a540900cf3af0dbeebf5678e7e70 | [] | no_license | sailfish009/SRC | 0a9c86bb008d9ab8b2d9e42af543653d856359a1 | d4e812039542464e906fe34ebfe6867eef3b8fd3 | refs/heads/master | 2023-08-22T09:08:23.795917 | 2021-10-04T12:57:04 | 2021-10-04T12:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | import argparse
import glob
import pandas as pd
parser = argparse.ArgumentParser()
parser.add_argument("--path", type=str, default="./results/")
args = parser.parse_args()
csvs = glob.glob(args.path + "*.csv")
csvs_df = [
pd.read_csv(
csv, header=None, index_col=0, names=[csv.split("_")[-2].split("/")[-1... | [
"daniele.grattarola@gmail.com"
] | daniele.grattarola@gmail.com |
0a15e41796a54381f7c5ea8c62b1fa0f7bf90f7b | f6a3fef96cc376a93b96b15f7dda3c7bd2ff4b0f | /profiles/models.py | 7e23a9e67db427501757b558acf89ea767cda9e3 | [] | no_license | RishabhJain2018/evm | bde625317ab82edb71eac57673ec0f14fa2a1a0d | f36e21de47112eff80ba4976ed334a25c9d236f8 | refs/heads/master | 2020-12-06T12:51:54.145507 | 2016-10-14T17:41:04 | 2016-10-14T17:41:15 | 67,304,771 | 1 | 1 | null | 2016-09-19T17:31:48 | 2016-09-03T18:12:17 | Python | UTF-8 | Python | false | false | 711 | py | from django.db import models
from django.contrib.auth.models import User
class UserDetail(models.Model):
'''
It stores information about the users.
'''
user = models.OneToOneField(User)
github = models.CharField(max_length=200, blank=False, null=False)
linkedin = models.CharField(max_length=20... | [
"rishabhjain2018@gmail.com"
] | rishabhjain2018@gmail.com |
d0ce2bd2beb94857a80d37c8272a9bc79b6b5ffb | aaa85418696016fd883830d41738d5eec9da7c05 | /Loops/guessing.py | b2186c4c423982301ef64133b566093bf9fe0758 | [] | no_license | TimothyJao/pythonlearning | 1017a68f4320106f04fdb83b7c88a08eb6026236 | d00757bbf09788b6946b9a37468030e1dd1b592b | refs/heads/master | 2020-06-12T14:18:59.363288 | 2019-08-22T02:08:40 | 2019-08-22T02:08:40 | 194,326,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | import random
keep_playing = "y"
while keep_playing != "n":
guess = 0
val = random.randint(1, 11)
while guess != val:
guess = int(input("Guess a number between 1 and 10: "))
if val < guess:
print("Too high! Guess again.")
elif val > guess:
print("Too low! Gu... | [
"timothy.i.jao@gmail.com"
] | timothy.i.jao@gmail.com |
1a2f34916aa0d503d30dc52093083af58ea8b662 | 64d0fadae054f71c2b7ab3515c287d2b65de5d6f | /server/ordermanager/core/migrations/0001_initial.py | b7f197269dfc168cdbd6a9dca543202ebfde7d02 | [] | no_license | jasoneffendi/ISYS6597-TK3 | 58a4fd0630dec0b74b27374726d6daa90555006f | 54831f6f4af8e4e843699fb0cec57950bbea0f10 | refs/heads/master | 2023-03-01T14:51:48.180246 | 2021-02-06T07:26:25 | 2021-02-06T07:26:25 | 336,293,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | # Generated by Django 3.1.6 on 2021-02-06 03:24
from django.db import migrations, models
import django.db.models.deletion
import ordermanager.core.models.pegawai
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
oper... | [
"jasoneffendi27@gmail.com"
] | jasoneffendi27@gmail.com |
c4906d5dd8401f7daa497d48fac9424a118a32cf | d2e25085681ac995b16d7f5a2699e0134c219337 | /main.py | 47b830a151adeab4d5da7ae719119445950d66bf | [] | no_license | fineans/temp-mail | 8134ceebf87786a1bfd6838c9582d7554a99971a | 6fb682ddcef36be99549b641f3ddb90d419f5dee | refs/heads/main | 2023-04-28T23:11:47.474243 | 2021-05-20T06:49:45 | 2021-05-20T06:49:45 | 358,484,178 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | import pyperclip
import requests
import random
import string
import time
import sys
import re
import os
API = 'https://www.1secmail.com/api/v1/'
domainList = ['1secmail.com', '1secmail.net', '1secmail.org']
domain = random.choice(domainList)
def banner():
print(r'''
Temp Mail ... | [
"noreply@github.com"
] | fineans.noreply@github.com |
d5e1c7014bf8d9e61278ce68e402134d2183168c | 1e6ef86623d1ba96978859fa6a89e42848c0fafe | /pages/views.py | 8ed83abdc8bc9ab36cd12881a0d0c580ab105b8d | [] | no_license | khaledgedo/my_first_project_django | 4aa915bee523d84e889cacb6946753e172c4b361 | abea1bbd4fdc0946b0f61685421e0b95957b4adc | refs/heads/master | 2022-12-26T10:30:04.219746 | 2020-10-08T05:16:18 | 2020-10-08T05:16:18 | 302,237,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | """#from django.shortcuts import render
#from django.http import HttpResponse
from django.views.generic import TemplateView
# Create your views here.
#def homePageView(request):
# return HttpResponse('Hello, World!')
class HomePageView(TemplateView):
template_name = 'home.html'"""
from django.views.generic impor... | [
"1998kza@gmail.com"
] | 1998kza@gmail.com |
0baae21df3c83b8794f9038b6cf160e90c2fa15e | 1c171ad5af62dc76aec9eb823ab53e15f3d4f90c | /code/utils/sio_msgs.py | 4fd545a06c896f596b36d109ec76e0c499026a03 | [] | no_license | mgangster/RobotX-DeepLearning | d5ac1edbcc9f75a335a82402a79cbcefaa07786d | 7810df4326ab847a980b3b152870b9ae2c66cfd1 | refs/heads/main | 2023-02-06T16:11:44.458896 | 2020-12-13T07:11:16 | 2020-12-13T07:11:16 | 320,981,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | #!/usr/bin/env python
import base64
from io import BytesIO
from PIL import Image
def create_box_marker_msg(id, pose, dims=(0.7,0.7,2.0), color=(0,0,1,0.1), duration=0.4):
""" Creates a box marker message to be passed to the simulator.
Args:
id (int): Identifier for the box marker.
... | [
"gan.ma@outlook.com"
] | gan.ma@outlook.com |
b6ba771bfc4395a6d64aadf41ffaea00f087fa83 | 9bb0bc36b06bfcc5ab107f83ba7d55a5ce38c7ab | /tests/test_empty.py | 4b9095b6ba0aee028e90c735007fb28be6a34790 | [
"MIT"
] | permissive | LiBa001/disputils | 8ae94318c5993f1905f2a8052a9e63a91954a8b2 | 313404e02c781a999c44d7f3e87548c01e9cc7da | refs/heads/master | 2021-12-24T21:04:34.338738 | 2021-05-29T21:19:45 | 2021-05-29T21:19:45 | 169,900,101 | 127 | 42 | MIT | 2021-10-05T06:48:00 | 2019-02-09T18:39:21 | Python | UTF-8 | Python | false | false | 27 | py | def test_empty():
pass
| [
"git@libasoft.de"
] | git@libasoft.de |
f50c388f09f96c82d10b056d7d08a33bf3c57dec | 91061fb90c7fc710d0a84f7b1fdec12d27210263 | /tensorflow_probability/python/internal/samplers.py | 6b61256731d6b10b984f5371451045d7c2e8a15f | [
"Apache-2.0"
] | permissive | RaniereRamos/probability | d727f995eb40366c854ba7d453b861912e939d83 | e5df50d2b23f99338f1543cb6fe6a2bfa095f385 | refs/heads/master | 2022-12-02T00:11:41.809774 | 2020-08-12T19:16:25 | 2020-08-12T19:20:24 | 287,109,843 | 1 | 0 | Apache-2.0 | 2020-08-12T20:31:53 | 2020-08-12T20:31:52 | null | UTF-8 | Python | false | false | 7,297 | py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
fb19e1295635896b16fb46827d75613073fba4f8 | 233b8920b755fae3a244109354a93876bcfa4e10 | /i_seqLogica.py | 6e64817aa4d2b373dd8c818a8c963d66f89bfd86 | [] | no_license | ClaudiaStrm/UriOnlineJudge | 290132cdf0789ba5f67aba936aa86361859729f2 | db07316d084709827165432996f57e70f2f0d018 | refs/heads/master | 2020-06-26T16:41:54.130648 | 2016-12-04T07:19:53 | 2016-12-04T07:19:53 | 74,549,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | '''
Escreva um programa que leia um valor inteiro N. N * 2 linhas de saída serão apresentadas na execução do programa, seguindo a lógica do
exemplo abaixo. Para valores com mais de 6 dígitos, todos os dígitos devem ser apresentados
'''
x = int(input())
for y in range(1, (x + 1)):
print(y, y * y, y ** 3)
print(y, y *... | [
"s_moura@hotmail.com"
] | s_moura@hotmail.com |
a17dcf9c8c0134db26e0f4f57ea3d2d326935998 | 352137e8b912e98878ad7177f3648923064c6931 | /AutoTyper.py | 087244d4fdd22cca7c827d710d135f26d940fb99 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Jeremy-Leon/AutoTyper-OCR-Script | 321f455c9834e10e2a8ddf525dc1d8f68ff6dfec | 7c40ef3902257fafe9cd90045aff11de1ba29f94 | refs/heads/master | 2021-03-26T21:17:18.488174 | 2020-03-16T18:00:39 | 2020-03-16T18:00:39 | 247,750,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | from PIL import Image, ImageGrab, ImageOps
import pytesseract
import time
import pynput.mouse as ms
import pynput.keyboard as kb
from pynput.keyboard import Key, Controller
keyboard = Controller()
pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files/Tesseract-OCR/tesseract.exe'
class AutoTyper:
clic... | [
"46580391+Srkinko@users.noreply.github.com"
] | 46580391+Srkinko@users.noreply.github.com |
1685da0aea71988384d8cf1512c114fe4eabe8cc | 42095168e32e408cf0eaa8aa424da6100b17cadf | /setsparser.py | 8bea02ceebb87d80eaa52d5b9a9fd1ca8f016264 | [] | no_license | ninjazeroone/dynamics-setsparser | bd0acc85bf8a8e13a4d1cdb82cf00e2f8727e3d1 | 75d0b05383f422964a0bbe84d8e079efb6e7b6e8 | refs/heads/master | 2020-04-28T22:28:00.352270 | 2019-03-14T13:49:13 | 2019-03-14T13:49:13 | 175,618,699 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/python3
import argparse
import requests
from requests_ntlm import HttpNtlmAuth
import sys
#dealing with arguments
parser = argparse.ArgumentParser()
parser.add_argument('urlGet', action='store', help='url to get all the sets')
parser.add_argument('-uP', action='store', dest='urlParse', help='url to parse ... | [
"noreply@github.com"
] | ninjazeroone.noreply@github.com |
13be31c8a1ff4988209e84fb040dc898e547c42f | b893e1cf8d1f6c16cb3e8691c08232763ca3195f | /homework/migrations/0004_post_image.py | 0a1e0ce257db80fa64eb5aff91cec915d22e39c1 | [] | no_license | Jacup/p_interdomowa | f1e112d0a51f482cd1f4707b8ddc869691bc8092 | b9896ac51b610681d4617269e01a8687700d66cd | refs/heads/master | 2021-01-25T09:10:50.745314 | 2017-06-11T07:00:05 | 2017-06-11T07:00:05 | 93,797,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import datetime
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('homework', '0003_auto_20170611_0029'),
]
operations = [
migrations.Add... | [
"jacubgr@gmail.com"
] | jacubgr@gmail.com |
37a13959fde12095b8e2cb0f8775061e7677e9f2 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/testbase/azure-mgmt-testbase/generated_samples/favorite_process_create.py | 3fab21d007912206ca6d249b90b6843e148bcd6d | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,724 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.