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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b065a739c64edc6b675bde1ed0ef25e4d06c8f1a | 934fe21f1cbbed6774b8bfb7f4ea198d06006a99 | /blog/migrations/0001_initial.py | 81232eb6c02fdcbdf098ba57fb8597de173cf63d | [] | no_license | malbori/my-first-blog | fe28ba67a7aaad3ec72938009e9d241e3b1a275a | ee7c4299aa420ba8f857b552b25e5e2ffdd655dc | refs/heads/master | 2021-05-30T23:00:33.181692 | 2016-03-02T23:51:16 | 2016-03-02T23:51:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-03-02 23:27
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depende... | [
"mahdialbori@gmail.com"
] | mahdialbori@gmail.com |
4bee933c2f4a4be5274281cbf4d3a08f94853e73 | 2893069a3532da77c76c76c342c3b33d2c096f06 | /aoc2020/solvers/implementations/day20.py | 02865916888e3b15f96e97a211599283ba92c14e | [] | no_license | maxclaey/AoC-2020 | 0b26e5d46d54f569a31c4c653d642804a95d64db | 2ace7a478634af0ba0b4b264932cb233b3e57352 | refs/heads/master | 2023-02-04T20:53:24.355399 | 2020-12-25T08:15:54 | 2020-12-25T08:15:54 | 318,214,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,160 | py | import logging
from dataclasses import dataclass
from enum import Enum
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import numpy as np
from aoc2020.solvers import PuzzleSolver, SolverFactory
logger = logging.getLogger("SolverDay20")
@dataclass
class Augmentation:
rotation: int = 0
... | [
"maxim.claeys@robovision.eu"
] | maxim.claeys@robovision.eu |
cb523c55fea4d9e3cf0e84a94f535a77406e83fc | 848511d0a5e4d2f71fe0fdfc799a132d7eddde28 | /1.introduction/write_a_function.py | 34ccb1106d53367f7c7aceae3ed778d711388746 | [] | no_license | KrishnaRaam-HackerRank/Python | dfda4882ef0143e203b1201cb822185ae86e4a10 | c5603826b0265dca7a7235c36da1925a4973dc76 | refs/heads/master | 2023-02-18T04:07:10.241935 | 2020-12-28T13:51:16 | 2020-12-28T13:51:16 | 281,044,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | import calendar
#https://www.hackerrank.com/challenges/write-a-function/problem
def is_leap(year):
return calendar.isleap(year)
year = int(input())
print(is_leap(year)) | [
"ramakrishna.shastri@target.com"
] | ramakrishna.shastri@target.com |
947176b90cbab11d9222c318374ee3befbaa72ad | bbff6cb11688224a5749037693614229d44915cf | /networks/network_utils.py | ca2ee4b4766d68f6128a95cf486e4c566cf349cc | [
"MIT"
] | permissive | yongliang-qiao/fscc | f4b02db2523cc0884816451b4788917ceba4506d | 9ca20128117f789433986971c5cc77f631c102e6 | refs/heads/master | 2023-04-15T13:58:11.619582 | 2020-07-18T07:17:12 | 2020-07-18T07:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import numpy as np
import torch
device = 'cuda' if torch.cuda.is_available() else 'cpu'
def forward_pass(network, _in, _tar, mode='validation', weights=None):
_input = _in.to(device)
_target = _tar.float().unsqueeze(0).to(device)
output = network.network_forward(_input, weights)
if mode == 'validat... | [
"maheshk2194@gmail.com"
] | maheshk2194@gmail.com |
bff902fb61c941683b2b4738f0615a12188427e1 | 17b218cf872e203959062908d0f1ec58812d98c8 | /fabfile.py | c52a10f28cc2523f6c7419d7b7a877a22a7d8a71 | [
"Apache-2.0"
] | permissive | renanvicente/root_command_by_ssh | 5f706ef8f620bd3cc9ec059733926694133c36d8 | f34f10cd77625903b355115ae6102c3bfa579bec | refs/heads/master | 2016-09-01T17:05:09.825623 | 2013-11-21T13:38:02 | 2013-11-21T13:38:02 | 13,762,817 | 1 | 0 | null | null | null | null | UTF-8 | Python | true | false | 1,197 | py | from fabric.api import *
from getpass import getpass
cont = 0
info = {}
def get_info(root=False):
try:
global info
if not info:
info['username'] = raw_input('username: ')
info['password'] = getpass('password: ')
if root:
info['pass_root'] = getpass('root password: ')
info['com... | [
"reeh@reeh.linuxextreme.com.br"
] | reeh@reeh.linuxextreme.com.br |
66d4ca5d2985fb751978cbfda10806412206a09f | 1528868cc7bcf830cbe90e638d4e4862a07cb14c | /assistente.py | d4c227d184c40a9e0fae4b803507d04d39763f7d | [] | no_license | rcase31/tcc_vpi | b4502bbed893e476c8964172a3c8c4a25a7db07e | d65768eb3255c905960d1956531327c93cc17e2b | refs/heads/master | 2020-10-01T05:21:45.411286 | 2019-12-11T22:06:08 | 2019-12-11T22:06:08 | 227,467,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | from reconhecimento_audio import *
from reconhecimento_video import *
from reproducao_audio import *
from objeto_avistado import *
from enum import Enum
class Estado(Enum):
ESPERA = 0
LEITURA = 1
AGUARDA_OBJETO = 2
ORIENTACAO = 3
OBJETO_ENCONTRADO = 4
def proximo(self):
return Estado(... | [
"rafaelljc@gmail.com"
] | rafaelljc@gmail.com |
2dc8ec10581c621ff551465c0b0e09eca7adf210 | bc670588d1d15cf1ec99b8d30c1b80aaa408a76b | /017_command_line_arguments.py | 03da36414c932dafe85c2dd5e5802134bd85d8ab | [] | no_license | msgabor/Python3 | 21e2ef1fbdf1e3e5eba3d5bb8c1e19cda33c3e80 | 7bc7c254596f38dd849dfe16b5f587ca5ec8124e | refs/heads/master | 2020-12-15T16:56:12.451028 | 2020-10-26T19:59:21 | 2020-10-26T19:59:21 | 232,116,859 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py |
# Command Line Interface Creation Kit
# https://click.palletsprojects.com/en/7.x/
# option values can be pulled from environment variables
# on linux sometimes the following encoding setting is necessary:
# LC_ALL=en_US.UTF-8
#
# or in script:
#
# import locale
# locale.setlocale(locale.LC_ALL, 'UTF-8')
... | [
"noreply@github.com"
] | msgabor.noreply@github.com |
a41fbaec0c7870b206597745a26e289cb91943e7 | 4c9c2940ef3a07e2756fcceddf01acd384ebde01 | /Python/[5 kyu] emirps.py | 4550d94ea211e128c3446713211ba9db63e83b25 | [
"MIT"
] | permissive | KonstantinosAng/CodeWars | 7d3501a605f7ffecb7f0b761b5ffe414e2f1983a | 157818ece648454e882c171a71b4c81245ab0214 | refs/heads/master | 2023-04-11T09:44:27.480064 | 2023-03-26T21:37:07 | 2023-03-26T21:37:07 | 245,296,762 | 6 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # see https://www.codewars.com/kata/55a29405bc7d2efaff00007c/train/python
from TestFunction import Test
def is_prime(num):
if num % 2 == 0: return False
for i in range(3, int(num**0.5+1), 2):
if (num % i) == 0:
return False
else:
return True
return False
def is_emrip(num):
s = int(''.... | [
"kwstantinos.agelopoulos@outlook.com"
] | kwstantinos.agelopoulos@outlook.com |
2e0fcab52725520f63a59093e6c11153b64ff890 | 2b20f132cbcb6f14f13ef3412302fb6926a506d9 | /metadata_analysis/plot_metadata_labels.py | 0e60a62ad3ce2104fa2041aa6fb7000fc15defc0 | [
"Apache-2.0"
] | permissive | nfrumkin/forecast-prometheus | a200a140cf7705fcb8a9acf4f7a1c3f13e679c75 | fae241ec4303992ed06df67cbbd8118622e9750b | refs/heads/master | 2020-03-26T09:18:37.156900 | 2018-08-23T20:33:00 | 2018-08-23T20:33:00 | 144,744,292 | 119 | 26 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | import json
from datetime import datetime
import matplotlib.pyplot as plt
import matplotlib.dates as dt
import re
import string
import random
import numpy as np
import bz2
from matplotlib.backends.backend_pdf import PdfPages
pp = PdfPages('label_hists2.pdf')
import os
label = "instance"
folder = "kubelet_docker_opera... | [
"nfrumkin@redhat.com"
] | nfrumkin@redhat.com |
a03452b310ca997663bc671a87eac2e20dd047ca | 32896488edb21273742e0add50405eed95f99b08 | /forms.py | 4a03e09386abee00fd7cd806a212c13c1b64823c | [
"BSD-2-Clause"
] | permissive | DuGites/django-simple-registration | 4bd0510e00d3e975fd1a8717bf84ce1d91ca7d53 | 9089e136270f51358c6c4eeeefed97e4a7c37eb0 | refs/heads/master | 2021-09-22T02:32:12.165751 | 2011-01-17T18:29:06 | 2011-01-17T18:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,725 | py | """
Forms and validation code for user registration. From django-registration.
Added SARRegistration
"""
from django.contrib.auth.models import User
from django import forms
from django.utils.translation import ugettext_lazy as _
from hashlib import md5
import random
# I put this on all required fields, because i... | [
"ted.tieken@gmail.com"
] | ted.tieken@gmail.com |
6815c63e54dcd68f5f72a99f5025382635e0a9e8 | f46798fb3efca206e490450b8d85d2b1920abe35 | /vibez.py | e0d2e51f35f81a93c9a55e1ea2f22d38aff48294 | [
"MIT"
] | permissive | Zxayler/VibezPH | 43afe74c4e1d21760296f659286b14c44e970448 | 70b1f7d131897e6939954102d76111f26ef22fa3 | refs/heads/main | 2023-07-18T17:32:18.109777 | 2021-09-06T17:10:08 | 2021-09-06T17:10:08 | 403,698,579 | 0 | 1 | MIT | 2021-09-11T21:49:26 | 2021-09-06T16:57:55 | Python | UTF-8 | Python | false | false | 1,019 | py | from discord.ext.commands import Bot, when_mentioned_or
from discord import Intents, Activity, ActivityType, Status
from discord.ext.commands.core import command
import config
from pathlib import Path
class Vibez_PH_2_0(Bot):
def __init__(self):
self.owner_ids = [481374570130046976, 817701164258689054]
... | [
"zachbotdavid@gmail.com"
] | zachbotdavid@gmail.com |
36675db792eaa04c9b5c9732126b47ebda3a154f | 43cdd7cb26fe44b1ed7de6a46f8b5e680c9b1372 | /openpeerpower/generated/config_flows.py | 244c7e0f950d8f44b848d46e9680ed38ab8aaabb | [
"Apache-2.0"
] | permissive | OpenPeerPower/Open-Peer-Power | 02ec5c133564b47c6f72f669e844a666643cacd6 | 940a04a88e8f78e2d010dc912ad6905ae363503c | refs/heads/master | 2022-08-16T09:38:49.994009 | 2021-05-29T03:54:13 | 2021-05-29T03:54:13 | 183,174,237 | 1 | 0 | Apache-2.0 | 2022-07-15T18:43:02 | 2019-04-24T07:35:47 | Python | UTF-8 | Python | false | false | 246 | py | """Automatically generated by oppfest.
To update, run python3 -m script.oppfest
"""
# fmt: off
FLOWS = [
"almond",
"daikin",
"dialogflow",
"homekit_controller",
"met",
"mobile_app",
"mqtt",
"zha",
"zwave"
]
| [
"pcaston@arach.net.au"
] | pcaston@arach.net.au |
8be72a52068001cc66bd59da148af82ea5b224a8 | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/PMD.py | f9d9498e20f4a6d77b53ce8653cbb90641628f67 | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://investors.psychemedics.com/sec-filings-and-press... | [
"andisc_3@hotmail.com"
] | andisc_3@hotmail.com |
9a26f041c16cbcec21210e5a86090f2c5e54013c | 13637748bbbed49f02ce7bcd87458f4c5d475776 | /other/systemd/monitorservice.py | 1c3ffd84a737ddbb45fb1141ca317ef553077958 | [
"MIT"
] | permissive | fizprof/solarthing | 7a29880c0c808a0604315e8efc9784bccea91a59 | 47c0a145f2e7c38e9aca03abdb4276a988df798b | refs/heads/master | 2023-07-11T13:44:22.977847 | 2021-07-31T04:14:23 | 2021-07-31T04:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | #!/usr/bin/env python3
import sys
from typing import List
import subprocess
import time
from pathlib import Path
import json
from slack_sdk import WebClient
from slack_sdk.errors import SlackApiError
import traceback
"""
sudo python3 -m pip install slack_sdk
"""
class SlackSender:
def __init__(self, prefix: str, ... | [
"retrodaredevil@gmail.com"
] | retrodaredevil@gmail.com |
3aaa08aa641d60b7ce03f8acbd64dbadb472d81d | b4b694e71464532dd19ab72b9f7a1a599c3a4e89 | /multimodal/average_predictions.py | 118b50d064f64188c77210a4019f6cda5d9e9152 | [] | no_license | omg-challenge-alpha/omg_challenge2018_submission_code | e12e1ae224c610af35747f5e5a1c305691795896 | c16f7480efee3fb14579f01d2be9a9313b1a01b2 | refs/heads/master | 2020-04-10T05:59:22.430998 | 2019-01-28T11:31:10 | 2019-01-28T11:31:10 | 160,842,897 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,487 | py |
import pandas as pd
import numpy as np
from scipy.signal import butter, lfilter, freqz
from scipy.stats import pearsonr
from matplotlib import pyplot as plt
def ccc(y_true, y_pred):
true_mean = np.mean(y_true)
pred_mean = np.mean(y_pred)
rho,_ = pearsonr(y_pred,y_true)
std_predictions = np.std(y_pre... | [
"noreply@github.com"
] | omg-challenge-alpha.noreply@github.com |
4b1eb8934099b1c7799cf7e46a9df1e9b543d215 | 7dde613c3c074ca2fbacdf4ca934a34f60d7fcba | /wework/source/add_depart_page.py | ca7ce95c2d31aab4704d99b9189141e45f8e9ff5 | [] | no_license | hedyzhouhd/hw | b0b4771866b1e162bb4a6c7ee6da5ddd459c2c39 | f2af7b7b02c0e73eb9a0c8e377c8222903586c76 | refs/heads/master | 2023-04-24T10:33:42.173717 | 2021-04-22T08:54:18 | 2021-04-22T08:54:18 | 323,369,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | from selenium.webdriver import ActionChains
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions
from selenium.webdriver.support.wait import WebDriverWait
from wework.source.base_page import BasePage
import time
class AddDepartPage(BasePage):
_depart_input_locat... | [
"2862514060@qq.com"
] | 2862514060@qq.com |
e0f658a2dfdc29c3743be77e71ff5e2cc4e36238 | 1818247390f45566d4a397e7aea1b2de7027582e | /lecturebook/models.py | 63da7f08a749cecf06bb5f280f1f0c87ad6985fd | [] | no_license | AnGyeIn/ere_app_server | 8e06da73a160c3e10ac41ed61424292fa9df8b21 | 577de77f7f84928a1deca59e9dcbb3d4add096a0 | refs/heads/master | 2022-11-27T16:50:07.366756 | 2020-08-05T07:47:40 | 2020-08-05T07:47:40 | 282,136,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | import uuid
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, PermissionsMixin
from django.db import models
# Create your models here.
from django.utils import timezone
class StudentManager(BaseUserManager):
def create_user(self, sNum, name, pNum, password=None):
user = self.model(sNum=sNu... | [
"agistudio97@gmail.com"
] | agistudio97@gmail.com |
018b2906e7a41541d957764ddd1c47e355d03386 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_0/Python/CuteCube/ra1.py | dbc146df38875aae8ae187eac50411365e303fb4 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python
import math
def main():
f = open('input.txt', 'r')
total_T = int(f.readline())
#print total_T
for T in xrange(1,total_T+1):
r,t = f.readline().split()
r = long(r)
t=long(t)
# 2k^2 + (2r - 1)k - t = 0
b = 2*r -1.0
a = 2.0
c = ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
fe247491ad250b60cfc470e63187bc32eacfeb9c | 8ed215ee731bc8c55eabdc66ee028a43771510bc | /tasks/nooisee/flask/ids_and_flags.py | ab033ca249b1daac30bde9c7af9c03d3eb3c21b4 | [
"MIT"
] | permissive | irdkwmnsb/lkshl-ctf | c6c0b0ae58653d3d7c427073221043d2adea212c | e5c0200ddc8ba73df5f321b87b9763fb1bbaba57 | refs/heads/master | 2020-03-23T22:22:23.499985 | 2019-02-22T13:29:51 | 2019-02-22T13:29:51 | 142,172,055 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,415 | py | ids = ['i2yctSSMGde1TjBIor4T', 'DZrIgOypvPqMctJS06O9', 'lH4uWfzCg1kFeULgUIVC', 'N9mUMmG8maidbCD0s4mV', 'PuqvlpXgaa5s42mZKE4j', 'CoRVyJtEoNE87xUoRqw0', '8uKC7RXAOBlOXdP7KVGl', '2cVvsSZY3QLRmoAYRFkL', '22enKTGqQwxga5RFQdus', 'Sw1vkSnYDQdEtOjTnfH0', 'S7mUlJwhAJhCFgxCOoAW', 'JkTjzY6JUEgo9G7tHciV', 'xn8irINr3sDQLIAb2CkI', '... | [
"supermax74.02@gmail.com"
] | supermax74.02@gmail.com |
eebec9728ea5e06110a3783a4e01267d3f1990d4 | 380562de8f7d7a88c2a9ed286c4bbd40df291e32 | /get_first.py | ba7618592a8847f495a07c34631dcfa1a1fe1469 | [] | no_license | HarryTheHB/MachineLearning_MLP | 866da690a181e6e7357ee7b7fcf9140367d6513b | 90aaca58d38871585804b016ce5110626f154a9a | refs/heads/master | 2021-01-06T20:46:51.245888 | 2014-12-08T17:13:19 | 2014-12-08T17:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | import argparse
parser = argparse.ArgumentParser(description='Process data')
parser.add_argument('-i', '--input', help='input file name', required=True)
parser.add_argument('-o', '--output', help='output file name', required=True)
args = parser.parse_args()
fr = open(args.input, 'r')
fw = open(args.output, 'w')
li... | [
"daiyang58@hotmail.com"
] | daiyang58@hotmail.com |
eb6e24298ea8f7fb918358f14f3dc37f683cef00 | c74ee64c2730c1a8c2a8b39e394fce2125722b1c | /run_tests.py | 691ec73ca87559fb1203ccf4cbffc68e73b10afd | [
"MIT"
] | permissive | hua2001/FFTHomPy | b754213c1d9296236709b13409eb9f006781c13a | e733194b12f0d732377615163495d2bde06a1e46 | refs/heads/master | 2020-12-25T15:30:24.752750 | 2015-08-28T15:36:17 | 2015-08-28T15:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | #!/usr/bin/python
import unittest
import numpy as np
from homogenize.problem import Problem, import_file
import cPickle as Pickle
import os
class Test_main(unittest.TestCase):
def setUp(self):
self.input_files = ['examples/scalar/scalar_2d.py',
'examples/scalar/scalar_3d.py',... | [
"vondrejc@gmail.com"
] | vondrejc@gmail.com |
06cb210a650fc39142459a1b18995c9b0a34b4d9 | bbfd441168758ed5fd9801c8330698e2ca3bbaeb | /tf-2-workflow/train_model/train.py | 76bb16faba426c0f0276db7ab0fece03fbab9473 | [
"Apache-2.0"
] | permissive | aws-samples/amazon-sagemaker-script-mode | 66d5041bb35e55eea4efe511c83cd21d4add58db | 54be9ca995bf33d87ccfede258f1c639e07c19fc | refs/heads/master | 2023-08-03T08:49:36.256492 | 2022-03-09T00:18:07 | 2022-03-09T00:18:07 | 169,129,147 | 168 | 103 | Apache-2.0 | 2023-07-21T04:47:36 | 2019-02-04T18:45:15 | Jupyter Notebook | UTF-8 | Python | false | false | 2,459 | py | import argparse
import numpy as np
import os
import tensorflow as tf
from model_def import get_model
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
def parse_args():
parser = argparse.ArgumentParser()
# hyperparameters sent by the client are passed as command-line arguments to the script
parser.add_arg... | [
"rabowsky@amazon.com"
] | rabowsky@amazon.com |
20adba546311eb8ef3f505a79525f18a05e924ff | 4fd65dc15ed0e5849c440a41d81036d1ff47ea96 | /tests/integration/test_deploy_and_evaluate_model_auth_on.py | 56f92793bb30c984b1b9583ee2c3e49b30cd861f | [
"MIT"
] | permissive | tableau/TabPy | 20ae3dacb958bf2d0e48fc36220366cb3db412bb | 96aa26252b6115bd2788f9526680ec1b34f1c86f | refs/heads/master | 2023-08-29T13:47:21.507211 | 2023-06-21T21:30:40 | 2023-06-21T21:30:40 | 69,400,040 | 1,527 | 633 | MIT | 2023-06-21T21:30:42 | 2016-09-27T21:26:03 | Python | UTF-8 | Python | false | false | 1,233 | py | from . import integ_test_base
class TestDeployAndEvaluateModelAuthOn(integ_test_base.IntegTestBase):
def _get_config_file_name(self) -> str:
return "./tests/integration/resources/deploy_and_evaluate_model_auth.conf"
def _get_port(self) -> str:
return "9009"
def test_deploy_and_evaluate_m... | [
"noreply@github.com"
] | tableau.noreply@github.com |
27a755114e9428830bf580c087c5298f47d7fec3 | 265392e81827a0489286c499afe85fac2f2eb664 | /blogs/views.py | ed0c470dc3aebb1fe30f9b8aa7b919dbb9281967 | [] | no_license | Girishiam/portfolio_website | 978bb75d1b9c53eb6aa7f02f91b6d8eabcd23d29 | 4d87007fee5a040ed28b5821bde8834c299db4c0 | refs/heads/main | 2023-03-01T17:30:52.332034 | 2021-02-17T15:53:43 | 2021-02-17T15:53:43 | 338,725,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from django.shortcuts import render , get_object_or_404
from .models import Blogging
# Create your views here.
def blogs(request):
blogs = Blogging.objects.order_by('-date')
return render(request, 'blogs.html' ,{'blogs':blogs})
def details(request , blog_id):
blog = get_object_or_404(Blogging,pk=blog_id)
... | [
"girishmondal.28@gmail.com"
] | girishmondal.28@gmail.com |
91e49750928e22ddb674fc23c07aa8d6808eb4d3 | b21b7e9da588abfdb6e0ba4c42fc73270124b19e | /01-Qualification/02-Nesting_Depth/solution.py | 746e13d50f3615f823b2cb08a6dc8790b71ba3f2 | [] | no_license | luispmenezes/Google-Code-Jam-2020 | 442fc148afc887443807c949a2d76105e7f8a493 | 655ea66dbf36dbb93e2046d8daf60df5c3b9096b | refs/heads/master | 2022-04-10T06:22:46.210862 | 2020-04-05T11:28:16 | 2020-04-05T11:28:16 | 252,834,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | def main():
t = int(input())
for t_idx in range(1, t + 1):
s = input()
new_s = ""
current_depth = 0
for n in s:
new_depth = int(n)
if new_depth > current_depth:
new_s += "(" * (new_depth - current_depth)
elif new_depth < curre... | [
"lspmenezes@gmail.com"
] | lspmenezes@gmail.com |
1685d2a9cf7e5dc726fffb430a61ba17869e53f8 | 4cce3b466591f7f8b9d58c1f8cae4dd0b6425b09 | /classes dealing.py | 09e2606008d31426022cdef988fb9cec1726491e | [] | no_license | adityamangal1/hackerRank-solutions | 4e5fc66785215688449f58176b0260e05fb0c404 | 102ee32f5984240939bf14e799a458d99388774b | refs/heads/master | 2023-04-18T15:35:36.998087 | 2021-04-22T07:16:38 | 2021-04-22T07:16:38 | 297,935,486 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import math
class Complex(object):
def __init__(self, real, imaginary):
self.real = real
self.imaginary = imaginary
def __add__(self, no):
complex_n = complex(self.real, self.imaginary) + \
complex(no.real, no.imaginary)
return Complex(complex_n.real, complex_n.ima... | [
"adityamangal0202@gmail.com"
] | adityamangal0202@gmail.com |
38ac0ebefab8c9d3b98a064ad4fb25c4b5357b6d | 2c889d2bde3a6a4c1fc8a0c3d0070779adcfa30b | /p3.py | a8bd0ffd4842f4df6ec610630daa70778987de8d | [] | no_license | rjorth/lab4-key | b5c6c3cca834ba191ea18940160933af594ba8d8 | 67d4a417b6b137a83ee96bc281ab324b5cd8677b | refs/heads/master | 2021-05-15T12:16:13.012732 | 2017-11-01T13:20:52 | 2017-11-01T13:20:52 | 108,420,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | import sys
class Node(object):
def __init__(self, v, n):
self.value = v
self.next = n
class LinkedList(object):
def __init__(self):
self.firstLink = None
def add (self, newElement):
self.firstLink = Node(newElement, self.firstLink)
def test(self, testValue):
curr... | [
"noreply@github.com"
] | rjorth.noreply@github.com |
4a7f9b779862e39bed7fde83a238b96e4b69f2f1 | fe4c3905ec0e2d8fa5100454c49a863bda3d05ab | /Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/IndirectResolution.py | 3fe3e42c49c3011afbab8d24a9adf8e2cf6fcb2b | [] | no_license | mkoennecke/mantid | 11f16fe573056d70c119c4d6fb6984b7008cb8e6 | c0a8e5d97cde6cc28abb8c7b1b5c056986a81fec | refs/heads/master | 2021-01-18T11:51:28.997458 | 2015-02-13T10:48:51 | 2015-02-13T10:48:51 | 11,472,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,587 | py | from mantid.simpleapi import *
from mantid.api import *
from mantid.kernel import *
from mantid import config, logger
class IndirectResolution(DataProcessorAlgorithm):
def category(self):
return 'Workflow\\Inelastic;PythonAlgorithms;Inelastic'
def summary(self):
return 'Creates a resolution ... | [
"dan@dan-nixon.com"
] | dan@dan-nixon.com |
41127de8fe849b6f4a3d581b297a921093e0711c | 8246307d867c7c60157c8e967d15ac1c920f7c5b | /Python/count_letter.py | 56479b1b7350bc7886ebc50e86b577b8e1460484 | [] | no_license | pratyushmp/code_opensource_2020 | abe4aabaa8984cf9eb020604b401ab7ae80e8370 | 2302a6dfa651aaaca8b71786ca526864a60b800d | refs/heads/master | 2023-06-24T07:48:13.339825 | 2020-11-17T04:31:13 | 2020-11-17T04:31:13 | 215,303,780 | 8 | 156 | null | 2023-06-16T06:05:47 | 2019-10-15T13:18:42 | Java | UTF-8 | Python | false | false | 662 | py | def count_letters(text):
result = {}
# Go through each letter in the text
count = 0
for letter in text.lower():
# Check if the letter needs to be counted or not
if letter.isalpha():
if letter not in result:
result[letter]=0
result[letter]+=1
# Add or increment the value in the ... | [
"gouravrawat255@gmail.com"
] | gouravrawat255@gmail.com |
5d1ee53903bb1c103dcbfa5adcb02a724718dcbf | ea02a4c1466415a050684e7375dd255b212125e9 | /emailupdate/admin.py | f19ecbeed694f268ff2f085314d21bc20707dc19 | [] | no_license | scotplum/inthenout | bb9cb12fd800d31501f7c5274d42759f990eab3e | 772f935396a7ada4e5e35000034f089606e01382 | refs/heads/master | 2020-05-26T22:15:07.519560 | 2017-05-23T04:15:06 | 2017-05-23T04:15:06 | 82,509,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from django.contrib import admin
from models import Email
# Register your models here.
admin.site.register(Email) | [
"scotplum@gmail.com"
] | scotplum@gmail.com |
ad0d7fcc46084f9cf006198340d01c1534e41179 | d64893992dee08c1c84111fc700c267339230743 | /cctv.py | 0fd3b5e558879c84263913e5e07432c7acd989ed | [] | no_license | amredarpan11/SGP-2021 | fe76e677f1b1cf372efafa0662c5168180878a34 | d5a422e2011ae6ca5e3e05d310dad337bdd7bf2b | refs/heads/main | 2023-04-17T04:43:57.682365 | 2021-04-29T05:22:07 | 2021-04-29T05:22:07 | 349,281,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | # coding=utf-8
import cv2
import time
def minimizeWindow():
import win32gui,win32con
window = win32gui.GetForegroundWindow()
win32gui.ShowWindow(window,win32con.SW_MINIMIZE)
def cctv():
video = cv2.VideoCapture(0)
video.set(3,640)
video.set(4,480)
width = video.get(3)
hei... | [
"noreply@github.com"
] | amredarpan11.noreply@github.com |
7790d6343f88dbb56c1797fe913f7c904cd7e3ac | bf5081d59b21af6b622df1d4cc39a1dd9eec18ce | /testchild.py | d7674eb5731d2f3b721ec9e6721e9aff9caa433d | [] | no_license | vc8885/test-repo | 3622d830080c98fb70a89ab36376516a4d1c8c93 | d1da6f19c49cc20118fc15d7968d8fa722f64e13 | refs/heads/master | 2022-12-15T02:55:19.299570 | 2020-08-31T19:55:43 | 2020-08-31T19:55:43 | 291,808,317 | 0 | 0 | null | 2020-08-31T19:55:44 | 2020-08-31T19:39:53 | Python | UTF-8 | Python | false | false | 63 | py | #adding a file in child branch
print('this is a child branch')
| [
"noreply@github.com"
] | vc8885.noreply@github.com |
7d3e2f8fb51b8a57e36c7a414828eb752c9632b7 | a1f0c923cb50ed7bcf6443614277cb2197619d36 | /controller.py | caf1a2bc5daaa57a9b4081dd96c9c4890bfd170f | [] | no_license | michaelelcock/assignment001 | 5d43a45cdc320a2f949e7ef52575a7c535464198 | d2b358897dd673a1562f27113788e06e05e1a36f | refs/heads/master | 2020-04-17T15:16:29.224890 | 2016-08-28T10:33:59 | 2016-08-28T10:33:59 | 66,617,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py |
class Controller(object):
@abstractmethod
def get_pack_name(self):
pass
@abstractmethod
def scrape_data(self, args):
pass
@abstractmethod
def show_data(self, data):
pass
@abstractmethod
def pickle_data(self, data):
pass
| [
"michaelelcock@hotmail.com"
] | michaelelcock@hotmail.com |
3715ccf9a3e985bb9759e80cc93d8ee95462f847 | 325c217fea68ffd93e04d0664a76ec72cd262ac1 | /entryparser.py | 938ed4704518bf73bb45a82100957e6e87375e1e | [] | no_license | egesadic/sozlook | 4f4cc9197bae9294042197ef6e1fcd2401b7afd8 | 407be34b715266dd5c91ae97af085a50dc01fc4e | refs/heads/master | 2020-04-15T00:51:00.584295 | 2019-01-05T21:52:51 | 2019-01-05T21:52:51 | 164,253,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import sozlook
import sozlook_kadinlarkulubu
import time
def auto_fetch(baslik):
sozlook.get_topic(baslik)
plist = sozlook.parse_all_entries(baslik)
sozlook.save_entries(plist)
sozlook.to_excel(plist, baslik)
print("Tamamlandı: " + baslik)
del plist
def local_fetch(baslik):
f = sozlook.loa... | [
"noreply@github.com"
] | egesadic.noreply@github.com |
c44632df47cf5fe63c486976a302b203e61fa980 | fc73adeb9998c3f144bc19d0f32bfa2e08ffe53f | /GBP FX HTML Email- generic.py | a291eaa316e85b9f8a078154677fcd76822df0bd | [] | no_license | llattan/Portfolio-Projects | 58e5dacc1172ab086ab74c7df93ea5065e984660 | 271067cc25af205a55f31b138a1a66e13a823a61 | refs/heads/master | 2022-11-14T20:37:10.295087 | 2020-06-21T17:32:24 | 2020-06-21T17:32:24 | 267,049,876 | 0 | 0 | null | 2020-05-26T13:49:49 | 2020-05-26T13:26:50 | null | UTF-8 | Python | false | false | 4,989 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
#from email.mime.base import MIMEBase
from email.mime.image import MIMEImage
import time
import requests
import csv
#from email import encoders
url="http... | [
"noreply@github.com"
] | llattan.noreply@github.com |
c630a294ad77a90e993584e4fabc30126993f236 | f1dc6a4c37dad17d32a379d94748bfe97d7b2784 | /Course 1/Week 4/kargerMinCut.py | 8625cf2054f7ca1ed8b68dee4b0ee76e0c7a496b | [] | no_license | chrism216/Coursera_Stanford_Algorithms | 4cf6248ffa57c8982dc2601819f71e89e8afa8ba | 3ec4eb5587818f0945dc9d1533415a527f90e8ce | refs/heads/master | 2020-03-26T04:32:35.128080 | 2018-10-23T21:51:03 | 2018-10-23T21:51:03 | 144,508,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | from random import choice
from math import log
from copy import deepcopy
def merge_vertex(adj):
vertex1 = choice(list(adj))
vertex2 = choice(adj[vertex1])
vertex2_items = adj.pop(vertex2)
# Add edges from deleted vertex2 to vertex1
adj[vertex1] += vertex2_items
# Update edges that pointe... | [
"chris_m216@hotmail.com"
] | chris_m216@hotmail.com |
540a90e5ada5365bcdd02cc93f075cf3bbcc7940 | aba9b00edec394f1389a7ecf88a290112303414d | /semestr_8/analiza_obrazu/projekt/image_anal.py | 27ef23203928b6d0aa4647a3b8b98e00f6ab0559 | [] | no_license | torgiren/szkola | 2aca12807f0030f8e2ae2dfcb808bf7cae5e2e27 | 5ed18bed273ab25b8e52a488e28af239b8beb89c | refs/heads/master | 2020-12-25T18:18:36.317496 | 2014-04-27T23:43:21 | 2014-04-27T23:43:21 | 3,892,030 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 33,859 | py | #*-* coding: utf8 *-*
"""Moduł zawierający klasy używane do przetwarzania obrazu"""
import numpy as np
from scipy import misc
import itertools
from pprint import pprint
from glob import glob
import os
class NoImageError(Exception):
"""Wyjątek sygnalizujący próbę operowania na niewczytanym obrazie"""
pass
cla... | [
"torgiren@gmail.com"
] | torgiren@gmail.com |
517e4b682e6b12974385b9c23201af4bebefd1d0 | 5679731cee36c537615d285ed72810f4c6b17380 | /513_FindBottomLeftTreeValue.py | 0de079fbf90fd9385df6647f65a7e451a7aa108a | [] | no_license | manofmountain/LeetCode | 6b76105190a9b62df65a7b56b6def4120498b9fa | 718f688b3d316e8c10ef680d9c21ecd518d062f8 | refs/heads/master | 2021-01-12T03:41:48.318116 | 2017-07-18T12:35:58 | 2017-07-18T12:35:58 | 78,252,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # 40.9%
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#from collections import deque
class Solution(object):
def findBottomLeftValue(self, root):
"""
:type root: Tre... | [
"noreply@github.com"
] | manofmountain.noreply@github.com |
7df30939d83206061d734e50cdbc9ecdaa973fbb | a35840ee0c867fd7d2fa3ac84a8681ea20ace507 | /2022/python/day1.py | be5794cd8d551f3e568ea57239a4edd1a3e6eef2 | [] | no_license | javiermolinar/AdventOfCode | 8b82284b17bff4d7b5f9cd4b836a2708f46799c5 | 9f45eb27cdf5fcf3787d6dd00b64336c1a6d4ba4 | refs/heads/master | 2022-12-26T14:48:38.296963 | 2022-12-12T08:26:40 | 2022-12-12T08:26:40 | 160,176,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | from utils import read_lines
def get_calories():
calory = 0
for calory_count in read_lines(1):
if calory_count == "\n":
yield calory
calory = 0
else:
calory += int(calory_count)
def day1_1():
"Find the biggest sum of calories"
return max(get_calori... | [
"javiermolinar@live.com"
] | javiermolinar@live.com |
ce505ca0ceaa5e400375f9fc5ee87089d635e977 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/databox/azext_databox/vendored_sdks/databox/__init__.py | 1c85885ae27c33da1710d57cd105b2ea74f26605 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 736 | 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 ... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
1778146de13d49f780aa4ee3134a372e96fa308a | f008fe1057b00d19d7812e0373669763c9992f42 | /python/hpatches_eval.py | ebac75261c116cac7ddb183ec31547f7388ef833 | [
"BSD-2-Clause"
] | permissive | baiyancheng20/hpatches-benchmark | 68a265f5e23f7ceabce06635818b8c6a73c3e578 | 23c3a6dcf92bff7bda492363908cbc52b2533472 | refs/heads/master | 2021-01-20T00:52:08.069991 | 2017-04-22T19:02:21 | 2017-04-22T19:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | """Evaluation code for the HPatches homography patches dataset.
Usage:
hpatches_eval.py (-h | --help)
hpatches_eval.py --version
hpatches_eval.py --descr-name=<> --task=<>... [--descr-dir=<>] [--split=<>] [--dist=<>] [--delimiter=<>] [--pcapl=<>]
Options:
-h --help Show this screen.
--version S... | [
"v.balntas@imperial.ac.uk"
] | v.balntas@imperial.ac.uk |
9548ef37a3de605b5bab00df1a6f4567c0a51d12 | ccdeebbbfc6476fdad2984dbcaaba7296e920038 | /stubs/pep8-naming/pep8ext_naming.pyi | 13e7e48fbf50ac2ee4957ce90ab75e334f89a065 | [
"MIT",
"Apache-2.0"
] | permissive | hoefling/typeshed | 75d85144aa8b69fac1872f7d0239f910b509b99c | c9e6bd2df9d2aa05927ce0576c24cbb5740d7361 | refs/heads/master | 2023-07-22T08:50:00.789424 | 2022-10-10T14:26:07 | 2022-10-10T14:26:07 | 208,133,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | pyi | import ast
from argparse import Namespace
from collections.abc import Generator, Iterable
from typing import Any
__version__: str
PYTHON_VERSION: tuple[int, int, int]
CLASS_METHODS: frozenset[str]
METACLASS_BASES: frozenset[str]
METHOD_CONTAINER_NODES: set[ast.AST]
class NamingChecker:
name: str
version: str... | [
"noreply@github.com"
] | hoefling.noreply@github.com |
ee5d2188e09cde889cc9c6b2cb128b64c151072c | 4b221a07d4d13b5ee42ca094e086d4a7dbd6e560 | /Deploy/plantilla.py | e98e662d79bba8a2c91282089741681b53835b6b | [] | no_license | Puppy-runner/web-app | 95e90f5850b932c622e0d6733a1a76194b167bb8 | 892cf634d58dc6a4ac3b3e3530d1bf222274b201 | refs/heads/master | 2021-01-01T04:00:39.289205 | 2016-05-16T05:31:23 | 2016-05-16T05:31:23 | 58,324,058 | 0 | 0 | null | 2016-10-19T02:56:50 | 2016-05-08T17:52:33 | Python | UTF-8 | Python | false | false | 187 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def info_template():
return render_template('index.html')
if __name__ == '__main__':
app.run()
| [
"kazevtrinid@gmail.com"
] | kazevtrinid@gmail.com |
969d308cce5315153f4c62b2ab6b833571aed1c2 | dbb3dfcf57d4a57045f6936da82f7b4ace6221de | /collate.py | d9f5253185d3f4f3ea1850215b7eff393d7ac81a | [
"MIT"
] | permissive | geoquant/JSON-QAnon | d536b52999a8e553d2e89f3ec1cd820e06b70bd8 | 2cd3f0ef311cefeaf74fa1641fbeff6b163ed85a | refs/heads/main | 2023-03-18T17:35:54.539852 | 2021-03-05T06:17:44 | 2021-03-05T06:17:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,413 | py | #!/usr/bin/env python3
import copy
import json
import os
import re
from bs4 import BeautifulSoup
# location of 1.htm, 2.htm, etc.
PAGES_DIRECTORY = 'qposts.online/page'
# when False, trim stray whitepaces from links in posts+refs; see explanation in clean_up_raw_text()
KEEP_ORIGINAL_WHITESPACE = False
def extract... | [
"jack.kingsman@gmail.com"
] | jack.kingsman@gmail.com |
1aadf32219df1a0f837c2565c18f3ee4644543aa | da4f58a4a839301385816c9b31aee12fda478587 | /3/dsa/heaps/minheap.py | 4ef194e9f6e759716f4fc0ac01d34908c2505d06 | [] | no_license | san39320/lab | 047f0531ab6496391aedf274a4f7710c7c0b2d31 | 69867bb36db15c23f2ca2cd6514a0de432acbaff | refs/heads/master | 2021-05-14T08:05:30.047940 | 2019-10-21T08:39:56 | 2019-10-21T08:39:56 | 116,284,508 | 0 | 1 | null | 2019-10-21T08:38:37 | 2018-01-04T16:49:37 | C | UTF-8 | Python | false | false | 1,813 | py | class maxheap:
def __init__(self):
self.a = [None] * 50
self.count = 0
### heapify
def arrayheap(self,a):
for i in range(0, len(a)):
self.a[i + 1] = a[i]
self.count = len(a)
for i in range(int(self.count / 2), 0, -1):
self.heapify(i)
de... | [
"sanjayshetty2015@gmail.com"
] | sanjayshetty2015@gmail.com |
aded8e6f34c43d6a0acd9789f1172361e389c74e | 9bef44307cf379a005f695ca65fd4cef2f6d2dda | /unsorted/make_symm_axes.py | 6bbf0b19f014ca27cfbca841dd13a0dbfa873952 | [] | no_license | willsheffler/lib | a2e691cd1bccfc89989b161820616b57f9097c4d | b3e2781468a8fc25528a9f03c31e45af1cddd75a | refs/heads/master | 2020-03-30T04:11:51.663557 | 2013-05-26T03:53:40 | 2013-05-26T03:53:40 | 1,439,853 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import sys,os,math
def sub(X,Y):
return X[0]-Y[0], X[1]-Y[1], X[2]-Y[2]
def cross(X,Y):
return X[1]*Y[2]-X[2]*Y[1], X[2]*Y[0]-X[0]*Y[2], X[0]*Y[1]-X[1]*Y[0]
def norm(X):
s = math.sqrt(X[0]*X[0]+X[1]*X[1]+X[2]*X[2])
return X[0]/s,X[1]/s,X[2]/s
a = None
b = None
c = None
for l in ... | [
"will@sheffler.me"
] | will@sheffler.me |
c5966d474a2ab28ae3d633cd80d29129b5f0a498 | c6c74c3fdf54b01254caf42728aefdfb981d211b | /modules/Summary.py | 2a8079ee5b6acee405a74bf22eb914bbd84d4168 | [
"BSD-3-Clause",
"MIT"
] | permissive | serin113/orgdb | decdbf6329a76a1590ebf16450ad580c7ca4b757 | 25fb9e3b430ab88e43b7fdae4665b862881e41fc | refs/heads/master | 2020-04-18T01:42:47.548496 | 2019-05-22T07:36:21 | 2019-05-22T07:36:21 | 167,130,289 | 1 | 0 | MIT | 2019-05-22T07:36:23 | 2019-01-23T06:31:17 | Python | UTF-8 | Python | false | false | 4,361 | py | # Created in 2019-03-22 for PSYSC as part of a system for managing science club affiliations.
# Copyright (c) 2019 Nathankissam Roy Tubis & Elfren Simon Clemente.
# Licensed under the MIT License, refer to https://opensource.org/licenses/MIT for details.
# Code History:
# 2019/03/22 (Simon) - Moved class to this file... | [
"simon_clemente@yahoo.com"
] | simon_clemente@yahoo.com |
c0b8870b43e999588ed4befc1e107dd7815911b0 | 5df035428c001027c15b0ae3d441ad81587101df | /libs/eyed3/utils/console.py | 7f847e12c1b4a21f8788712d50532bff4854e821 | [] | no_license | bbaldino/BGMM | 256a32c07cce2aa7fdf66f8905ced6c37597fe59 | c6694cfe988eecda3f308b3c2e505885ff1f9357 | refs/heads/master | 2021-01-10T19:55:49.119557 | 2015-12-06T23:32:05 | 2015-12-06T23:32:05 | 9,126,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,126 | py | # -*- coding: utf-8 -*-
################################################################################
# Copyright (C) 2013 Travis Shirk <travis@pobox.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free So... | [
"bbaldino@gmail.com"
] | bbaldino@gmail.com |
bd3f176a008a20a6e7855e996b871cf2c1445cbd | 5d0c93c0d8678357e5f657a54ed596a757e179a1 | /TubesScrap_1914311050_pg/TubesScrap_1914311050_pg/middlewares.py | e35fd969ab24db6c52de3ec7790ffef50707b9ea | [] | no_license | ubaidillah219/Tugas-Besar-Scrapy-NIM-Pagi-Ubhara-Surabaya | 45679474b098010785ddad32bdf1ac421a2c2fb3 | 5ff48ffc0a2350fc85b96d2e3dd67af1f5d6c298 | refs/heads/main | 2023-05-11T09:56:07.677568 | 2021-05-28T12:57:17 | 2021-05-28T12:57:17 | 371,698,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class Tubesscrap1914311050PgSpide... | [
"noreply@github.com"
] | ubaidillah219.noreply@github.com |
843d7839c9bb41dd49d27d923e3380fa9ccc816a | 2e7430a6d54a78e47ba6bf30ad327337e1bc9d1c | /calendrier_perpetuel.py | 3f4dc7f7873f8eb2b2282ce8a2b4f61706a7572c | [] | no_license | Saihttamu/calendrier-python | a884693ce755a6700081729655def6127dfde017 | e114c27973d419998e761835f5c7388fc95af975 | refs/heads/master | 2021-05-24T14:10:02.239151 | 2020-04-07T23:21:40 | 2020-04-07T23:21:40 | 253,599,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 29 14:48:16 2014
@author: Matthias
"""
def date(j,m,a):
J,M,A=23,2,2013 # jour: samedi
ka=0 # écart d'années
km=0 # écart de mois
for i in range(abs(a-A)): # pour chaque année on compte 365 ou 366 jours
if (min(a,A)+i)%4==0 and (min(a,A)+i)%1... | [
"61355238+Saihttamu@users.noreply.github.com"
] | 61355238+Saihttamu@users.noreply.github.com |
96dc9ae441e5fcda790e882d873f43dd970a3421 | 8318644cd5b2c26ea080975b7a12926f04bdb0d8 | /ybsong55/app.py | 2d5055c766baf97acc7f30d427ab0d733df333f8 | [] | no_license | kimhokyoung94/team6 | c7784c13650a512b58e68c24dde054f44f606bda | c896aadc129b864482db7474179528611145e624 | refs/heads/master | 2022-11-25T14:16:40.616928 | 2020-08-05T07:40:43 | 2020-08-05T07:40:43 | 285,166,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | from flask import Flask ,render_template , flash , redirect , url_for, session, request, logging
from functools import wraps
import pymysql
from passlib.hash import pbkdf2_sha256
from bs4 import BeautifulSoup
app = Flask(__name__)
app.debug=True
db = pymysql.connect(host='localhost',
port=33... | [
"ghrud24020@naver,com"
] | ghrud24020@naver,com |
b2bffebe0d3afd8e30834ea253f25b0301693c7e | 61e9212b05b65d555e48328f66e50a3a91ababc3 | /CycleGAN/split_data.py | 8b8724d7fe495c88cea34a370db663c4f3dbfadc | [] | no_license | davidwajngot/CT-image-enhancement | eb31ee4d6c6fb038f8a452234b0a86267e5f2ccd | 9ac385dc2eb95de11cefe28b53f749b3b81a08d8 | refs/heads/master | 2023-03-04T12:06:45.108643 | 2019-01-22T16:37:08 | 2019-01-22T16:37:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | import random
import os
from shutil import copyfile
#print (os.getcwd())
#FROM_PATH = 'datasets/R/trainA'
#TO_PATH = 'datasets/R/testA'
#FROM_PATH = 'datasets/Quality/mostA'
#TO_PATH = 'datasets/Quality/testA'
FROM_PATH = 'C:/Users/davwa/Desktop/Observer Test/A14-A20 (test)'
#FROM_PATH = 'C:/Users/davwa/Desktop/Observ... | [
"davwa@cmiv.local"
] | davwa@cmiv.local |
9b403cc28a2704821212b20a387d129532f18987 | e6a3f71ef4963eda799f449be226ad6e2a2cbb55 | /wemarry/wemarry/wsgi.py | d32512602114a3bd86b31bdff792a1da9b9871a1 | [] | no_license | iameeo/wemarry.pythonanywhere.com | b2556f3c7ceef87ae190f41c1f7cc94f6b9753e3 | 832f19fe0786459e2320f742c19fe6c28c0c4063 | refs/heads/master | 2023-02-08T23:00:51.125461 | 2021-01-04T14:28:42 | 2021-01-04T14:28:42 | 208,023,836 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for wemarry project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"joowon1028@gmail.com"
] | joowon1028@gmail.com |
ec0bfed2e04944f6a53b48dd4438719b1733cb75 | 699ff10c347dc9b6d5af7f531a1c941dbfecd558 | /leetcode/python/232-implement-queue-using-stacks.py | cfbd49aa1d50363b1d16e3ac48c0bcd623bf7032 | [] | no_license | iampkuhz/OnlineJudge_cpp | 71a7637c54d81be2aa066a6132aab31b798bbe6b | 737b9bac5a73c319e46cda8c3e9d729f734d7792 | refs/heads/master | 2021-01-10T10:16:37.589855 | 2017-03-06T12:45:20 | 2017-03-06T12:45:20 | 24,891,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.
pop() -- Removes the element from in front of queue.
peek() -- Get the front element.
empty() -- Return whether the queue is empty.
Notes:
You must use only standa... | [
"iampkuhz@gmail.com"
] | iampkuhz@gmail.com |
6e6b1da786d00ec3a90e3ce7a86f766394891fb3 | aa8356ddad5a92ac30dd5d68987725d81df093cc | /configs/retinanet_r50_416_fpn_1x_DIOR_cocosty.py | 27f2c1049c96435f71a2116b4af17394987eaa8e | [] | no_license | TangYuangao/Hello-_-word | 92b4632cab6c23ffb5d52daee86d5ab3db63dfad | 5f04f12387491d39e601c1707c23b142836e48da | refs/heads/master | 2023-08-30T15:47:10.146969 | 2023-08-07T14:52:14 | 2023-08-07T14:52:14 | 287,425,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | _base_ = [
'../_base_/schedules/schedule_1x.py',
'../_base_/default_runtime.py'
]
# model settings
model = dict(
type='RetinaNet',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(t... | [
"noreply@github.com"
] | TangYuangao.noreply@github.com |
1f41a398f7b1bbc063c06d139e7b94f847a1fe29 | df306c7a9f1e437f2c4466bff811f61b589431bf | /CiscoASARESTAPI-BlogPost.py | 2990b6bc67fe3adceef8c5d4dd582014adb53114 | [
"MIT"
] | permissive | natecrisler/ciscoasarestapi | be4bafabe37953cc37255a44dc82f024555fd915 | c8816b07935919497e3c1684f66f170f80621c5e | refs/heads/main | 2023-03-23T18:17:23.507861 | 2021-03-11T20:24:05 | 2021-03-11T20:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | #https://learninglabs.cisco.com
#https://sandboxapicdc.cisco.com/
#https://github.com/CiscoDevNet
import random
import string
import requests
import urllib3
from pprint import pprint
import json
import getpass
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
log_file="fwbackuplog.log... | [
"noreply@github.com"
] | natecrisler.noreply@github.com |
44f8d9c69390d7370bb31cd2234c246a450a52fd | 032a59902e47f6843ac9c76f6e27eb1d4a78c27d | /scripts/python/ep_fec_rc_no_tmt.py | f6834bb4c0dc8f9a15b64cdf8e6a41eda5f09f3e | [
"Apache-2.0"
] | permissive | OSADP/Pikalert-Vehicle-Data-Translator- | 17411c602879eb4fb080201973b4a966f9405a4b | 295da604408f6f13af0301b55476a81311459386 | refs/heads/master | 2021-03-27T12:02:18.535636 | 2017-04-03T16:09:38 | 2017-04-03T16:09:38 | 25,056,408 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,345 | py | #!/usr/bin/env python
# *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
# ** Copyright UCAR (c) 1992 - 2015
# ** University Corporation for Atmospheric Research(UCAR)
# ** National Center for Atmospheric Research(NCAR)
# ** Research Applications Laboratory(RAL)
# ** P.O.Box 3000, Boulder,... | [
"bpetzke@ucar.edu"
] | bpetzke@ucar.edu |
ee5617465b61bb3ffc83e4e4ee8df99315b4bd11 | f9f8f723bcdd89970c1a184628e4ad8de97f1c0d | /env/bin/pip-3.8 | 4cc4993bdacaf606c88e4b30422c94f023010632 | [] | no_license | markimfeld/mini-pexels | 80ddc9253b9b64146a75d0e9cf6e96e3789464db | 1e6eb50ff67b66bbf8107218f3ae5a4801ec5223 | refs/heads/master | 2023-01-01T03:09:59.575208 | 2020-10-17T17:45:24 | 2020-10-17T17:45:24 | 304,934,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | 8 | #!/home/marcos/Documents/programming/python/projects/getting_photos_pexels/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sebastianimfeld@gmail.com"
] | sebastianimfeld@gmail.com |
3adbab7f1457ee5c0f126f540350eff00b557ef3 | 61d4ae3aeed5375467bfa3b00f0ed43d1c44d122 | /sessions/models.py | 0c4a457ead316324340fb0284936a0eb2ff92ba7 | [] | no_license | beratakuzum/django-rest-crud | ed8e46d7a6157737b48adaca68babdb16920564d | 1cdf311cf803747d8ffdd29a251e3b850487de5f | refs/heads/master | 2023-02-15T22:18:31.351802 | 2021-01-12T08:28:44 | 2021-01-12T08:28:44 | 322,912,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from django.db import models
from events.models import Event
class Session(models.Model):
name = models.CharField(max_length=100, null=False, blank=False)
start_date = models.DateTimeField(null=False, blank=False)
end_date = models.DateTimeField(null=False, blank=False)
speaker = models.CharField(max_... | [
"beratakuzum34@gmail.com"
] | beratakuzum34@gmail.com |
7c0c42ad12b2c2286ad2646113febc7ab5cc2773 | 77a9250b7287d1d23ba3b6c4a6171cc3cdae8362 | /jieying_he_task2.py | 9bfac71e9124a880744606fbb296a9c4f28245ae | [] | no_license | ElvaHe/LSH-Recommendation-System | e59c79bc959d454e35694c42ca493f699e45f80e | d4f759c3325f1fc6a19113797853555f75c9859c | refs/heads/master | 2022-04-10T21:14:57.449206 | 2020-04-04T06:55:17 | 2020-04-04T06:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,974 | py | from pyspark.mllib.recommendation import ALS, MatrixFactorizationModel, Rating
from pyspark import SparkConf, SparkContext
import time
import csv
import collections
import random
import sys
start = time.time()
if __name__ == "__main__":
train_file_path = sys.argv[1]
test_file_path = sys.argv[2]
case_id = i... | [
"jieyingh@usc.edu"
] | jieyingh@usc.edu |
ae1990319995c77926580b4e072215f089eee820 | bc0f6da4e5378893d06dc93e98a56bfcf702e462 | /p5.py | 54907907953fb7d9683b56d631d8ed528a6e461b | [] | no_license | pcoving/euler | 23c17ac3e9fa22db49ae8cc060383de6289706cd | 3beb9436a3cfd7a5a77cfc4e7c3f104c6d0dbee5 | refs/heads/master | 2020-03-31T09:06:31.093932 | 2014-06-30T16:19:05 | 2014-06-30T16:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | '''
2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any remainder.
What is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?
'''
N = 20
n = N
done = False
while not done:
done = True
for m in range(2,N+1):
if n/m != fl... | [
"pmcovington@gmail.com"
] | pmcovington@gmail.com |
4e0fe6547a110182f76e9ab8ad0eb89cb972a754 | e9ffc75f2de77f76bcd10c28195e7b8dcc01db4b | /config/settings/test.py | 95f766b07155f793e1fc376098106f9cf3549397 | [
"MIT"
] | permissive | Parkyes90/pystagram | c2d4b9e38a2065e5d1a8cb4eaa330640efe60a4e | 54a497f4acb70eb4d4288816d9ae460ec5722640 | refs/heads/master | 2023-08-04T06:20:40.536836 | 2023-07-27T10:12:01 | 2023-07-27T10:12:01 | 133,020,662 | 0 | 0 | MIT | 2023-07-27T10:12:02 | 2018-05-11T09:38:24 | JavaScript | UTF-8 | Python | false | false | 2,024 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#se... | [
"parkyes90@gmail.com"
] | parkyes90@gmail.com |
ae3a9d742c5911496407a7502d31c30106ef2b0a | 7e5a50d6959ac6ec422ec95e6fb1f56fa7cdc93e | /mysite/settings.py | 9f421993da90ccffae98da6916ce8629a1b5c802 | [] | no_license | surmok/my-first-blog | d850b684b2bb4e3a8ba96e6737f629891e81d1f0 | e4ff5a0b0c2bd9a16b9df845db10efd3700f3dd1 | refs/heads/master | 2021-01-25T11:39:57.204336 | 2017-06-10T15:41:52 | 2017-06-10T15:41:52 | 93,939,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"kata.suranyi@gmail.com"
] | kata.suranyi@gmail.com |
a8c6f1dbf4ed1dd8116a7bd5ca487fe8c769489f | d1abf524ba77816c50ee9ddbdb14e1a69744c6d4 | /scrollbartest.py | e9ba4222ab6c5a1a0bf977d512c008e04e91b823 | [] | no_license | M1nlex/Spotif-Air | 357bb11304b7741c23a4f3ac4fdf5f0e3b71a6ef | 8448547ade9b8594547105192a7e5e5a3cd0da6c | refs/heads/master | 2020-08-04T07:04:21.369704 | 2020-01-13T01:21:27 | 2020-01-13T01:21:27 | 212,048,454 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | import tkinter as tk
# ************************
# Scrollable Frame Class
# ************************
class ScrollFrame(tk.Frame):
def __init__(self, parent):
super().__init__(parent) # create a frame (self)
self.canvas = tk.Canvas(self, borderwidth=0, background="#ffffff", width=200, he... | [
"noreply@github.com"
] | M1nlex.noreply@github.com |
08a7aaa10003d220c767b52f5a87d32182e08dbd | 6377b3fcce305fb11f7cce5d6162ba2cbb0c4b7c | /modules/kraken_services/kraken_private_trades_service.py | 23962da5f249634995a0e70972ee9f6567c4d5b8 | [] | no_license | KDamsgaard/CryPtoD_public | 3aa4e99cded80ab82b0b3a671ba5e67988da0423 | a32c4788727f2c6793ed435f8ef949ef0916ccb6 | refs/heads/master | 2023-07-09T15:08:13.003402 | 2021-08-16T16:28:57 | 2021-08-16T16:28:57 | 396,728,215 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import logging
class KrakenPrivateTradesService:
def __init__(self):
self._log = logging.getLogger(self.__class__.__name__)
self._trades = {}
def update(self, message):
if type(message) == list:
if 'ownTrades' in message[1]:
self._log.debug(f'Found {message[... | [
"kristiandamsgaard@gmail.com"
] | kristiandamsgaard@gmail.com |
04b96bb0dd34247639feafded878d9b8e975dada | b4829fd1b79f7a2563a7167bf132f93f1c00fb76 | /publish.py | 1be770e7681835beadc0d47af1c3e0bee8dd2eb7 | [] | no_license | stakodiak/sbs | 0be6d1b8367c31b3dfe92e527d9c072adc278583 | 3272214081715da1a63209ded5c3bc2b732ccfef | refs/heads/master | 2016-08-09T05:29:04.618844 | 2016-01-25T02:18:12 | 2016-01-25T02:18:12 | 50,318,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | #!/usr/bin/python
import os
import re
import sys
# Make sure user has S3 credentials.
AWS_ACCESS_KEY = os.environ.get('S3_ACCESS_KEY')
AWS_SECRET_KEY = os.environ.get('S3_SECRET_KEY')
if not (AWS_SECRET_KEY and AWS_ACCESS_KEY):
raise Exception("Could not find AWS credentials.")
# Create directory if it doesn't ... | [
"astac1@umbc.edu"
] | astac1@umbc.edu |
96988ea396c1c27e0da004f7c40133aa1825de51 | 42c2100d878476e5636080398bfdc09943e298f4 | /GET_Request/CreatingNewResource.py | be5c4141151525b47dd46cccc77f603e18b3b16d | [] | no_license | Nbash001/Automated_API_Test_Sample | 1c870b80315594948085839c90b09e47dd180952 | 2f11aab29ab39bcac0eb92c15e014afe22e1ad22 | refs/heads/master | 2022-11-16T20:34:34.431591 | 2020-06-28T15:46:45 | 2020-06-28T15:46:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import requests
import json
import jsonpath
#API URL
url = "https://reqres.in/api/users"
#Read input json file
file = open('/Users/Naveed/Downloads/TestFiles/postreq.json', 'r')
#below will read it, but look like a string
json_input = file.read()
#parse the file into json format
request_json = json.loads(json_input)... | [
"naveed.bashir001@gmail.com"
] | naveed.bashir001@gmail.com |
702ca7b7a24ac98f70eb188c97ab812a717001c7 | 11b9d0e2d99d135366d942e0b8577eec6835bb6e | /Screens.spec | 2ae3876072632550acac2ab7b9dcd6cc73f7e4fd | [] | no_license | rhendre/TheOtherSide | ba110a82b9524c8c67678bfff8726435471fe7c9 | 41f06bc77aed2c4ea46635a4703e628883fe1e37 | refs/heads/master | 2021-04-05T16:20:48.540568 | 2020-04-18T13:56:13 | 2020-04-18T13:56:13 | 248,576,837 | 0 | 0 | null | 2020-03-19T18:30:39 | 2020-03-19T18:30:38 | null | UTF-8 | Python | false | false | 996 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['C:\\Users\\rhendre\\PycharmProjects\\TheOtherSide\\Editor\\Screens.py'],
pathex=['C:\\Users\\rhendre\\PycharmProjects\\TheOtherSide'],
binaries=[],
datas=[ ('src/README.txt', '.') ],
... | [
"noreply@github.com"
] | rhendre.noreply@github.com |
a6801fd0c116eef78700629bacc8ba15f81a8b43 | 33f0f22e6449d24dbdb314e2912b6ffad7954ddc | /multiprocessing/maml_rl/samplers/multi_task_sampler.py | f89b9b44f4ed770a4750c0a8e931aef906ddd6f8 | [
"MIT"
] | permissive | imhgchoi/MAML-RL | 55d3d9489c5b58c4f656755f13bad2a4d10bf5df | b90e6fa75b5c320b98b58cf0242fd55b47128dc6 | refs/heads/master | 2023-02-20T23:57:21.946406 | 2021-01-14T12:49:51 | 2021-01-14T12:49:51 | 313,572,570 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,789 | py | import torch
import torch.multiprocessing as mp
import asyncio
import threading
import time
import pdb
from datetime import datetime, timezone
from copy import deepcopy
from maml_rl.samplers.sampler import Sampler, make_env
from maml_rl.envs.utils.sync_vector_env import SyncVectorEnv
from maml_rl.episode import Batch... | [
"imhgchoi@korea.ac.kr"
] | imhgchoi@korea.ac.kr |
640acd474ccc2667449fec3953056cfc3acb5173 | 3e74c0b272bfd7981454953aeef96ab2f5c59c69 | /benchmarking/timeIt.py | 8d8650898c5cef602fc4840308c61e368cda7614 | [] | no_license | LokeshKD/DSPython | 09e2e086182d1d0e73f85cc88611b7aa446d1253 | f657678ac2cc1855c4d13bdc66d790a1022b6640 | refs/heads/master | 2023-04-16T13:58:02.500681 | 2021-04-17T17:04:51 | 2021-04-17T17:04:51 | 357,611,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | #
def my_function():
try:
1 / 0
except ZeroDivisionError:
pass
if __name__ == "__main__":
import timeit
setup = "from __main__ import my_function"
print(timeit.timeit("my_function()", setup=setup))
| [
"i.lokesh@gmail.com"
] | i.lokesh@gmail.com |
168a729a213cb05a64c5b3b4dc1ab8aa2155d254 | ac9e892c02af18cea990bb0a3f60071b34a03194 | /pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py | fc2db995b809735e7cefe6fc0d8df2ffd185d4ee | [
"MIT"
] | permissive | limsijie93/pytorch-pfn-extras | 1323e796d59fe113ee86f631cc65ad44c7914a77 | 4b675fce8f4a420d87f1685423a9e62dbe598700 | refs/heads/master | 2022-09-18T09:18:25.459126 | 2020-06-04T04:43:47 | 2020-06-04T04:43:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,131 | py | class ManualScheduleTrigger:
"""Trigger invoked at specified point(s) of iterations or epochs.
This trigger accepts iterations or epochs indicated by given point(s).
There are two ways to specify the point(s): iteration and epoch.
``iteration`` means the number of updates, while ``epoch`` means the nu... | [
"webmaster@kenichimaehashi.com"
] | webmaster@kenichimaehashi.com |
466502916f65ec970df5c90a6f2d448e9050d8b0 | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/plotly/graph_objs/ohlc/__init__.py | 6045b7202af831a93026f1550f8e714430892557 | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 34,074 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Stream(_BaseTraceHierarchyType):
# maxpoints
# ---------
@property
def maxpoints(self):
"""
Sets the maximum number of points to keep on the plots from an
incoming str... | [
"griffin.harrisonn@gmail.com"
] | griffin.harrisonn@gmail.com |
60b30866749221d40116e6c03faf481a0873ce7f | 4f8dcdbda297e034ffe70636bde9ee8888ce349c | /Archive/CAD_to_GDB.py | 1dffc4a47c97cb4e9a663235dd7b26a1e2d00df7 | [] | no_license | Dewakarsonusingh/CAD-GIS-Conversion | 1b28f78788bba8d361a25a0e400051d2d803b7db | c953816a615888cc75998c49fad29e2e9201688d | refs/heads/master | 2022-12-24T01:42:04.852324 | 2018-08-17T01:33:46 | 2018-08-17T01:33:46 | 300,406,235 | 0 | 0 | null | 2020-10-01T19:58:05 | 2020-10-01T19:50:33 | null | UTF-8 | Python | false | false | 13,044 | py | # Takes a selected clean, georefrenced CAD File, places it in selected geodatabase (by floor level)
# and saves each building feature types(ie doors, window, walls, etc), ie.. polygons and polylines,
# as geodatabase feature classes. Also add class-specific fields to created GDB feature classes
#
# Sam Mix 2018
#
# Im... | [
"33844825+Mixsa12@users.noreply.github.com"
] | 33844825+Mixsa12@users.noreply.github.com |
e760becc3c1eb5c190c95e6eb021d1db26b75b93 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/dcx.py | 6b975b5f2f2c98bbfca63125607d2e2c1d79986e | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
3e060088bec0fd6cb0b2baf58eb5c225f1f27759 | 95315ecd3068cf98dd10267f98055ace5f6cafc9 | /json_lesson/json_lesson.py | 6f226d2400322c65001916e232183260b587e58c | [] | no_license | austin72905/python-lesson | 22d7dc3b70e524041711055f26ef0e39b99936cd | e51954e0516a60259d6794fb4ec52ae2f6722b4b | refs/heads/master | 2023-04-18T10:16:11.415602 | 2021-04-24T04:07:10 | 2021-04-24T04:07:10 | 332,389,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | import json
from pprint import pprint
##Json
# 1. 反序列化 json.loads
# 2. 序列化 json.dumps
#### code region ####
my_dic = dict(name='BOb', age=20, score=93)
json_str = json.dumps(my_dic)
pprint(json_str) # '{"name": "BOb", "age": 20, "score": 93}'
json_dic = json.loads(json_str)
pprint(json_dic) # {'age': 20, 'nam... | [
"Linponggood@gmail.com"
] | Linponggood@gmail.com |
a0c5f212fd43051e67683762fd380806b4dfcd78 | 0116e224af093d4356533998ed466ac7930654ea | /python_code.py | c6527aff98ab0e295965b402228259737cf6befc | [] | no_license | zyad9216/Test | 069ddd4acdb8f5834357c2af18a96911836886e4 | 00cb9f2b49f7e045f6ccb7e3b1c9594bba0ee203 | refs/heads/master | 2022-11-30T05:10:53.240926 | 2020-07-04T14:11:10 | 2020-07-04T14:11:10 | 277,113,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | i
print("Hello Github!")
print('Hello World!')
| [
"zyadabuharaz@gmail.com"
] | zyadabuharaz@gmail.com |
057b579c0756afea2706e055a5f783c34be7b264 | d411a921dd53af6531520ca5d74ea1f9ec6bbed7 | /src/python/live/buySymbol.py | 7e6de90c54c49ca0a3bc77ebae66c0af2431e5a3 | [] | no_license | fxmag/trading-bot | 628205d912f381fb16f6ab8d4fd85c3dd734ed94 | 714f3bfaa9c615e4eddd25870355f4589b5ca2ca | refs/heads/master | 2022-12-09T02:36:53.326497 | 2020-09-15T19:37:28 | 2020-09-15T19:37:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | import time
import MetaTrader5 as mt5
# display data on the MetaTrader 5 package
print("MetaTrader5 package author: ", mt5.__author__)
print("MetaTrader5 package version: ", mt5.__version__)
# establish connection to the MetaTrader 5 terminal
if not mt5.initialize():
print("initialize() failed, error code =",mt... | [
"fontelucas@yahoo.com.br"
] | fontelucas@yahoo.com.br |
2718b4a553b211d4a9237d21b069590a78c1b9fc | df5d82456b26461643fe0f3c0d7f4b34a521afae | /volt/controllers.py | c8331417109714ac41cc8880e0b87eeefd6562ad | [] | no_license | ali96343/ombott-test | b5bfbc4e079ca3a50b40b210438405acdba65765 | 7d7c46d5cd5c73a92fae08247917ac988b83b9c7 | refs/heads/master | 2023-08-21T15:02:41.614957 | 2021-10-07T06:28:59 | 2021-10-07T06:28:59 | 380,330,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,870 | py | #
# py4web app, AI-biorex ported 26.04.2021 14:45:45 UTC+3, src: https://github.com/themesberg/volt-bootstrap-5-dashboard
# https://github.com/ali96343/facep4w
#
import os, json, uuid
import ombott as bottle
from py4web import action, request, response, abort, redirect, URL, Field
from py4web.utils.form import Form... | [
"ab96343@gmail.com"
] | ab96343@gmail.com |
f7108676fd592dd4627eb37e71d5d30a122a3ac8 | 9beeae9b19902ca626106bd392dcb18178ad3fc9 | /staphopia/signals.py | 5d0d58cd2ed01b51cfed315b461d63ef586f53c1 | [] | no_license | staphopia/staphopia-web | e27f0d01d5a95c1aad9a5802bbdcc1161f6af1d3 | 2c35ee47e131a74642e60fae6f1cc23561d8b1a6 | refs/heads/master | 2023-08-09T04:07:47.279139 | 2022-02-10T16:09:18 | 2022-02-10T16:09:18 | 31,989,879 | 5 | 1 | null | 2023-08-01T21:08:34 | 2015-03-11T00:39:13 | Python | UTF-8 | Python | false | false | 451 | py | from django.contrib.auth.models import Group
from staphopia.forms import RegistrationFormWithName
def user_created(sender, user, request, **kwargs):
form = RegistrationFormWithName(request.POST)
user.first_name = form.data['first_name']
user.last_name = form.data['last_name']
user.save()
Group.obj... | [
"robert.petit@emory.edu"
] | robert.petit@emory.edu |
a140d89b7aff1f78dd5c192b636f74d6b5203b5f | 42b95abbad6b8c46215dadfb1f53b0514c16c0ea | /aula08/anotacoes_aula08.py | 39bfb30506db5a0b508a0d810bd9d1fefb681917 | [] | no_license | ricardoapalhares/python_aulas_era_conectada | 7667776402d57215cef3fcb07d9f47c524ceaf91 | cd75e80f51755ea51615c21e28e0df3f0f63b110 | refs/heads/master | 2022-12-15T20:47:47.420000 | 2019-05-10T00:59:42 | 2019-05-10T00:59:42 | 156,447,934 | 1 | 0 | null | 2022-12-08T05:03:34 | 2018-11-06T21:07:51 | Python | UTF-8 | Python | false | false | 285 | py | lista1 = [1,2,3]
lista2 = list(lista1)
print(lista1 == lista2)
print(lista1 is lista2)
#-------------------
def soma(num1,num2):
return num2 + num1
class Calculadora():
def soma(self, num1, num2):
return num2 + num1
print(soma(1,2))
calc = Calculadora()
print(calc.soma(2,3)) | [
"jrcjuniorcesar@gmail.com"
] | jrcjuniorcesar@gmail.com |
df665b32b2dfe47d8e32cbfc847bc28d6973111c | 9d2154ad9a3c6c4bc4d8aae47c2cf5dd30741a2d | /usr/lib/enigma2/python/Plugins/Extensions/iSkin/x.py | b55b465cb6ddbdb3f570bbaedbe4de4fd2812a9e | [] | no_license | XtrendAlliance/xta | b0b161a5b7b9e605f9bd7d6985b5e4171cdc7d28 | 4191835caf9f25edf6a31ab6214759ed4e0f35d2 | refs/heads/master | 2020-06-07T04:03:58.421352 | 2014-11-30T10:50:18 | 2014-11-30T10:50:18 | 27,283,822 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | import os
if os.path.exists('/usr/lib/enigma2/python/Plugins/Extensions/iSkin/Connection/Config/ConnectionSave'):
type = open('/usr/lib/enigma2/python/Plugins/Extensions/iSkin/Connection/Config/ConnectionSave').read()
if len(type):
p = type[:].find('://')
if p != -1:
... | [
"xtrendboss@et-view-support.com"
] | xtrendboss@et-view-support.com |
f85ebc5a5151f2cbfa44804b7e62295bde977f91 | 5f3e8c065d267314070e600f8b3a85b1f451a625 | /main.py | 8435e10f49dc62dc1f2590780a727f59182d706d | [] | no_license | MrSnowZ/calculator | e08be631f148db4e3d020266898eb6ca8c97d511 | 4fe1b3c7eb9e52c3c8d1f161c93095a06f46fdb1 | refs/heads/main | 2023-05-10T06:32:28.446106 | 2021-06-12T00:40:48 | 2021-06-12T00:40:48 | 376,162,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,159 | py | from tkinter import *
root = Tk()
root.title("Snow Calculator")
e = Entry(root, width=35, borderwidth=5)
e.grid(row=0, column=0, columnspan=3, padx=10, pady=10)
def button_click(number):
#e.delete(0, END)
current = e.get()
e.delete(0, END)
e.insert(0, str(current) + str(number))
def button_clear():
... | [
"nkasten@gmail.com"
] | nkasten@gmail.com |
4c14a3408c293c6b851fea2d1d703a3df72cb616 | 72862456de71e97613b14d297f775aec5ec1671d | /migrations/versions/526c6a80a57c_.py | b6a67b02429f50566b6f5adb3ae5dd550773f3c7 | [] | no_license | twistedladder/Google-Calendar-Phishing | 45b530f7698c1a5680b892be5413d1a5fc65ba36 | 35ccc54eeeb4daa2008cf985097c0c81e410f316 | refs/heads/master | 2022-12-13T04:00:48.848541 | 2020-10-01T17:56:30 | 2020-10-01T17:56:30 | 130,408,246 | 0 | 2 | null | 2022-12-08T02:03:11 | 2018-04-20T19:58:56 | Python | UTF-8 | Python | false | false | 680 | py | """empty message
Revision ID: 526c6a80a57c
Revises: c3395afa9869
Create Date: 2018-04-23 14:22:45.772623
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '526c6a80a57c'
down_revision = 'c3395afa9869'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"gene.hsu@utexas.edu"
] | gene.hsu@utexas.edu |
c718484b85a780242417598a63d619f3e8ddf529 | 1aeee32fd5ab3f9b98264f59478445fd6f54b38a | /CommonUtil/PyTest.py | 7cfde4125d0b216217b0f0f42ba7c568e9d17674 | [] | no_license | li-zheng-hao/OnmyojiScript | dee9618ae5eb9e233b616cfbc413ceefcf11358c | f22dfbf8a54ba80ca419e1905a27d874a5460ad6 | refs/heads/master | 2022-12-14T22:50:44.361578 | 2020-02-10T13:09:39 | 2020-02-10T13:09:39 | 222,662,528 | 6 | 2 | null | 2022-12-08T07:03:55 | 2019-11-19T09:49:48 | Python | UTF-8 | Python | false | false | 274 | py | # import pytest
import win32gui
from ImageProcessModule.GameControl import GameControl
from YuHunModule.State import State
def test_window_full_shot():
hwnd = 0x0004084E
game_control=GameControl(hwnd,State())
game_control.window_full_shot('test_img.png')
| [
"1263212577@qq.com"
] | 1263212577@qq.com |
c40f6b94961010096fa1e43f69e3c26d32368c2c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_229/ch57_2020_04_10_21_47_51_592464.py | 1b83ba556f170dae510b6bab0604f9e0d9a59eca | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | def verifica_progressao(lista):
r = lista[1] - lista[0]
rn = lista[2] - lista[1]
continua = True
continua2 = True
i = 0
if lista[0] != 0 and lista[1] != 0:
q = lista[1]/lista[0]
qn = lista[2]/lista[1]
if qn == q:
while continua == True:
while ... | [
"you@example.com"
] | you@example.com |
075d717759921834a2a8c9622dbb53790cf0228a | b198ab1d3faf79d34b1745236daa5eb02a37e18e | /yggdrasil/metaschema/properties/tests/test_JSONArrayMetaschemaProperties.py | ed812677d1d5d9df256fbc5b8f6903ae12c185fa | [
"BSD-3-Clause"
] | permissive | leighmatth/yggdrasil | 688f13aa0d274217daec9f412269fbbaf5f10aef | dcc4d75a4d2c6aaa7e50e75095a16df1df6b2b0a | refs/heads/master | 2021-07-09T10:39:25.422978 | 2021-04-14T16:40:04 | 2021-04-14T16:40:04 | 245,011,886 | 0 | 0 | NOASSERTION | 2020-03-04T21:54:25 | 2020-03-04T21:54:24 | null | UTF-8 | Python | false | false | 1,645 | py | from yggdrasil.metaschema.properties.tests import (
test_MetaschemaProperty as parent)
class TestItemsMetaschemaProperty(parent.TestMetaschemaProperty):
r"""Test class for ItemsMetaschemaProperty class."""
_mod = 'JSONArrayMetaschemaProperties'
_cls = 'ItemsMetaschemaProperty'
def __init... | [
"langmm.astro@gmail.com"
] | langmm.astro@gmail.com |
6be37cc0ac42477690b61af9c479b69f340ab7b4 | 97a2a0c901d82ebd79c7d77d4264de33718d1a1b | /users/migrations/0002_auto_20181127_0228.py | c7dd09481c573645f5566c29d8b0c32b14b7bedc | [] | no_license | gaojiaxuan1998/mysite-master | 5fd9fff8967fa3aa171cb838372aca25e4e82215 | d1e6b87cc07250a64ca5749ee71f2c7f19d52613 | refs/heads/master | 2020-04-11T08:37:02.854166 | 2018-12-13T14:41:32 | 2018-12-13T14:41:32 | 161,649,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # Generated by Django 2.1.2 on 2018-11-27 02:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name='password',
... | [
"43905475+gaojiaxuan1998@users.noreply.github.com"
] | 43905475+gaojiaxuan1998@users.noreply.github.com |
2500703afbfbf68c508d1c88738f2728e58cc730 | 19400a06c1632b44bbc291a284e82ca9e6549ba7 | /main.py | d2e8889465b5fcad936f3c638012b3f5d68181d5 | [
"MIT"
] | permissive | codacy-badger/minecarft-server-controller | ef4c035ac8f3223300dfbe80f1a4e35f399c691b | eb923cde805b8f3419384c7ed4d464351b825af2 | refs/heads/master | 2023-02-19T16:50:38.082397 | 2021-01-18T09:35:48 | 2021-01-18T09:35:48 | 330,618,237 | 0 | 0 | MIT | 2021-01-18T11:49:48 | 2021-01-18T09:37:06 | null | UTF-8 | Python | false | false | 5,629 | py | from mcrcon import MCRcon
# Берём данные
def start():
print('███╗░░░███╗██╗███╗░░██╗███████╗░█████╗░██████╗░░█████╗░███████╗████████╗\n'
'████╗░████║██║████╗░██║██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔════╝╚══██╔══╝\n'
'██╔████╔██║██║██╔██╗██║█████╗░░██║░░╚═╝██████╔╝███████║█████╗░░░░░██... | [
"noreply@github.com"
] | codacy-badger.noreply@github.com |
8848eede4ef7c7f72488ecaa4396d81926ddcdcd | cc7bff51fc29ed2f349d1130e89813c2595ecebf | /Walker.py | a441f2ae10ed46304f27ffb119961ecbf2829b3c | [
"MIT"
] | permissive | tigerw/EfsTools | 6101bd58dd4cedf2648ca6034c69606a486bc39b | 5c41f7c4e8fa0555ab8169acd0571853f47ebb59 | refs/heads/master | 2022-09-21T05:38:23.323210 | 2020-05-31T17:23:06 | 2020-05-31T17:23:06 | 268,323,470 | 0 | 0 | null | 2020-05-31T16:53:44 | 2020-05-31T16:53:43 | null | UTF-8 | Python | false | false | 1,539 | py | import os
import os.path as path
root_dir = 'MBNs'
out_name = "MBNs.nvi"
def format_efs_rpc(dir_name, name, ascii):
template = r'{"jsonrpc": "2.0", "method": "WriteEFSData", "params": {"MessageVersion": 0, "FilePath": "/%s", "Data": [%s], "ItemType": "Item"}, "id": 0}'
hack = path.normpath(path.join(dir_nam... | [
"ziwei.tiger@outlook.com"
] | ziwei.tiger@outlook.com |
bd101d2f6fb5381a070656f43ff6aca8685ee7b2 | 632ffbde1f909b18f02890efe58d7d041c6ed5f3 | /Tools/training_logFilesCretaor.py | 114237ecda7bd82a96c68846282f44190d101f08 | [] | no_license | ankit-world/aws_deployed_premium_prediction | 56d5ba032512a7a1975a5d037ee99de9f9828d8d | e46bcc8f2228ee1f10b2a3872a92fc0a8de915ca | refs/heads/main | 2023-08-26T04:24:23.725349 | 2021-11-14T14:19:01 | 2021-11-14T14:19:01 | 422,933,098 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,276 | py | import os
# this file used to setup the logging infrastructure (dirs/files)
training_log_files = ["valuesfromSchemaValidationLog", "GeneralLog", "nameValidationLog",
"columnValidationLog", "missingValuesInColumn", "DataBaseConnectionLog", "DBInsertLog",
"TrainingMainLog", "... | [
"ankitmarwahaa7@gmail.com"
] | ankitmarwahaa7@gmail.com |
7436c12c9b17ab4e53a8e623b20b1a24fc082352 | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/test/test_v1beta1_subject_access_review_status.py | 86ad671f95cfc1388e0b498d3971b2a7c14d6e90 | [
"Apache-2.0",
"MIT"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 1,076 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import kube... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
4e1fa727fab5fb543e9932c0bd692b63c5f39388 | 73c5e85d58b1d42e60822b4bbe4447097c908375 | /movie/serializers.py | 4b15cc1e7aac55c016d8cfac8c6813ec0a54f46a | [] | no_license | ishantgit/twitterBackend | 9865ee2a8bdb3b6b7046f8cca799a272f4174387 | d4122b66812944cbf37d05ea872423b0429c4490 | refs/heads/master | 2021-01-10T10:25:16.555978 | 2015-11-29T17:08:21 | 2015-11-29T17:08:21 | 45,641,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from rest_framework import serializers
from movie.models import *
class MovieCreateSerializer(serializers.ModelSerializer):
class Meta:
model = Movie
class MovieReadSerializer(serializers.ModelSerializer):
class Meta:
model = Movie
depth = 2
| [
"ishant@atcouch.com"
] | ishant@atcouch.com |
de575d64908dac2ae371562a98245e061498181d | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/X733GROUP-MIB.py | 2e3597342dc315db7cc0b26e65652659f42fc2f8 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 18,926 | py | #
# PySNMP MIB module X733GROUP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/X733GROUP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:36:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
34b07eb971fcf1b17bd38070f6938a5bc9f06ddf | 8645f5bb6321cf1097c0ea173e1c790618e65ddb | /skipper-lib/skipper_lib/workflow/workflow_helper.py | 70061de591b13506246b6a53e853fb629e28f855 | [
"Apache-2.0"
] | permissive | gov-ai/thinking | 8102130c781d6dad0ed457fd9b27e901d1e9fca1 | 9557ee10fe62f6c91f7daf2b33c9577303bea2e5 | refs/heads/master | 2023-09-01T07:48:56.100197 | 2021-10-13T01:18:22 | 2021-10-13T01:18:22 | 415,279,387 | 2 | 0 | Apache-2.0 | 2021-10-13T01:18:23 | 2021-10-09T10:42:30 | Python | UTF-8 | Python | false | false | 284 | py | import requests
def call(task_type, url, mode):
valid = {'_sync', '_async'}
if mode not in valid:
raise ValueError("call: status must be one of %r." % valid)
r = requests.get(url + task_type + mode)
queue_name = r.json()['queue_name']
return queue_name
| [
"andrejus.baranovskis@gmail.com"
] | andrejus.baranovskis@gmail.com |
28faa7f92cba44f87759c8d75b0649dcd9d4cc72 | 2a22b6e979c00faa87a58d926d09201bf7a97c71 | /src/mtgdeck/wsgi.py | 092ae564c09a28218a93acb674aa321b12a319df | [] | no_license | mattdeboard/mtgdeck | 5d244f856312aecd1ba1318e67fd6bac16790395 | e03dbe737a3919bc118d5a8967cfa523592f81db | refs/heads/main | 2023-04-05T17:56:39.811386 | 2021-04-24T03:30:42 | 2021-04-24T03:30:42 | 361,061,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for mtgdeck project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"matt.deboard@gmail.com"
] | matt.deboard@gmail.com |
b08f3840e780e082aad97256d99c215839e1e058 | 1012f61f46ff7aaf37cd3ce0ead64e035ec201dc | /coding-challange/codewars/8kyu/~2021-07-25/capitalization-and-mutability/capitalization-and-mutability.py | 70ab2ba79b4d13199ed131fb83a863ae49274dcb | [] | no_license | polyglotm/coding-dojo | 89efe22f5a34088e94c9e3a4e25cad510b04172a | 43da9c75e3125f5cb1ac317d275475f1c0ea6727 | refs/heads/develop | 2023-08-17T11:59:30.945061 | 2023-08-16T14:13:45 | 2023-08-16T14:13:45 | 188,733,115 | 2 | 0 | null | 2023-03-04T05:49:21 | 2019-05-26T21:26:25 | JavaScript | UTF-8 | Python | false | false | 386 | py | """
capitalization-and-mutability
codewars/8kyu/Capitalization and Mutability
Difficulty: 8kyu
URL: https://www.codewars.com/kata/595970246c9b8fa0a8000086/
"""
def capitalize_word(word):
return word.capitalize()
def test_capitalize_word():
assert capitalize_word('word') == 'Word'
assert capitalize_word('... | [
"polyglot.m@gmail.com"
] | polyglot.m@gmail.com |
810a5acd8ed978b4868643ba13f4e8ac63666fd7 | 7ec3900ab140907e93858f5476f34dfa7d5baae9 | /Dictionary/urls.py | f22d45c3a3e1c8526e577b11fc47d823275a1383 | [] | no_license | D10/Dictionary | 650648e5a2f2fade3a83789d7fcc301158e67f0b | e0377cdf0b2cbe5113c6fbfd7852de44a7f97a26 | refs/heads/main | 2023-05-01T21:45:07.770894 | 2021-05-19T22:46:11 | 2021-05-19T22:46:11 | 369,018,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('dictsite.urls'))
]
| [
"rgadamurov@bk.ru"
] | rgadamurov@bk.ru |
10a1d871ef9ee3fa46f37d5c885fcd50bfa4cf6a | a7e7ed714ab21e64d137ea379e6f1433ac0ee67b | /Building/urls.py | 7ae1e0e0d0f64f82949166931bb46c326982686e | [
"MIT"
] | permissive | LukaszHoszowski/Django_ProEstate | 2b234b53ec68dd46d917eda60f44fb4481263085 | 36c5cc25842f4e5afebd9ff6eaa83c9457fb7a3a | refs/heads/main | 2023-08-11T08:27:16.270730 | 2021-10-01T20:24:10 | 2021-10-01T20:24:10 | 403,704,922 | 1 | 0 | MIT | 2021-10-01T20:17:56 | 2021-09-06T17:19:37 | HTML | UTF-8 | Python | false | false | 1,646 | py | from django.urls import path
from Building.views import BuildingListView, BuildingDetailView, \
BuildingCartographyView, BuildingCoopView, BuildingPhotosView, BuildingDocsView, BuildingPhotosCreate, \
BuildingDocsCreate, BuildingFlatsView, FlatDetailView, FlatUpdateView, FlatAddUserUpdate, FlatDeleteUserUpdate... | [
"hoszowski@hpe.com"
] | hoszowski@hpe.com |
d9bef3ef39bbcccbdcadc4e05a37250ec144be34 | 35aa4fe6d3690ca7099fe1497fd0903fff9d420d | /B103.py | 5ab0752b9ee8323e609f08875299e43df2c4138d | [] | no_license | SATHANASELLAMUTHU/MYPROJECT | 07e1b9945d51f1ed0c7d82526dcbccd1fce86453 | 67325a9f2e8ac553299d89b4248465ea2fca56a8 | refs/heads/master | 2020-05-05T03:02:17.340845 | 2019-06-08T09:53:27 | 2019-06-08T09:53:27 | 179,659,079 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | n=raw_input("Enter the string:")
print(n.title())
| [
"noreply@github.com"
] | SATHANASELLAMUTHU.noreply@github.com |
3883fde7e7b92875e069f83e4b65ddf1c4b2a542 | f6328ac298ac1b99920be0cccc2b19f0efe61794 | /docs/conf.py | 57efdd93314c7b0344e984fe287f3d16df49fe3d | [
"BSD-3-Clause"
] | permissive | Krytic/riroriro | f1b2f3a54e9e3c9fbf5c169edf72e124645e01cb | 64427ecba5974d5c675884a5d7b55084e3184b87 | refs/heads/main | 2023-05-09T13:40:32.788205 | 2021-05-05T03:53:37 | 2021-05-05T03:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"woutervanzeist7@gmail.com"
] | woutervanzeist7@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.