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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c8bb720062730af2e1e92d5dc5cfeb4a68621f33 | 2d040fde3d3638939718ccfd42eff9e35c352331 | /EXAMPLES/EDABIT/EXPERT/001_100/32_word_buckets.py | 7af06c08fa43a2ad265f550404360d8d86dd1a38 | [] | no_license | ceyhunsahin/TRAINING | fcb9837833d2099dc5724f46a675efe4edf3d5f1 | 73cc7dba8447e4066ccfe7adadc727d134ffbf0b | refs/heads/master | 2023-07-13T01:12:53.160300 | 2021-08-17T11:50:51 | 2021-08-17T11:50:51 | 397,591,819 | 1 | 0 | null | 2021-08-18T12:25:45 | 2021-08-18T12:25:44 | null | UTF-8 | Python | false | false | 1,904 | py | """
Word Buckets
Write a function that divides a phrase into word buckets, with each bucket containing n or fewer characters.
Only include full words inside each bucket.
Examples
split_into_buckets("she sells sea shells by the sea", 10)
➞ ["she sells", "sea shells", "by the sea"]
split_into_buckets("the mouse jumped... | [
"mustafaankarali35@gmail.com"
] | mustafaankarali35@gmail.com |
26148a674bd24731dcff1e3a3b3e1a108a07024c | f4536137b9220a1b34a5f51584edaf8c4c70177b | /venv/bin/pip | ada115087321c2f8499315ca4e595d4d9b657f9b | [] | no_license | aeaa1998/flat-shading | 3e1fc1dc5b127038f459eb285c95e76512403099 | 3a29bd77036d2693a5caf3162eb948e459bf5715 | refs/heads/master | 2022-12-23T10:19:49.239098 | 2020-10-04T23:48:50 | 2020-10-04T23:48:50 | 301,250,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | #!/Users/tito/PycharmProjects/firstExampleGraficos/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv... | [
"augustoalonso98@gmail.comn"
] | augustoalonso98@gmail.comn | |
ce54656ea5db1e7a8ac9b575eb477e984a3bc010 | d56f89fea712d9ff2cb5f15b9108e2bf8df0fef3 | /samples/embed_m_freq.py | e326c3c208e9783e0f7c030ba90a01faea4735f5 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | huhailang9012/VideoDigitalWatermarking | 91e159239ebb61c72b4fb18e16afcb06a19b7155 | 6439881dc88fb7257a3dd9856b185e5c667b89b4 | refs/heads/master | 2021-12-27T13:46:36.013660 | 2018-01-10T20:29:52 | 2018-01-10T20:29:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | #
# embed_m_freq.py
# Created by pira on 2017/08/16.
#
#coding: utf-8
from VideoDigitalWatermarking import *
import numpy as np
import math
fnin = 'test.bmp'
fnout = 'test_embeded.bmp'
secret_data = [1,1,1,1,0,0,0]
secret_length = len(secret_data)
N = math.ceil(math.log2(secret_length+1))
m = generateM(N)
print... | [
"pira.y1121@gmail.com"
] | pira.y1121@gmail.com |
760af086281e9a6910f270a450ae709f09235e16 | cd56a6f2e2cdc4ec79ecd7d1ee2fdf7032a8e0fd | /multiples_of_number.py | 4cd0460da3a8675b4a301420e6c615f615fdb343 | [] | no_license | Jicaai/CodeEval | 2f878c38999e6e8961222270343295ebb1f29938 | ce9e138b1a8b9171754b82de41c3b00885573ccb | refs/heads/master | 2019-05-14T07:09:08.817035 | 2011-08-10T16:33:22 | 2011-08-10T16:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # -*- coding: utf-8 -*-
# Author: Tiny
# Date : July 30, 2011
# email : plakitboy@gmail.com
# Multiples of a number
'''
Description:
Given numbers x and n, where n is a power of 2, print out the smallest multiple of n which is greater than or equal to x. Do not use division or modulo operator.
Input sample:
The fir... | [
"plakitboy@gmail.com"
] | plakitboy@gmail.com |
3ea4e9a92e3011fef6d2fd88811109593685b846 | 549de3f17e5af1e424d7a6b30fc6be663ec01e08 | /pine/market/bitflyer.py | 459bb8c6fd9440a18440c1e06abb49206ac4e694 | [] | no_license | kzh-dev/pine-bot-server | 25eedcce3d62a3b788a256107ef491a46664a7c8 | d36107328876adb3cd473587a5a31169fb6a5a98 | refs/heads/master | 2020-04-25T14:31:41.255771 | 2019-10-22T16:56:57 | 2019-10-22T16:56:57 | 172,844,592 | 13 | 15 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | # coding=utf-8
import requests
from .base import MarketBase, MarketError, empty_udf, utcunixtime, register_market, rows_to_udf
URL_TMPL = "https://api.cryptowat.ch/markets/bitflyer/btcfxjpy/ohlc?" + \
"periods={resolution}&after={f}&before={t}"
MARKET = 'BITFLYER'
SYMBOL = 'FXBTCJPY'
TICKERID = ':'.join... | [
"dev69.kzh@egmail.com"
] | dev69.kzh@egmail.com |
8eddb069f39ef6a0e48c88dcb87c3faa3408030c | e737e01d2937e313e2d55aa2418e8aee197fd5d8 | /spect.py | e8cc1dd22d657f41399f4b9e0f27c2d92b352aa0 | [] | no_license | gauravuttarkar/soft_computing | f1c77f627ca5eea68e25c9f4e81ba4ff6eb8be6c | 797a6751523e15e0e79e25987b35b00454a16856 | refs/heads/master | 2020-03-26T15:11:10.453497 | 2018-08-16T18:49:54 | 2018-08-16T18:49:54 | 145,026,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,643 | py | import csv
n = 23
def func (w, data, threshold,lr):
sum = 0
for i in range(len(data)):
sum = sum + data[i] * w[i];
sum = sum + w[-1]
print(sum)
res = None
e = 0
if ( sum >= threshold ):
res = 1
else:
res = 0;
if data[-1] - res:
e = 1
for i in range(len(w)):
w[i] = w[i] + lr * ( data[-1] - res)... | [
"gaurav.uttarkar@gmail.com"
] | gaurav.uttarkar@gmail.com |
4337652ec8fcaa828561209d2ef97f26833bde5b | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dmlearnedinfo_4f43a9179cbbb274bfab560ae9dfbd66.py | bccd3b329da92782d108098a9e5f30e66f1a8192 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 9,343 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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 the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
d47c6412a8baf2436f23808f2157667168e10d4e | 394104f5ee856aadb0ef420631ddf7b65dc2e3b7 | /purchase_mate/users/forms.py | 0bc10d7e90d7f558d418b93c9ea9e33d3b23bb4d | [] | no_license | LeeTaeGeom/Purchase-mate | 7ac5f858f899afe5ce12907f10374a6622b0edc5 | 0314289d0aa680a5af61886a0c0ac84e650bcf8d | refs/heads/main | 2023-05-31T02:31:55.114658 | 2021-07-04T10:21:19 | 2021-07-04T10:21:19 | 381,567,535 | 0 | 0 | null | 2021-06-30T03:48:06 | 2021-06-30T03:48:05 | null | UTF-8 | Python | false | false | 611 | py | from django.contrib.auth.models import User
from django import forms
from .models import Profile
class SignupForm(forms.Form):
model = User
name = forms.CharField(label="이름")
phnum = forms.CharField(label="휴대폰 번호")
address = forms.CharField(label="자취방 주소")
def signup(self, request, user):
... | [
"sangjune2000@naver.com"
] | sangjune2000@naver.com |
bfe4b996f1eac1b0d7132647fe8198f51939af12 | 94cb27460041192295e7f00bbf44aff58dd07439 | /Orbicle/materials.py | d1d104643a8c1259a4f5edf41f516902b6079314 | [] | no_license | jaycoskey/Shapes | 0ab820fc799d6aedd799263522288be17a0347ef | 2f414ac196949ca31a4f31447bd7ae5615dc1690 | refs/heads/master | 2022-11-08T05:26:19.505922 | 2022-10-10T10:01:50 | 2022-10-10T10:01:50 | 58,186,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | # Note: This file is currently unused.
# mat_red = material_make('Red', (1,0,0), (1,0,0), 1)
# mat_green = material_make('Green', (0,1,0), (0,1,0), 1)
# mat_blue = material_make('Blue', (0,0,1), (0,0,1), 1)
# mat_yellow = material_make('Yellow', (1,1,0), (1,1,0), 1)
# mat_magenta = material_make('... | [
"jay.coskey@gmail.com"
] | jay.coskey@gmail.com |
a6675eda16e06e5d9b102c16cafe8da9bda77128 | 0a32dafa81f92aa03de23ed0c1cec532ab1bc509 | /flask/app-route/src/sample_api.py | b8879ce723d60555b5eefc8c9ed773c5e3cfc596 | [] | no_license | kokilavemula/python-1 | c7ec09236cd49237dc32ed8dd88d117cb1bd4b2e | ed1e166ad4c9f1b27b231807f4400625a49e1cfa | refs/heads/master | 2021-03-20T23:15:32.549693 | 2020-03-14T07:15:41 | 2020-03-14T07:15:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from flask import Flask
app = Flask(__name__)
@app.route('/api/v1')
def view_message():
return {"message": "This is flask !"}
@app.route('/api/v1/version')
def api_version():
return {"version": "1.0.0"} | [
"noreply@github.com"
] | kokilavemula.noreply@github.com |
78b66f564eb446e6c12c6c82556db71f4cf8af99 | 58ac0e88ff5b3973940adeeb36c4c4aa5de005f7 | /kullanıcı_girisi.py | 38258e032372233adc5e3b38cfddda1b8966db52 | [] | no_license | MrSerhat/Python | ce9e0611b62343189e2cfbdefbbf74df815f9587 | d9473ee191e54e4fb782f7dc174c6bff0128e6f3 | refs/heads/master | 2022-12-23T17:24:01.676036 | 2020-09-25T13:09:23 | 2020-09-25T13:09:23 | 298,575,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | print("""
***********************
Kullanıcı Girişi Programı
***********************
""")
sys_kullanıcı_adı="Serhat"
sys_parola="12345"
giriş_hakkı=3
while True:
kullanıcı_adı=input("Kullanıcı Adı:")
parola=input("Parola:")
if(kullanıcı_adı!=sys_kullanıcı_adı and parola==sys_parola):
... | [
"noreply@github.com"
] | MrSerhat.noreply@github.com |
1c5097ca3b89c4671d58ce7b7bfd0ad33356c711 | 72fd1c4c2d0c49135bbd6b1f05d86bcd73ba7801 | /[8] Two Pointers LC Solutions/remove_duplicates_sorted_array.py | c11d615891019f44d038b571038b2df68d38bc67 | [] | no_license | SUKESH127/bitsherpa | ca1400ad5b05ac8615f76f46251f572c96161b08 | 325cc124f44fa274744f023ea47660d14d1ab131 | refs/heads/master | 2022-12-29T18:29:47.300045 | 2020-10-18T02:39:17 | 2020-10-18T02:39:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # QUESTION: https://leetcode.com/problems/remove-duplicates-from-sorted-array/
class Solution:
# SOLUTION: Not trivial. Since we need everything to
# be in place, we use a two pointers approach.
# The upper pointer, j, is going to go through all the elements (it will be the "fast" pointer).
... | [
"advaitchauhan95@gmail.com"
] | advaitchauhan95@gmail.com |
272b2c4c75903eb46eab6d6850e8b942c041f7cc | 5c6a81adfa3f28e4016b604cc8ccc93d86871e8c | /setup.py | a886daff712d3ca6e9be885bc5a84c04e8a2ac4f | [
"MIT",
"CC-BY-3.0"
] | permissive | ogut77/spleeter-gpu | bd85697269db8427955bb9317c2cbfe9879d0970 | 7b16b1bac6bfa4ab1a2c599e3426fcb2a00398dd | refs/heads/master | 2022-09-02T14:04:21.866399 | 2020-05-27T08:52:07 | 2020-05-27T08:52:07 | 264,083,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,306 | py | #!/usr/bin/env python
# coding: utf8
""" Distribution script. """
import sys
from os import path
from setuptools import setup
__email__ = 'research@deezer.com'
__author__ = 'Deezer Research'
__license__ = 'MIT License'
# Default project values.
project_name = 'spleeter-gpu'
project_version = '1.5.2'
tensorflow_de... | [
"noreply@github.com"
] | ogut77.noreply@github.com |
4eda5ebc13377f729fd3c72e0c7b2a03e4975869 | 046674b67ad5727ec65725e826ea354ca07d71da | /investpy/data/certificates_data.py | 3ba7558dcaa8205c5988f5e71f0675594cc587a1 | [
"MIT"
] | permissive | alexanu/investpy | cad2d0ef3f67b4fa4ecb23a4730ae96c1a162168 | bc46d30af21f03ab5b7b9aa259b755db281277bb | refs/heads/master | 2020-12-28T08:48:01.479075 | 2020-05-15T22:42:15 | 2020-05-15T22:42:15 | 238,252,327 | 0 | 1 | MIT | 2020-05-15T22:42:16 | 2020-02-04T16:31:29 | null | UTF-8 | Python | false | false | 11,141 | py | #!/usr/bin/python3
# Copyright 2018-2020 Alvaro Bartolome @ alvarob96 in GitHub
# See LICENSE for details.
import json
import unidecode
import pandas as pd
import pkg_resources
def certificates_as_df(country=None):
"""
This function retrieves all the data stored in `certificates.csv` file, which previousl... | [
"alvarob96@usal.es"
] | alvarob96@usal.es |
6ea1a786a416dbffca32dc43c577825230ed29b5 | a17ca4ed7c39a995976a6cce94052e1b58115727 | /fairseq/models/rmmt.py | 768982806010bf1522e4d7af6693be78c10478db | [] | no_license | cocaer/Revisit-MMT | f3da52d99318aa3f27d66ffa776207e6bc7264c5 | dc368d0af8d60270b8f4aaa2f3ac58771c551da3 | refs/heads/master | 2023-05-30T12:18:40.280612 | 2021-06-14T07:24:18 | 2021-06-14T07:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,257 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from collections import defaultdict, namedtuple
import math
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional ... | [
"whucs2013wzy@gmail.com"
] | whucs2013wzy@gmail.com |
bc1a5861be1270c530f16f8819616c2c8a3b96b2 | 266947fd84eed629ed0c21f6d91134239512afd9 | /BeginnerContest_B/040.py | 428cbcd1c832fa505fa0b9cc5bed4714476cd59b | [] | no_license | SkiMsyk/AtCoder | c86adeec4fa470ec14c1be7400c9fc8b3fb301cd | 8102b99cf0fb6d7fa304edb942d21cf7016cba7d | refs/heads/master | 2022-09-03T01:23:10.748038 | 2022-08-15T01:19:55 | 2022-08-15T01:19:55 | 239,656,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | n = int(input())
res = n
if n == 1:
print(0)
else:
for i in range(1,n):
for j in range(1, (n // i) + 1):
res = min(abs(i - j) + n - (i * j), res)
print(res) | [
"sakaimasayuki@sakaimasayukinoMacBook-puro.local"
] | sakaimasayuki@sakaimasayukinoMacBook-puro.local |
31962ac06ebd08c37d98e56bbc9ed04d8d609b38 | 6548d0d4dc3e2b6527e1f1a3a4c3189e85f781d4 | /12yield/test4.py | 31f8849dcca85a4fecd2481667f8c146ab51ae48 | [] | no_license | feipeixuan/pynote | f9d9d8df265688148ff8a9a7b96c1c467502a876 | 3305216f3ef9c418d8238df046836158da648943 | refs/heads/master | 2021-03-06T20:43:32.480689 | 2020-06-11T03:33:42 | 2020-06-11T03:33:42 | 246,222,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py |
import asyncio
import inspect
c = ""
async def async1():
global c
future = async3()
await future
async def async3():
print("2222")
a = async1()
for i in a:
print(i)
print("ssss")
break
for i in c:
print(i)
break
for i in a:
print(i)
print(inspect.getgeneratorstate(a))
# p... | [
"feipeixuan@163.com"
] | feipeixuan@163.com |
99fa6f1b7bc13e4e7222ca6cb7133da9c486957e | f201134e41f777edce48ed7659f67df106940333 | /eqSolver.py | 5cb996f9c92a0a0074a966d8f0fe9949a02435ef | [
"MIT"
] | permissive | Alex-Gurung/MathSpeech | fd5e5b3a7a0a6056c8078db5d00d595b13ad13e4 | 87a1cf6d7b28847856cb07621a2600e3049f1804 | refs/heads/master | 2020-12-24T07:43:17.133638 | 2016-09-25T15:27:23 | 2016-09-25T15:27:23 | 52,043,679 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,034 | py | import speech_recognition as sr #Import the speech recognition library
from sympy import * #Necessary for commented out code, but comment this import if not using them
def eqSolver():
#Setup speech
r = sr.Recognizer() #Creates a variable to listen to the audio
#Code to get speech
with sr.Microphone() as source: #... | [
"aag1234@gmail.com"
] | aag1234@gmail.com |
2414ae3beb14e12cb9fadc950d80842e81f42b08 | 5b8e75b97b57155eb729f933173b3b51223a21bb | /Python001/src/func/funcTest002.py | 552f73820f8f7cdc5a13c87b45032e8256fd559a | [] | no_license | suhongsheng/PythonStudy | 253d9d181693a3d5c88a329f709e031b1f894cdc | 56025f4bf107ee2b714cbad773d1398f0ed71a35 | refs/heads/master | 2021-01-12T07:15:57.599964 | 2016-12-23T02:16:06 | 2016-12-23T02:16:06 | 76,927,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
def add(a, b):
return a + b;
def ifunc1():
print("in ifunc1......");
return 5;
def ifunc2():
print("in ifunc2......");
return 4;
print(add(ifunc1(), ifunc2()))
| [
"suhs@192.168.199.4"
] | suhs@192.168.199.4 |
1453e30153cf98367fc5b85420afc78a62209898 | b1c403ad1211221427dddc80a7f15956da498175 | /0x00-python_variable_annotations/5-sum_list.py | ecabba3f646aededae76758584b268ee13eeb8b4 | [] | no_license | oumaymabg/holbertonschool-web_back_end | 246dd47b9abdb277d6ef539c9bc38a8f0509554a | dce7ff683d8bce9ad986d72948c9e75ca7b80d2a | refs/heads/master | 2023-09-05T22:27:28.961336 | 2021-11-15T21:05:53 | 2021-11-15T21:05:53 | 389,440,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!/usr/bin/env python3
'''
Module that takes a list of floats and returns their sum as a float
'''
from typing import List
def sum_list(input_list: List[float]) -> float:
'''
Type-annotated function that takes a list of floats and returns its sum as
a float
@input_list: list of floats to sum
Retur... | [
"oumaymabou257@gmail.com"
] | oumaymabou257@gmail.com |
4936290e2ae3b24e8f1ee14bb292c2875b7a63b4 | c4fc08f1b19bcb39f6d304987e7c0c3a1b12a6b5 | /golly/Scripts/Python/LifeGenes/lifegenes_core/setupLog.py | 4423f1889a4dead07d374b9dff90db16ba2ef503 | [
"MIT"
] | permissive | 7yl4r/LifeGenes | ba35da389b13f17e6de06f41f8ad016be6707e09 | cb2928ba9ddadd785fc55be443c117fb34eae967 | refs/heads/master | 2020-04-13T21:17:59.191858 | 2014-11-30T18:03:10 | 2014-11-30T18:03:10 | 10,677,365 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,563 | py | #NOTE: this file only resets when golly is restarted,
# otherwise the log object is retained and reused,
# appending to the file as the script is run multiple times
from os.path import expanduser,join
from os import makedirs
import logging
from LifeGenes.lifegenes_core.__util.appdirs ... | [
"murray.tylar@gmail.com"
] | murray.tylar@gmail.com |
6d77335758946fb430e454dce90f2acb4f05c0ad | 0ef8eab189c3a234dadb165e4e57cce24091b002 | /src/utils/bot.py | 5784c6001491885b6cd9c5b6420da4729b27eb3e | [
"MIT"
] | permissive | TrendingTechnology/wm_bot | aca36650e8459593ba38e12928a933f6c14c62f1 | 120d529bca4b721506fdbd5f1ba84a84df51e74c | refs/heads/main | 2023-07-02T16:24:19.684238 | 2021-08-08T14:08:23 | 2021-08-08T14:08:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,935 | py | """File for things releated to the bot."""
import asyncio
import os
from operator import attrgetter
from typing import Generator, List, Union
import aiogoogletrans
import aiohttp
import async_cleverbot
import async_cse
import asyncdagpi
import asyncpg
import discord
from akinator.async_aki import Akinator
from discord... | [
"63045920+wasi-master@users.noreply.github.com"
] | 63045920+wasi-master@users.noreply.github.com |
ec148790433155e8f149842682b6f0f1084b7e33 | 124df74bd27893e5d0de7f6ea48f5b2d7ac34c4f | /Chapter12/Python/03-diagnose-missing-values-in-python.py | 048d2500e28511c3c619b54239096bfdd79b2ba8 | [
"MIT"
] | permissive | Micseb/Extending-Power-BI-with-Python-and-R | 5dc3cf4051312e4d0e5bc915c17c8bb735e0a39b | 12791b8f1499f70c9c7b0c9aeb2016d12e41f845 | refs/heads/main | 2023-08-24T07:08:43.000627 | 2021-11-01T07:50:24 | 2021-11-01T07:50:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | # THIS SCRIPT IS SUPPOSED TO RUN IN A JUPYTER NOTEBOOK (WE USED VS CODE)
# %%
import pandas as pd
import missingno as msno
from upsetplot import UpSet
import matplotlib.pyplot as plt
# %%
def miss_var_summary(data):
n_missing = data.isnull().sum()
percent_missing = data.isnull().sum() * 100 / len(df)
miss... | [
"lucazavarella@outlook.com"
] | lucazavarella@outlook.com |
2519e2c62c3f64feb7e828eeb460fca8cec23ba4 | b5ee8f9645991fd427c583f4823b2f8a6d43c133 | /Rdefish.py | 69e1d9aeb87757041f166e1ef2aa5973ef69bdc4 | [] | no_license | Logaesh/CaptureId_Server | d098e06dd0324468016749f723893392d8ec6247 | 1c02c2e78dfcba28e62f26ce5c61bf433d869423 | refs/heads/master | 2020-03-28T04:16:15.367058 | 2018-09-06T16:38:18 | 2018-09-06T16:38:18 | 147,704,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | # You should replace these 3 lines with the output in calibration step
import cv2
assert cv2.__version__[0] == '3', 'The fisheye module requires opencv version >= 3.0.0'
import imutils
from number import transform_exe
import numpy as np
import re
import os
import glob
import sys
import time
#**House warming**DIM=(259... | [
"logaesh463@gmail.com"
] | logaesh463@gmail.com |
8c651b2ddf4b8cadc0a92b94e3d24a0ef5166507 | b60ef7e69237a2dc2b9b7da89d2435565236255a | /store/migrations/0002_auto_20210512_1341.py | e97ab2487503d9498f9f40d31d437053c716e84d | [] | no_license | Sudhanshu-jena/Eshop | c1ddee9c23da97ca46ff050de36274f491e30408 | b50812046c34a5a1bc12999dac5f0d30decc5849 | refs/heads/main | 2023-06-01T15:12:04.071719 | 2021-06-10T16:10:01 | 2021-06-10T16:10:01 | 372,899,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | # Generated by Django 3.2.2 on 2021-05-12 08:11
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
('id', m... | [
"63591527+Sudhanshu-jena@users.noreply.github.com"
] | 63591527+Sudhanshu-jena@users.noreply.github.com |
cc6024a350374cdff960105a0796e9522377275c | 1b78a071c2134beafc265b839ba8acba63142be2 | /intersight/models/connector_ssh_config_ref.py | b2b2e61309c6a25006f62c8ec863fd1c1748cfe8 | [
"Apache-2.0"
] | permissive | dyoshiha/intersight-python | 59c2ed3f751726a1d7c0e4254f1203e6546f1d47 | 01d1abcf8a9dcee0fe9150cdec70eb39d76ca290 | refs/heads/master | 2020-12-30T07:32:16.452334 | 2020-02-03T21:32:36 | 2020-02-03T21:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,720 | py | # coding: utf-8
"""
Cisco Intersight OpenAPI specification.
The Cisco Intersight OpenAPI specification.
OpenAPI spec version: 1.0.9-1295
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class ConnectorSshConfi... | [
"ucs-build@github.com"
] | ucs-build@github.com |
67cf83d02f4bff6eabea184f22477d015d40f62b | cd29f7fb82cb312766102fc33bd920d7a0321ebb | /manage.py | 2789e0ddd1e30b5b02faae2d9a9c616e46ce4b4f | [] | no_license | vincent7bedard/camp-nextgen | 5175a2d6dd7acc86bd0ad1615601d3ce0e58b4b6 | ad8a6a357ab8ab84f03d814c0fd9db32ec0a51bd | refs/heads/master | 2021-10-10T17:25:38.295090 | 2019-01-14T16:31:07 | 2019-01-14T16:31:07 | 117,355,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "campnextgen.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that ... | [
"35401923+vincent7bedard@users.noreply.github.com"
] | 35401923+vincent7bedard@users.noreply.github.com |
62681087bb51e21c1acf70c7608ba6d104d0c96e | 9c07d422c7539d6b44b785b2c8c61e077af4f51e | /tests/unit/model_selection/test_data_preparation.py | c9ffdc8d0d3cc59910a399a9d13aa27180cff0dd | [
"MIT"
] | permissive | therhaag/hcrystalball | 9b82510204c53ff016fdf0155edbfb0d7d1dc2a7 | 666ad093a1353ca152d1490f26362fd089ee3a56 | refs/heads/master | 2022-11-12T00:49:05.813119 | 2020-07-03T10:36:44 | 2020-07-03T10:36:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,121 | py | import pytest
import pandas as pd
from pandas.util.testing import assert_frame_equal
from hcrystalball.model_selection import (
partition_data,
partition_data_by_values,
filter_data,
prepare_data_for_training,
)
def test_partition_data(test_data_raw):
n_region = 2
n_plant = 3
n_product = ... | [
"michal.chromcak@heidelbergcement.com"
] | michal.chromcak@heidelbergcement.com |
1e51a2ec077d036a2f94ac256cd6abd66c5beceb | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/optimized_15802_notags.py | 3085e9e5f5adceda06f3afd8f41f11354495ad76 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,777 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
6fe6f1837a2ae451cc49b713cdfe92c018dcc80e | 49c56e91ed6a749a3f00b38fc5702d44da430546 | /4. Lists/Assignment 5 - MaxNum/max_num.py | 75be8847092128c6a46545542f7e86b06d47dcf8 | [] | no_license | sushilrajeeva/Python-Infosys | 32349e30527d3c146fae8e271c94f063562288d2 | 0c9a9b90f368a5e5d846d6856b92250a05f462e1 | refs/heads/main | 2023-03-09T13:59:38.261451 | 2021-02-13T12:08:38 | 2021-02-13T12:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | def find_max(num1, num2):
max_num=-1
# Write your logic here
if num1 >= num2:
return -1
num_list = []
for i in range(num1,num2+1):
if len(str(i)) == 2:
if (int(str(i)[0])+int(str(i)[1]))%3 == 0:
if i%5 == 0:
num_list.append(i)... | [
"sushilrajeeva@gmail.com"
] | sushilrajeeva@gmail.com |
09c30c4ee8d5edcf60ea994e86328c9a777679b2 | fa9d87827d7f2790360d109163c50ea0521c70a1 | /dj_forms/urls.py | 64e0434b98e3729204835a299694d45fb5991da1 | [] | no_license | rifqirosyidi/django-dynamic-forms | 9b1e5115a5a0ca7f5f4a54a8494094260a406abe | 8e4ad1f244e852c11b9c36bcacd3ffddc58647c7 | refs/heads/master | 2023-05-05T14:56:30.186239 | 2021-04-12T09:42:11 | 2021-04-12T09:42:11 | 210,821,163 | 1 | 0 | null | 2022-04-22T22:27:46 | 2019-09-25T10:47:03 | JavaScript | UTF-8 | Python | false | false | 483 | py | from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
from django.urls import path
from core.views import bootstrap_filter_view
urlpatterns = [
path('admin/', admin.site.urls),
path('', bootstrap_filter_view, name='bootstrap_form')
]
if settings.DEBUG:
... | [
"rief.rosyidi@gmail.com"
] | rief.rosyidi@gmail.com |
a0604eaf903597a9c33564e33bbff940718abe8d | ef4f3faafb78609f88bdf9d2959041705a793fde | /Pages/Interactions/Interactions_Page.py | 5bf8c9b6ac18536b8ccfecbd7237de66c170c451 | [] | no_license | LuckyAndrey/pomTutorial | 14ff5e7604462503e0c0bcd5c9a6012cba193aee | cbf9927a5a41714b035c5e3096fdd7062688837a | refs/heads/master | 2020-03-20T22:56:04.703585 | 2018-06-19T00:32:19 | 2018-06-19T00:32:19 | 137,821,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | from random import randint
class StaticDrop(object):
def __init__(self, driver):
self.driver = driver
def chose_menu_item(self, nameOfmenu):
self.driver.get("http://demo.automationtesting.in/Static.html")
self.driver.find_element_by_link_text("Interactions").click()
self.drive... | [
"aretivikh@mail.ru"
] | aretivikh@mail.ru |
29508ba756fefda65accb4e418dfd2d471a05776 | a28edab2207fd9f58fe2f12207607bb832a21685 | /test/qw_PbPb15_HIMB_randq.py | 75e03501617ef9b08721b0c187d97a27c07e471e | [] | no_license | BetterWang/QWQVector | 4bfae038cf3d0f965af72102dd8b0ec091402b80 | a7b95886e261d6dd5c2743874a3703bfc7652ef6 | refs/heads/master | 2020-12-24T07:37:02.876423 | 2016-06-30T13:35:40 | 2016-06-30T13:35:40 | 55,786,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,703 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("QVector")
process.load('Configuration.StandardSequences.Services_cff')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.StandardSequences.GeometryDB_cff')
process.load('Configuration.StandardSequences.MagneticField_38T_... | [
"BetterWang@gmail.com"
] | BetterWang@gmail.com |
1962b63a6c31ec4894edce0ef34ab038c15e6c79 | 84762d3732524bc732bb8f087b57d1d4c941eed1 | /backgrounds.py | 9d98bbb0e67870f83a4447fd7570562a056adc28 | [] | no_license | Hiphopbob/DnD-GUI | de31955a8e4dcf9deecb891b6a481589aeb7475e | 8a45ac0a79b0c232f9a70fe2e327fdeefd9bf955 | refs/heads/master | 2020-07-08T06:58:38.147074 | 2019-08-21T14:25:39 | 2019-08-21T14:25:39 | 203,600,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 17 19:24:05 2019
@author: Steffen 000
"""
import numpy as np
def bg_description(bg_name):
if bg_name == 'Alert1':
return '''
You gain +5 bonus to initiative. \n
You can't be surprised while you are conscious. \n
Other creatures don't gain advanta... | [
"noreply@github.com"
] | Hiphopbob.noreply@github.com |
0e8f51d09fa9a99cc12bfc76c2e268f90f67dbbe | 000090bbdb8afb26098dc86420ae66d2dd915baa | /test/scanner_files/wl_events.py | 61278fbc94255398859c91151951adecf57d0be6 | [
"Apache-2.0"
] | permissive | flacjacket/pywayland | 7b25f9730a16f3ebf79e84f3a68b9cd18fbca88d | 5d1fafc1935cc489b68faac544404c65b9449787 | refs/heads/main | 2023-08-07T17:11:52.211565 | 2023-07-26T15:28:46 | 2023-07-26T15:28:46 | 33,219,523 | 71 | 18 | Apache-2.0 | 2022-12-20T03:02:43 | 2015-04-01T01:26:05 | Python | UTF-8 | Python | false | false | 4,280 | py | # This file has been autogenerated by the pywayland scanner
# Copyright 2015 Sean Vig
#
# 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
#
# U... | [
"sean.v.775@gmail.com"
] | sean.v.775@gmail.com |
cf5075cf714f5e01484506f7b558a2f019d88a01 | bfd9b16aa55e4887ba574438870593106f74ada6 | /keras_retinanet/bin/trainHCC.py | 16971128c989c08d7ae3e7d2c4b62ccb4ab578ec | [
"Apache-2.0"
] | permissive | jmj23/keras-retinanet | e11f75a90b95b2af11cb22afe2ac1e5861e48c29 | 33b5b0986dee0d0280847fb60b29cb401d596ae8 | refs/heads/master | 2020-07-01T05:53:56.950382 | 2019-08-12T15:14:31 | 2019-08-12T15:14:31 | 201,066,844 | 0 | 0 | null | 2019-08-07T14:28:24 | 2019-08-07T14:28:23 | null | UTF-8 | Python | false | false | 14,490 | py | #!/usr/bin/env python
"""
Copyright 2017-2018 Fizyr (https://fizyr.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | [
"johnsonj118@gmail.com"
] | johnsonj118@gmail.com |
431f0362eda816928191d97d21a5e2ccfd75a80a | db9cf192173986e79f8a52934d9f7694de7e8b5f | /Alfred.alfredpreferences/workflows/user.workflow.0B78589C-6586-4A25-9118-FAB641EDB920/list_sources.py | 317718c364f6d806f1bb5df183b2fdf50317af3e | [] | no_license | dcerniglia/dotfiles | 01bdf5f3cb5f5cb7aa5921fa9c9d5abe8243d5af | 8c4e3a2eda06e9c8f9212cc44ef5bb092822b436 | refs/heads/master | 2023-04-17T22:50:53.183402 | 2021-04-28T14:19:46 | 2021-04-28T14:19:46 | 294,868,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | #!/usr/bin/env python
from sys import stdout
from json import dumps
from SwitchAudioSource import get_sources
output_items = filter(lambda source: source.output, get_sources())
items = map(lambda source: source.__dict__, output_items)
json_output = dumps({
"items": items
})
stdout.write(json_output)
| [
"dcerniglia@gmail.com"
] | dcerniglia@gmail.com |
930c7dd124dcecefff3b9d3d5928936668d26b18 | 46af3499de3cf50bd21719fd994696fa35c10943 | /audio/tasks.py | 263188abf2491550e235560ab69d61f0ac9e6e57 | [] | no_license | bubiche/audio-sharing | 188acd371119ed2b64e6cacacebe33a4ffd16e8e | 549d21d673153e82dd354d3d2ae4b483c5993391 | refs/heads/master | 2023-08-13T07:16:35.895382 | 2023-05-03T02:17:46 | 2023-05-03T02:17:46 | 169,017,977 | 0 | 0 | null | 2023-07-25T21:40:20 | 2019-02-04T02:20:23 | Python | UTF-8 | Python | false | false | 110 | py | from celery import shared_task
@shared_task
def test_background_task():
print('Async worker is alive!')
| [
"npnguyen@apcs.vn"
] | npnguyen@apcs.vn |
d5b84ed498afae38c1ebb8e4980c5f349f91daa8 | 96c7720bba82942269eb946c49f02a15ea857f54 | /Alice_In_Wonderland/theHiddenWord.py | c460b22f3299593c2a03c6f9ce266a81e1830074 | [] | no_license | RandBetween/checkio | 147257574a759fe94702165da5992c0929b3bb2d | 7a8854cb8a120d252100b101da24d5cafcc78eff | refs/heads/master | 2021-01-13T13:56:25.381571 | 2016-11-06T19:08:26 | 2016-11-06T19:08:26 | 72,950,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,764 | py | def checkio(text, word):
text = text.lower()
text = text.replace(" ", "")
y = text.splitlines()
y_rows = len(y)
horizontal_search = "".join(y)
y2 = flip_text(y)
y2_rows = len(y2)
vertical_search = "".join(y2)
try:
position = horizontal_search.index(word)
row_cutoffs = []
z = 0
for i in range(y_ro... | [
"c09joe.mercurio@gmail.com"
] | c09joe.mercurio@gmail.com |
6c0caebaae3a59cdc30d8020023d8a3eabf7078d | bf1808d017c966d22e3f3373ad649f4616327190 | /corp/scotscorr/scot_to_vrt.py | 9b90208c03782fe08dca58d1a4325ac274a7d4d9 | [] | no_license | CSCfi/Kielipankki-utilities | 911b2463776fa8fb487309310d8ff815980509c9 | ac54d9e3340cd6f2293bf9d94b0f8737dc0a8adb | refs/heads/master | 2023-08-21T20:44:43.582318 | 2023-08-15T12:41:45 | 2023-08-15T12:41:45 | 237,216,605 | 7 | 1 | null | 2023-03-08T09:09:35 | 2020-01-30T13:15:48 | Python | UTF-8 | Python | false | false | 12,830 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import re
import sys
"""
asahala/finclarin
pyytton skripti.py < infile.html > outfile.vrt
the input file should be .docx converted into .html
"""
ignore = r'\/|P|HTML|META|STYLE|BODY|FONT|TITLE|SPAN|A|!'
regions = {'Moray': 'North', 'Invernessshire': 'North', 'S... | [
"jyrki.niemi@helsinki.fi"
] | jyrki.niemi@helsinki.fi |
ccc635fd5fc5453d6912d30b383cf2b274f3d005 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/lib/pymodules/python2.6/orca/scripts/apps/notify-osd/script.py | a3bce8bbb7aa7d53ee4003c63c14a568ae16186d | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | /usr/share/pyshared/orca/scripts/apps/notify-osd/script.py | [
"root@xinli.xinli"
] | root@xinli.xinli |
6ceec64b34f5c0a9c312b870046ea52c6f0f325a | 2a7d0e2228994d76e679e25a344a19a5eac8313b | /Python/zamka.py | ed74ed3893bd6b214def5b8442f199438b83e68c | [
"MIT"
] | permissive | JaredLGillespie/OpenKattis | ad1dfaa1ff7563401cc273620d0874f66487ca40 | 71d26883cb5b8a4a1d63a072587de5575d7c29af | refs/heads/master | 2020-03-28T15:08:45.477934 | 2018-12-15T02:18:45 | 2018-12-15T02:18:45 | 148,560,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # https://open.kattis.com/problems/zamka
l = int(input())
d = int(input())
x = int(input())
print(min([i for i in range(l, d + 1) if sum(map(int, str(i))) == x]))
print(max([i for i in range(l, d + 1) if sum(map(int, str(i))) == x]))
| [
"jaredlgillespie@yahoo.com"
] | jaredlgillespie@yahoo.com |
0850e4a010cb942035df138c5b89aea4d5507ffd | 3ab62ab0e4e166154c810b16c148b1a0b0655050 | /PuddleWorld3D.py | 8f86c74855e0b96e0a3b73a15dd43dae5535f6b6 | [] | no_license | lsqshr/NS2 | 4d59de1e3515b680ebdcf5dbdb601d3723d2b24c | fd883e13dcebaf953807e27551b8e612d116ff78 | refs/heads/master | 2021-01-20T19:40:12.929083 | 2016-06-08T04:48:41 | 2016-06-08T04:48:41 | 60,575,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,397 | py | import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from euclid import *
from itertools import count
from lib.tf_rl.simulation.karpathy_game import GameObject
from utils import decimal_to_ternary
class Wall(object):
def __init__(self, center, rotatevec, width, height):... | [
"lsqshr@gmail.com"
] | lsqshr@gmail.com |
e6aab578b33662764874352e24200262490ef1f3 | 438c369db51e74fe9be69a7d3486e1b0276574ab | /request.py | bd0f2c0b22b7eacd3fdff7c7d876338abada98e7 | [] | no_license | hsiangfeng/pythonExample | 3d93a81cc8473ce5dfec8d17d0ad42aa8b14a3ea | f195aaf935b5126d7c671fa7c7d0534b1a8fa158 | refs/heads/main | 2023-04-01T00:55:48.707083 | 2021-04-12T08:17:38 | 2021-04-12T08:17:38 | 357,092,439 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | import requests
url = 'https://hsiangfeng.github.io/'
response = requests.get(url)
if response.status_code == 200:
fp = open('blog/index.html', 'w')
fp.write(response.text)
fp.close()
else:
print('請求出現錯誤')
| [
"loveyou520babytw@gmail.com"
] | loveyou520babytw@gmail.com |
dec38d35bb18391537f14e3e34debaa3e1baa9aa | 17df1eb2f067f00f01a399b9b3e25d655100f458 | /capstone_etl.py | 9e11dc013847dc160d03dd61967b56b84b0838a7 | [] | no_license | priyanshigupta/Analysing-US-Immigration-Data-using-AWS-EMR-and-AWS-Athena | a7e8fa282e12b7b6654a0e5f53bc279250c40921 | f3007476b7600271d26881ae9170ba2ce9f52e7e | refs/heads/main | 2023-03-13T02:20:00.882116 | 2021-03-01T13:14:21 | 2021-03-01T13:14:21 | 343,263,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,296 | py |
import time
import configparser
from datetime import datetime
import os
from pyspark.sql import SparkSession
from pyspark.sql.functions import udf, col
from pyspark.sql.functions import year, month, dayofmonth, hour, weekofyear, date_format, dayofweek
from pyspark.sql.types import TimestampType, DateType
from pyspark.... | [
"noreply@github.com"
] | priyanshigupta.noreply@github.com |
cf5ee8bf40a239389bbca4a93cf0570748922d21 | 9805caed5b83b1ccd8f76ab82bb0fb3a9ecd414e | /Echocardiograph/lib/net/BScanSeg/Vnet8x.py | 4a1cd89ccb42fc1acb1027616bfdc2c9c627f068 | [] | no_license | SwanKnightZJP/Echocardiography-Segmentation | 7f7edaf74fa46165baaa65e8c9e17221b1ff2aa7 | 4ca8c006a10e3fdc21560aa1c4b5f33f695b9395 | refs/heads/main | 2023-07-21T14:19:28.801826 | 2021-08-25T08:55:21 | 2021-08-25T08:55:21 | 360,116,647 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,919 | py | """
BaseLine Vnet:
3D version
dilateConv / defaultConv
input_img:
shape: 112 * 112 * 112
input_tensor:
shape: B 1 112 112 112
torchsummary.test
2 1 112 112 112 -- at single card
================================================================
T... | [
"mnrsmzy@163.com"
] | mnrsmzy@163.com |
84143466f2c2c99f9e7f7b095dd726ff238f09af | d86c5aa92a9763510b539776510ad9795d33ae89 | /September 2020/01-Lists-as-Stacks-and-Queues-Lab/04-Water-Dispenser.py | 5869230151c9e3db1f63cdafc98081b14b610c02 | [
"MIT"
] | permissive | eclipse-ib/Software-University-Professional-Advanced-Module | 42e3bd50ac5f0df8082add29f4113cffb87889e1 | 636385f9e5521840f680644824d725d074b93c9a | refs/heads/main | 2023-02-13T06:02:53.246980 | 2021-01-06T21:12:14 | 2021-01-06T21:12:14 | 306,282,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from collections import deque
water_quantity = int(input())
names = deque([])
while True:
name = input()
if name == "Start":
break
names.append(name)
while True:
commands = input().split()
if commands[0] == "End":
print(f"{water_quantity} liters left")
break
elif ... | [
"65770519+eclipse-ib@users.noreply.github.com"
] | 65770519+eclipse-ib@users.noreply.github.com |
71d446e42f1934646a3e8f22908c8ed75b492439 | 591b49e3a92de93254f60502553fdc4f900b9883 | /euler008.py | 92550de144aa0478a273dec4af71d4528e7d6579 | [] | no_license | drewatk/projecteuler | bde65f3bd7194e866dda6d66c9720f96bc1525e3 | 10592f3c274efca8bf0ca9afb13fab42c1ccdef6 | refs/heads/master | 2020-04-05T23:41:03.186752 | 2015-09-08T21:07:22 | 2015-09-08T21:07:22 | 42,138,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | #!/usr/bin/env python
from numpy import prod
number = 731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949495459501737958331952853208805511125406987471585238630507156932909632952274430435576689664895044524452316173185640309871112172238311362229893423380... | [
"drewatkinson5@gmail.com"
] | drewatkinson5@gmail.com |
03a4058a228eaf68c015f9e7bf3ee0a506cba37e | a2f7fb39609201af57732998b5f1c0e2bfac7cb6 | /QrCode.py | 6d44760aa48a9e0b03e5420b7c6e4be104ba0a35 | [
"MIT"
] | permissive | vkyadavdel/hacktoberfest-coer | 67b04a0f861dc513a71fac96a8144d24c07fefe7 | ece4cc958d588169a5f1550ecfaf9bbe532b2bdd | refs/heads/main | 2023-08-31T06:32:47.423218 | 2021-10-02T04:28:14 | 2021-10-02T04:28:14 | 412,683,176 | 0 | 0 | MIT | 2021-10-02T07:21:16 | 2021-10-02T03:51:16 | Python | UTF-8 | Python | false | false | 365 | py | import qrcode
# Link for website
input_data = "https://towardsdatascience.com/face-detection-in-10-lines-for-beginners-1787aa1d9127"
#Creating an instance of qrcode
qr = qrcode.QRCode(
version=1,
box_size=10,
border=5)
qr.add_data(input_data)
qr.make(fit=True)
img = qr.make_image(fill='black', b... | [
"noreply@github.com"
] | vkyadavdel.noreply@github.com |
1c06ff41ef48ef2f0d60901b600ba444363ac321 | 6a601728cefef4e18106c0919c6bfde29c894218 | /setup.py | a1ff200fcfb4d30f1517efbfc406107b3c173b9f | [] | no_license | pombredanne/drf-nested-decorator | a2cd8a367ff16959de451c09738490ba8b5d1a12 | 7b101adcd43a6f4b2d431b5e55814b671947c46a | refs/heads/master | 2021-01-24T21:07:43.835332 | 2015-07-13T14:03:55 | 2015-07-13T14:03:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # -*- coding: utf-8 -*-
from distutils.core import setup
import sys
PY_VERSION = sys.version_info[0], sys.version_info[1]
if PY_VERSION < (3, 0):
long_description = open('README.md').read()
else:
long_description = open('README.md', encoding='utf-8').read()
setup(
name='drf-nested-decorator',
version... | [
"zowielangdon@gmail.com"
] | zowielangdon@gmail.com |
c50bbd3c71af60fe7dda63c1ea6cb14c9c27a559 | 001331667834d46cf06646bcfe3653fe9c65e5b7 | /project_5_quadcopter/agents/ou_noise.py | b3f0f7fc0cf49ba328308c06e3206763928fb78b | [] | no_license | wanghsinwei/machine-learning-udacity | 688d74adf36a49abbde53d98ae52cb6468eb5f06 | 80afa496488930ed93abee404f01ff9134ae5c91 | refs/heads/master | 2022-12-02T22:41:56.012722 | 2019-08-29T19:32:23 | 2019-08-29T19:32:23 | 204,920,022 | 1 | 0 | null | 2022-11-22T01:39:59 | 2019-08-28T11:53:13 | HTML | UTF-8 | Python | false | false | 891 | py | import numpy as np
import copy
class OUNoise:
"""Ornstein-Uhlenbeck process."""
# It essentially generates random samples from a Gaussian (Normal) distribution, but each sample affects the next one such that two consecutive samples are more likely to be closer together than further apart.
def __init__... | [
"wanghsinwei@msn.com"
] | wanghsinwei@msn.com |
65ef10bde58d6cc5085d5fcb6ad2c9d19be6fe09 | 89fbfa05cb69360772be76b3dd6b956cfa58baad | /Hangman/GetWord.py | 5933c942f4ca3412bb8ff04a7fc5c44dcb5e978c | [] | no_license | nilam23/Mini_Projects | 0cdb48132a36060840c9e0149af3a1c66418107d | c31c61b63d37414814494c41bb6ef0215fcfaeb8 | refs/heads/master | 2022-11-06T18:24:50.463494 | 2020-06-25T20:21:42 | 2020-06-25T20:21:42 | 264,739,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import random
def GetRandomIndex():
with open('words.txt', 'r') as file:
content=file.readlines()
limit=len(content)
index=random.randint(1, limit)
file.close()
return (index)
def GetRandomWord():
index=GetRandomIndex()
with open('words.txt', 'r') as file:
i=1
while i<=index:
word=file.readline()
... | [
"nilampathak72@gmail.com"
] | nilampathak72@gmail.com |
afe48de8c8fd31d56cc097cb54c8f1cd53f65d45 | b7553d43485ec4e236c9a7675c198075375312f1 | /implementing_multiple_dispatch_with_function_annotations_20.py | 4ab0794e150aaa187b5fe056e28f4d6439151179 | [] | no_license | aleph2c/meta_programming_in_python | 556f98f7ffbbfc6bb391fb624015039c1f06bd4a | 8cc1f4c2faa1b04d3ea978ddd2cd85defdd21fa3 | refs/heads/master | 2020-07-13T23:46:09.849494 | 2019-09-04T13:16:46 | 2019-09-04T13:16:46 | 205,181,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | # method overloading based on types in python
# could we write code like this?
# class Spam:
# def bar(self, x:int, y:int):
# print('Bar 1', x, y)
# def bar(self, s:str, n:int=0):
# print('Bar 2', s, n)
#
# s = Spam()
# s.bar(2, 3) # => Bar 1: 2 3
# s.bar('hello') # => Bar 2: hello 0
import inspect
import... | [
"scottvolk@gmail.com"
] | scottvolk@gmail.com |
9ea7f7f60d5ac0a795ae27f5cb043b203376e2b7 | 8a4ac7b0d48a44dcf66d683218b87a2f2a3b3c9e | /ITGK øvinger/Øving 9 uke 45/Forelesninger/Lottomengde.py | f0ae0a1c55a392f31668b255f90ebd5f9d67b216 | [] | no_license | jorul/ITGK | 9445e7004a31b49465d0720a75afc67ced871d7e | 579414998cbb1a79599dc679e4854684c732452f | refs/heads/master | 2020-07-07T14:36:06.924590 | 2019-08-21T19:16:37 | 2019-08-21T19:16:37 | 147,521,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | vinnertall = {1,5,10,15,20,25,30}
mine_tall ={0}
for i in range(7):
mine_tall.add(int(input('Skriv et tall: ')))
def sjekke_rekke(gjett, vinnertall):
riktige = gjett.intersection(vinnertall)
return len(riktige)
print(sjekke_rekke(mine_tall,vinnertall))
for item in liste:
freq[item] = freq(item,0)+1... | [
"jorul@stud.ntnu.no"
] | jorul@stud.ntnu.no |
cf28c7d8a1554d94b8906b7ebec17e1532bb844b | a4c9bdbf4ecaec29667b8b5799bbf647d274e291 | /ProyectoSena/AppSena/migrations/0001_initial.py | c535191808cabcdfd6349b746839b566b4f282ee | [] | no_license | alejandra0407/ProyectoSena | 77221cb16e51413da7101036b95e2a5efbfb58db | d39cd4395811858937e60d6e84182a94609c067c | refs/heads/master | 2020-03-13T23:49:43.567226 | 2018-04-27T22:13:55 | 2018-04-27T22:13:55 | 131,343,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,484 | py | # Generated by Django 2.0.2 on 2018-04-27 19:48
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... | [
"mamapallo2@misena.edu.co"
] | mamapallo2@misena.edu.co |
e4f93eee93cf78c39f0897ac23b5fa9ebded5576 | 32a56cf1f4764adc75b6fab32d6e14bfecdeaf97 | /Django Level 2/ProTwo/AppTwo/urls.py | fdcc4173ea9494ce96bdaf46868cb2c363d2f2a8 | [] | no_license | sanchit-zeus/Workspace_html | 52dfef7881e3c1f309bc6904a8887dcbc593728c | 4ab344a151be2b426ecd9271ba7d877d64ab8808 | refs/heads/master | 2020-05-09T13:19:41.981502 | 2019-04-13T09:19:25 | 2019-04-13T09:19:25 | 181,147,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.conf.urls import url
from AppTwo import views
urlpatterns = [
url(r'^$',views.users,name='users')
]
| [
"35419687+sanchit-zeus@users.noreply.github.com"
] | 35419687+sanchit-zeus@users.noreply.github.com |
814f92f698b5160248339fcd2097feb6ff2efc10 | ae043b9178cdcb22fe701954e90fc377efbc4a36 | /minFQ/Errors.py | 234cee30da94487de8d0cccd43cf95033c55dcc2 | [
"MIT"
] | permissive | LooseLab/minotourcli | 8d637a238eb830008a4557feab0058f778ce92a6 | f70155c8795eb3d6faa80f6e7553f24f5d508309 | refs/heads/master | 2022-07-29T08:56:52.069841 | 2021-09-14T14:39:59 | 2021-09-14T14:39:59 | 117,558,065 | 9 | 2 | MIT | 2022-04-13T11:38:16 | 2018-01-15T14:50:35 | Python | UTF-8 | Python | false | false | 1,454 | py | class MTConnectionError(Exception):
"""
Exception raised when we get an unexpected status code from a connection to the minoTour sever
"""
def __init__(
self, response, message="Unexpected status code (not in expected values)"
):
"""
Parameters
----------
re... | [
"roryjmunro1@gmail.com"
] | roryjmunro1@gmail.com |
35d4c19d8deb5ccdec9b14b7e39019967fe44be3 | d2cdf402308eb117968a036fa89fe7b32ec40de3 | /levenschtein_distance.py | 363c94d7dd2dd22e9381dfad022421ed433b2f42 | [] | no_license | jaronjlee/algorithms | 1a0aeace0a36ce6b2abe30203ae4f8c5818d11a7 | 222534b031a85a0d6a74a4f692713afbdf657303 | refs/heads/main | 2023-03-25T23:43:08.258550 | 2021-03-17T20:35:48 | 2021-03-17T20:35:48 | 305,541,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | def levenshteinDistance(str1, str2):
# build labels for table
edits = [[x for x in range(len(str1) + 1)] for y in range(len(str2) + 1)]
for i in range(1, len(str2) + 1):
edits[i][0] = edits[i - 1][0] + 1
#build rest of table
for i in range(1, len(str2) + 1):
for j in range(1, len(str1) + 1):
if str... | [
"jaronjlee@gmail.com"
] | jaronjlee@gmail.com |
ac38edd12a2bfa6d2c1d0d3d6327b08234196573 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/tflite/src/tensorflow/python/ops/linalg/linear_operator_lower_triangular.py | 1c73a2013972d1b22757d55dea709883bf19ef6c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 7,998 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"jengelh@inai.de"
] | jengelh@inai.de |
884882ce343a9b5222f18692d40b1942e83690de | ba028902a8593c78887c388ff1cf7d348586995c | /greet/app.py | 4163128ea5ba8e00a0b031c642307b09a32c36dd | [] | no_license | Monkeysteingames/flask-greet-calc | 7dfb7a1167afa2bc5d93037db63819a0c4f12ec3 | 458295cf7cc9da38a466fc72b14076e74979a5e1 | refs/heads/master | 2023-08-15T13:28:24.710480 | 2021-09-25T20:54:32 | 2021-09-25T20:54:32 | 410,372,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from flask import Flask
app = Flask('a')
@app.route('/welcome')
def welcome():
return 'welcome'
@app.route('/welcome/home')
def welcome_home():
return 'welcome home'
@app.route('/welcome/back')
def welcome_back():
return 'welcome back'
| [
"40122779+Monkeysteingames@users.noreply.github.com"
] | 40122779+Monkeysteingames@users.noreply.github.com |
62a8dfb144a52d032da3ce929f95f898ffbc344a | dbca22d3ab295e5e4903d49c9ac7f1f444061583 | /для репозитория/sketch_8_0/sketch_8_0.pyde | 1cb80560822fcc2cf1763db9ae1fd48fce716112 | [
"MIT"
] | permissive | Kotkovvv/2019-fall-polytech-cs | 6c8062a9f088f66d09a1832c26fde141c599f5cd | a5cba5b419a03bb8df784afcdddd8d8c815ffd84 | refs/heads/master | 2022-03-08T10:18:10.333551 | 2019-12-19T10:16:40 | 2019-12-19T10:16:40 | 213,690,067 | 1 | 0 | MIT | 2022-02-18T15:46:16 | 2019-10-08T16:04:04 | Python | UTF-8 | Python | false | false | 235 | pyde | size(600,600)
noLoop()
background(100)
smooth()
strokeWeight(50)
stroke(200)
translate(width/2,height/2-100)
line(-100,0,100,0)
translate(0,100)
scale(1.5,1.5)
line(-100,0,100,0)
translate(0,-150)
scale(1.5,1.5)
line(-100,0,100,0)
| [
"kotkov.vv@edu.spbstu.ru"
] | kotkov.vv@edu.spbstu.ru |
1c0f3b9d943c27964bbe45dc63f338fa01db28d8 | 477cc717d0a9b83a816713cce0003606138d0cd5 | /django_apidoc_center/urls.py | e29d0a25a2572b6bee6ff583f986b9b779ae4add | [] | no_license | jiangningstar/django_apidoc_center | ba7616a3915afeb0397be4220cb2d6131c48e790 | fd3191712d87aaef187eaf629dd32c1640b0a6d6 | refs/heads/master | 2020-03-27T12:35:13.568573 | 2018-08-29T06:30:14 | 2018-08-29T06:30:14 | 145,812,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # -*- coding: utf-8 -*-
"""django_apidoc_center URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$... | [
"jiangning@yun-ji.cn"
] | jiangning@yun-ji.cn |
c5a3c0f9f0edf08a46992d9ef551dc43da740d11 | afbbd4079e7d3b3375392483f889cf927c017af5 | /Coursework3/LoadDatatest3.py | 512f210c8d328e88ac7903e472d85b6d085794cc | [] | no_license | friver01/basiccode | bc6cd7098547d9e4d06d3a38e860efbd0707957b | 9d5274e2a827c39e7bd40d7381bd1663a41d52be | refs/heads/master | 2022-12-06T19:58:59.958661 | 2020-09-02T10:58:51 | 2020-09-02T10:58:51 | 235,529,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | ## LoadData Function
# Read the EGL and RGS files
def LoadData (sName):
# Define the lists where we will be appending values:
outcomes = []
propertyNames = []
ranges = []
SEPARATOR = '----------'
rangesmin = []
rangesmax = []
# Open the input file
CompleteFileName = ... | [
"noreply@github.com"
] | friver01.noreply@github.com |
e117d696a8f1c12fafa5f80230748cda739cd054 | 71b95003a81f79b23b2802a42885bc5180901978 | /ttt_ai.py | 3b2d1d77cfe0afce2f8829f25c7082eac4c22dba | [] | no_license | jrf034/AI_tic_tac_toe | 10fcbe6361e0ae9ac1dc4c712861dbe5aa802a0b | 3425524700f109c973165487a80a495b71d208bf | refs/heads/master | 2020-12-14T07:27:55.251003 | 2017-07-05T15:47:39 | 2017-07-05T15:47:39 | 95,555,824 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,241 | py | from random import randint
from random import choice
from decision_tree import *
from random import choice
import pdb
"""
The goal for this AI is to implement a complete decision making tree, through trial and error
to beat any opponent in Tic-Tac-Toe. Or at least to never fail and always force a draw.
It does this b... | [
"jfaith@VENTERA.com"
] | jfaith@VENTERA.com |
ea0155d6c504cedaed85c803d4d8d724a68b062c | b02bcd352f17c256a3d07404f8f799959e2766d2 | /build/baxter_common/baxter_maintenance_msgs/catkin_generated/pkg.installspace.context.pc.py | 1405f6081caf20537168b99539569c6e51b7663a | [] | no_license | kmxz2016/baxter | dec73117d6af04c0a0bb4b246f101e26aad43736 | 2b745f5e2b23c0aaadf1bd452cd3402f1b410d3f | refs/heads/master | 2021-01-06T20:43:29.921525 | 2018-05-10T04:02:30 | 2018-05-10T04:02:30 | 99,546,545 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/km/baxter_ws/install/include".split(';') if "/home/km/baxter_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREF... | [
"601985329@qq.com"
] | 601985329@qq.com |
08797dc17cc0a5ecf1632354e021a89542b0360c | 31ff643c4d2fbb9f30aa7583311653206532300e | /auth.py | 2c15c294c04e596f7b1d109810cd316881e7fd99 | [] | no_license | cone387/auto-post | c1fdf2e292544bde6aa344b89603c7b94f913c25 | 191956e360b87e87049b4f6f325444ebf65b0519 | refs/heads/master | 2021-03-23T12:16:04.956755 | 2020-03-18T06:53:47 | 2020-03-18T06:53:47 | 247,451,645 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | # -*- coding:utf-8 -*-
# author: Cone
# datetime: 2020-03-16 09:27
# software: PyCharm
class Auth:
pass | [
"fishlover387@gmail.com"
] | fishlover387@gmail.com |
b6e46df09922f43941c367dc634a82fc29d68ace | 3e8b385b6158a60fa98ce95f22d6955343c3be4e | /util.py | a8e007744c0b04c3026d76683ea30273f12851e7 | [] | no_license | instagibbs/taproot-workshop | 57fea55e82c8a3591dfb19a733ccc74af932956b | 0aade37a4f05b37f034d066489cfd15a18376a7f | refs/heads/master | 2020-08-26T16:37:00.775656 | 2019-10-16T21:19:17 | 2019-10-17T20:12:04 | 217,075,257 | 2 | 0 | null | 2019-10-23T14:16:48 | 2019-10-23T14:16:47 | null | UTF-8 | Python | false | false | 3,843 | py | import argparse
import configparser
import os
from test_framework.test_framework import BitcoinTestFramework
# Read configuration from config.ini
config = configparser.ConfigParser()
configfile = os.path.abspath(os.path.dirname(__file__)) + "/config.ini"
config.read_file(open(configfile, encoding="utf8"))
SOURCE_DIR... | [
"jonnynewbs@gmail.com"
] | jonnynewbs@gmail.com |
fcc137377998ec47b0894729724dabaea04564b4 | 6364bb727b623f06f6998941299c49e7fcb1d437 | /msgraph-cli-extensions/src/bookings/azext_bookings/vendored_sdks/bookings/models/_models_py3.py | e75a748fc9f1fb1217cf3e2f63cc32ab0bb3f17c | [
"MIT"
] | permissive | kanakanaidu/msgraph-cli | 1d6cd640f4e10f4bdf476d44d12a7c48987b1a97 | b3b87f40148fb691a4c331f523ca91f8a5cc9224 | refs/heads/main | 2022-12-25T08:08:26.716914 | 2020-09-23T14:29:13 | 2020-09-23T14:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,356 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
9bc772e784fcb4872decb19b72e0aa8f010a0cd3 | 0a727f3ffde045805b9b789abbaa9c8497667f8e | /Results.py | 53ba841769561b9aea6162911e8cea3615dc2cf9 | [
"MIT"
] | permissive | esitarski/CrossMgr | ff4a632089a144f6ecc57970e2b29a7c31a15118 | a95ac1d65f2d0cab712cc6e5f9393668c1bbf83c | refs/heads/master | 2023-08-30T22:48:43.457978 | 2023-08-24T14:12:44 | 2023-08-24T14:12:44 | 1,042,402 | 33 | 20 | MIT | 2023-04-30T13:32:11 | 2010-11-01T17:25:15 | Python | UTF-8 | Python | false | false | 31,446 | py | import wx
import re
import os
import sys
import Model
import Utils
import ColGrid
from collections import defaultdict
from FixCategories import FixCategories, SetCategory
from GetResults import GetResults, RidersCanSwap
from ExportGrid import ExportGrid
from RiderDetail import ShowRiderDetailDialog
from EditEntry impor... | [
"edward.sitarski@gmail.com"
] | edward.sitarski@gmail.com |
a824b23db4e01779cf4236b3668113861b23443d | 343eb4d3633d2b93981fbb166f06e16dcc4836fb | /shared_spider/spiders/company_news_spider.py | 3783653c849488a8fba2d4be4cfb41fa3df93972 | [] | no_license | ly2014/shared_spider | 120630ea19e2308b4598240ca08478b473aaa030 | a6c4d0cbd74ac649128e5aef64e24090208491ba | refs/heads/master | 2020-05-17T02:54:19.517044 | 2019-04-25T15:50:32 | 2019-04-25T15:50:44 | 183,465,241 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py | import scrapy
import datetime
from shared_spider.items import ArticleItem
from scrapy_redis.spiders import RedisSpider
class CompanyNews(RedisSpider):
name = 'cn_spider'
redis_key = 'cn:start_urls'
# start_urls = ['http://stock.stockstar.com/list/10.shtml']
def parse(self, response):
news = r... | [
"ly1996lh@126.com"
] | ly1996lh@126.com |
a0a6944034a0d9818d25cd205674bc574b9e1179 | 124fb764c4dab141ca243cdc9ccf464730554b24 | /blueapi.py | 06f1502f907cab0b0a2c9452667b771f0f6132a3 | [
"MIT"
] | permissive | jacobbendicksen/BlueAPI | 3ec639f44a66cebc84a3c9a44e8809fda0b3821b | 344cad123769af7b0151013559f95965c4561fb2 | refs/heads/master | 2021-01-19T11:23:11.484779 | 2015-07-25T20:16:47 | 2015-07-25T20:16:47 | 24,250,368 | 0 | 0 | null | 2014-10-28T02:56:33 | 2014-09-20T01:11:56 | Python | UTF-8 | Python | false | false | 4,330 | py | #####################################################
#
# A library for accessing the Blue Alliance API
#
# Authors: Andrew Merrill and Jacob Bendicksen (Fall 2014)
#
######################################################
import urllib
import urllib2
import json
# given the trailing part of an api request,
# returns... | [
"jacob.bendicksen@gmail.com"
] | jacob.bendicksen@gmail.com |
e80c9b09979e6929f73d30f254918dbade6f6524 | 5b6da19d954f9b4c79a21c4ed9aa5a5bf620ce35 | /scripts/script_evaluate_parameter_secML.py | 4f9d882e26623685785254a00f8bd23ca379b9c5 | [
"MIT"
] | permissive | jctaillandier/ethical-adversaries | 04a249b7b762c3e7dd17da92334d2875e2b75f35 | 3a25e94aec0f52ee68a51e2e5b0e2807d7e29975 | refs/heads/master | 2022-09-24T18:54:54.399695 | 2020-06-02T15:21:51 | 2020-06-02T15:21:51 | 268,537,160 | 0 | 0 | MIT | 2020-06-01T13:56:58 | 2020-06-01T13:56:58 | null | UTF-8 | Python | false | false | 1,160 | py | from secml.ml.features.normalization import CNormalizerMinMax
from secml.array import CArray
from secml.figure import CFigure
def plot_loss_after_attack(evasAttack):
"""
This function plots the evolution of the loss function of the surrogate classifier
after an attack is performed.
The loss function is normalized... | [
"pieter.delobelle@gmail.com"
] | pieter.delobelle@gmail.com |
f6039b4b1dc79bedc28b810b94aa9391d9d6e772 | 959f9c455401745d071114cf569ec458a3657f3e | /bin/easy_install | 9b4b77dfb6d3bbf7868eeb7b892c1e6ff009b384 | [] | no_license | swallville/trab2 | 56b72594aa12a9e584c42fb40b7c0d0cd73b4cb5 | ca67a71dc4c0e276d79208cc27cc85e0ace8acfa | refs/heads/master | 2021-01-18T00:18:35.391288 | 2016-09-21T22:48:13 | 2016-09-21T22:48:13 | 68,666,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/sineideferreira/Virtualenvs/12_0127377_Lukas/bin/python
# -*- 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())
| [
"unlisislukasferreira@hotmail.com"
] | unlisislukasferreira@hotmail.com | |
380862cf499a03601dd3c006b1d568d254dd3689 | 5dc77812f857755688aaa187d0eaeb2b5e4aaa53 | /data_loader.py | b86bd4afedaa39b71f2d4c5f8cdfbf0a15edd668 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Lcrypto/topoGAN | a1de60902e725ce8df26457ad126c15e1c50defa | 2f2b97d2022decfb0203a8c6c09184a336bdd3a6 | refs/heads/main | 2023-04-10T07:11:15.432537 | 2021-04-25T16:17:57 | 2021-04-25T16:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | import torch.utils.data as data_utils
import numpy as np
import torch
import SIMLR
import os
def get_loader(features, batch_size, num_workers=1):
"""
Build and return a data loader.
"""
dataset = data_utils.TensorDataset(torch.Tensor(features))
loader = data_utils.DataLoader(dataset,
... | [
"islem.rekik@gmail.com"
] | islem.rekik@gmail.com |
95193817353a775dd049bc66d3752eb32961629a | 9b695bda060d67d3b9d00e566daa7c6dacf6b806 | /Chapter 38 Classes/38_6_Class_methods_alternate_initializers.py | 6b4946b872bd5fd9c5be8f343e6d9aebb788f988 | [] | no_license | erauner12/python-for-professionals | cc6409348e27d894e2cde8e75c14a5d57aa3f852 | d50a14806cd0ad0727ed28facb8423bf714c4383 | refs/heads/main | 2023-08-05T03:49:18.890747 | 2021-09-22T23:53:19 | 2021-09-22T23:53:19 | 406,197,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,959 | py | class Person(object):
def __init__(self, first_name, last_name, age):
self.first_name = first_name
self.last_name = last_name
self.age = age
self.full_name = first_name + " " + last_name
def greet(self):
print("Hello, my name is " + self.full_name + ".")
# Wrong
# tw... | [
"erauner@medallia.com"
] | erauner@medallia.com |
65e8766de21c1235d5ea3b89e8c07e6dba389747 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/pytype/pytype/tests/py3/test_flax_overlay.py | 32c3a4258e1cbeb5054e55d2ed9323d2c0c7fd99 | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:495313b7611bacd6c8bb8059f4d8f1a6b3a13d672ac8f314be4faabe700c56b3
size 5162
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
335c667703905a4669a0da4115ee0777807e85a7 | cd557e3c2b34f30f2e7caf7c79c07ff6e109fbd3 | /zaf/zaf/builtin/config/test/test_validator.py | 5877634a63a4f0fa670dbc5c8139d9370c11652a | [
"Apache-2.0"
] | permissive | Zenterio/opensourcelib | f005174c049df0f5deddc1269d7c343a8e219ca5 | 07f0dabffaceb7b6202b5f691cbad46dac5868a8 | refs/heads/master | 2022-12-09T02:53:36.444094 | 2021-04-28T18:03:24 | 2021-05-27T13:14:58 | 186,092,997 | 5 | 6 | NOASSERTION | 2022-12-07T23:37:26 | 2019-05-11T05:44:37 | Groovy | UTF-8 | Python | false | false | 11,099 | py | import re
import unittest
from unittest.mock import patch
from zaf.builtin.config.validator import ConfigurationValidator
from zaf.commands import COMMAND
from zaf.commands.command import CommandId
from zaf.config.manager import ConfigManager
from zaf.config.options import ConfigOption, ConfigOptionId
from zaf.config.... | [
"per.bohlin@zenterio.com"
] | per.bohlin@zenterio.com |
f20aaa52cfa93787d22f3ed858839461d594f59c | 047f79b81387b33397fd91245e1d272cd973135f | /main4.py | 2d629979e75740e0173163654e54464780f8f6a5 | [] | no_license | bstricker/hashcode2020 | cfbed80a74c588b8f4e9d77d2dd9a36473de23b5 | 2e718d01a02db476a66f36a8ccc3f84b689d0767 | refs/heads/master | 2021-01-08T10:41:44.484629 | 2020-02-20T23:08:19 | 2020-02-20T23:09:14 | 242,006,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,603 | py | import os
OUT_PATH = 'out4'
SCORE_FILE = os.path.join(OUT_PATH, 'scores.txt')
class Book:
def __init__(self, id_, score):
self.id = id_
self.score = score
def __repr__(self):
return f'{self.id}:{self.score}'
class Library:
def __init__(self, id_, n_books, days, ship, books):
... | [
"benedikt.stricker@gmx.at"
] | benedikt.stricker@gmx.at |
828f9ba6a476b29f11c8f2fe1f3ca352d1f858b9 | 67615566c188d7275925cd9c371ea98fe26b18f1 | /pytorch-chatbot/config.py | f6755bab02d3c2a034d1c24c14d5b94e0da7b292 | [] | no_license | 1021546/test_seq2seq | 3175684edb175f981c4285e81d28f41dc6534f45 | d6027a4776026d841e85c042e6f8c8628d57f533 | refs/heads/master | 2021-04-06T03:11:56.737503 | 2018-03-15T12:44:07 | 2018-03-15T12:44:07 | 125,353,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import torch
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "2,3"
USE_CUDA = torch.cuda.is_available()
MAX_LENGTH = 15
teacher_forcing_ratio = 1.0
save_dir = './save'
| [
"noreply@github.com"
] | 1021546.noreply@github.com |
aad763b7547791fc17c99e22c183701e08ff36d7 | cdfaad683bfa12cbc72c16b696585dbe13b977a2 | /generative_query_network/run/shepard_matzler/experiments/observation.py | 1c28c10c31e067149e752538dfb4aeebb7e23874 | [] | no_license | yargel/generative-query-network | b109045792997aa15bffe5884f488c8330d1b8fa | e01340140ec01cdb65078a973e83725e0fcca9b3 | refs/heads/master | 2020-03-24T13:25:27.817520 | 2018-07-27T11:21:47 | 2018-07-27T11:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,267 | py | import argparse
import math
import time
import sys
import os
import random
import chainer
import chainer.functions as cf
import cupy
import numpy as np
from chainer.backends import cuda
sys.path.append(os.path.join("..", "..", ".."))
import gqn
sys.path.append(os.path.join(".."))
from hyperparams import HyperParamet... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
4862e89493a666fd1ac68a51f5013418f627bbb5 | 0809673304fe85a163898983c2cb4a0238b2456e | /src/lesson_email/imaplib_list_pattern.py | 714974b6f175f4d93ca1223a58181ee0a8e7d680 | [
"Apache-2.0"
] | permissive | jasonwee/asus-rt-n14uhp-mrtg | 244092292c94ff3382f88f6a385dae2aa6e4b1e1 | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | refs/heads/master | 2022-12-13T18:49:02.908213 | 2018-10-05T02:16:41 | 2018-10-05T02:16:41 | 25,589,776 | 3 | 1 | Apache-2.0 | 2022-11-27T04:03:06 | 2014-10-22T15:42:28 | Python | UTF-8 | Python | false | false | 220 | py | import imaplib
from imaplib_connect import open_connection
with open_connection() as c:
typ, data = c.list(pattern='*Example*')
print('Response code:', typ)
for line in data:
print('Server response:', line)
| [
"peichieh@gmail.com"
] | peichieh@gmail.com |
cb3d3d406b29c3f484f52b3d6c574ba60d6d7c89 | 1c10621b45d0efe73dd8c94acedc84d9c493d52f | /SQLAlchemyMixns/alias_mixin.py | 037eaff9687bc05dfdaf773329337095f04ce699 | [] | no_license | Tartorus/MyLibs | 89063d09f1d53c56b8ba14fe141b771ac0e5f40d | a5fecaee7f4f382506a12f8b9e9a366a49c239c8 | refs/heads/master | 2021-01-22T09:33:12.030445 | 2017-09-04T06:37:47 | 2017-09-04T06:37:47 | 102,326,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | from pyoreol import DBSession
class AliasMixin:
"""Добавляет методы выборки по столбцам алиасам. Алиасы должны быть уникальными"""
@classmethod
def aliased_list(cls, aliases):
"""
Выборка элементов по алиасу
:param aliases: [<str>, ...]
:return: [<SQLAlchemy>, ...]
... | [
"nclient@yandex.ru"
] | nclient@yandex.ru |
e6befb5908be579b27412e2a865232089d8de75c | 56f95e346798fb70f5d1de0b2a94477da74bba97 | /ex4_10.py | fdabff89d3d636ac19af930c6f55016bd0980155 | [
"Apache-2.0"
] | permissive | charliechocho/py-crash-course | ad0f9f5149f76a8d236814cc7b35587241d0db12 | b42b8a4c1cb8d76e8316f55c1565ff42d920ee63 | refs/heads/main | 2023-03-05T06:48:01.793139 | 2021-02-18T21:33:54 | 2021-02-18T21:33:54 | 324,745,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | players = ['mattias','andreas','robin','daniel','linnéa']
#find the middle
the_odd_one = len(players)%2
print(the_odd_one)
middle = len(players)/2
print(int(middle))
print(f"The middle name of the list is {players[int(middle)]} ")
print(f"The last names from the middle are:\n {players[int(middle):]} ")
middle_end = [... | [
"mattiassoderberj@gmail.com"
] | mattiassoderberj@gmail.com |
72d81760c7bd4b533efaedb3a98302f2c182885a | 8c68a541d5f4fe9b4238c94eff1eedfa7b30bdaa | /sns-sqs-pubsub/app/publisher.py | fd88681424390b8ccfeed93239494c29364470f3 | [] | no_license | Darth-Knoppix/python-exercises | 032785617d09e17074a3e80eb067795de0ace2f9 | d7a6809a37e00d97c893ec81848bf51441cd0160 | refs/heads/main | 2023-04-15T04:44:17.952768 | 2021-04-22T12:10:18 | 2021-04-22T12:10:18 | 359,408,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import boto3
from .bootstrap import aws_client_kwargs
class Publisher:
topic_arn = None
def __init__(self, topic_arn):
self.client = boto3.client('sns', **aws_client_kwargs)
self.topic_arn = topic_arn
def publish(self):
if self.topic_arn is None:
print('No topic to pu... | [
"seth.corker@gmail.com"
] | seth.corker@gmail.com |
9fed0911ae9b7ec5dab4e26fc33bf2fe22e6e6b0 | 497e93f9050e23018ac47a412042551f6c008374 | /script/pixels_test.py | 1e26c2d77f35e11b00b071e4734411f2aa2f02d7 | [] | no_license | KhairulIzwan/thermal_imaging | 7c5c0f44410641784c55a202aa467825b1ef1218 | bbf159bed7da930207c86256b3dc93a923589068 | refs/heads/master | 2022-07-03T12:00:14.348873 | 2020-05-17T14:35:38 | 2020-05-17T14:35:38 | 254,891,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | #!/usr/bin/env python
#Title: Python Subscriber for Tank Navigation
#Author: Khairul Izwan Bin Kamsani - [23-01-2020]
#Description: Tank Navigation Subcriber Nodes (Python)
#remove or add the library/libraries for ROS
import rospy
import sys
import cv2
import imutils
import argparse
import numpy as np
#remove or add... | [
"wansnap@gmail.com"
] | wansnap@gmail.com |
a4c3d6dcd11d93464a9549829839ee29c52bedb3 | 136fcdbc4ca7d72f5b1767928b86f7ff21fac534 | /webdev/store/models.py | 66f9f6f915a0e7fe30cef8cccf630dd0909f3c7c | [] | no_license | YahyaStihi18/django_ecommerce | 3c2052865cbb842aaf7e058d0b4b2a246072a2d7 | c1f9659e2d01a04c17d31330a0a8069da509fb7c | refs/heads/master | 2022-08-04T06:20:19.531705 | 2020-05-24T13:45:02 | 2020-05-24T13:45:02 | 266,549,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Customer(models.Model):
user = models.OneToOneField(User,on_delete=models.CASCADE, null=True, blank=True)
name = models.CharField(max_length=200, null=True)
email = models.CharField(max_length=200, nu... | [
"61831390+YahyaStihi18@users.noreply.github.com"
] | 61831390+YahyaStihi18@users.noreply.github.com |
4c6c1ef23bd518f1ae613049f10244c30aec2418 | caef0308b388eee0159e4a7184c22293e69690e8 | /cookbooks/chapter_2/2_1.py | bfeedae8a80d2d4ba17b95117af22f7f3798e33b | [] | no_license | AlwaysOnline233/cookbook | 440ca4325842482157484ca2df9d0f1932b0b29e | edebb0f98d88566977cc2514631818d8371b78dd | refs/heads/master | 2022-12-14T20:03:26.527927 | 2020-09-06T16:57:36 | 2020-09-06T16:57:36 | 262,815,273 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | # 使用多个界定符分割字符串 re.split()
# split()只适用于简单的字符串分割
import re
line = 'asdf fjdk; afed, fjek,asdf, foo' # 两个字符以上切割需要放在 [ ] 中
print(re.split(r'[;,\s]\s*', line)) # \s 匹配任意非空白字符,如空格、制表符、换页符等 [^\t\n\r\f\v]
print('使用括号捕获分组,被匹配的文本也将出现在结果列表中')
fields = re.split(r'(;|,|\s)\s*', line) # 使用括号捕获分组,默认保留分割符
pr... | [
"941906145@qq.com"
] | 941906145@qq.com |
242d9487cef93ea6a78241dfccefde6d41f44e65 | 75432ad0b9bce0f6bf02accf01d19b3d6be0e898 | /Code Kata/check_2_str_have_common_char.py | 086ac9539126b5ccee68a567bc0923fcb2ddc26e | [] | no_license | Vijaya-Malini-A/guvi | 7ee0c017e984922ceb4d71628010e424c4557d2b | 80890224614982e84c23e4362d08af844ba82f4a | refs/heads/master | 2020-06-03T00:08:19.273561 | 2019-08-05T11:22:09 | 2019-08-05T11:22:09 | 191,355,069 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | s1, s2 = list(map(str,input().split()))
f = 0
for i in range(len(s1)):
if s1[i] in s2:
f = 1
if f == 1:
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | Vijaya-Malini-A.noreply@github.com |
4f9305052e62adc12225284a46cfae829924c69c | b27f405120762a5f32f3eb10ed739d0298ea5c98 | /src/pu_learning.py | 4707245c67a3e5d43eb3d30d2e3924f81b39cec2 | [] | no_license | JulinaM/Deep-Networks-for-Graph-Representation | 1b698ef96b612d95e48e10051e215d5068c637f2 | 30430344c198117a8fe79f841d2fe8ac5a12206a | refs/heads/main | 2023-03-29T21:48:40.396374 | 2021-04-07T08:09:47 | 2021-04-07T08:09:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,802 | py | import torch
import torch.nn as nn
import torch.optim as optim
from math import sqrt
from sklearn.model_selection import KFold
from autoencoder import *
from utils import *
from random_graphs import *
from dgnr import *
def get_train_test_masks(P, train_size=0.8, test_balance=True):
P = torch.Tensor(P)
Ipos ... | [
"michavaccaro@gmail.com"
] | michavaccaro@gmail.com |
434c6267bec6276f2e065d84d3b61dfb9d94b2f7 | 1aa7c0428e4d8d12c86c2bd7ca78e735e4310eba | /NagelSchreckenberg1D.py | 5e1984505eda7800bf70f921b2853879e3078558 | [] | no_license | MJdeHaan/ComplexSystems | c4e07ad31f91cb8c33644656c927cf6502e296f3 | ece88086df534325e3d669c2be8c5367c4ea524b | refs/heads/master | 2020-04-05T14:05:27.486905 | 2017-06-30T09:14:47 | 2017-06-30T09:14:47 | 94,764,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,543 | py | import numpy as np
from copy import deepcopy
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import matplotlib.patches as patches
from copy import deepcopy
class CAoneD(object):
def __init__(self, N, start, p, maxvel):
self.N = N
self.grid = np.zeros(N)
self.velocities = np.zeros(N)
s... | [
"MJdeHaan@users.noreply.github.com"
] | MJdeHaan@users.noreply.github.com |
92bc4e43a334e90a0cee0b26ab3e3bf8d36fd59f | 4fcc2ed36d464754581ea420d5f23bfd68505cce | /backend/farejando/urls.py | 6abe3db020d2aa327b93a963c98c304bf2d302a1 | [] | no_license | codenation-dev/squad-3-ad-escale | b3d6dddf10a63b45a3ebd1d2443557653810d7f2 | 2d6d828d64321380230b346f76677b99bb2bfbe6 | refs/heads/master | 2023-01-13T18:06:14.540965 | 2019-08-20T01:29:12 | 2019-08-20T01:29:12 | 196,603,080 | 1 | 4 | null | 2023-01-04T06:16:01 | 2019-07-12T15:29:34 | JavaScript | UTF-8 | Python | false | false | 173 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('api/v1/', include('apps.api.urls'))
]
| [
"lillakoala67@gmail.com"
] | lillakoala67@gmail.com |
bd9a872ec0e392ce53fb4ba7691e0ae50f8e069b | 97149b75bd21fb9f82aed657ab5180f765927746 | /ietf/stats/migrations/0003_meetingregistration_attended.py | 6500f7f5ae19a5c36a9bf5d13b7a99414c951111 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hassanakbar4/ietfdb-filter-repo | c74e7cbfdd5acb8f55ca0fcff6757166582d68db | 67513183b7035014b494bfdd982f9f3990ee0647 | refs/heads/main | 2023-08-25T09:47:28.900431 | 2021-11-09T22:16:24 | 2021-11-09T22:16:24 | 426,613,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | # Generated by Django 2.0.13 on 2020-06-09 04:39
from django.db import migrations, models
def forward(apps, schema_editor):
MeetingRegistration = apps.get_model('stats', 'MeetingRegistration')
# Set attended=True on all existing records,
#
# Going forward, this will be unset on registration
# (ie... | [
"henrik@levkowetz.com"
] | henrik@levkowetz.com |
784f1da7a3784333d0fd2b39d09226c825ecf155 | a20827cb44b55bf10fdab90ebdf2f0e545443dd0 | /techmanpy/packets/__init__.py | 8c3ffce4b758d502f302b1bfa6d93e98069da33a | [
"MIT"
] | permissive | jvdtoorn/techmanpy | ab729b6c47a85e9d7ed1d8d8de7a2a8e3626ab44 | 384ef92dc0601f93259e4a6e5a7e8b1c96876902 | refs/heads/master | 2023-02-22T16:27:14.653385 | 2021-01-23T13:05:25 | 2021-01-23T13:05:25 | 323,303,317 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | #!/usr/bin/env python
from .stateless_packet import *
from .stateful_packet import *
from .cperr_packet import *
from .tmsta_packet import *
from .tmsvr_packet import *
from .tmsct_packet import *
| [
"J.vanderToorn@student.tudelft.nl"
] | J.vanderToorn@student.tudelft.nl |
e2d2761bec4e82b3c461da41211a3d4f211a5ea1 | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/qtpy/QtHelp.py | ca9d93ddee9e23378d86fca8cf41c2367f65a25d | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 456 | py | # -*- coding: utf-8 -*-
#
# Copyright © 2009- The Spyder Development Team
#
# Licensed under the terms of the MIT License
# (see LICENSE.txt for details)
"""QtHelp Wrapper."""
import warnings
from . import PYQT5
from . import PYQT4
from . import PYSIDE
from . import PYSIDE2
if PYQT5:
from PyQt5.QtHelp import *
... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
40930de633d1e70b8db9423c6d3bc861463026c0 | 24e421bbb0a70faaa7a58adbc90bbce6dbcb1524 | /basic.py | 5c991d5f7f28e9b17212cfcd57ac0a61c010d7d8 | [] | no_license | Chowcow/RightStrain | a72c762cadb1c4094fbf146d15997f32737bf5c7 | 25c8b36df0d013df76ef7f4de7b87866ac4584f6 | refs/heads/master | 2020-03-30T17:32:23.372865 | 2018-12-04T22:07:29 | 2018-12-04T22:07:29 | 151,459,872 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | from flask import Flask, render_template,session, redirect, url_for,flash, request
from flask_wtf import FlaskForm
from wtforms import (StringField, BooleanField, DateTimeField,
RadioField, SelectField, TextField,
TextAreaField, SubmitField)
from wtforms.validators import DataReq... | [
"sam.chow38@gmail.com"
] | sam.chow38@gmail.com |
0c619ce66431d34528ebd8d6e3e739bd8e9170c9 | c795ec7f77219892183a1222fb51b8be2e754944 | /multiverse server/multiverse-server/multiverse/bin/login_manager.py | cf27e2c68a2baaaeef54271738d5e7bdc21ecdad | [
"MIT"
] | permissive | radtek/MultiverseClientServer | 89d9a6656953417170e1066ff3bd06782305f071 | b64d7d754a0b2b1a3e5acabd4d6ebb80ab1d9379 | refs/heads/master | 2023-01-19T04:54:26.163862 | 2020-11-30T04:58:30 | 2020-11-30T04:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from multiverse.mars import *
from multiverse.server.worldmgr import *
from multiverse.mars.objects import *
from multiverse.mars.util import *
from multiverse.server.math import *
from multiverse.server.events import *
from multiverse.server.objects import *
from multiverse.server.engine import *
from multiverse.serve... | [
"demckay@outlook.com"
] | demckay@outlook.com |
75d7c372fc8bcf0b500dd490749c7b6bdcff9f68 | 4ba5c0fa1ef6a1673b1b43899285df205c9bc64d | /leetcode/039_combination_sum.py | 31b7f9ab5ef972815c3071f50af2008c4a8b4c85 | [
"MIT"
] | permissive | aiden0z/snippets | 90f86507b7989b3c4efdd0551835a5849c899534 | 671cbb00865363af437ad4df06020a793cadada9 | refs/heads/master | 2023-01-23T14:16:57.779722 | 2022-11-21T14:57:58 | 2022-11-21T14:57:58 | 43,037,323 | 0 | 0 | MIT | 2023-01-20T22:37:57 | 2015-09-24T01:33:33 | Python | UTF-8 | Python | false | false | 2,875 | py | """Combination Sum
Given a set of candidate numbers (cadidates) (without duplicates) and a target number (target),
find all unique combinations in candidates where the candidate numbers sum to target.
The same repeated number may be chosen from candidates ulimited number of times.
Note:
* All numbers (include tar... | [
"aiden0xz@gmail.com"
] | aiden0xz@gmail.com |
e218719bf68f43980484f8217119d9c3b6929946 | a909f26d85c2d45460c089246bc5d656ad0dbc10 | /diffeo_experiments/distance/distance_test.py | 4da23cca0c445f81e8aaf3c6d2a9b68ee1fb9ef2 | [] | no_license | wuyou33/surf12adam | c58a6001ad6680033b2ab3ea6520e04f1e204859 | b30d2ec2b0cd50360cf480d2848652fe8f2d4b87 | refs/heads/master | 2021-05-27T02:51:20.374143 | 2013-05-09T08:07:52 | 2013-05-09T08:07:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,778 | py | #!/usr/bin/env python
import roslib
roslib.load_manifest('logitech_cam')
import sys
import rosbag
import rospy
import numpy as np
from sensor_msgs.msg import Image
from std_msgs.msg import Header
import cv
from cv_bridge import CvBridge, CvBridgeError
import pdb
import ParseMessages
from distance import *
import matplo... | [
"adam.nilss@gmail.com"
] | adam.nilss@gmail.com |
c7ceb3fafbdf89b4e714fca9f60c6d1ef8adab9a | 7bfb8432bb2fc7aee932b15db00fa8efc0ac51e4 | /template.py | a9d6dcebbec75be72d16eacf356ccb6b4dc49ecd | [
"MIT"
] | permissive | justinjhendrick/advent_of_code_2020 | cd20b4ece9216d1e39021765619d18e7b6081874 | 2b9bb15efef26d1c7a211ac2770159f4a12f9658 | refs/heads/main | 2023-02-03T10:54:51.411262 | 2020-12-25T05:44:47 | 2020-12-25T05:44:47 | 318,698,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | import sys
def stripped_lines(filename):
with open(filename) as f:
for line in f.readlines():
yield line.strip()
def parse(line):
pass
def parse_file(filename):
return [parse(line) for line in stripped_lines(filename)]
def p1(inputs):
pass
def p2(inputs):
pass
def mai... | [
"justinjhendrick@gmail.com"
] | justinjhendrick@gmail.com |
4cc0a300ec09f73a726f6cd74dffdf268e64db08 | f578b4f2d9d875c2b18c744c26d6c10c95364bb8 | /tags/20050524/code/vellum/util/filesystem.py | 09d54252c4d2fc8bd117e60a71b4a31b4be3f808 | [] | no_license | BackupTheBerlios/vellum-svn | 679e480674ed64d8a7712152e8e8fd3b55188790 | 6c3704d60d38c28fd0df6761c6d86b8397a734d5 | refs/heads/master | 2021-01-21T13:11:12.721917 | 2007-01-12T07:10:29 | 2007-01-12T07:10:29 | 40,803,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import os
class Filesystem:
def __init__(self, path, mkdir=0):
if mkdir:
try:
os.makedirs(path)
except EnvironmentError:
pass
self.path = os.path.abspath(path)
def __call__(self, *paths):
return os.path.join(self.path,... | [
"corydodt@dac6abc3-03f5-0310-8df6-960e0b1e0653"
] | corydodt@dac6abc3-03f5-0310-8df6-960e0b1e0653 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.