blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8b31b9716c7fcce8782f533d9571a3ce2f38497 | 7b0c697ac16f1e9ec4f8482d6d11feb5bfd00cc5 | /restProject/urls.py | f4de89b93279d53e5e795280fecab01356c45d78 | [] | no_license | dhanushkomari/restProject | 8004a1d13ec913cbb3b5e96cabb0481c33ad127f | 48a3588251d084c33f99ec9f27afd215db7948a4 | refs/heads/master | 2023-01-03T12:31:16.941008 | 2020-11-04T10:00:11 | 2020-11-04T10:00:11 | 309,660,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | """restProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-b... | [
"dhanushkomari@gmail.com"
] | dhanushkomari@gmail.com |
fe8c1da06cb5220b0e5ee515224cc1101de51d57 | 6be8aa517e679b33b47d35f100e6590902a8a1db | /DP/Problem54.py | 72cbb8c1c999c705d1e1d21afdf23d8dfda03060 | [] | no_license | LeeJuhae/Algorithm-Python | 7ca4762712e5e84d1e277abecb3bf39c9cbd4e56 | 729947b4428205adfbac194a5527b0eeafe1c525 | refs/heads/master | 2023-04-24T01:02:36.430970 | 2021-05-23T07:17:25 | 2021-05-23T07:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # https://www.acmicpc.net/problem/17182
import sys
from itertools import permutations
read = sys.stdin.readline
n, st = map(int, read().strip().split())
dp = [list(map(int, read().strip().split())) for _ in range(n)]
for k in range(n):
for i in range(n):
for j in range(n):
dp[i][j] = min(dp[i]... | [
"gusdn0657@gmail.com"
] | gusdn0657@gmail.com |
20d92aad7b9b2ce1096f58b5648e6e206b6bd5df | b1bf1bbb2b9fed57d6d4e45a3230b60fc219d15c | /test/1.5.2017/snake.py | 5d18cb65b9390317786a1e1ead6ee55c5552b4d3 | [] | no_license | Hi-Im-darkness/snake | 717df249bb5fd35ae1d6e5b1afaac22a7f5ffb85 | 5a6a8eb1d43811fdb2451ec6ade0cf9cc77b112d | refs/heads/master | 2021-01-20T10:05:08.319697 | 2017-05-04T23:37:14 | 2017-05-04T23:37:14 | 90,318,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,350 | py | import tkinter as tk
import time
class Pos:
def __init__(self, x, y):
self.x = x
self.y = y
def __eq__(self, oPos):
if self.x == oPos.x and self.y == oPos.y:
return True
return False
class Obj:
def __init__(self, canvas, pos, color):
self.canvas = can... | [
"nghthach98@gmail.com"
] | nghthach98@gmail.com |
8251ffe046d39813fb96ab3eda7aaf564efa9dde | 21155deb4419380b995c09946a680a261c524b5b | /meraki/models/subnet_model.py | f08d566a104c927c12dbea3f8f178de10ea8c155 | [
"MIT"
] | permissive | dexterlabora/meraki-python-sdk | 620efab5e6b6eb32ca52308be1cb740748fc0f30 | f6e6d61bd8694548169cd872b0642def69115bcb | refs/heads/master | 2023-05-25T06:50:21.845198 | 2019-06-13T12:22:34 | 2019-06-13T12:22:34 | 182,791,973 | 0 | 1 | NOASSERTION | 2023-05-22T21:37:22 | 2019-04-22T13:22:08 | Python | UTF-8 | Python | false | false | 1,690 | py | # -*- coding: utf-8 -*-
"""
meraki
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class SubnetModel(object):
"""Implementation of the 'Subnet' model.
TODO: type model description here.
Attributes:
local_subnet (string): T... | [
"git@apimatic.io"
] | git@apimatic.io |
2254441003b6a6ba9046998db029f6d874870846 | fd2e812eaa6c1cadfdf1c57755a9fe1cbdc6b71f | /encoder/_preprocessing.py | 09e9425fe530cca9610c786734eb6aa1ab0241fa | [] | no_license | Sarut-Theppitak/PSPnet_MB2_RepVGG | 3411e91f6f6d4eaaaf0990cd00c71149dae0632e | 51c799d6362025a49fb7b6b1a39593e7f2e3a6b2 | refs/heads/main | 2023-03-14T02:21:59.086229 | 2021-03-12T03:59:41 | 2021-03-12T03:59:41 | 346,930,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | import numpy as np
import albumentations as albu
def get_preprocessing(preprocessing_fn):
"""Construct preprocessing transform
Args:
preprocessing_fn (callbale): data normalization function
(can be specific for each pretrained neural network)
Return:
transform: albumentati... | [
"saruttheppitak@gmail.com"
] | saruttheppitak@gmail.com |
97854bce5074f25e872e5049683998e3f85bf0e5 | 902eb829f1e2f47b5057ea23f807bb5bd0519df6 | /curate_experiment_path.py | 7f572e7e9f82177c61c4d234d031992a5b1a5951 | [] | no_license | sriramrn/clam | 636680bea23e2c1bb4992c02c0ebb55620179d79 | 10703a11fab333e964f9a7e8061f69fe5086b51f | refs/heads/master | 2022-03-26T01:09:42.653556 | 2020-01-11T11:43:44 | 2020-01-11T11:43:44 | 125,971,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 8 14:28:34 2018
@author: Sriram Narayanan
"""
import glob
def paramdict(pathtoparamfile):
f = open(pathtoparamfile,'r')
params = f.readlines()
f.close()
paramlist = []
entry = []
for i in range(len(params)):
if... | [
"sriram.r.narayanan@gmail.com"
] | sriram.r.narayanan@gmail.com |
9d7fa1949f2329fb360cf30a14031fc756ee8814 | 83f0cdbc9e1f7261dcd1ff5fc0c8ef4280e84fbb | /ADaM/python/cdisc_library.py | 8437f8e380df5cc47b45fd6272dc69f18a942760 | [
"MIT"
] | permissive | mihir-shinde/CSS2020-Hackathon | 0c39d59ddb1503f0c4170b230f789b8f29fee9ae | f9538ee425fe7eb0573757cdd2346d1f8c7998c1 | refs/heads/master | 2023-03-16T05:06:26.518324 | 2020-09-25T16:20:12 | 2020-09-25T16:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,958 | py | import requests
class CDISCConnector:
BASE_URL = "https://library.cdisc.org/api/"
def __init__(self, username, password):
self._client = None
self._username = username
self._password = password
self._cache = {}
@property
def client(self):
if self._clien... | [
"glow@mdsol.com"
] | glow@mdsol.com |
b1b73aec37759c72a704ea13002ec87a409dff1c | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/matrix-org_synapse/synapse-master/synapse/__init__.py | ff251ce5973b833547a661e133844a21b6b52695 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 700 | py | # -*- coding: utf-8 -*-
# Copyright 2014-2016 OpenMarket Ltd
#
# 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 applicab... | [
"659338505@qq.com"
] | 659338505@qq.com |
9dafd19f9c9a55401753b199ad8db113b6b87eea | 07cdccd585e19acda514be54c6840bfedc951ae8 | /main.py | 9ffb3d5935b831bed7ce04591ddf8757c602523d | [] | no_license | HemantJaiman/Spam_classifier | 942512b62cf67a050044cd7af4de1c2fd4a2991d | 3606bb77ada123ac66eaf67b553272a64aa7e9f0 | refs/heads/main | 2023-06-24T20:10:26.756826 | 2021-07-15T07:25:18 | 2021-07-15T07:25:18 | 386,202,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py |
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
from nltk.stem import PorterStemmer
import matplotlib.pyplot as plt
from wordcloud import *
from math import log, sqrt
import pandas as pd
import numpy as np
mails = pd.read_csv('spam.csv', encoding = 'latin-1')
#train test spli... | [
"noreply@github.com"
] | noreply@github.com |
ebec3629eb42d836bab2a456034eb71b975018dd | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/workloads/azure-mgmt-workloads/setup.py | 98da49aa95a0f0e5fcc66f523e70cc2345923cf2 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 2,764 | py | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
f165e00d444f850aee54fecab36cf98b9209d337 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy2453.py | 5211053a79a7324e34dd64e88d63b85985dd3c0e | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,238 | py | # qubit number=4
# total number=42
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
60c38a9c6cfadd1e3504578eba36268da313371f | cb0737858ac70539cf2b23a0a239d60abd4553e0 | /Week-1/11sandSquares.py | 00cc7a1681d50d36413c25e3a4a31e3f4a694ac9 | [] | no_license | riatalwar/AoPS-Intermediate-Programming-With-Python | 1a87e0ee91278999cdcba3ad2ac35eec91a2bdc6 | 94710dd915ec7bd179d3bd45383fc32280c922d5 | refs/heads/master | 2023-02-09T13:17:12.041209 | 2021-01-06T16:51:44 | 2021-01-06T16:51:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # Python Class 2532
# Lesson 1 Problem 2
# Author: riatalwar (486154)
# There are two 3-digit numbers n having the property
# that n is divisible by 11 and
# n/11 is equal to the sum of the squares of the digits of n.
# Find both values of n. You may submit them in either order.
def find_numbers():
numbers = []
... | [
"riatalwar@hotmail.com"
] | riatalwar@hotmail.com |
8aa95b8aee556ee8fa7fb2ff5c965d5021d95fbd | 60561fd3efd5ecd8f984c4767c8e1017f66dbfd0 | /apps/unsubscribes/migrations/0002_unsubscribeemail_user.py | a5468036448b33392ed58db1295c00f26159ef47 | [] | no_license | kaushalaman97/react | fd3b691340ba877ace3b9feec0a93103b30f466f | 4b34ace3357fbba0aa6616d761da2f501993bcc4 | refs/heads/main | 2023-03-08T16:33:48.675925 | 2021-02-26T14:23:38 | 2021-02-26T14:23:38 | 342,596,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # Generated by Django 3.1.4 on 2021-02-24 08: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),
... | [
"mohit.kaushal@techstriker.com"
] | mohit.kaushal@techstriker.com |
633661f1ed2f3acf817bd8e8a0ec408fcac7dc57 | 8c875f0b580f9040dd21cd6662f2276c2eba49ee | /hurdle_regression.py | f3b3c66cdb5a4ae21b61480afb3e31e3b0c22222 | [] | no_license | NathanielBlairStahn/hurdle-regression | 88abf83698c216ac62c30782b7b8bc625fcc5bd6 | a161d289799a45f724315181ddb6c7ae12f65ef2 | refs/heads/master | 2020-03-07T07:45:36.256345 | 2018-03-30T04:41:57 | 2018-03-30T04:41:57 | 127,357,734 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | """Module to implement hurdle regression models.
"""
import numpy as np
from sklearn.linear_model import LinearRegression, LogisticRegression
class HurdleLinearRegression():
"""Implements linear regression with a hurdle at 0.
"""
def __init__(self):
self.logistic = LogisticRegression()
... | [
"nathaniel.blair.stahn@gmail.com"
] | nathaniel.blair.stahn@gmail.com |
0315172cd8f2f418b8753f197edeb6c03507474d | ac0b9c85542e6d1ef59c5e9df4618ddf22223ae0 | /kratos/applications/FluidDynamicsApplication/python_scripts/apply_custom_velocity_constraints.py | 22b0262260595debdf02adca990f94e5f573eb8c | [] | no_license | UPC-EnricBonet/trunk | 30cb6fbd717c1e78d95ec66bc0f6df1a041b2b72 | 1cecfe201c8c9a1b87b2d87faf8e505b7b1f772d | refs/heads/master | 2021-06-04T05:10:06.060945 | 2016-07-15T15:29:00 | 2016-07-15T15:29:00 | 33,677,051 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | from KratosMultiphysics import *
from FluidDynamicsApplication import *
def Factory(settings, Model):
if(type(settings) != Parameters):
raise Exception("expected input shall be a Parameters object, encapsulating a json string")
return ApplyCustomVelocityConstraintProcess(Model, settings["Parameters"])
... | [
"enriquebonetgil@hotmail.com"
] | enriquebonetgil@hotmail.com |
7eede2990f6e638af015bc568bd54608b7a9581e | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /events_write_1/event-bu_delete.py | 1d62d387f9b2e00234829669c850e7bdd2a0f3aa | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/events/delete-event-bus.html
if __name__ == '__m... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
bdeab10718c8421fb9001a909da9e2f385a9a434 | 815d3e741dea557f4cf492547d50c2f05ebb230b | /tests/test_spatio_temporal_interpolation_quality.py | f650b983b4bfb0f4707ce555c7f5187fe779f899 | [] | no_license | Evnica/Interpolation2017 | 36582e52de9eb5bfdb5ac78bf1d397a1422c3dee | ae18c77e90a9daa34321d8a2dae25eef3a5239c9 | refs/heads/master | 2021-01-11T09:17:17.175650 | 2017-01-29T23:32:34 | 2017-01-29T23:32:34 | 77,075,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | from interpolation.analysis import Analysis
from interpolation.iohelper import Reader
import interpolation.utils as utils
import interpolation.qualityassessment as qa
reader = Reader('input/wetter_nov.csv')
analysis = Analysis(60, 10)
reader(2, 3, 4, 13, 1, analysis)
time_handler = utils.TimeHandler(reader.times)
po... | [
"evnica@gmail.com"
] | evnica@gmail.com |
63eedeed5df1c4e71ce5ec0366ac35b6be2deb26 | dc2d4d0b5982c47b453ab0b9beecc4da12a07338 | /MOOC/turtlegoto.py | 10540717529bd68c9a8b984208d1a63e1f9dd128 | [] | no_license | zou23cn/Python | 6a2c89935b6d7c0e508364934ef40db18ed784f4 | 5104823a9b98067876583f37bdf6219dd8451a28 | refs/heads/master | 2021-06-25T13:35:42.722701 | 2021-01-14T10:02:48 | 2021-01-14T10:02:48 | 182,368,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import turtle
turtle.setup(900, 500, 0, 0)
turtle.goto(100,100)
turtle.goto(100,-100)
turtle.goto(-100,-100)
turtle.goto(-100,100)
turtle.goto(0,0)
turtle.done()
| [
"zou23cn@gmail.com"
] | zou23cn@gmail.com |
9c884ce6346e2b5e3bb6f88c449801d9cfd42f60 | 78461d51d7cbabb5a08a91f7bccaa85c36aae322 | /source/digits.py | a69713acd8764ea165ff1c8ae22fbc0d035efb5b | [] | no_license | TimurFatykhov/Campus-2.0 | 707069eb30e21a4acb2aba5eaf2f3ef1b557e57d | 20f943d99bf2102eecbe3997e0536ee2eb4b23cd | refs/heads/master | 2022-04-23T11:25:10.330134 | 2020-03-06T11:11:30 | 2020-03-06T11:11:30 | 219,302,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,419 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import load_digits
def get_X_y():
"""
Загружает данные с цифрами
Возвращает две переменные:
-------------------------
- X: матрица 1797x64
картинки в виде векторов длинной 64
- y: матрица 1797x10... | [
"fatykhov.timur.m@gmail.com"
] | fatykhov.timur.m@gmail.com |
cc2d67c10951e85ac38fb33a2a8857e71a6610fd | 1c67732a24042a991cc9f7e764d4640522391972 | /back/gamedata/admin.py | d0e2b17e7528b7c6c839144c30b720f95932f249 | [] | no_license | sungguenja/bsgg | 1061ccc6f5f08ed9ad14d3a332af020ec7a5df22 | 447283378ac3bb8f489e2a4662bfb6513bc37be2 | refs/heads/master | 2023-04-01T14:15:05.491775 | 2021-04-06T09:46:25 | 2021-04-06T09:46:25 | 318,800,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from django.contrib import admin
from .models import Area, Animal, Item, AreaItem, AreaAnimal, AnimalItem
# Register your models here.
admin.site.register(Area)
admin.site.register(Animal)
admin.site.register(Item)
admin.site.register(AreaItem)
admin.site.register(AreaAnimal)
admin.site.register(AnimalItem) | [
"59605197+sungguenja@users.noreply.github.com"
] | 59605197+sungguenja@users.noreply.github.com |
22c48bb5b52443319e5ff3b551288a22cd8140df | f7f28cfcfbea56c7000681534bfe64f23212e3e5 | /vote-api/lib/python3.6/shutil.py | 7fde999ad626d22578109dfb3981ec330bfcf5d9 | [] | no_license | mew177/vote-api | c26ad2b508f39418eb91cc366f1e7355176d0945 | b95e29c9223636d12d34de817035f164dd71d1d4 | refs/heads/master | 2023-08-03T14:17:29.651960 | 2020-06-19T03:20:11 | 2020-06-19T03:20:11 | 273,392,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | /Users/Rycemond/anaconda3/lib/python3.6/shutil.py | [
"mew177@pitt.edu"
] | mew177@pitt.edu |
993c1305af4b69cbcf5f2700baeb90c2acbf25d4 | cffbeaa47d477ee7c4439cbac67b11f0e240f12a | /api/views.py | 0ef1f0d5f837032a6e61841e074b777591ec097a | [] | no_license | mnpappo/handwriting_api | 7ad6c52ce22e7b217b5ebad339f2be75ca2aed76 | 93d48043b7b329de78212fa957d376f97e581014 | refs/heads/master | 2020-09-16T08:24:26.940930 | 2017-06-15T23:35:59 | 2017-06-15T23:35:59 | 94,486,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,280 | py | import numpy as np
np.random.seed(1337)
from django.shortcuts import render
from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from api.serializers import UserSerializer, GroupSerializer
from rest_framework.views import APIView
from rest_framework.response import Response
from rest... | [
"mnpappo@gmail.com"
] | mnpappo@gmail.com |
67a4431f2cf41a56085422a65fa040772f0312e1 | 5edbc16216806de0c32634fae1ae67c4773fbf65 | /wiki/migrations/0002_auto_20160820_2351.py | 8878c2f9679bb51843d6d084ebf7537e0c527bb0 | [] | no_license | MilesWilliams/klaritywiki | 431d9139309c2997aeaeeb02afce9b4da43cff8d | 197c0f9c4094a64e437eb2a51b531747c262290b | refs/heads/master | 2020-12-02T20:44:30.703329 | 2016-08-22T12:10:48 | 2016-08-22T12:10:48 | 66,269,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-20 21:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('wiki', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name... | [
"miles@klarity.co.za"
] | miles@klarity.co.za |
29cc73d94435bfd91f4071297e290173c3e70a6f | 86cc876d2b7cbc29d5c13a73d4d985079c73ed68 | /thingflow/adapters/mqtt.py | fe0b20c00a3689ab9dac8f62fb3d9c69fce6d0b5 | [
"Apache-2.0"
] | permissive | masayoshi-louis/thingflow-python | 74fe6f90a37803a27bd69eff9163f7fb668836b4 | c191a8fedac6a962994945830c872e957f929e29 | refs/heads/master | 2020-03-26T08:13:58.334964 | 2017-08-08T03:59:09 | 2017-08-08T03:59:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | # Copyright 2016 by MPI-SWS and Data-Ken Research.
# Licensed under the Apache 2.0 License.
import time
from collections import namedtuple
try:
import paho.mqtt.client as paho
except ImportError:
print("could not import paho.mqtt.client")
import ssl
from thingflow.base import InputThing, OutputThing, EventLo... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
56369aec96a4cef7cf632a602fd07ffec540ec5f | ee3e8773f86da51e39fe1b1a57237ad558c0f991 | /plotting/easy_plotting.py | ef5f64774999291358476bfc58818463ad0dfdd9 | [] | no_license | qyx268/plato | 72cd9ca2a6d5e28cd1618433ebc6af21fd2161e7 | b7c84c021bc26d63c768e9d08e28bbaf77d79a87 | refs/heads/master | 2021-01-15T21:07:56.182831 | 2016-04-15T12:33:21 | 2016-04-15T12:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | from collections import OrderedDict
from general.nested_structures import flatten_struct
from plotting.data_conversion import vector_length_to_tile_dims
import plotting.matplotlib_backend as eplt
import numpy as np
__author__ = 'peter'
def ezplot(anything, plots = None, hang = True, **plot_preference_kwargs):
""... | [
"peter.ed.oconnor@gmail.com"
] | peter.ed.oconnor@gmail.com |
0c30fc865d3d875c8782ce0bfcccbc2af6fbe095 | b32560d3f585c2f1c3e7db848c216e0c32ba08e2 | /Programmers/Python/정렬_K번째수.py | 8118ba1ef103ed9c88d703bb2b79271c1f751e8a | [] | no_license | gimmizz/Data-Structure-Algorithm | 48fb7f5a1c9308200a3e020f04b13798b474f6c7 | b8ecf12c71370af89a05022b67e6ae18ddfb3f63 | refs/heads/main | 2023-05-09T04:35:01.088474 | 2021-05-23T14:27:00 | 2021-05-23T14:27:00 | 321,087,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | def solution(array, commands):
answer = []
for command in commands:
sorted_array = sorted(array[command[0]-1:command[1]])
# array[:command[0]-1] + sorted(array[command[0]-1:command[1]]) + array[command[1]:]
answer.append(sorted_array[command[2]-1])
return answer | [
"69383392+gimmizz@users.noreply.github.com"
] | 69383392+gimmizz@users.noreply.github.com |
37d2d633bb293144044fac2ac98d89645e361fd5 | 27d028f5def725279ade9ebcd22e41464d980871 | /locallibrary/catalog/models.py | f46380126b69e374cfcf5c051c9896f43f383f9d | [] | no_license | MarcusBlaisdell/django-library | 8fc952290d463c87594099ca10333867f40ebb9f | 376780d17204529c8c088f428821426bfefa4e37 | refs/heads/master | 2023-02-15T03:49:45.794019 | 2021-01-08T23:00:46 | 2021-01-08T23:00:46 | 328,028,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,883 | py | from django.db import models
from django.urls import reverse # Used to generate URLs by reversing the URL patterns
import uuid # Required for unique book instances
from django.contrib.auth.models import User
from datetime import date
# Create your models here.
class Genre(models.Model):
"""Model representing a b... | [
"marcus.blaisdell@wsu.edu"
] | marcus.blaisdell@wsu.edu |
6c6fb1d95838c3f889b46a7dc6de313d15b867a4 | 01f8b69a1d13578bd013f5e60199ad151863799c | /examples/_relative/xxx.py | ef8d091dbbd19d048dc7c9164f14db13c6a7efe3 | [
"MIT"
] | permissive | podhmo/pyinspect | e3dd9331627091de90a172d9d7eff34307bf2496 | 32ff53c7ceb6a382b635f6c8b98b15f2213d18ff | refs/heads/master | 2020-03-22T20:19:06.961689 | 2019-12-19T15:14:26 | 2019-12-19T15:14:26 | 140,589,327 | 4 | 0 | null | 2019-12-19T15:14:28 | 2018-07-11T14:45:17 | Python | UTF-8 | Python | false | false | 123 | py | def f(x):
return g(x, 1)
def g(x, acc):
if x == 0:
return acc
else:
return g(x - 1, acc * x)
| [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
a60bfa7980001c986bed8b71d56e75e0c5b2a66e | 1730f8cea72838a677b52fe82e72d91aa8f68f75 | /003_queues/003_solutionCourseProvided.py | 37326ef9b6a6f674a399d5971a030bad629104f7 | [
"MIT"
] | permissive | remichartier/026_UdacityTechnicalInterviewPrep | 354097e25972a7214b8d1f84fcd3e80b69e79333 | fa52b5f57bdd4e79751059971bb9f73fa0ca8004 | refs/heads/main | 2023-04-07T15:25:16.499791 | 2021-04-18T05:15:23 | 2021-04-18T05:15:23 | 354,467,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # I managed to write all of the methods in one line!
class Queue(object):
def __init__(self, head=None):
self.storage = [head]
def enqueue(self, new_element):
self.storage.append(new_element)
def peek(self):
return self.storage[0]
def dequeue(self):
return self.storage... | [
"remipr.chartier@gmail.com"
] | remipr.chartier@gmail.com |
d26c3b842a62198bbbe215f07abe2319e9795251 | 445d666367580241f40a997cdf4b57ef53559720 | /tests/psd_tools/psd/test_image_data.py | d68cfccbddcb7ce16791f2e7b76e254c2ce9d8a3 | [
"MIT"
] | permissive | tannerhelland/psd-tools | 32b7747c6286024ebea9cf0c9f71483f857a4fc7 | f4d3fbdcb2164ab745046f9663ae2275a5b2b1ba | refs/heads/master | 2022-10-27T22:02:25.498880 | 2020-05-25T01:50:50 | 2020-05-25T01:50:50 | 275,910,147 | 1 | 2 | MIT | 2020-06-29T19:41:42 | 2020-06-29T19:41:42 | null | UTF-8 | Python | false | false | 2,137 | py | from __future__ import absolute_import, unicode_literals
import pytest
from psd_tools.constants import Compression
from psd_tools.psd.header import FileHeader
from psd_tools.psd.image_data import ImageData
from ..utils import check_write_read
RAW_IMAGE_3x3_8bit = b'\x00\x01\x02\x01\x01\x01\x01\x00\x00'
RAW_IMAGE_2x2_... | [
"KotaYamaguchi1984@gmail.com"
] | KotaYamaguchi1984@gmail.com |
9f87f840edf1086df8955c74ea004ebccd29f992 | 9a85b0c1c4af8614ca66bd5815c40bc7de57a9fa | /Ohja/ohja_1.py | 948888244fe4774c5c76169a3e810058883b2ad7 | [] | no_license | tviivi/Python-kertausta | e2ec8d3dd96ee36bfe0cb6f47364bac5b2d327d0 | d86addc6940f3a22e7b2172b8216387615bc23a8 | refs/heads/main | 2023-03-18T13:24:43.580623 | 2021-03-19T14:15:48 | 2021-03-19T14:15:48 | 348,300,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | from datetime import *
# Oliot ja metodit
def rivien_summat(matriisi: list):
for i in range(len(matriisi)):
summa = 0
for j in range(len(matriisi)):
summa += matriisi[i][j]
matriisi[i].append(summa)
# Luokat ja oliot
def vuodet_listaan(paivamaarat: list):
apulista = []... | [
"viivi.tiihonen@helsinki.fi"
] | viivi.tiihonen@helsinki.fi |
61d14f737007b347215fcd14e2e8ecc34714c78e | 276632ade57564054c26d701cac0d5353b93c935 | /obj.py | 831d59a0a2846a98b9df8faf5c1973f7645e1241 | [] | no_license | kamel156/Systemy-ekspresowe | a8f1985f6212333ca4eea2cc71d0f60c9fd138d0 | 3821189fb5e301a899e5429d4db9a293d246ae3e | refs/heads/main | 2023-05-23T16:32:53.475324 | 2021-06-17T21:28:04 | 2021-06-17T21:28:04 | 376,932,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | import cv2
import numpy as np
# import video
cap = cv2.VideoCapture('1.mp4')
counter = 0
#Load Yolo net
net = cv2.dnn.readNet('yolov3tiny.cfg', 'yolov3-tiny.weights')
classes = []
with open('cocco.names', 'r') as f:
classes =[line.strip() for line in f.readlines()]
layer_names = net.getLayerNames()
output_layers ... | [
"kamelus@interia.eu"
] | kamelus@interia.eu |
d913b9c0afd66a6ee6f04517d7ca25d9e5a27bf4 | 8dd06c1cb548f1a2457607e352646f3e20efc2c3 | /front/__init__.py | 5d1715e08b4f1cd4da658cd7d2bdd4437a3a51c7 | [] | no_license | lordhamster66/Automation-Engineering | 98f3df9ca14957acd481ddb7e2acd6ae94a681d4 | 10cf77f04a204784da1a03e17c46ce5147d2f56e | refs/heads/master | 2022-11-08T12:08:39.331341 | 2017-06-16T05:59:27 | 2017-06-16T05:59:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "Breakering"
# Date: 2017/5/24
| [
"1079614505@qq.com"
] | 1079614505@qq.com |
9a0ceb1f8a9e8cca78d4939bcf31c244e4acd324 | e1abd868bfad11bf93c50eee1dc9976674de2358 | /scaffold/suite/mass_flux_spatial_scales_plot.py | e0c9cd702c8515ce963bc91851a1de04cd43b566 | [] | no_license | markmuetz/scaffold_analysis | 5c7e9d04b24abe3462c8946381f4cab264bf09e0 | c02d32536c801b23ac8a71e36d25fa922e7cfd94 | refs/heads/master | 2022-06-03T16:13:54.775718 | 2022-05-31T13:22:24 | 2022-05-31T13:22:24 | 92,677,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,255 | py | from itertools import groupby
import matplotlib
import numpy as np
matplotlib.use('Agg')
import pylab as plt
from omnium import Analyser
from scaffold.utils import cm_to_inch
class MassFluxSpatialScalesPlotter(Analyser):
"""Plots histograms of mass flux for each power of 2 (n), and expt."""
analysis_name =... | [
"markmuetz@gmail.com"
] | markmuetz@gmail.com |
85a8fa3fb7694fce31e9cb1f369c3a65c6b78a3c | c50155808f38f48e00dc3321e137de24926250a7 | /lib/dock.py | 9aed7236489639fc7eba012ffe0979c30e036385 | [] | no_license | irobert0126/ParellelExecution | 788a440feada94fb6d149e8deeeddf570f23e835 | b9a17df4129cce8f233fd21ac4309180f43a6f15 | refs/heads/master | 2020-03-19T06:57:50.186472 | 2018-06-04T19:58:00 | 2018-06-04T19:58:00 | 136,071,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | import docker, time
from io import BytesIO
from docker import APIClient
client = docker.from_env()
print client.version()
cli = APIClient(base_url='unix://var/run/docker.sock')
def get_current_time():
return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime())
def cleanup():
global client
for cli in client.contain... | [
"t@tongbotest.2fjn4vs4cr4uhlfyeomffjimcg.dx.internal.cloudapp.net"
] | t@tongbotest.2fjn4vs4cr4uhlfyeomffjimcg.dx.internal.cloudapp.net |
74aeb00ae6f9fbcc90d8241447d5c58ee25aebea | 31d3dc809c82290056a27cc8ac7bd3d09c30550a | /nimbusenv/bin/django-admin | b152cc53bb27494b16c570a059b93282a4fd6032 | [
"MIT"
] | permissive | konoufo/nimbus | 4785be902eb18a0ef6c0d637ecedca0e54b715c6 | 9d07534e2658d590eaaf51784dcd17580c2a3725 | refs/heads/master | 2021-01-09T06:22:30.222432 | 2017-02-05T16:07:38 | 2017-02-05T16:07:38 | 80,975,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | #!/home/kevyn/nimbus/nimbusenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"root@ip-172-31-20-119.us-west-2.compute.internal"
] | root@ip-172-31-20-119.us-west-2.compute.internal | |
e06d2b176396a29ae9f62cab21aeb06a0c165897 | e0980f704a573894350e285f66f4cf390837238e | /.history/news/models_20201124125405.py | ad4367cc96dbe5bc9bd177dc7020584d0a479ff6 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.db import models
from wagtail.contrib.forms.models import AbstractEmailForm
# Create your models here.
class NewsPage(AbstractEmailForm):
tempalte ='news/news_page.html'
leanding_page_template = '' | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
c67ec6cd4426884633178328c210265009ba7e05 | dd67bc8452795a3632c360ce67324004d620ec09 | /pytools/runPTCLM.py | a09fc9b2ea5727592aa000f6adb66161297079c5 | [] | no_license | fmyuan/elm-pf-tools | ebcc4b7bcb3afc78f154b220510e477a1d228a26 | deceaf4eb38c267654c1434138891710c742ed0c | refs/heads/master | 2023-08-18T01:54:57.218105 | 2023-08-01T23:03:56 | 2023-08-01T23:03:56 | 196,645,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,757 | py | #!/usr/bin/env python
import os, sys, stat, csv
from optparse import OptionParser
import glob
#DMR 4/16/13
#python ./runPTCLM.py does the following:
# 1. Call routines to create point data (makepointdata.py, makemetdata.py) - removed
# 2. Set point and case-specific namelist options
# 2. configure case
# 3. buil... | [
"yuanf@ornl.gov"
] | yuanf@ornl.gov |
e7f9eb6f18a705e2446062b9a7609948f8193c95 | 46349356d4812a6bf04a1dff4ee3311864f8b7ff | /ma_py/mic_utils/estimate_gg_pdf_nm_fast/estimate_gg_pdf.py | 494d1dd50b6c30a772ba4dcee8a2594e1c295ed2 | [] | no_license | alexdoberman/ma | 1ca9d20f64d0e8c87feff9f7bb04d09d3088aeb3 | 219e5e87b80c6a795c0d4161b3ad22b9973ed745 | refs/heads/master | 2022-07-17T13:15:21.672335 | 2020-05-12T15:10:40 | 2020-05-12T15:10:40 | 263,365,873 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,807 | py | # -*- coding: utf-8 -*-
import numpy as np
import soundfile as sf
import matplotlib.pyplot as plt
import glob
import math
from scipy import optimize
import scipy.stats as stats
def fun_ML_c(f, *args):
"""
Calc log likelihood for complex data
:param f: - shape
:param args:
:return:
"""
(s... | [
"lavrentyev@speechpro.com"
] | lavrentyev@speechpro.com |
b5e2bc3969fa3ac42f856de318b96ec26f61200b | e76b659cd551ce65d63c868f8989ce05fe5e96a6 | /driving_image.py | 67d10ac7b0decd1c232e47649d5c53423f04d68e | [] | no_license | jyuatsfl/unsupervised_co_part_segmentation | 1ec9ffa99305e419e25cdb74dfe27497bd6a9a8b | 76b2c70e5636afcc4c2596134200e7397a7239db | refs/heads/main | 2023-08-01T01:57:53.376504 | 2021-09-15T20:56:05 | 2021-09-15T20:56:05 | 406,919,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,509 | py | import model as net
from argparse import ArgumentParser
import torch
import os
import cv2
import numpy as np
import matplotlib.pyplot as plt
import imageio
from imageio import mimread
from skimage.color import gray2rgb
def read_video(name, frame_shape=(128,128)):
"""
Read video which can be:
- an image o... | [
"790717887@qq.com"
] | 790717887@qq.com |
c9654449609411fecd1626377a4475510a30daff | b210d58b724c7199f43ddde031eba40996c82257 | /submissions/sm_028_sagar/week_17/day_6/session_1/blueprint_auth.py | b9f76b6d74f3356b39b00be35fdc07f0147a9295 | [] | no_license | Tanmay53/cohort_3 | 0447efd2dc8b3c1284b03da7326b35393fdf5f93 | 351fb6e1d0c29995fb5cb3b6af411dbcf0ced64c | refs/heads/master | 2021-05-23T17:55:36.508185 | 2020-04-05T12:58:07 | 2020-04-05T12:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | py | from flask import Blueprint
from flask import request
import hashlib
import os
import json
import csv
auth = Blueprint("auth", __name__)
def generate_salt():
salt = os.urandom(16)
print(salt.encode('base-64'))
return salt.encode('base-64')
def md5_hash(string):
hash = hashlib.md5()
hash.update(st... | [
"sagarkadu17@gmail.com"
] | sagarkadu17@gmail.com |
c3a8e4dad55db36cd8fb6dd9517c8b824e4bedea | 87ff52138a82580ca6a35fc6e70a21a92dd1c637 | /inputs/input_05.py | f2e741b1b21b6917ca1ba93dcc17650e53ec2a2c | [] | no_license | raphey/advent-of-code-2020 | b888ff045544f471d7769c29c395ad1fe22ee57f | f44e31b743e19a54eadd4032d0b3179dc7a90423 | refs/heads/main | 2023-02-03T15:45:55.160475 | 2020-12-25T16:06:50 | 2020-12-25T16:06:50 | 318,403,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,412 | py | sample_input = """FBFBBFFRLR"""
main_input = """FFFBBFBLLR
BFBBBFFRLR
BFBBBBFLRR
BBFBFFFLLR
BBFBFBFLLL
BFBFBFBLLR
FBBFFBFRLR
BFFBBBFLLR
FBFBFFBRLR
FBFFBFFRRR
BBFFFFFLRL
FFBFBBFLLL
BFBBBFBRLL
BFFBBFFRRR
BBFBBFBLLR
BBFBBBBRLL
FFBFFBBRRL
FBFBBFFLLR
BFFFBFBRLL
BFBFBBBRRR
FBBFBFBRLR
BFFBBBFLLL
BFBFBFFRLR
BFFFFBFRLR
BBFFFBF... | [
"16931750+raphey@users.noreply.github.com"
] | 16931750+raphey@users.noreply.github.com |
67222d813c0f7c2646f99a022615da1354352b30 | c28b97616b658797ae46f75bdb173526841cb5f6 | /photo/urls.py | 0df836ae0acd5d889ba77f8efba589303a8af2d3 | [] | no_license | victoria-kovaleva/first | 5da344ff01ac4194b5835c864efee80c63f97cd5 | b823a455e8aad58c1a10c2ac76bf7a839a1a8f6e | refs/heads/master | 2021-01-01T18:55:07.379654 | 2014-02-23T16:01:07 | 2014-02-23T16:01:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | #from django.conf.urls.defaults import *
from django.conf.urls import patterns, url, include
from photo.models import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('photo.views',
(r"^(\d+)/$", "album"),
(r"^(\d+)/(full|thumbnails|edit)/$", "album"),
(r"^update/$", "update"),
... | [
"vkovaleva@mirantis.com"
] | vkovaleva@mirantis.com |
bb254c654547f81e9990ee4cf77ce5783ed9cdd3 | 96b53c177d3060a9149fead7c2481f631d954d2e | /virtual/bin/alembic | 86b62ed49fb847db593874c05a7dda327114015a | [
"MIT"
] | permissive | JOFLIX/pitch | 0a094c93025fa36e28938412e31fa210cd76613c | c821acf138b07f148be0cc5fbe6c82bd6396a428 | refs/heads/master | 2022-09-29T06:40:22.370088 | 2019-08-07T07:46:43 | 2019-08-07T07:46:43 | 200,628,592 | 0 | 0 | null | 2022-09-16T18:06:49 | 2019-08-05T09:51:31 | Python | UTF-8 | Python | false | false | 257 | #!/home/moringa/Desktop/pitch_your_work/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"joflixooko@outlook.com"
] | joflixooko@outlook.com | |
a1fd233d387cce9d078d171d6854b62735d62a2a | d869931c9164e8ebe6204fde2fbb783851d7a61f | /entry.py | cb118a5892344aa4af7217c9d3e2dcce4ce8bd0e | [
"MIT"
] | permissive | it-zoo-histories/marduk | c54509ecb59737c92b187226875de1e94f005875 | 1053961eabcebe901d2926d1f7e07ce43ffc6ac5 | refs/heads/master | 2022-01-25T12:07:58.463196 | 2019-05-26T21:41:53 | 2019-05-26T21:42:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | import IPython
from IPython.display import clear_output, HTML, display
from rasa_core.agent import Agent
from rasa_core.interpreter import RasaNLUInterpreter
from rasa_nlu.model import Interpreter
import time
class LogicCore(object):
def __init__(self):
self.intrepreter = RasaNLUInterpreter('models/current... | [
"kubitre@gmail.com"
] | kubitre@gmail.com |
c70d686b8a66449aa75277ec024a414043f77dab | 8b00e2b136636841b38eb182196e56f4721a1e4c | /trio/_util.py | 121513b20e80d517c58bc5e6fb5c7f2255ca441a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | xyicheng/trio | 77c8c1e08e3aa4effe8cf04e879720ccfcdb7d33 | fa091e2e91d196c2a57b122589a166949ea03103 | refs/heads/master | 2021-01-23T00:05:59.618483 | 2017-03-16T04:25:05 | 2017-03-16T04:25:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | import sys
from functools import wraps
import async_generator
__all__ = ["aitercompat", "acontextmanager"]
# Decorator to handle the change to __aiter__ in 3.5.2
def aiter_compat(aiter_impl):
if sys.version_info < (3, 5, 2):
@wraps(aiter_impl)
async def __aiter__(*args, **kwargs):
ret... | [
"njs@pobox.com"
] | njs@pobox.com |
5a813bd10a9a6555bcb7a31df0d331852598cdba | 5088fffefcbb3458ee2c8fca6d822487e13c4169 | /04-zanke/monte_carlo.py | 92515bfcf694126c02f491519d94ea6ab3eda678 | [] | no_license | matijapretnar/uvod-v-programiranje | 95de86fb63d6d06558984c05a40690f78d15aa5f | 464a9c566ed3564a6baba60e7c79f9e25399d45e | refs/heads/master | 2023-04-06T00:28:57.011142 | 2023-04-04T10:49:56 | 2023-04-04T10:49:56 | 52,275,510 | 5 | 34 | null | 2022-03-16T10:12:55 | 2016-02-22T13:32:48 | Python | UTF-8 | Python | false | false | 853 | py | import random
def oceni_pi(n):
v_krogu = 0
for i in range(1, n + 1):
x = random.uniform(-1, 1)
y = random.uniform(-1, 1)
if x ** 2 + y ** 2 <= 1:
v_krogu += 1
print(4 * v_krogu / i)
delez_v_krogu = v_krogu / n
return 4 * delez_v_krogu
def nakljucna_tocka_v_k... | [
"matija@pretnar.info"
] | matija@pretnar.info |
68c7b15940be9fd26d32216f542c91159895ef82 | 57d7c40b161cec3f5a3cb5d0b5e2344502cc4505 | /question/migrations/0004_auto_20190118_2010.py | 73ee7036874a32bf38cd6c97ba58ad1617c01896 | [] | no_license | rowbotman/web-service-tp | 1b97e7aaeda92c4bd0172f542b86a89e2d24d2ca | 8dc7391c636910a1ee66ca358a56624350445bc5 | refs/heads/master | 2020-04-21T21:27:54.030953 | 2019-02-09T15:48:44 | 2019-02-09T15:48:44 | 169,879,645 | 0 | 1 | null | 2019-02-09T15:48:45 | 2019-02-09T15:16:18 | CSS | UTF-8 | Python | false | false | 426 | py | # Generated by Django 2.1.5 on 2019-01-18 20:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('question', '0003_auto_20190117_2034'),
]
operations = [
migrations.AlterField(
model_name='user',
name='username',
... | [
"prokopenko.rower@mail.ru"
] | prokopenko.rower@mail.ru |
1bdb0707e2fd31eb7c20c9da690c177891ec0b67 | d65cf1532a0cdbb7a2755318774cc39762360d49 | /database/models.py | f666d868d23c2bc83eec6ec9b82fab9ef9b706ad | [] | no_license | Courtney2511/item_catalogue | ce9bb01adc19489e8b0a9dbd4691029d25f01c68 | c68da935ee5fe40acd8f7691edb01b2d4d58a1e1 | refs/heads/master | 2021-01-20T17:29:33.221202 | 2018-01-09T17:16:44 | 2018-01-09T17:16:44 | 83,486,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | from datetime import datetime
from sqlalchemy import Column, ForeignKey, Integer, String, DateTime
from sqlalchemy.orm import relationship
from database import Base
class Category(Base):
__tablename__ = 'category'
id = Column(Integer, primary_key=True)
name = Column(String(80), nullable=False)
photos ... | [
"courtneynoonan@me.com"
] | courtneynoonan@me.com |
f6e48374edd3d005af2a9275a9ab22256ea25ab1 | 4c31159b3075c2aad7b6d5f753a62bead30d8e4a | /main2.py | dc86d980d0866db77f3a6b2d07047bf22d52af5e | [] | no_license | ppHaoqq/moobius_scrap | ac355308cab236e04c2704e7271f253fb3206210 | 7d02f101608c9ef0b95a3ea950471d089697197c | refs/heads/master | 2022-11-21T12:11:56.601053 | 2020-07-14T05:12:05 | 2020-07-14T05:12:05 | 260,847,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | from selenium import webdriver
from bs4 import BeautifulSoup as bs
import pandas as pd
import time
import re
from selenium.webdriver.chrome.options import Options
import sys
def main():
options = Options()
#options.add_argument('--headless')
browser = webdriver.Chrome('C:\chromedriver_win32\chromedriver',... | [
"daiki.nitta888@gmail.com"
] | daiki.nitta888@gmail.com |
236a43ce48ae7a3dc607333f6288c4fc335cd1aa | 99feebd7e64a1961bd3f3c3b152c013b35bc9bad | /testCase/accounts_login_password_test.py | 9c57ce1499bc222b00590c7440c7932a340c9b86 | [] | no_license | andy-29/AutomatedTest | a551fb8d2d608c5191a9f1d71a30188f9a19bba5 | 1c3d2b5295f4b6df4e9321f6a75740a3970df3e4 | refs/heads/master | 2020-06-16T15:24:24.418593 | 2019-06-05T06:26:19 | 2019-06-05T06:26:19 | 195,621,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | import os, sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASE_DIR)
func = os.path.basename(__file__).split('_test.py')[0]
from common.gmpackage import *
@ddt
class Accounts_Login_Password(unittest.TestCase):
'''
登入接口
'''
def setUp(self):
self.host... | [
"dayuezaichunji@163.com"
] | dayuezaichunji@163.com |
f92c23b5aeb19501b060ad0c39fd22e808b07ebd | 219e0cf3ff218a142872b939871c3b52c5c09f8f | /database_fill.py | 9d03309f41373f46406dfe395d97a3f5b07119b1 | [] | no_license | fouad3/Item-Catalogue_Udacity_Project | 6a1de3cc3270856f4e853f9a5580d1da7063e062 | 931f7a617321c88dbfb895a921f832e22732a207 | refs/heads/master | 2021-08-31T13:09:19.620877 | 2017-12-21T11:32:59 | 2017-12-21T11:32:59 | 103,182,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,519 | py | from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from database_config import Category, Base, Item, User
engine = create_engine('sqlite:///itemcataloguewithusers.db')
# Bind the engine to the metadata of the Base class so that the
# declaratives can be accessed through a DBSession instance
... | [
"eng.fouad.ashraf@gmail.com"
] | eng.fouad.ashraf@gmail.com |
882b8a411a7523e551973605d5de272055d5db4c | 60b095695d06c5d59ae0750d605bf2e658e91f05 | /superheroes/models.py | 0f5d6fd01986b8cbfd86f87c438312b2ad36285b | [] | no_license | Rojasknight/Django-Rest-Framework-upplugget | b32f09df267d84d58763bdc14c0adb960d55413e | 7472d5512c7a8e71e5e9674fed8ae6b40a5603ee | refs/heads/master | 2020-04-18T09:21:06.188694 | 2019-01-24T20:28:31 | 2019-01-24T20:28:31 | 167,431,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from django.db import models
class Publisher(models.Model):
name = models.CharField(max_length=100, blank=True, default='')
founder = models.CharField(max_length=100, blank=True, default='')
class Meta:
ordering = ('name',)
def __str__(self):
return self.name
class SuperHeroe(models.... | [
"danny.rojas.reyes@accenture.com"
] | danny.rojas.reyes@accenture.com |
68b48de1b46c9d5f18f3e33d5a10939765933eee | cd5baac779b99134bbe4c08ff884466e4a813524 | /Cadastro/migrations/0004_auto_20161128_1008.py | e34d5b3089fc7df68b26bfba32a0d0be3124234e | [] | no_license | judeo66/TCC | 7eec0592a375615191bbb282db2c901c82c0f219 | fe766269d4a44ab8241ecc760994f40189f09ae3 | refs/heads/master | 2021-01-12T08:13:45.937391 | 2016-12-15T02:15:54 | 2016-12-15T02:15:54 | 76,514,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('Cadastro', '0003_tratamentos_sensibilidade'),
]
operations = [
migrations.AlterField(
model_name='tratamentos',
... | [
"israel.0123@hotmail.com"
] | israel.0123@hotmail.com |
5da2022113b8b642a4dafaaab63a1f47788af57b | e4b2d6863fadf63bdc6b42fafb4ad298d7ad0d08 | /elyra/pipeline/kfp/kfp_properties.py | be5888b2f67e0c2516af36c45c61bee4b1faf1b0 | [
"Apache-2.0",
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-SA-4.0",
"BSD-3-Clause"
] | permissive | elyra-ai/elyra | eef32416b7c6039090a2d2a9da08238bb55569b2 | 3c27ada25a27b719529e88268bed38d135e40805 | refs/heads/main | 2023-08-19T02:58:52.615956 | 2023-06-19T16:00:23 | 2023-06-19T16:00:23 | 216,914,329 | 1,707 | 345 | Apache-2.0 | 2023-08-14T23:34:05 | 2019-10-22T21:37:58 | Python | UTF-8 | Python | false | false | 7,078 | py | #
# Copyright 2018-2023 Elyra Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"noreply@github.com"
] | noreply@github.com |
473513794296ed1544e1314aa0cdd3e0cc793e96 | ee8f18cb893be3c3e9e584731d6bf7814d6cbf0a | /portfolio/urls.py | aa086de8714761d8ae68010f4763a017fe298b08 | [] | no_license | christensensl/django_portfolio | 8fa5231a67713794997a06180e9215182eccc184 | 759032c8eb96c59249fb1cac323ef101564a73b9 | refs/heads/master | 2022-09-01T16:42:11.109066 | 2020-05-15T22:54:20 | 2020-05-15T22:54:20 | 264,316,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from django.urls import path
from .import views
urlpatterns = [
path('', views.home, name='portfolio-home'),
path('about/', views.about, name='portfolio-about'),
] | [
"60920424+christensensl@users.noreply.github.com"
] | 60920424+christensensl@users.noreply.github.com |
6f922fcbf3a181a5c5f7408b4680e13c3cf945c6 | 04b27f7ac8cf5369f6cf006484a99e308672e5bd | /data/migrations/0018_auto_20170103_0805.py | 21e31407cb57d1d62d267f918030be4fcc3048ad | [] | no_license | VijeshVenugopal/app | 1b752801f317648567859e738348ff5ca3e52ca0 | ae0a1abe2bee5c75693450921401606e610b4be0 | refs/heads/master | 2020-03-23T05:16:42.450301 | 2017-02-02T15:44:08 | 2017-02-02T15:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-01-03 08:05
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0017_auto_20170103_0716'),
]
operations = [
migrati... | [
"jeffz.in7@gmail.com"
] | jeffz.in7@gmail.com |
f9b831410e67ccfb2d836ccb97342ca251b29cc8 | 063934d4e0bf344a26d5679a22c1c9e5daa5b237 | /margrave-examples-internal/capirca-margrave/capirca-r242-MODIFIED/lib/aclgenerator.py | 8ee174b93117e296c638b564e0eca83ea55b83e6 | [
"Apache-2.0"
] | permissive | tnelson/Margrave | 329b480da58f903722c8f7c439f5f8c60b853f5d | d25e8ac432243d9ecacdbd55f996d283da3655c9 | refs/heads/master | 2020-05-17T18:43:56.187171 | 2014-07-10T03:24:06 | 2014-07-10T03:24:06 | 749,146 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,378 | py | #!/usr/bin/python2.4
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# unless required... | [
"tn@cs.wpi.edu"
] | tn@cs.wpi.edu |
945b2e66bd120592ad55fe796ccf88aeb4bb2efe | e1e5ffef1eeadd886651c7eaa814f7da1d2ade0a | /Systest/lib/py/issu.py | 3fd94a49e3fafb90378548fd7e78467b943c7ff7 | [] | no_license | muttu2244/MyPython | 1ddf1958e5a3514f9605d1f83c0930b24b856391 | 984ca763feae49a44c271342dbc15fde935174cf | refs/heads/master | 2021-06-09T02:21:09.801103 | 2017-10-10T07:30:04 | 2017-10-10T07:30:04 | 13,803,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568,600 | py | #!/usr/bin/env python2.5
#######################################################################
#
# Copyright (c) Stoke, Inc.
# All Rights Reserved.
#
# This code is confidential and proprietary to Stoke, Inc. and may only
# be used under a license from Stoke.
#
########################################################... | [
"muttu2244@yahoo.com"
] | muttu2244@yahoo.com |
9ff0e602e68acc1da8af0f4d10a11ed64cc2a862 | 901e1686d5b5c243d6f876b2d850bad02c8f4d77 | /network.py | eebd64703dd636bd3432c7d55c811f8628a0079a | [
"MIT"
] | permissive | pkbatth92/Data-Science_Image-Classification | c414a3b38a2cc60f896d78909577b3ef2f323720 | 769ad73ecb51d79a1cc070b9eeb23ac7cd796728 | refs/heads/master | 2020-04-09T06:05:47.286455 | 2018-12-02T22:03:59 | 2018-12-02T22:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | import torch
from torchvision import models
from torch import nn
from torch import optim
from collections import OrderedDict
class Network:
def __init__(self, architecture):
if architecture == "vgg13":
self.model = models.vgg13(pretrained=True)
elif architecture == "vgg19":
... | [
"noreply@github.com"
] | noreply@github.com |
71d01f67c7f027070de066bc474222ea92c178e5 | 62af75f2b6dfe99c9bc4ee8c5441314f9ef6e5dc | /factual/utils/__init__.py | b3c0c60e9e958e910dee0bbaf8d639cea3b4546b | [] | no_license | almanackist/campaigndineations | 3f5f7e5e62eed209c064b9db651a7da4ef1b97b6 | 8048debd146ed4e5d44b72e06400abe02eb137c5 | refs/heads/master | 2021-01-01T15:44:23.570449 | 2012-06-24T19:01:22 | 2012-06-24T19:01:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from utils import circle
| [
"almanackist@almanackery.com"
] | almanackist@almanackery.com |
7f9238fb493f94f9b1d420970d33fae23ba32ac8 | ab821e017c32746929581c56a69464e7d9243cba | /robot_calib/scripts/transform_utils.py | a2d7354f68c607ed46e1ad74ce15ae73945ddf1c | [] | no_license | JeffYoung17/MOM_Robot | d5cd960b7fceb94a3e42f2a570b232a058f1ffb8 | 3a9c57436e5534cac51411220602ad2500ac75ed | refs/heads/master | 2020-04-01T17:40:26.246145 | 2018-11-22T10:26:08 | 2018-11-22T10:26:08 | 153,443,380 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | #!/usr/bin/env python
import PyKDL
from math import pi
def quat_to_angle(quat):
rot = PyKDL.Rotation.Quaternion(quat.x, quat.y, quat.z, quat.w)
return rot.GetRPY()[2]
def normalize_angle(angle):
res = angle
while res > pi:
res -= 2.0 * pi
while res < -pi:
res += 2.0 * pi
... | [
"jeffyoung17@163.com"
] | jeffyoung17@163.com |
3713eb98c2b59067157bd8ca668bfb02eed482bc | 73c98ab29fad625a7db402024be4d372019d8aeb | /list_workflows.py | b97392b4f4d3d7709594bd7a28e589b0859604d8 | [] | no_license | InformaticsMatters/galaxy_bioblend | fce39a65a86d249fca867e3551f86074a08c51d8 | 5552d6d4e5850591bd80e39c7d39fbfb8d259746 | refs/heads/master | 2020-08-08T02:41:40.700272 | 2019-12-05T18:38:43 | 2019-12-05T18:38:43 | 213,681,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from galaxyclient import Utils
u = Utils()
gi = u.get_galaxy_instance()
workflows = gi.workflows.get_workflows()
for workflow in workflows:
print("Workflow: " + str(workflow)) | [
"tdudgeon@informaticsmatters.com"
] | tdudgeon@informaticsmatters.com |
44cf55d3b3270ca188b21be1f5bea62210cf6c4c | 73c2d3f96f176f534b7e81a43bb731ebff8c5261 | /wblog/settings.py | 3b063bd1678163cf69e5cb55c23ae73450406418 | [] | no_license | tianjiandikun/wblog | df9b77ccaaecea4236157dbc9b7dc48ffa1b9bee | 61a1e24b030e1da4cf934ea70b2f79724b48859a | refs/heads/master | 2020-05-27T16:57:38.971072 | 2015-03-16T16:25:44 | 2015-03-16T16:25:44 | 32,328,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | """
Django settings for wblog project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
impo... | [
"xinhuyue@163.com"
] | xinhuyue@163.com |
0e4a20028c2fca889c595e291c6de3f6ec85ce20 | 1e47e604fcbeffedfe35fb933a3171f2a876c071 | /opengl/p5.py | 1c2f78cdcc38de1c3a31f983d224106f458e419f | [] | no_license | caihedongorder/PythonEx | 5ec9f938869167fa3a56b4705ce9f8ce29b0b65c | b40fcd2e73309da9a47be2ec1676c9281866246f | refs/heads/master | 2021-09-15T07:18:31.208471 | 2018-05-28T13:25:03 | 2018-05-28T13:25:03 | 104,706,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #!/usr/bin/env python
# coding=utf-8
import sys
import time
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
from gamemodule import render
from gamemodule import application
class GLRender(render.GLRenderBase):
def __init__(self):
self.startTime = time.clock()
self.rot... | [
"caihedongorder@126.com”"
] | caihedongorder@126.com” |
2f3af0863184acecd60d4a107446bbf8ed4e7e37 | 66b6146930bee8b02167f6a276aa38ee615e126d | /Utils.py | 415e416068202c91b2c2259633aad75919496c09 | [
"MIT"
] | permissive | muradtuk/UnifiedFramework | 10be233983a3255bac18b91b21f2077f45c07114 | 07dd7cf50552fa87fd875818eead03a2fe9e5073 | refs/heads/master | 2022-08-24T05:42:40.317221 | 2020-05-25T20:41:52 | 2020-05-25T20:41:52 | 258,382,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,820 | py | """*****************************************************************************************
MIT License
Copyright (c) 2020 Murad Tukan, Alaa Maalouf, Dan Feldman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in... | [
"muradtuk@gmail.com"
] | muradtuk@gmail.com |
67adbe2bfc32e2a54b910fbe07c551fb51ef8b5d | aa7a250726e3bb64e3037b4b099573560cd072b5 | /python/Wakeup_on_LAN.py | fedd72bf7078513d1b4cc5613db41cf15134afa9 | [] | no_license | GeneralZero/ATF | 700ab28e67d5b9a02af4165996b6231d60432f95 | 78dbdf3345c1b04de1e4b8637b2a9be0e5c843d6 | refs/heads/master | 2020-05-06T13:23:35.391904 | 2020-03-24T03:46:54 | 2020-03-24T03:46:54 | 4,170,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | #!/usr/bin/python
from socket import socket, AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_BROADCAST
data = '\xFF\xFF\xFF\xFF\xFF\xFF' + '\xAA\xAA\xAA\xAA\xAA\xAA' * 16 # Where \xAA\xAA\xAA\xAA\xAA\xAA is the MAC Address
sock = socket(AF_INET, SOCK_DGRAM)
sock.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)
sock.sendto(data, ... | [
"Bdrid001@gmail.com"
] | Bdrid001@gmail.com |
3118055357e21e818369addcd8052d38382bdada | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_soar_utils/fn_soar_utils/components/funct_soar_utils_artifact_hash.py | fa0c9212fa4a7c4ee6fd5991f38a41c0ca9545f1 | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 2,521 | py | # -*- coding: utf-8 -*-
# (c) Copyright IBM Corp. 2018, 2022. All Rights Reserved.
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
from json import dumps
from logging import getLogger
from hashlib import algorithms_guaranteed, new
from resilient_lib import get_file_attachment, get_... | [
"travis@example.org"
] | travis@example.org |
11af023167cde8c35bb2c4b22b1dd4d44852c42d | e89164093c99b2be87b201804718aa73a2ffdae3 | /leetcode/783. Minimum Distance Between BST Nodes.py | df5419cd15909bd4d9943cca22830c3f802cb3ea | [] | no_license | gsrr/leetcode | 748d585d0219ad1a1386794910c7410b50ce3c93 | 992bb618b605c3345318a0eeb2d2df4d11f6a2d5 | refs/heads/master | 2021-07-06T12:40:03.052470 | 2021-05-28T17:28:43 | 2021-05-28T17:28:43 | 76,116,620 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
def ldr(node, arr):
if node.left != None:
ldr(node.left, arr)
arr.append(node.val)
if node.right != None:
ldr(node.r... | [
"jerrycheng1128@gmail.com"
] | jerrycheng1128@gmail.com |
8f9ef0086d4ee19c301005731bf09b20b0fc8a5c | 9c21e49150c99751231ad399bdba1850bb60c88c | /keepers/migrations/0012_auto_20180619_0056.py | 359b76f9d01a20e6c2e0917a4540eb44a4c47177 | [
"MIT"
] | permissive | netvigator/auctions | 3ab4086cb0bfbc736b17ede4e928f3ead2b08a4c | fc3766226cc65ac8694dffc74e893ecff8e7d07c | refs/heads/main | 2023-05-25T15:55:01.249670 | 2023-05-06T14:51:12 | 2023-05-06T14:51:12 | 92,816,101 | 0 | 0 | MIT | 2023-02-16T05:24:34 | 2017-05-30T09:14:39 | Python | UTF-8 | Python | false | false | 669 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-06-19 00:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('keepers', '0011_auto_20180615_1818'),
]
operations = [
migrations.AlterField(... | [
"gravesricharde@yahoo.com"
] | gravesricharde@yahoo.com |
6bd7ea042d4999a8e460c696c13d9bf95d339f9e | 6f958fa3e9505d9cd0e75f51008de8e2d1c8c12f | /area/utils.py | 7bd1474cb10f69ff99f85048316243a66a11b5b0 | [] | no_license | yoachim/satellite_collisions | 3b59472ae6672dda7ff28916879ce6ed6370a42c | 4b5f475518cef526d117d83873e885a1fbd7aee8 | refs/heads/master | 2022-02-22T21:27:32.106308 | 2022-02-02T16:18:30 | 2022-02-02T16:18:30 | 220,065,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,845 | py | import datetime
import numpy as np
from astropy import time
from astropy import units as u
from astropy import constants as const
from astropy.coordinates import EarthLocation
from pycraf import satellite
from rubin_sim.utils import Site
import skyfield.sgp4lib as sgp4lib
from astropy.time import Time
import ephem
fr... | [
"yoachim@uw.edu"
] | yoachim@uw.edu |
a694e62f4c790eab767286b4be22a9c5f5e4a41e | 8b20fdc16253b2b4e07ce28f4fd3120db4566783 | /pythainlp/__init__.py | 47bffa93eda32cec984d87f336d8c648c66c28bf | [
"Apache-2.0",
"Swift-exception"
] | permissive | johnnyduo/pythainlp | d8a850fa7b6d9dfed5eb23f84264caea1703f5fb | dbefc4c88ee8051a14e3be1a10a57670f861cd37 | refs/heads/master | 2021-06-19T23:49:43.564140 | 2017-07-06T10:36:58 | 2017-07-06T10:36:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import six
if six.PY3:
"""
ไว้ใส่ความสามารถที่รองรับเฉพาะ Python 3.4+ เท่านั้น
"""
from pythainlp.sentiment import sentiment
from pythainlp.spell import hunspell,spell
from pythainlp.romanization import romanization,pyicu,royin
from pythainlp.tokenize... | [
"wannaphong@yahoo.com"
] | wannaphong@yahoo.com |
1b0c242b1b9290150f74b03b84de06e4fe4fb908 | c427e4dbe850eb170cd9bb864bca3e6cd980d6fe | /interface/gui.py | 08b8a7948bf2b77fa65e1e7480282f8179bfd80e | [
"MIT"
] | permissive | awforsythe/melgui | 66cdb6491bc30d58028751542aa613125e09aa24 | 61b677403ea1cd3324744b8f257f66de0bfed00c | refs/heads/master | 2020-06-01T07:45:53.586517 | 2013-12-09T21:08:25 | 2013-12-09T21:08:25 | 15,059,032 | 11 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,361 | py | """
Provides functionality related to Maya GUI controls.
"""
import re
import maya.cmds as mc
import maya.mel as mel
class Control(object):
"""
Represents a single UI control contained within a Gui. Provides a wrapper
for the MEL command associated with whatever control type, including
methods to edi... | [
"awforsythe@gmail.com"
] | awforsythe@gmail.com |
ffb975e459aadcb6c155d65a8f4faff7915684c8 | d04bb7504bb9c77554b37d3b11d191f9b7e4c5dd | /napalm_Aclospf_Multidev.py | 6102f3f843920c8d893686d9d554f0cefac65870 | [] | no_license | amitk14595/Advance-Network-Automation-Scripts | 768e14702c10b25995297ae7983bc69f96d404dc | 4f288362c299e1d5da5b45ff4f9d07dd06673e34 | refs/heads/master | 2022-04-14T20:34:41.190292 | 2020-04-16T22:05:03 | 2020-04-16T22:05:03 | 256,339,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | import json
from napalm import get_network_driver
devicelist = ['192.168.122.70',
'192.168.122.71'
]
for ip_address in devicelist:
print ("Connecting to " + str(ip_address))
driver = get_network_driver('ios')
iosv = driver(ip_address, 'amit', 'cisco')
iosv.open()
... | [
"noreply@github.com"
] | noreply@github.com |
069534b71755db5b1b403c9d65cf61f1b0a9f491 | 6b6e20004b46165595f35b5789e7426d5289ea48 | /workers/test/test_exportactionlogsworker.py | 0e4a728b421dd60c2b029851e5dfe04326ee7a91 | [
"Apache-2.0"
] | permissive | anwarchk/quay | 2a83d0ab65aff6a1120fbf3a45dd72f42211633b | 23c5120790c619174e7d36784ca5aab7f4eece5c | refs/heads/master | 2020-09-12T18:53:21.093606 | 2019-11-15T19:29:02 | 2019-11-15T19:29:02 | 222,517,145 | 0 | 0 | Apache-2.0 | 2019-11-18T18:32:35 | 2019-11-18T18:32:35 | null | UTF-8 | Python | false | false | 4,628 | py | import json
import os
from datetime import datetime, timedelta
import boto
from httmock import urlmatch, HTTMock
from moto import mock_s3_deprecated as mock_s3
from app import storage as test_storage
from data import model, database
from data.logs_model import logs_model
from storage import S3Storage, StorageContex... | [
"jimmy.zelinskie+git@gmail.com"
] | jimmy.zelinskie+git@gmail.com |
993d0050d5f3731054fe14f269d1ff68186a0aa2 | 591291e2ecfddfcef7488494fe6bdee9b772b6aa | /app/web/wish.py | e9aa82d23bfbbd32a7c39c4eb074ffb8212119ff | [] | no_license | shenghuntianlang/Fisher | a549fffa7f19ac9c46920756a39b5071ab62d272 | 20d32e909cef247175c0fe6a5dfcdd7522c07246 | refs/heads/master | 2020-03-22T05:08:05.155299 | 2018-07-07T06:22:15 | 2018-07-07T06:22:15 | 139,544,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | """
the view functions about some operations for my wishes
"""
from flask import flash, redirect, url_for, render_template
from flask_login import current_user, login_required
from app.libs.mail import send_mail
from app.models.base import db
from app.models.gift import Gift
from app.models.wish import Wish
from app.... | [
"shenghuntianlang@outlook.com"
] | shenghuntianlang@outlook.com |
1b19ddccd1ce2a6b9f10eeaace553d9287da9bc3 | cce1a8382f211f5738402ee4e8f885db6d0ab3ea | /lustre-test/parse-mdtest-results.py | 346b01bdb49707aad288c5a3835c36f7c0962afe | [] | no_license | junhe/exp-script | 91383493770d2a9d9d315972c390131859397606 | e12c451425d01812d0f123198510211e33bf7988 | refs/heads/master | 2021-01-25T07:08:14.008273 | 2015-01-31T18:08:19 | 2015-01-31T18:08:19 | 20,899,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | import sys
import fileinput
def isdataline(line):
starts = ['Directory creation', 'Directory stat', 'Directory removal',
'File creation', 'File stat', 'File read', 'File removal',
'Tree creation', 'Tree removal']
for start in starts:
if line.startswith(start):
... | [
"jhe@cs.wisc.edu"
] | jhe@cs.wisc.edu |
ca87e2d4a6d85f9a84b735aec448de0ffb39330a | 8ac156c3bfeb4ce28836a1820cb88959424dab14 | /test/test_ocr_page_result_with_lines_with_location.py | db398b1f5b831b331b45a635bf3ed2b22f00da5b | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.OCR | 7b593464d31d3038663bedca3c085a161e356f20 | 90acf41a9b307213ef79f63ea4c749469ef61006 | refs/heads/master | 2023-04-03T06:03:41.917713 | 2023-03-27T05:30:38 | 2023-03-27T05:30:38 | 138,450,272 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # coding: utf-8
"""
ocrapi
The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
imp... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
816c45d294921e6362d0eaa5cc2305ba0fb01d7f | a2fd604a8ef45b4e08cf832348d20b65e4468a79 | /phoenix/tests/test_caches.py | a4d7e9263d733aae95b47899c92b2a290f0313d0 | [] | no_license | darraes/data_structures | 8ca76a3fc3e961860861cd43f5b866b8e7e50427 | 4ff2c60e05d9275b163db59ed37b9f46ba50f3c0 | refs/heads/master | 2020-04-17T10:19:59.357548 | 2019-02-28T21:42:44 | 2019-02-28T21:42:44 | 166,497,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | import unittest
from phoenix.cache import *
class TestFunctions(unittest.TestCase):
def test_lru_new_insertions(self):
cache = LRUCache(3)
cache.put("k1", "v1")
self.assertEqual("v1", cache.get("k1"))
cache.put("k2", "v2")
self.assertEqual("v2", cache.get("k2"))
cac... | [
"daniel.arraes@gmail.com"
] | daniel.arraes@gmail.com |
60570467f232d79d8b785162fa8abe654121701e | b9dda07897d552466695c735c14d624cf89315bc | /triggerflow/service/eventsources/model.py | 220393130c315f170e96204d7db7a6ce32a801ff | [
"Apache-2.0"
] | permissive | JosepSampe/triggerflow | 02792ba96059f27c2d163ca88d50a10e030026ae | 66d8adcd6b31692663ee861c334608b74fecf884 | refs/heads/master | 2023-01-12T12:12:33.007616 | 2020-10-20T13:14:18 | 2020-10-20T13:14:18 | 264,998,376 | 0 | 0 | Apache-2.0 | 2020-05-18T16:32:06 | 2020-05-18T16:32:05 | null | UTF-8 | Python | false | false | 383 | py | from multiprocessing import Process
from threading import Thread
class EventSourceHook(Thread):
def __init__(self, name: str, *args, **kwargs):
super().__init__()
self.name = name
def run(self):
raise NotImplementedError()
def commit(self, records):
raise NotImplementedEr... | [
"aitor.a98@gmail.com"
] | aitor.a98@gmail.com |
9c3d97049f7aafe909b5c14e869c372e5914ae54 | cbc3e997925225b43f7973762d4afd318b3daac0 | /Basis Kurs/ChineseChef.py | 25bfe8ce34b49f4ba82aede1d4f13ddcbd202a3d | [] | no_license | Stoorrzi/pythonProject | c95ed245154b3593027bc813a4bcff2a27898823 | 7d6699cef35775ddb9c964b91c727f9a6b6fbe37 | refs/heads/master | 2023-01-28T04:29:40.787938 | 2020-12-09T21:30:07 | 2020-12-09T21:30:07 | 320,084,196 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from Chef import Chef
class ChineseChef(Chef):
def make_fried_rice(self):
print("The chef makes rice") | [
"philipp.storz@t-online.de"
] | philipp.storz@t-online.de |
b07ecb55c6657bb6813f14198dd6c33d0828a5dd | 5366c6cd1be8a41ddbb6558f1ed30dec8dee56bb | /books/migrations/0001_initial.py | ea248dc82b5d9e56767408a5123ba86fb87f27d7 | [] | no_license | chiragkapoorck/local-library | 2a9fc0e41074ed4339f8be84425be51369071453 | b0786dd14e65dac54a6d4f4ba2198cdc15ab9ddd | refs/heads/master | 2021-04-23T17:38:31.881461 | 2020-04-15T15:29:24 | 2020-04-15T15:29:24 | 249,951,313 | 0 | 1 | null | 2020-04-03T10:51:02 | 2020-03-25T10:41:42 | Python | UTF-8 | Python | false | false | 3,264 | py | # Generated by Django 3.0.4 on 2020-03-30 15:08
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"shubham.singh094@yahoo.com"
] | shubham.singh094@yahoo.com |
156329b156ceca3fece8ee8488fa57e449e5999b | 575579bcec300fb199b17e005421427250319507 | /opinion-mining-api-31.py | 988c119d8f31241d52092d16d6b8db80ed5800ff | [] | no_license | dj-more/opinion-mining | 26a3409ac10ff13f34eb27104bf9a4f5daf13ea9 | 5ad12e1568c2b4cdd75c87e6ff95157c9d42585b | refs/heads/master | 2023-04-17T17:34:08.773872 | 2020-08-04T00:34:42 | 2020-08-04T00:34:42 | 284,834,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 722 | py | import http.client, urllib.request, urllib.parse, urllib.error, base64
headers = {
# Request headers
'Content-Type': 'application/json',
'Ocp-Apim-Subscription-Key': '3f7e7a5c8aaa4e5fa43ae374eb922ffb',
}
params = urllib.parse.urlencode({
# Request parameters
'showStats': '{boolean}',
'model-ve... | [
"[dhanaji@gmail.com]"
] | [dhanaji@gmail.com] |
3e651f5d573a022540f057fded102a8593fd9e3e | 56c027afd86601c0a621f6985b435c2ab1757e70 | /summerProject-master/dublinbusjourney/dublinbuspredict/Algorithms/model_prototype_1.py | 9b20f6ff49843d9039c3a43fec335276d44e2ae0 | [] | no_license | redfa/summerbigproject | ed8e8e7b53bedd10756fd7560b3f5d55477bf84d | a523ae95c1b4f2839c518e404f512b49039cf30f | refs/heads/master | 2021-08-31T18:59:39.265032 | 2017-12-22T13:16:44 | 2017-12-22T13:16:44 | 115,116,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,872 | py | try:
import pymysql
pymysql.install_as_MySQLdb()
except:
pass
import pandas as pd
pd.options.mode.chained_assignment = None
from dateutil import parser
def model(bus_route, stopid, arrival_time, day, p_holiday, s_holiday, rtr, trip_id):
# 1 request the lon and lat from a query in sql based ... | [
"noreply@github.com"
] | noreply@github.com |
e378342db455f9d7483d9f6cf7982882e5d2ca99 | b72596aa97a724f9f2cc6947b86a9b972846277f | /setup.py | 8cba9868cc12580e64d54561b344cf8fca1cdca5 | [
"MIT"
] | permissive | dumpmemory/hourglass-transformer-pytorch | 698cfcbc6a1b572efef37b5926d45dd598ff457b | 4be33bb41adfedf1b739cd24bec9481bc83a93e2 | refs/heads/main | 2023-09-03T01:45:41.994192 | 2021-11-10T15:49:06 | 2021-11-10T15:49:06 | 426,081,172 | 0 | 0 | MIT | 2021-11-10T15:55:51 | 2021-11-09T03:41:56 | Python | UTF-8 | Python | false | false | 750 | py | from setuptools import setup, find_packages
setup(
name = 'hourglass-transformer-pytorch',
packages = find_packages(),
version = '0.0.6',
license='MIT',
description = 'Hourglass Transformer',
author = 'Phil Wang',
author_email = 'lucidrains@gmail.com',
url = 'https://github.com/lucidrains/hourglass-tra... | [
"lucidrains@gmail.com"
] | lucidrains@gmail.com |
b089b4b1b74c539953c27bc2d116cba959748d6c | c7910a655d286a0ee8a0d510fef83abcac7e5a2b | /prelabs-ZGuo412-master/Prelab11/Consumer.py | 793ef2bacec489970274e3ba53af5ce4202df945 | [] | no_license | ZGuo412/Software-Engineering | 5437d82516b4e6af9e37f3f657fcc889f3e7fe71 | e1377d8889e65fd6d984d0bf7fa712ad74aeccfa | refs/heads/master | 2021-10-27T22:30:10.266735 | 2021-10-17T07:36:22 | 2021-10-17T07:36:22 | 238,366,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,145 | py | #######################################################
# Author: <Ziyu Guo>
# email: <guo412@purdue.edu>
# ID: <ee364d25>
# Date: <2019/3/31>
#######################################################
import sys
from PyQt5.QtWidgets import QMainWindow, QApplication, QFileDialog
from Prelab... | [
"noreply@github.com"
] | noreply@github.com |
7dc54daf64f1034f96696ae087a56afedb35f04b | f2b049f68b91841811968c65e06facbdedc2483a | /Practice_exercises/Profit_loss_calculator.py | 7d03a1ec81e9d8b50f2032fc61005a75bb767500 | [] | no_license | Aswinraj-023/Basics_Python | 1cceb4a607b8969906b009f845a8183adc8297b5 | a4e5a6fd30dadf29d9ac10e54630962d06b24c0f | refs/heads/main | 2023-08-28T03:43:48.803279 | 2021-11-13T15:28:18 | 2021-11-13T15:28:18 | 424,990,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # 2) Loss calculator
goods_price = 200
profit = 0
counterfiet_money = 1000 #value of counterfiet_money
shopkeeper_1 = counterfiet_money # counterfiet_money given by customer to shopkeeper_1
#Shopkeeper_2 has a change of 1000Rs
shopkeeper_2 = 1000
# counterfiet_money exchanged from shopkeeper_1 to shopkeeper_... | [
"noreply@github.com"
] | noreply@github.com |
34177aaf3d8e4472f51189bd33d2c6658fe3cd66 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_image_bytes01.py | 02dba5d0f8a119b040fad480338e187a1031b18b | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,466 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
from io import BytesIO
class TestCompareXLSXFiles(ExcelC... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
3c51dcc2e73e3f43318e71887d695fe2532c06b9 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/virtual_appliance/site/_delete.py | f453c8731d6e69b3932912be786b732d7da64fb3 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 5,731 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
f8e387f4fa2c8a56db352d63b9b902c1ef6170c6 | d41f0ef7b861d32e4c060dfc7c70485cee68a0cc | /binary_tree_traversal.py | 8b1abcfa6997b825e749c9e922e6736fe5919c5e | [] | no_license | guojy8993/common-algotihms-you-shoud-know | 46048e2b5be402e0d8396818b092615c008b01c8 | bc35aff3ac89b73266a0b060bc5df3921e515688 | refs/heads/master | 2021-01-21T05:04:47.115484 | 2017-02-26T10:13:32 | 2017-02-26T10:13:32 | 83,128,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | #!/usr/bin/env python
# Author guojy8993@163.com
# Date 2017/02/25
# Desc Usage display of Binary-Tree-Traversal
'''
Binary Tree Traversal
http://blog.csdn.net/gfj0814/article/details/51637696
'''
class Node(object):
def __init__(self, data=0, left=None, right=None):
self.data = data
sel... | [
"guojy8993@163.com"
] | guojy8993@163.com |
28cdd3828cedfdafaf3fbeba275c59ee2be9fe8d | f8c94ed02cca850dd8dffafa181847986bc7244e | /website/urls.py | da20a08993b590af072bf5690c9c6d14c49c01f4 | [] | no_license | perillaseed/btp | 655e302ffc541b4f4b7e8382ff12c157c52d69f5 | 483cedf4fdfa32f04ef980cd911cb8f09aa55fdb | refs/heads/master | 2021-01-16T20:36:30.115193 | 2013-05-25T18:46:33 | 2013-05-25T18:46:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | from django.conf.urls.defaults import *
from django.conf import settings
from django.conf.urls.static import static
import os
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Example:
(r'^vperf/', include('Video_Performa... | [
"harsh@agni.(none)"
] | harsh@agni.(none) |
159750faef8bea05f5ecc528c3f8c8785dbf06ec | c4821ba4050082890e8cc086bd9c4461383e6f18 | /RL-Quadcopter_private-master/quad_controller_rl/src/quad_controller_rl/agents/ddpg_agent_combined.py | e2b5c77fc0f962e9b3bb03ecf66509a7313ddca0 | [] | no_license | ppujari/ReinforcementLearning | ed1093fcdc62b8e1b45964652c9e960dc3abd062 | 6a67540ea70badb78b2243f12af1630f18c9d728 | refs/heads/master | 2021-08-31T00:31:22.205110 | 2017-12-20T00:53:12 | 2017-12-20T00:53:12 | 114,410,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | """Combined agent."""
import numpy as np
from quad_controller_rl.agents.base_agent import BaseAgent
from .ReplayBuffer import ReplayBuffer
from .ActorNetwork import ActorNetwork
from .CriticNetwork import CriticNetwork
from keras.initializers import Constant
class DDPGCombined(BaseAgent):
"""Sample agent that sea... | [
"ppujari@github.com"
] | ppujari@github.com |
8d8e492d19a9cbf8925b418a99430544fae33ad1 | 97b810d45f53546f925bf14e9c14fadf59d3ebb1 | /assembler/test/test_chip8.py | 94059af3518c9d089a514b3b54a93cc12f8f1088 | [
"MIT"
] | permissive | nulano/RPyChip8 | b26bf339fc861536d9cc069852b95ea702ca6406 | d463ff2629bef444961252694c4ac5d2688b3b03 | refs/heads/main | 2023-02-19T20:52:04.816524 | 2021-01-23T16:10:55 | 2021-01-23T16:10:55 | 330,976,821 | 0 | 0 | MIT | 2021-01-22T19:04:35 | 2021-01-19T12:44:46 | Python | UTF-8 | Python | false | false | 4,046 | py | import pytest
from assembler.chip8 import tokenize, assemble
class TestTokenize:
_test_single_line = [
("single_token", "RET", ["RET"]),
("two_tokens_space", "JMP main", ["JMP", "main"]),
("two_tokens_spaces", "JMP 0x200", ["JMP", "0x200"]),
("comment_hash_only", "#comment", []),... | [
"nulano@nulano.eu"
] | nulano@nulano.eu |
f037fc07b15d3b262441f8e257e03f8d9f722d1b | f6563a324ad740eebb9f2e07f882ae9ee6494935 | /restler/unit_tests/log_baseline_test_files/abc_test_grammar_invalid_b.py | 98748d1ba4b34f4cf60197143312bc844b4a32cb | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | victor-li/restler-fuzzer | 3c0b255a50c1c2d03b327c1a9177f130fd641140 | d54678011165787ac594bb4fc8235ffcd891d7d1 | refs/heads/main | 2023-08-18T12:23:20.338493 | 2021-09-30T19:33:15 | 2021-09-30T19:33:15 | 413,392,759 | 0 | 0 | MIT | 2021-10-04T11:29:25 | 2021-10-04T11:29:24 | null | UTF-8 | Python | false | false | 6,190 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# This grammar was created manually.
# There is no corresponding OpenAPI spec.
from __future__ import print_function
import json
from engine import primitives
from engine.core import requests
from engine.errors import ResponseParsingException
f... | [
"noreply@github.com"
] | noreply@github.com |
8cececa88fc5db4803974b32211503940569110f | c6fcc7b5769ef8e704fbd8d317a4b64f2bea0b85 | /data_loader.py | 0c26e5f675602a519957fd3a926792e0832f3f9f | [
"MIT"
] | permissive | NegativeMind/mnist-svhn-transfer | 886cb8385cd3335275e22cd690e2b4c346e4981d | 998ce54abe916dca2ffeeb916cd520f94928e93f | refs/heads/master | 2022-04-25T06:34:02.339211 | 2020-04-19T05:19:09 | 2020-04-19T05:19:09 | 254,663,893 | 0 | 0 | null | 2020-04-10T15:05:08 | 2020-04-10T15:05:07 | null | UTF-8 | Python | false | false | 1,160 | py | import torch
from torchvision import datasets
from torchvision import transforms
def get_loader(config):
"""Builds and returns Dataloader for MNIST and SVHN dataset."""
transform = transforms.Compose([
transforms.Scale(config.image_size),
transforms.ToTensor(),
... | [
"yunjey47@naver.com"
] | yunjey47@naver.com |
f47ad89cbb0ecfa5a4f40da82fafb29dcdb9f6de | c3410f88fb8f05793f6c4ca80b8ab6c1b0338b61 | /send-test.py | bd298de8572f2841f654d4a9cfa9977aaa40d5a7 | [
"MIT"
] | permissive | BlurryRoots/checker | f6af0020cd3d4adf671555345281b7294d0acaea | 4a44f23ad33867ff61b1cc65999e5685a7fdf629 | refs/heads/master | 2016-09-06T06:06:40.848483 | 2014-12-17T16:52:39 | 2014-12-17T16:52:39 | 27,002,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import requests
import json
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-p", "--port", dest="port",
action='store', type='int', default=8080,
help="Monitor service port.")
parser.add_option("-i", "--ip", dest="host",
default='localhost', help="Monitor service ip adress.")
parser.ad... | [
"blurryroots@posteo.de"
] | blurryroots@posteo.de |
36fb2747984856faec0b58c8809b658ee371d0c4 | 395d817d7a11dc3fcbfb50f0561aa0ce43a45d32 | /DQNs/DQN_cnn/dqn_agent.py | 67af84a3948fff40ad6139a08317945555a10732 | [] | no_license | lhonrush/DeepReinforcementLearning_Pytorch | a3ce458b756b9d33797f0703ace64dceae49bc20 | 3a80a41ed1f33ad82807496d43947fc9d670184b | refs/heads/master | 2023-07-08T11:11:29.634566 | 2021-08-19T07:26:58 | 2021-08-19T07:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,639 | py | import numpy as np
import random
from collections import namedtuple, deque
import torch
import torch.nn.functional as F
import torch.optim as optim
from cnn_model import CNN_Model
TAU = 1e-3 # for soft update of target parameters
EPS_start=1.0
EPS_end=0.01
device = torch.device("cuda:0" if torch.cuda.is_available() e... | [
"quantumcheese1990@gmail.com"
] | quantumcheese1990@gmail.com |
523b42f752bced31bc63bb710b3b4fded293c9cf | 20e3010608e40a6ec5ea56f69d122a62182e4bdb | /1 - Python-2/4 - strings functions/HW4/3. Make an IP adress unclickable.py | f6b7f30215f124961d64f2ec6f1ae189675582a4 | [] | no_license | LarisaOvchinnikova/Python | ee65eac221cd03563d60110118175692564c5b2d | 9cc86a260828662995dec59a6d69528f96d37e79 | refs/heads/master | 2021-08-22T21:41:02.351589 | 2021-05-25T18:37:09 | 2021-05-25T18:37:09 | 253,842,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | # Input: address = "1.1.1.1"
# Output: "1[.]1[.]1[.]1"
def ip_address(address):
return address.replace(".", "[.]")
print(ip_address("1.1.1.1")) | [
"larisaplantation@gmail.com"
] | larisaplantation@gmail.com |
c212488374a2e7a4dcf011707fabc37464e8b920 | f79102231c83674a4c01e56e3953b2a65cb14da2 | /leetcode/base/list/环形链表.py | 31d0d694e9e23ee41583a99337ef25a65410b65f | [] | no_license | Activity00/Python | 4971b177beaf72df0de97f7e78f400d48104dce1 | 166d97f36bbeea74c84ec57466bd0a65b608ed09 | refs/heads/master | 2020-12-24T07:53:06.782982 | 2020-09-29T10:55:43 | 2020-09-29T10:55:43 | 73,362,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | # coding: utf-8
"""
@author: 武明辉
@time: 19-3-20 下午9:35
"""
"""
给定一个链表,判断链表中是否有环。
为了表示给定链表中的环,我们使用整数 pos 来表示链表尾连接到链表中的位置(索引从 0 开始)。 如果 pos 是 -1,则在该链表中没有环。
示例 1:
输入:head = [3,2,0,-4], pos = 1
输出:true
解释:链表中有一个环,其尾部连接到第二个节点。
示例 2:
输入:head = [1,2], pos = 0
输出:true
解释:链表中有一个环,其尾部连接到第一个节点。
示例 3:
输入:head = [1], ... | [
"1032662429@qq.com"
] | 1032662429@qq.com |
54d0c850aeea3d8745e9e8793b2c9498017e11c6 | 84403eabc825adc91b47525fed136c7a84449205 | /practice_filerenaming.py | 24082671cf519abd3466202938d65a36e2c79663 | [] | no_license | a-b-v-k/PythonBootCamp | 7ae464a6f47ab7074eb5ee514b8f8250b86128b9 | 3b55ce4dc8cb2232429a671f8cbfc101eb74bdf5 | refs/heads/main | 2023-06-25T00:25:44.827193 | 2021-07-26T13:04:56 | 2021-07-26T13:04:56 | 376,466,219 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | import os
try:
filepath = str(input('Enter the path of the file:'))
newname = str(input('Enter the new name:'))
filedir = os.path.dirname(filepath)
filename = os.path.basename(filepath)
newfilepath = filedir + '/' + newname
os.rename(filepath, newfilepath)
except FileNotFoundError as e:
... | [
"vijaykrishnaabv@gmail.com"
] | vijaykrishnaabv@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.