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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b968103f0b9abceb9934710a91e091091a816f6 | 1ab794d1368ad5b6770c68d6efba85f095ecdfe1 | /getter_setter2.py | 8157abac58cdc29759d58dc1d077e9c34861b354 | [] | no_license | ssavann/PY-POO | d94303dd0d754c3aed4e9c7c32c9018acad04e65 | b16f4ab35deca89e1dad0007e7b5285c3a3cca3c | refs/heads/master | 2023-01-13T21:36:16.718070 | 2020-11-25T02:11:27 | 2020-11-25T02:11:27 | 315,803,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | '''
POO : les propriétés -> Modifier/controler les attributs (Encapsulation)
<getter> Accesseur --> Recuperer la valeur de l'attribut
<setter> Mutateur --> Définir la valeur de l'attribut
<property> (<getter>, <setter>)
'''
class Humain:
#constructeur
def __init__(self, nom, prenom):
self._nom = nom
self.pr... | [
"sousavann@gmail.com"
] | sousavann@gmail.com |
b2909cd9124676debb2c51fd41fb133e1e0cd503 | da522791a92ca6627b25c0fe46032c533a7d3029 | /client/server.py | f1e98f98ed5afcd1ffc5beec5a7df0c1cbe0c431 | [] | no_license | Shreyas097/P2P-CI-communication | 3cc2fe0e8e67fddbc1b67104b773145f2bf7ea42 | beff05c51527998ef6a98638b55d7bceac869cde | refs/heads/master | 2020-05-25T14:35:56.013912 | 2019-05-21T14:02:37 | 2019-05-21T14:02:37 | 187,848,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,283 | py | import socket
import threading
import os
import shlex
count=0
list_peers=list()
list_idx=list()
list_rfc=list()
SERVER_PORT = 7734
class RFCRecord:
def __init__(self, rfc_no = -1, rfc_title = 'None', peer_hostname ='None', peer_id =-1):
self.rfc_no = rfc_no
self.rfc_title = rfc_title
... | [
"noreply@github.com"
] | Shreyas097.noreply@github.com |
e72622090d163499f2589915a6bbfb4e5ab08d70 | daf2da00f5c5000ab63697a16a2af9027bfdb521 | /CLI/src/f4i_del_vthing_endpoint.py | 9244f871f63e7e3f5aa5abc6ae27a1f5d61aa91e | [
"BSD-4-Clause"
] | permissive | fed4iot/VirIoT | b4b781ca419faaf50858118b1bc8c80cea6c011a | 0301a908554f31748985b82b9f310ce9b9af1f9b | refs/heads/master | 2023-01-29T06:41:27.379050 | 2023-01-25T08:56:51 | 2023-01-25T08:56:51 | 242,765,526 | 12 | 11 | NOASSERTION | 2021-12-07T18:53:03 | 2020-02-24T15:02:23 | C | UTF-8 | Python | false | false | 1,664 | py | #!/usr/bin/python3
import argparse
import requests
import json
import os
from pathlib import Path
viriot_dir = str(Path.home()) + "/.viriot"
token_file = viriot_dir + "/token"
def get_token():
if not os.path.isfile(token_file):
print("Token not found")
return None
with open(token_file, 'r') a... | [
"andreaD"
] | andreaD |
52b6869373b921dfebae787ad8e70c1b548dc106 | c7cebec6209866b02ee654cffeafe0f2cf0646f1 | /samsung sw/level2/mode.py | 3fe4aa5dac038c280907fab6877799aea5700ff4 | [] | no_license | dondon17/algorithm | 5492cf039a96ecf5a944816bdca9b5755e5a2623 | da4d6ca1c21c31c6521a62b38855e0b9cf4b0d91 | refs/heads/master | 2023-05-02T14:54:35.185914 | 2021-05-30T07:31:40 | 2021-05-30T07:31:40 | 323,802,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | import collections
def solution(scores):
data = collections.Counter(scores)
data_list = dict(data)
max_value = max(list(data.values()))
mode_val = [num for num, freq in data_list.items() if freq == max_value]
return max(mode_val)
t = int(input())
for i in range(1, t+1):
n = int(input())
sc... | [
"qwerqw889@ajou.ac.kr"
] | qwerqw889@ajou.ac.kr |
bec8e741e255e39fa4861665362abc28d22d5f28 | 5cc204e2ecb9a756127e7c71633a1edcdb3e989b | /Archive_sand/MOF_plus/ff_gen/ff_gen/objectives/energy_fit.py | 59b2452633a8988fb134b6502d0a377336b29ac0 | [] | no_license | hopefulp/sandbox | 1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8 | 4d26767f287be6abc88dc74374003b04d509bebf | refs/heads/master | 2023-06-27T17:50:16.637851 | 2023-06-15T03:53:39 | 2023-06-15T03:53:39 | 218,209,112 | 1 | 0 | null | 2022-09-13T13:22:34 | 2019-10-29T05:14:02 | C++ | UTF-8 | Python | false | false | 3,911 | py | """
This file implements a force_fit class.
It handles the reference force arrays and calculates the msd.
In addition, a weight matrix is held to evaluate various kinds of weighted mean
square deviations to be used as ingredients to fittness values
"""
import string
import numpy as np
import copy
import os
import refc... | [
"hopefulp@gmail.com"
] | hopefulp@gmail.com |
b2238d921ad8dbc4f7739b6e6a2c56d29ecb57bd | 08eee2aa3767a94e14f2fb8c1ab8044d69d2ef37 | /BacData/BacItem.py | be5152851d5298d2dae70fbacfb8669671d07734 | [] | no_license | msorins/Bacalaureat2017-Crawler | fd74c40709cbf9da60dfbff58e14b0c7279c5279 | af18b50b8b642bec81dcbfc05c2341add7d950ea | refs/heads/master | 2020-12-02T17:58:42.357631 | 2017-07-07T10:03:12 | 2017-07-07T10:03:12 | 96,457,865 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,319 | py | import scrapy
class BacItem(scrapy.Item):
# define the fields for your item here like:
nr = scrapy.Field()
nume = scrapy.Field()
posIerarhieJudet = scrapy.Field()
posIerarhieTara = scrapy.Field()
unitInvatamant = scrapy.Field()
judet = scrapy.Field()
promotieAnterioara = scrapy.Field()... | [
"sorynsoo@gmail.com"
] | sorynsoo@gmail.com |
28c2e084211d7511caea9b3e9b12e41899b03a51 | 3c48cb09c8925108284a5a074f2ce45614f974e1 | /GroupClientAudio.py | 76e90510aa302f76f6aefd2c427a4e5fd557858b | [] | no_license | HsimWong/PythonChat | fe0269f6a1cb252ea0cfe14f4245d076c50402bf | 0dbe53959a69fb4a14240d60a0cc8532a98c9588 | refs/heads/master | 2020-06-12T03:15:29.709148 | 2019-07-01T00:07:33 | 2019-07-01T00:07:33 | 194,178,846 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,215 | py | from socket import socket, AF_INET, SOCK_STREAM
from threading import Thread
import pyaudio
from array import array
HOST = input("Enter Server IP\n")
PORT = 4000
BufferSize = 4096
FORMAT=pyaudio.paInt16
CHANNELS=2
RATE=44100
CHUNK=1024
def SendAudio():
while True:
data = stream.read(CHUNK)
dataC... | [
"16074101@emails.bjut.edu.cn"
] | 16074101@emails.bjut.edu.cn |
7760f4ddb317f0829c74cbe78d8c30155f2a7ae2 | 2baf3b1d757ee94cbac55f15ca847a2eaf85ebb0 | /code/batch_driver.py | b917168f9d867023213d7641c60331cb34b246ab | [] | no_license | gatech-cse6730/proj2-code | e96a932ebdec19aa5d6946ce4af3c0260deac780 | a8453dd56107b142f4c313dc6dd26d7ced1b4f78 | refs/heads/master | 2021-01-01T04:35:38.666339 | 2016-05-02T18:55:20 | 2016-05-02T18:55:20 | 56,277,428 | 0 | 8 | null | 2016-05-02T13:59:19 | 2016-04-14T23:59:16 | Python | UTF-8 | Python | false | false | 928 | py | from driver import Driver
import numpy as np
class BatchDriver(object):
"""
Performs a batch of simulation runs. Only for use by analyzer.py.
"""
def __init__(self, num_sims=20):
self.num_sims = num_sims
def drive(self, initial_pop=50):
random_seed = 0
results = []
... | [
"matthewbentonmay@gmail.com"
] | matthewbentonmay@gmail.com |
7b5135db6ba20d4dd0d5ac8f2cb1c8c27a76fff4 | dba3e87b75a782e2083d59957d79b4448854a8b4 | /settings.py | d8eb8ebb7727327530297a1513d028b6773ebf14 | [] | no_license | mountainhound/roan-trader | 803f8eaccd6c950dcecdd14a18e45a25bfbb02e9 | 47ef5ef50e1a7fd84ffcc7c5372fb96e041c573d | refs/heads/master | 2020-03-07T07:53:58.567099 | 2018-04-25T18:46:00 | 2018-04-25T18:46:00 | 127,361,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | #GDAX Credentials
GDAX_API_KEY = "CHANGE_ME"
GDAX_PRIVATE_KEY = "CHANGE_ME"
GDAX_PASSPHRASE = "CHANGE_ME"
#BANDWIDTH API Credentials
BANDWIDTH_USER = "CHANGE_ME"
BANDWIDTH_TOKEN = "CHANGE_ME"
BANDWIDTH_SECRET = "CHANGE_ME"
ROOT_NUMBER = "CHANGE_ME"
ORIGIN_NUMBER = "CHANGE_ME"
#MAILGUN API Credentials
MAILGUN_API_KEY ... | [
"parker@fopark.com"
] | parker@fopark.com |
0ccd2913d0c8ddb2a1b22ebbba253486884ded42 | 64e6d36fe639bdf37773a1d1a2ec5664538d325e | /sdk/python/tests/dsl/metric_utils_test.py | 5898561f61e31b7da4c33a30e21d956c70ff804d | [
"Apache-2.0"
] | permissive | JohanWork/pipelines | 5c4ba6bba30ace675df80761dd483612a79c3f29 | f32915e88f501dd9256eb259288a00e0e6f9c9e0 | refs/heads/master | 2021-07-16T00:11:46.065197 | 2021-04-10T16:20:04 | 2021-04-10T16:20:04 | 244,719,809 | 1 | 0 | Apache-2.0 | 2020-03-03T19:10:35 | 2020-03-03T19:10:35 | null | UTF-8 | Python | false | false | 2,235 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | JohanWork.noreply@github.com |
43e5286bb463c6cdd9fb51b5ad5f5f618582a702 | 74b310d13d317cd29a5b5a8f22fcbeeb7cb0f07d | /gallery/ising-square-tc/plot.py | 1c0142441ac43d25ecc9bd0532d5c10a52964ebb | [
"Apache-2.0"
] | permissive | todo-group/exact | 1bb146ee9a616a36a0f2b4f4b2c0ce1db3e7c39e | ee76421fab9b2b1eaf77d6b01830a18e66f7180a | refs/heads/master | 2021-12-15T15:16:54.043117 | 2021-12-14T11:27:41 | 2021-12-14T11:27:41 | 60,764,380 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | import math
import matplotlib.pyplot as plt
filename = "result-p15.dat"
with open(filename, 'r') as f:
for line in f:
data = line.split()
if (data[0] == "inf"):
free_energy_inf = float(data[6])
energy_inf = float(data[7])
L = []
free_energy = []
energy = []
with open(filen... | [
"wistaria@phys.s.u-tokyo.ac.jp"
] | wistaria@phys.s.u-tokyo.ac.jp |
f63531c28c4ac3e571b51097354a358deee7dda5 | baa39ba9fce126d012b3161231890eaf193a7d4c | /code/projects/word_count/main.py | ef24d67bededa99c3e480b89265d595c408a932d | [] | no_license | pmayd/python-complete | fa0e3e7ad35ce7b8fba9effa7868d206e8901ff6 | 6c5d35cb88452898e6798ab9914139151228318b | refs/heads/main | 2021-12-23T06:22:31.366878 | 2021-11-29T07:25:26 | 2021-11-29T07:25:26 | 233,419,063 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | #!/usr/bin/env python3
""" Reads a file and returns the number of lines, words,
and characters - similar to the UNIX wc utility
"""
from pathlib import Path
def word_count():
"""
To give you a better sense of how a Python program works, this section looks at a small sample that roughly replicates the UNIX... | [
"michael.aydinbas@gmail.com"
] | michael.aydinbas@gmail.com |
ab3c213726a9356b82943980533101b0cf5a99d5 | cdb05e62e14623f18f84797c4b6780a9d7032478 | /perfkitbenchmarker/linux_benchmarks/messaging_service_benchmark.py | 1da35bc6a27cbc1ceeb88f397306207334ae391a | [
"BSD-3-Clause",
"MIT",
"Classpath-exception-2.0",
"AGPL-3.0-only",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | pdeyhim/PerfKitBenchmarker | eece17148862f8c902d7404f9740abefb305d43c | 0e1f6caaceb771437e0e8d8d7724b41be040df0d | refs/heads/master | 2023-07-20T06:13:42.021733 | 2023-07-19T03:47:04 | 2023-07-19T03:47:04 | 67,570,369 | 0 | 0 | Apache-2.0 | 2023-07-19T03:47:05 | 2016-09-07T03:56:58 | Python | UTF-8 | Python | false | false | 5,514 | py | # Copyright 2021 PerfKitBenchmarker 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 appli... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
0bf0a1ab2006bc6c08a47a99e365f27567f909c5 | 24057bbc039c4cd39000c09b5d8954dc080d90a8 | /Clase 2/Ejemplos/02 - funciones/02 - argumentos/b_args_con_clave.py | 1fd88e08f39777b41b4d2e82ee63e2c98edf4772 | [
"MIT"
] | permissive | Python-Academy-Argentina/Fundamentals | 9c2e551a38729bd58f54f0b0071fe4f704b6ed19 | 000b7c75269b99dfe3abfe01062bf17115bab2c3 | refs/heads/master | 2023-06-08T04:55:34.884583 | 2021-06-21T15:26:46 | 2021-06-21T15:26:46 | 364,298,252 | 11 | 4 | MIT | 2021-06-08T20:27:32 | 2021-05-04T15:15:57 | Python | UTF-8 | Python | false | false | 1,764 | py | # b_args_con_clave.py
# muestra ejemplos de funciones con argumentos con clave (keyword arguments)
# en la función <operaciones> de a_args_posicionales.py vemos que se aceptan
# dos argumentos: <a> y <b>
# estos argumentos tienen nombre (clave), aunque aceptan ser tratados posicionales
# en la medida en la que no se l... | [
"67435760+xthehatterx@users.noreply.github.com"
] | 67435760+xthehatterx@users.noreply.github.com |
455626e28d9feee7af502b9f88ffba687191d61e | 637f82f7803b639178c1a961abcf357039ddc0ef | /src/azure-cli-core/azure/cli/core/auth/identity.py | 729f01a64f559e99d4cd9bb8a131ccd11c22f8b7 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"Apache-2.0",
"BSD-2-Clause",
"LGPL-2.1-only",
"LGPL-2.1-or-later"
] | permissive | vadeveka/azure-cli | 44a6986b9a4c1765a2c305a4edf07152f55012f9 | abb232d7105118500fa0fb1255e5183132806725 | refs/heads/dev | 2022-07-06T15:48:48.766428 | 2021-12-17T09:05:52 | 2021-12-17T09:05:52 | 197,075,859 | 0 | 0 | MIT | 2022-06-27T12:55:19 | 2019-07-15T21:37:08 | Python | UTF-8 | Python | false | false | 15,362 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | vadeveka.noreply@github.com |
5bd57c08061cf6dac76186a8312d874462cbc7c0 | 5d8585f6518fa96dc7e60ba8c6d5cecac010433d | /qsbk/venv/bin/tkconch | 798588e3ec42e70107afd355071f5b90666d335e | [] | no_license | Fessible/PythonLearning | 25218cdd38f708f62e7e50990015713ca88541ec | 8a07610a8548ba8b006da61e51f5fcdac6788c21 | refs/heads/master | 2022-12-10T03:27:47.177447 | 2019-07-26T07:44:47 | 2019-07-26T07:44:47 | 191,890,736 | 0 | 0 | null | 2022-12-08T05:55:28 | 2019-06-14T06:48:35 | Python | UTF-8 | Python | false | false | 422 | #!/Users/rhm/github/PythonLearning/qsbk/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.2.1','console_scripts','tkconch'
__requires__ = 'Twisted==19.2.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.arg... | [
"499953902@qq.com"
] | 499953902@qq.com | |
1de2aad3e1648f8a0ece58926c2bb7625469dbd9 | b588428c3e115cc638808762b058b633a9495ca8 | /ModelPlotter/migrations/0006_xmlfile.py | 5f4da49c9159814e145a20d7b7f028583bf19e2b | [
"MIT"
] | permissive | gw-vis/VISapps | a5a8b3f20bd7256bc21ee254cee475d53aa8597b | 42978cc7747b05fbcd3325b15ded4be08e9da45e | refs/heads/main | 2023-03-05T05:58:58.452626 | 2021-02-20T05:35:08 | 2021-02-20T05:35:08 | 340,561,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # Generated by Django 2.0.13 on 2019-07-31 06:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ModelPlotter', '0005_optics'),
]
operations = [
migrations.CreateModel(
name='XMLfile',
fields=[
('... | [
"miyo@icrr.u-tokyo.ac.jp"
] | miyo@icrr.u-tokyo.ac.jp |
0bbcb49bcd2d54187bbc70f78e4838c2bfc15499 | 768faa9e30b7879e68f1c4f45ad305c45909fe48 | /views.py | 309bc10c5396c9bb2e537225c0982b2803701edf | [] | no_license | jptree/bond-project | 9d539b4d595d763741932fa6aa995f19d839a513 | 6cab9789b6667250104a39888ff26932cc423b48 | refs/heads/master | 2023-07-01T18:19:09.151985 | 2021-08-11T03:33:14 | 2021-08-11T03:33:14 | 393,229,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,318 | py | def intro():
import streamlit as st
st.sidebar.success("Select a view above.")
st.markdown(
"""
This application was developed by Jason F. Petri. There are various views to select from--all of which help
in the analysis of the securities provided.
*August 10, 2021*... | [
"jasonfpetri@outlook.com"
] | jasonfpetri@outlook.com |
89de947f8d9c81ba8d53f65322d7259200b4fe9a | 54648f2e17e0146f7adc51aeddacd943bf2f2c20 | /saleor/saleor/graphql/translations/tests/test_translations.py | 7dbed94fc48c5c61a427561cc5ed1b9bbec9c47d | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | ridwanray/shop | 999792222ab12ab72af8901fdc9ee3b769b8e283 | 0f90e94e63129f0f1797f27f26f9c3ec08712fbb | refs/heads/master | 2022-11-19T15:33:27.467896 | 2020-06-08T12:06:52 | 2020-06-08T12:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,496 | py | import graphene
import pytest
from django.contrib.auth.models import Permission
from saleor.graphql.tests.utils import assert_no_permission, get_graphql_content
from saleor.graphql.translations.schema import TranslatableKinds
from saleor.graphql.translations.types import LanguageCodeEnum
def test_product_translation... | [
"rafmme@gmail.com"
] | rafmme@gmail.com |
f795d91ef6a578af3e5b22300688668c97622fb4 | deb89dfe22f3668dbfafabe8b353560e605ce17e | /Optimizer.py | 8f6a68f4eccf3551307ca31faf7059433549532d | [
"MIT"
] | permissive | AndrCarvalho/DroneOpenTool | 012699d69f2ba443e5d11b43c3c340e6da6a2deb | db22d18bc0f2ae4f2d6338130b8b536f0d4af829 | refs/heads/master | 2023-08-21T21:53:50.184130 | 2021-10-02T18:39:31 | 2021-10-02T18:39:31 | 307,439,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | import pyproj
geodesic = pyproj.Geod(ellps='WGS84') #notice: [lon lat] notation!!!
# Removes co-linear points in sequence, do multiple times to remove every occurrence.
def remove_path_excess(path):
new_path = [path[0]]
for i in range(0, len(path)-1, 2):
if i + 2 >= len(path):
continue
... | [
"AndrCarvalho@users.noreply.github.com"
] | AndrCarvalho@users.noreply.github.com |
3ae3771d1e81939378ef90067c2137fbe4d29742 | 0c85ffd1fc2ecb2ada296a1af6afbb0b57ad4130 | /sm.py | cbdf9524b55fdbfe6ae201337c7ceb5d29f3c9a4 | [
"MIT"
] | permissive | sevenjames/fpie-scripts | c945d4f212dfe05cceaab537e5e03684be12b059 | 4aed642ca60ee1da4ffb07823a2e206957597498 | refs/heads/master | 2021-02-14T03:02:42.640879 | 2020-06-11T08:03:40 | 2020-06-11T08:03:40 | 244,760,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | """minimized stick mouse"""
if starting:
import time
frame_start = time.time()
mouse.deltaX = filters.delta(joystick[0].xRotation) * 0.25
time.sleep(max(1./60 - (time.time() - frame_start), 0))
| [
"sevenjames@users.noreply.github.com"
] | sevenjames@users.noreply.github.com |
467367f6c141bab5ccd0bf6bb614ab26e0f5199f | 2c68c8e13ee4e6d37388c76d7cc1a53f0e2caf90 | /LTM/For_excel/test_check_ip.py | a7f5efab584c692f186aa034fbf87e78b4e674f6 | [] | no_license | oscarobwu/Memo_F5 | f6b6226dfde0a7a17ece04d6439003bf1e3b48bb | 53d651c8fd51e5ce792d669167a01850596998ec | refs/heads/main | 2023-02-26T18:51:30.893181 | 2021-02-05T23:34:57 | 2021-02-05T23:34:57 | 336,413,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | #!/usr/bin/python
#-*- coding: utf-8 -*-
#===============================================================================
#
# Filename: test_check_ip.py
#
# USAGE: test_check_ip.py
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: O... | [
"root@Debian10-6-Jenkins-Ansible-02.localdomain"
] | root@Debian10-6-Jenkins-Ansible-02.localdomain |
5091cde131222d65fd968409d5c999a7772611c5 | 975ecceab70eb4d75b1fe1b61a14c8375c291adb | /3.1_introduction_to_python_I/in_practice/12-Stu_NumberChain/number_chain.py | eb70bb0b43edbb154ae8e222d54796be5843789a | [] | no_license | carlabeltran/data_analytics_visualization | 82306b44570ba89ef298d8cf07f9151e0d7cb031 | 7985138ff3fbbdcf077c08aaea6dcb64f12b9a22 | refs/heads/master | 2020-12-09T17:38:34.458647 | 2020-01-12T03:03:35 | 2020-01-12T03:03:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | user_plays = "y"
starting_number = 0
while user_plays == "y":
user_number = int(input("How many numbers?"))
for number in range(starting_number, user_number + starting_number):
print(number)
starting_number = user_number + starting_number
user_plays = input(
"Do you want to play again... | [
"philipstubbs13@gmail.com"
] | philipstubbs13@gmail.com |
256be955ac5bbbb095774605fb0337a77bc3fa15 | 8152b055c7275751ac56476218012448de1bfd57 | /mia/xmgr/views.py | 29fc63a4ea48ac80acada10b5c56efe657370cd6 | [] | no_license | gregfelice/mia | 7f1376c2e1a54dd9038b66bd5e71941a7d30410b | 4a3a0ff6670e385d70abf6c793bc91d927e8a859 | refs/heads/master | 2021-01-17T12:00:45.455553 | 2016-07-21T03:33:26 | 2016-07-21T03:33:26 | 63,834,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py |
from django.http import HttpResponse
from django.template import loader
from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.views import generic
from .models import Person
class IndexView(generic.ListView):
... | [
"gregf@bogo.constantlabs.com"
] | gregf@bogo.constantlabs.com |
33189ef2893eeb9cacde0e3f2a86934c39a8868e | 78f85c9d1587244c8a5aa087f88d4af862865858 | /english_speak_backend/storage/csv_converter2.py | 1b8d17fbf12c12105e45f530d1ba2cce6845e1b6 | [] | no_license | fedor-malyshkin/english-speak-backend | ceaf7759bac4a1ff5ef7cf8b2bfe327701393cf8 | 28d75646a4acd45f18209b3c28ba8a2bef1edded | refs/heads/master | 2023-03-08T13:33:19.940272 | 2021-02-13T17:40:15 | 2021-02-13T17:40:15 | 264,500,506 | 0 | 0 | null | 2021-02-13T17:40:16 | 2020-05-16T18:26:18 | Python | UTF-8 | Python | false | false | 4,565 | py | import csv
import re
from english_speak_backend.storage import builder
REGEXP_MEANING_SAMPLE = r'\((.*)\)'
REGEXP_NOTE_VARIANT = r'var\. [0-9]'
def convert_to_map(row):
return {'name': row[0], 'meaning': row[1], 'sample': row[2], 'note': row[3]}
class CsvConverter2:
def __init__(self):
self.orig =... | [
"fedor.malyshkin@yandex.ru"
] | fedor.malyshkin@yandex.ru |
e5a79048e3102c2eba2db114ca4160c3e3953ac2 | 73f6ba42a793d18ad5b4c44cfdc278e51aa1b9b0 | /perum/admin.py | 826368cf4da71c07441a9b74c16ab876d01bd44b | [] | no_license | akbarlintang/perumahan | e14eb922a86c76581d8faae5700ff21e83ba13ee | 66c908a382bc32e9b9abc69b3a6f22eab12d8d2c | refs/heads/main | 2022-12-30T08:11:23.856824 | 2020-10-22T15:33:30 | 2020-10-22T15:33:30 | 306,377,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from django.contrib import admin
# Register your models here.
from .models import *
admin.site.register(Pelanggan)
admin.site.register(Unit)
admin.site.register(Administrasi)
admin.site.register(Harga)
admin.site.register(Angsuran)
admin.site.register(Booking)
admin.site.register(Lokasi)
admin.site.register(Tipe) | [
"lintangajiakbar@gmail.com"
] | lintangajiakbar@gmail.com |
4c3c32a1d4681cd40a82b7f1ba078e8eca062f0a | 9aea1b19a8681b4c6b15d628a080982fb2d98b39 | /mianJing111111/geeksforgeeks/tree/Convert a BST to a Binary Tree such that sum of all greater keys is added to every key.py | b7844963d0363ace092c3fb4c04ebe355d2e84b6 | [] | no_license | yzl232/code_training | ee7612efc6f166742fcf48e1af715f57a624d3aa | fc165027c3d7b1fec58ebfad2f9ada275a6b8c03 | refs/heads/master | 2021-01-21T04:32:02.522931 | 2016-07-01T21:35:29 | 2016-07-01T21:35:29 | 26,989,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | # encoding=utf-8
'''
Convert a BST to a Binary Tree such that sum of all greater keys is added to every key
Given a Binary Search Tree (BST), convert it to a Binary Tree such that every key of the original BST is changed to key plus sum of all greater keys in BST.
Examples:
Input: Root of following BST
... | [
"buptyuzhenglin@gmail.com"
] | buptyuzhenglin@gmail.com |
4f9d5463d4ac234ca46cd78969c11d0fe88dc7e6 | 3bd31700ebf05dcbdf16ba622fcc1551522c3118 | /denoise/denoise_shrink_mask.py | e52f41c315cb391f09f5aa6e16a435e4b5f3623a | [
"MIT"
] | permissive | yl3506/iMVPD_denoise | 78a410ad8093e213078af92c354ef8aeacd28100 | 96dff9d4a72086d1b7348403d0c71c43b5456933 | refs/heads/master | 2020-03-31T06:14:57.865578 | 2019-01-18T05:01:46 | 2019-01-18T05:01:46 | 151,973,975 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | # generate noise mask and shrink by 1 voxel on the surface
import os, json
import nibabel as nib
import numpy as np
from scipy import ndimage
# initalize data
### work_dir = '/mindhive/saxelab3/anzellotti/forrest/derivatives/fmriprep/'
### all_subjects = ['sub-01', 'sub-02', 'sub-03', 'sub-04', 'sub-05', 'sub-09', 'su... | [
"yl3506@nyu.edu"
] | yl3506@nyu.edu |
c63ab88a1b3faf2cb4abf1a0c1bb74d644de8b85 | e806a4ca5276d5bbe6c79806986aadd105de6490 | /pdp7_pt/measures/admin.py | 3e36d026e6004c4743fa0ceb4f924274c3217b26 | [] | no_license | alexpdp7/pdp7_pt | 36d5ea058040cfee4a2536d894db4339a2b9cd14 | c5568c4a85f1d716d452607af73ea1ebc468e12c | refs/heads/master | 2020-04-17T20:16:20.983886 | 2020-03-27T15:23:04 | 2020-03-27T15:23:04 | 66,585,470 | 0 | 0 | null | 2016-08-28T11:36:10 | 2016-08-25T19:06:39 | Python | UTF-8 | Python | false | false | 301 | py | from django.contrib import admin
from pdp7_pt.measures import models
class MeasureAdmin(admin.ModelAdmin):
date_hierarchy = 'when'
admin.site.register(models.Series)
admin.site.register(models.FloatMeasure, MeasureAdmin)
admin.site.register(models.DoublePositiveIntegerMeasure, MeasureAdmin)
| [
"alex@pdp7.net"
] | alex@pdp7.net |
3b01ef52fe6dd9707ec569c0266c5d04749fc773 | 9e131c705936db8b9d3a473a13c5f17aab5b6bda | /tensorflow_/tensorflowcv/models/preresnet.py | a8d923f83115ed214bcd917f4303382cc7962deb | [
"MIT"
] | permissive | kolingv/imgclsmob | 0b792cdcc88abbfb63bebbe8a45e5772e755aed0 | 11e77cf36f0c99be044597d5be29313be394a692 | refs/heads/master | 2020-04-23T14:12:08.784090 | 2019-02-17T19:39:48 | 2019-02-17T19:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,590 | py | """
PreResNet, implemented in TensorFlow.
Original paper: 'Identity Mappings in Deep Residual Networks,' https://arxiv.org/abs/1603.05027.
"""
__all__ = ['PreResNet', 'preresnet10', 'preresnet12', 'preresnet14', 'preresnet16', 'preresnet18_wd4',
'preresnet18_wd2', 'preresnet18_w3d4', 'preresnet18', ... | [
"osemery@gmail.com"
] | osemery@gmail.com |
696666f703b9b3f54267ca9038eff6745d675137 | e3da426fbe6be0f2c90a83bb8f2354e1bb3fc740 | /app/modules/curso.py | 796a0244780aa753d144098c8dc193e4db06d159 | [] | no_license | raloxxx/proyectoprueba2 | 3789b80c533209fa8d66674787a7b6b0be17d47c | eae662a8643241c061143b6471a7ae69c3136317 | refs/heads/master | 2022-11-17T12:12:31.794620 | 2020-07-16T05:20:25 | 2020-07-16T05:20:25 | 275,482,504 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # Una clase esta definida por atributos y metodos
# atributos = variables
# metodos = funciones
# Curso
# instancias
# Matematica Comunicacion Religion
class Curso:
def __init__(self, id, nombre):
self.id = id
self.nombre = nombre
def getId(self):
return self.id
... | [
"juan.15121001@gmail.com"
] | juan.15121001@gmail.com |
1f1c4775c1f9cb17c43d65e1d87a0b05f31bbbfd | 4fc0d62e546c8d73971f8a460c291494c1b2133f | /main.py | 98e64ba7b4ab5f2dd16973c05a14f74dd2d7b033 | [] | no_license | NicKomarov73/git_test | 55c87425e7f6e4348ba4f6cb6c2fbbf00f4324b5 | 12380c47aeac4511bb12b2ddda0f6755bdad9b0b | refs/heads/main | 2023-01-09T15:57:13.661918 | 2020-11-14T14:02:40 | 2020-11-14T14:02:40 | 312,816,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | from tkinter import *
# creating window
window = Tk()
window.title("Testing system")
window.geometry('400x500')
window.resizable(False, False)
window.mainloop() | [
"komarov@lic145.kiev.ua"
] | komarov@lic145.kiev.ua |
b27818b5634093e58370be65ddee9767958e0082 | 0620d5e4489a9ab59fd07dc9db424ebb7e1d2b53 | /Tensorflow/ActivMaxim1/script.py | 45251cc0139f25221d8e566c9e60e40d77a120e4 | [] | no_license | lephamcong/LAID | 22e15b088293c304b561d8c60fc3d4333caacad0 | 356ab14dedfded27d7915c0c7c029b7182765552 | refs/heads/master | 2023-04-14T23:38:15.127191 | 2018-10-27T19:36:12 | 2018-10-27T19:36:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | import tensorflow as tf
import numpy as np
import jmlipman.ml
import time,os
from Model import Model as MNIST_Model
import scipy.misc
import itertools
class ActivationMaximization(MNIST_Model):
def __init__(self,config,weights=None):
self.conf = config
self.placeholder = {}
self.sess = tf.Session()
self.load... | [
"jvmlipman@hotmail.com"
] | jvmlipman@hotmail.com |
d586790bd7bff025ce7f4098a3885a42d649403c | 36bdbbf1be53ba5f09b9a2b1dd15e91f8f6b0da1 | /tour/migrations/0019_auto_20181209_0803.py | 40dfec86d7904ad87c59944319dc512cd92ec9df | [] | no_license | phufoxy/fotourNew | 801ab2518424118020dc6e5f31a7ba90a654e56a | 6048c24f5256c8c5a0d18dc7b38c106a7c92a29c | refs/heads/master | 2023-04-13T01:34:22.510717 | 2018-12-26T03:46:09 | 2018-12-26T03:46:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | # Generated by Django 2.1 on 2018-12-09 01:03
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tour', '0018_auto_20181209_0730'),
]
operations = [
migrations.AlterField(
model_name='placetour',
name... | [
"vanphudhsp2015@gmail.com"
] | vanphudhsp2015@gmail.com |
a186c3a680db9ce50eb284cddc769a829a1f71b5 | 7865087569122e271b34f3d46fb011c445f233dc | /Modern_Python3_Bootcamp/Modules/Custom_modules/Fruits.py | 5e838541535e0eb3b17182459eae6d134d4dcaa7 | [] | no_license | mikaelbeat/Modern_Python3_Bootcamp | 1cc5a83fef65377b6cebbeba91538bb94703b0cd | b5f281a718c50097421210507efa351e9780688d | refs/heads/master | 2020-05-06T12:29:40.430456 | 2019-06-07T07:22:14 | 2019-06-07T07:22:14 | 180,125,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py |
import Bananas, Apples
print(Bananas.dip_in_chocolate())
print(Apples.offer()) | [
"ryynanenphm@gmail.com"
] | ryynanenphm@gmail.com |
2f3980ef2f1f859c6455897332790c674646fc9a | cc2a312f1ab75c6970b40d18a82454a6909648bd | /python-module-study/exercise.py | da2ca6f2b3681aeda943691d0167ad15d891fec3 | [] | no_license | FantasybabyChange/python-study | f68317b6a6ef683f109b66d4637d63d9c97b8848 | fb4ca2466ccd9ebacfcc54bf8759533cc941e834 | refs/heads/master | 2023-01-23T19:18:32.748497 | 2022-12-27T03:20:41 | 2022-12-27T03:20:41 | 240,224,390 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | # 1. 导入os模块,并使用help(os)查看os模块的帮助文档
import os
help(os) | [
"625353861@qq.com"
] | 625353861@qq.com |
b8480b8605b74221a144d204ed4fea2604c6faa9 | 5f2be2a5a01f0449a8e75947b60ea403f8b61e9a | /6.py | 24fdb05719e2c4a89d8e3d144e160ec6791b788c | [] | no_license | Rafael-F-S/OPP | a5c6bf0981a2a75981dcb6fd81c1ee6cb3a43a00 | 195af023210503439986b8e1f76b8bf34009931e | refs/heads/master | 2020-05-18T04:57:56.738877 | 2019-04-30T04:23:02 | 2019-04-30T04:23:02 | 184,189,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,121 | py | """
class Employee:
raise_amt = 1.04
def __init__(self, first, last, ):
self.first = first
self.last = last
self.email = first+"."+last+"@company.com"
def fullname(self):
return "{} {}".format(self.first, self.last)
emp_1 = Employee("Corey", "Schafer")
emp_1.first = "Jim... | [
"rfsminas89@gmail.com"
] | rfsminas89@gmail.com |
d70262d86638bee1df9318ad355ac96f77fa37f0 | da0adac2efc05ee27e6545f5b5e311cd780300a9 | /src/t1000/application/result/result_abstract.py | fa92d975183660b9e9728958d024317fe0615bc4 | [
"MIT"
] | permissive | helcerion/T1000 | 9986ed645cf5ddb3dec1075206d856084ac97c18 | 25684e88dc8adb37fe07ff358f84f797f7b9c716 | refs/heads/develop | 2022-12-23T21:01:55.846337 | 2019-10-29T18:34:54 | 2019-10-29T18:34:54 | 218,250,199 | 1 | 0 | MIT | 2022-12-08T06:47:33 | 2019-10-29T09:29:33 | Python | UTF-8 | Python | false | false | 614 | py | from ..command import command_abstract
class ResultAbstract():
_command: command_abstract.CommandAbstract
def __init__(self, command: command_abstract.CommandAbstract, resource):
self._command = command
self._resource = resource
def set_command(self, command: command_abstract.CommandAbst... | [
"alonso.albert@gmail.com"
] | alonso.albert@gmail.com |
b899c2f940469ffda705dc73fa659605f21e977a | 913d22cf09d5e6cde0e66e11215794b7e64b92b6 | /alien_color_6.py | 432cbef15957f145ab519be3cc0ad8504455184b | [] | no_license | chenp0088/git | 94beb31b6c90fe477ad3764fe73f3f1807ed4999 | 0a9782ca00d3d217fc7989e0bb5107d3f49066c2 | refs/heads/master | 2020-03-25T21:04:41.439874 | 2019-06-15T00:43:10 | 2019-06-15T00:43:10 | 144,158,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | alien_color=['green','yellow','red']
alien='green'
if alien=='green':
print("You get 5 points")
else:
print("Your get 10 points")
| [
"pc008@sohu.com"
] | pc008@sohu.com |
489d849197b680e79a7a8cd6da2aadf65e574532 | 7dbe31a463e96de737a3004eba413f8d94923a66 | /PythonTutorial/helloworld.py | 0e96c4c1af5dda5d020d4f72ff63a58cddaa35c9 | [] | no_license | thienlerva/PythonTutorial | 66abbdedff9147f06cedf680a519ee9512c5030a | c93dae23168a8d38559d8346fc3047509addf7a3 | refs/heads/master | 2023-03-02T11:27:10.087916 | 2021-02-16T20:09:32 | 2021-02-16T20:09:32 | 336,053,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # run script python helloworld.py
x = "Hello World"
print(x)
fruits = []
fruits.append("orange")
print(fruits)
colors = ["yellow", "green", "blue"]
colors.append("gray")
colors.sort()
print(colors)
numList = [50, 100, 65, 82, 23]
numList.sort(reverse = True)
print(numList)
def comparable(n):
return abs(n - 50)
n... | [
"thienxuanle@yahoo.com"
] | thienxuanle@yahoo.com |
42bd3c170d0de2ff43b6f1b9bbabbea30e21b314 | 2af9a95586c893d386172bac61994518196da1da | /server/run.py | 016084476dae50f2edbb5e589389c6d9cfa1ca27 | [] | no_license | freddyli7/WaterlooDiscovery | 2e70eb8f5112f987ec57204bfdeddc8faf236057 | e720baeae406b9d5c9d84572eda3945014fc3222 | refs/heads/master | 2021-06-12T17:32:35.453555 | 2017-03-09T18:38:27 | 2017-03-09T18:38:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | #!/usr/bin/python
SQLALCHEMY_ECHO = False
PORT = 8000
HOST = '0.0.0.0'
| [
"zbhknight@gmail.com"
] | zbhknight@gmail.com |
ecdf152974a86661c7d07aee826c3d4d1c27557b | c9fe05f893deff75232aabca4e877c144972249a | /arcpyenv/arcgispro-py3-clone/Scripts/jupyter-kernelspec-script.py | 57f54379d60ae219e875731f31db4a9367c56a12 | [
"Python-2.0"
] | permissive | SherbazHashmi/HackathonServer | 4d1dc7f0122a701a0f3a17787d32efe83bc67601 | a874fe7e5c95196e4de68db2da0e2a05eb70e5d8 | refs/heads/master | 2022-12-26T06:46:33.893749 | 2019-11-03T10:49:47 | 2019-11-03T10:49:47 | 218,912,149 | 3 | 3 | null | 2022-12-11T11:52:37 | 2019-11-01T04:16:38 | Python | UTF-8 | Python | false | false | 256 | py |
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_client.kernelspecapp import KernelSpecApp
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(KernelSpecApp.launch_instance())
| [
"sherbaz.hashmi@gmail.com"
] | sherbaz.hashmi@gmail.com |
0d15c94e8d8e655948d98ae5da0947de75b7aefa | 2aabe86ae30aa5fdbae1a161e4330f891c81aa6b | /test/hard_function_chain.py | 1584d6e3b311d72f920282755ed1f9fc6b0792c0 | [] | no_license | Cyberdog52/saep2 | 50fb80cf5173cbf2d6bdf17bd6cd91a5537b32af | a26017fcd8d9c742b81fb12d63ccef76cf1d054c | refs/heads/master | 2020-05-29T23:10:53.531954 | 2015-05-24T20:44:14 | 2015-05-24T20:44:14 | 35,619,678 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | def chain4(asdf):
return asdf
def chain3(x, y, z):
if x > 1:
if y > 1:
if z > 1:
return chain4(42)
return chain4(10000)
def chain2(y):
return chain3(y, y, y)
def chain1(asdf, a):
return chain2(asdf+a)
def main (x,y):
return chain1(x,y)
def expected_result():
return [42, 1000]
| [
"Andres@Andress-MacBook-Air.local"
] | Andres@Andress-MacBook-Air.local |
4eac9f6b223afbd5dc25d6c4dacd6d371c18fd5c | 7b50e5b78248940d9abbdbc1f9736746cca39343 | /tests/integration/rolling_update/test_rolling_update.py | e6800e86408d3c28b1599c81d74057b217e81183 | [
"Apache-2.0"
] | permissive | Aqiry/jina | 1fb62a6c07b211c3e8757b88f275f5ef72819700 | 5604b9a0bb6d6a5ded7ee731b8b1f35735c26fdd | refs/heads/master | 2023-08-12T07:31:49.282176 | 2021-10-09T08:11:00 | 2021-10-09T08:11:00 | 415,276,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,199 | py | import collections
import os
import time
import threading
import numpy as np
import pytest
from jina import Document, Flow, Executor, requests
cur_dir = os.path.dirname(os.path.abspath(__file__))
@pytest.fixture
def config(tmpdir):
os.environ['JINA_REPLICA_DIR'] = str(tmpdir)
yield
del os.environ['JINA... | [
"noreply@github.com"
] | Aqiry.noreply@github.com |
3241190153a590daac0b3947d9f74fcbd5eb76e2 | 8952c3edb27752fe08b577a89d100c432433a00a | /entities/items/__init__.py | 50ec215edf587191c08159e4d15c38646c250761 | [
"MIT"
] | permissive | newobj/lunch-break-rl | ce0f147e25b1fe919b3d0991d53bf5f66a7957c5 | 67604d9393e2382bed8d4ce05dcac99fa0ac4b93 | refs/heads/master | 2021-01-20T10:57:11.728812 | 2017-08-27T05:20:04 | 2017-08-27T05:20:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | def register():
from entities.items.weapons import battleaxe
from entities.items.weapons import dagger
from entities.items.weapons import fist
# from entities.items.weapons import glove
from entities.items.weapons import pickaxe
from entities.items.weapons import sword
from entities.items.we... | [
"joshua.skelton@gmail.com"
] | joshua.skelton@gmail.com |
dea9df6d61e8ff8aec50fd395427af2ef14cbe01 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /call_life_beneath_different_year.py | 8b63938cea369307ce22c5d3c863f32c9f6781a9 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py |
#! /usr/bin/env python
def think_place(str_arg):
hand(str_arg)
print('leave_hand')
def hand(str_arg):
print(str_arg)
if __name__ == '__main__':
think_place('last_group')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
ae9205eb82e6c82b7a04567ddef23cb9d7392aa9 | 15c7a09c290ca405885ba532e54ac6054632d0ab | /src/eval.py | aabbd27a15e3e57ff3075a975f09d91addc1466d | [
"Apache-2.0"
] | permissive | DianaTaukin/DSD-SATN | 8304bb2794533dcb30fbf687b4d6c9dae04d461d | 5a4ab5e3cfcb00e72ca27cf5ec10a8d8e29ef312 | refs/heads/master | 2020-08-12T19:50:55.644682 | 2019-10-14T21:27:24 | 2019-10-14T21:27:24 | 214,833,038 | 0 | 0 | Apache-2.0 | 2019-10-13T14:17:43 | 2019-10-13T14:17:43 | null | UTF-8 | Python | false | false | 5,298 | py |
from base import *
def val_result(self,epoch,evaluation = False,data_loader=None):
if data_loader is None:
data_loader = self.loader_val
if self.video and not self.eval_pw3d:
self.generator.eval()
print('evaluation ...')
MPJPE = AverageMeter()
PA_MPJPE = AverageMeter()
... | [
"936605403@qq.com"
] | 936605403@qq.com |
094ba89b95b8fedc9a4b7f76c03b16b1a734a651 | 2d1832f2334760188125d9593ae7fdc50ee66ea1 | /Multidimensional List/08_miner_v1.py | 5b307aaff6f22dcac6020a365a2942ee80397b4c | [] | no_license | IvayloValkov/Python-Advanced | 49bc73abbeb5be4173a323dc415aa2d1809061a1 | 15ce73276ba8cb9285018d23b7e0a69b7689f5e5 | refs/heads/main | 2023-02-22T14:29:24.945194 | 2021-01-28T18:24:47 | 2021-01-28T18:24:47 | 330,350,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | def field_as_input_matrix(n) -> [[str]]:
return [input().split() for _ in range(n)]
def starting_position(matrix, start_symbol) -> tuple:
side = len(matrix)
for row in range(side):
for col in range(side):
if matrix[row][col] == start_symbol:
return row, col
... | [
"noreply@github.com"
] | IvayloValkov.noreply@github.com |
fb6cfaa7fe768449761e0dd5008a4ff9e54cf458 | ce94d5a598d9a5558d99bc86757952ac6d3dfb8a | /Django_Polling_Page_Github/poll_site_GitHub/polls/views.py | 7b0c51f489b2a91979ba6643c9fee899538da1ad | [] | no_license | DeltaForce14/polling-with-django | bbcefe99851e69133c642c4108e023a5b07e3885 | 0e7f0061e55e6a941edc4e0d943dcc781c9be10e | refs/heads/master | 2022-12-14T10:39:36.291688 | 2019-07-23T16:15:02 | 2019-07-23T16:15:02 | 198,462,191 | 0 | 0 | null | 2022-04-22T21:59:24 | 2019-07-23T15:50:25 | Python | UTF-8 | Python | false | false | 2,037 | py |
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from django.utils import timezone
from .models import Question, Choice
# Create your views here.
class IndexView(generic.ListView):
... | [
"ditapeskova@Ditas-MacBook-Air.local"
] | ditapeskova@Ditas-MacBook-Air.local |
f69736435500c47405b5828275a10e269b94bf24 | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/cluster_config_proto_vault_cloud_tier_info.py | b29b932f0b1fd01320bf6519b3e2c7657bda8028 | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 3,380 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
import cohesity_management_sdk.models.cluster_config_proto_vault_cloud_tier_type
class ClusterConfigProto_Vault_CloudTierInfo(object):
"""Implementation of the 'ClusterConfigProto_Vault_CloudTierInfo' model.
TODO: type description here.
Attribute... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
34e017a7c8f5ffa5bc2b23842213868fa9995371 | d0aecacc74ec19abe7ac05d92a34d3762565e7f6 | /src/model/post.py | 3cf036998c9f83bd24dac8f28c49992ba9d8339a | [] | no_license | donaldng/bumpbot | a7cea4c911803c1f2af88178b93546461fd88887 | 3f37a231332203d2ae8800ece0c751f4679b9ca2 | refs/heads/master | 2022-12-10T00:10:35.750507 | 2018-04-18T23:07:09 | 2018-04-18T23:07:09 | 125,709,192 | 0 | 0 | null | 2022-12-08T00:56:29 | 2018-03-18T09:21:29 | Python | UTF-8 | Python | false | false | 4,114 | py | from requests_html import HTMLSession
from environment.config import *
from util.misc import log
from splinter import Browser
import sqlite3, records
import time
class Post:
def __init__(self, user=None):
self.db = records.Database('sqlite:///{}'.format(dbname))
self.topic_url = "https://forum.lowy... | [
"donaldyann@gmail.com"
] | donaldyann@gmail.com |
6c84d74e6e8dd91c7f2d2a598a8a90dde07190c7 | 6278f9dce690bc0304cea0b872c232923302bab7 | /scripts/simulator_node.py | 8da44d47ada411704bfa6b31ef1eb7be96fcac29 | [] | no_license | jaredsfrank/atb_ros | c144d4a200beff423deca0280563ce58eb0a5c39 | bd404f9591c824a3f9d1f8d4688c592895d10ea0 | refs/heads/master | 2020-05-21T10:39:40.323097 | 2017-03-11T03:00:21 | 2017-03-11T03:00:21 | 84,618,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import String
from geometry_msgs.msg import Pose2D
import time
import random
import matplotlib
import matplotlib.pyplot as plt
import simulator
import nav
import numpy as np
from matplotlib import collections as mc
from std_msgs.msg import Int32MultiArray
def upd... | [
"jaredsfrank@gmail.com"
] | jaredsfrank@gmail.com |
c539bf7bdc584af315154cc21957adbad9ea738a | 1a9ccaa3e9edeadcae31ff81ee20ee22327b5c10 | /sayun/dfs_bfs/check.py | 43fea031c5e2ebe8121f7105ac7adf4cbc6de3c2 | [] | no_license | 42somoim/42somoim3 | e939a11f39ac5bc00f73df0bda4f5aa43bb99360 | 7b4b123e50363861475a9888ec330e4acc275fea | refs/heads/main | 2023-02-22T05:29:53.472744 | 2021-01-26T10:59:02 | 2021-01-26T10:59:02 | 300,508,013 | 0 | 1 | null | 2020-11-17T11:20:54 | 2020-10-02T05:15:00 | C++ | UTF-8 | Python | false | false | 395 | py | N, M, V = map(int, input().split())
matrix = [[0]for i in range(N + 1)]
for i in range(M):
a, b = map(int,input().split())
matrix[a].append(b)
matrix[b].append(a)
visit_list = [0] * (N + 1)
s_result = []
def dfs(V, s_result):
visit_list[V] = 1
s_result.append(V)
for i in range(1, N + 1):
if (i in matrix[V] and... | [
"noreply@github.com"
] | 42somoim.noreply@github.com |
3338afd711d10bf178ef77bbfd41ec873d687373 | 24e7c44605140e3033bc0be18853bb9f59d8027a | /wsgi.py | 9f46dc64667bc6c5180f358db44a750815da5155 | [
"MIT"
] | permissive | ytaro-office/modest | 82d4ef5cd2bd65d07928c047868f60be64933386 | 8efaa1b1afe8a00afa56142ea436b5278a098d0e | refs/heads/master | 2021-08-30T04:03:28.311987 | 2017-12-16T00:04:39 | 2017-12-16T00:04:39 | 114,419,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for modest 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"ryusuke.maeda1107@gmail.com"
] | ryusuke.maeda1107@gmail.com |
042c57f7e5757202d59f7988f3c44d5ae2bd9a79 | 630fe47bb5aa5e49b45ab101d87c2dd2c53d180f | /venv/Lib/site-packages/com/vmware/nsx/node/services/syslog_client.py | f822d5ad5df9a3d50c24353423651dbc003b7846 | [] | no_license | shrivastava-himanshu/Leetcode_practice | 467497a58d82ff3ae2569d5e610dc6f27a1f31d6 | 4c59799947c2b17bfd22ca2a08707ef85e84a913 | refs/heads/main | 2023-06-12T13:14:45.381839 | 2021-07-05T04:09:05 | 2021-07-05T04:09:05 | 367,546,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,001 | py | # -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2021 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.nsx.node.services.syslog.
#---------------------------------------------------------... | [
"Himanshu.Shrivastava@vce.com"
] | Himanshu.Shrivastava@vce.com |
b1944869e6423f695c47e849bfb352d5771a5139 | c13aba57d849d98e25c509c9db021e14b4a63cc7 | /Easy_NN_sample.py | db22217e27c7ab2b25d09a50abe10e75a9f77df6 | [] | no_license | cool425589/tensorflow_example | a7a0bd79609dc00852a04a66ab492737b51e0c40 | 0e8d31674b3203f95dc69068767d591c8f53e94b | refs/heads/master | 2021-09-06T11:54:14.905140 | 2018-02-06T08:13:04 | 2018-02-06T08:13:04 | 105,788,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | import tensorflow as tf
import numpy as np
#training data
train_1 = np.array( [[1.,2.,3.],
[3.,4.,5.],
[8.,5.,7.],
[7.,1.,8.]] )
train_2 = np.array( [[1.],
[0.],
[0.],
[1.]] )
"""
3 x [1,3] input , 3 x [1] real answer
hidden layer_1 have 3 input and 2... | [
"noreply@github.com"
] | cool425589.noreply@github.com |
d053a67afacf36a8c8d5424e30e4c754c3cf8e08 | b7077b6a139e8369bb6e0c99d8222dcdf78c3513 | /week9/1-Money-In-The-Bank/sql_manager.py | cbb78d6090b94e5c39cbcd7ade67b80c622efbfd | [] | no_license | siyana-plachkova/programming101 | 4276af6c271516cec4c357e7bed303276cb45db5 | 867c6f1f2131460113b1c1f88e53034283ad5abb | refs/heads/master | 2020-04-15T02:47:14.865659 | 2015-05-25T20:04:24 | 2015-05-25T20:04:24 | 32,450,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | import sqlite3
from client import Client
class Database:
def __init__(self):
self._conn = sqlite3.connect("bank.db")
self._cursor = self._conn.cursor()
@property
def conn(self):
return self._conn
@property
def cursor(self):
return self._cursor
def create_cli... | [
"siyanaplachkova@gmail.com"
] | siyanaplachkova@gmail.com |
4d2f4158c0cba41bc73889d655da2690c7826d74 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/F/flukebox/bscgraduate.py | 88a566fdb06b75cfda7c693b694d6464e67172ca | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,102 | py | ###############################################################################
# START HERE: Tutorial for scraping ASP.NET pages (HTML pages that end .aspx), using the
# very powerful Mechanize library. In general, when you follow a 'next' link on
# .aspx pages, you're actually submitting a form.
# This tutorial demo... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
850867f87e7ed3b89e151c8fab97f417fe20b4c3 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/air_reprice_search_port_type_service_input.py | cf8d7d4b04fd3fcd488875ffd4bb7190b6b63c17 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 858 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.air_reprice_req import AirRepriceReq
__NAMESPACE__ = "http://www.travelport.com/service/air_v52_0"
@dataclass
class AirRepriceSearchPortTypeServiceInput:
class Meta:
name = "Envelope"
namespace = "h... | [
"chris@komposta.net"
] | chris@komposta.net |
dd07bf9ee6534d7aa6e2e55ddca99569bf0667a9 | d620ee5a3fdb00ade6ccc996db3b0fcbf2e4d8c8 | /simfinder.py | b4a9d16e3d62d6ec3c64e5151cec4e094f5bd9e4 | [] | no_license | feipeixuan/common_script | 573327db1d3816d92092026c0cf5598ae0a82d7e | 6bdff21837da9578b2f12596fdc9a9755dd8ff46 | refs/heads/master | 2020-04-26T02:14:03.456346 | 2019-05-15T02:09:30 | 2019-05-15T02:09:30 | 173,228,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | #!/usr/bin/python
# coding=utf-8
import sys
import os
from PIL import Image
import imagehash
import distance
from shutil import copyfile
# 相似图片发现器
class SimFinder:
def __init__(self):
self.groups = []
self.indexs = []
for i in range(0, 8):
self.indexs.append({})
# 产生图片指纹
... | [
"feipeixuan@163.com"
] | feipeixuan@163.com |
8128fdb7f3771e6e201275c2f4b661d15ba64eb6 | 58e6d305d70f18c89606ac4f2d112e37821030b9 | /mainApp/migrations/0001_initial.py | 3fe5335c0551c723de1bf7a8575bc84ba23bc982 | [] | no_license | JorgeVidalCano/petShelter | b34735d41d206fc64ad006cb2dfd9abb8ea338de | ea22f3d2f5a74ad6035c4ce656cd53290da3906d | refs/heads/master | 2023-02-03T09:50:19.216348 | 2020-12-28T12:00:21 | 2020-12-28T12:00:21 | 305,349,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,388 | py | # Generated by Django 3.1.2 on 2020-10-23 17:36
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"jorge.vidal.cano@gmail.com"
] | jorge.vidal.cano@gmail.com |
bfeff981fd1df505268725a68dbeecffff38eead | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/MadGraphModels/python/models/Zp2HDM_UFO/particles.py | 879051c3c964ef8edb6aa11708e447d0ec186aaa | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,534 | py | # This file was automatically created by FeynRules 2.0.25
# Mathematica version: 9.0 for Mac OS X x86 (64-bit) (January 24, 2013)
# Date: Wed 11 Nov 2015 22:20:11
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
import propagators as Prop
a = Particle(pdg... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
bcacf2a72fbc8b0401ba68d9f8d12ce63d997aff | 8cde023db3f53aa3f5b9aed20fcc769bdc85dd3f | /Regression/exercise_ml_internship_altair.py | 9056dc3c08e227d9890d22a383915e26c90796b4 | [] | no_license | bhumikdv/Assignments | 5c688c12f57033c7d2f8625942465d99d71c8879 | e55e53131d3b14e666a35db18e7364e191cc3900 | refs/heads/main | 2023-03-28T16:29:37.178449 | 2021-03-28T23:34:11 | 2021-03-28T23:34:11 | 351,596,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,112 | py | #!/usr/bin/env python
# coding: utf-8
# - """
# Here are 2 small exercises to evaluate your motivation and skills.
# The first one is simply a question, and the second one is related to
# applying a regression model to a dataset. The approach is at least or even
# more important than the result, please detail all the ... | [
"bhumikdv@gmail.com"
] | bhumikdv@gmail.com |
a8528dc9fa8df8318566fef48cd5e410399b8155 | 6db6d7445b51eb6c2aae428f8481dabbd49ba5ec | /ATAL/contest2Q2.py | 62d8563d8d0b9736f44e5860df969d2d6459312f | [] | no_license | ManoMax/python-studies | ab16535cab30965710331d1fa6d8e0ecb219b657 | cd73b830f7e2894af4eda700c71e2992b0160f7a | refs/heads/master | 2023-04-18T03:06:12.958281 | 2021-04-26T00:20:35 | 2021-04-26T00:20:35 | 130,414,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | num = int(input())
cont = 0
array_x = []
array_y = []
used = [0] * num
for i in range(num):
ax, ay = [int(j) for j in input().split()]
array_x.append(ax)
array_y.append(ay)
def aux(elem):
used[elem] = 1
for i in range(num):
if not used[i] and (array_x[i] == array_x[elem] or array_y[i] == array_y[elem]):
... | [
"gabrielmaxcontato@gmail.com"
] | gabrielmaxcontato@gmail.com |
899eacf0f831e91334c97c6010b2d9b3db685973 | 79f99302533d155f1f471629fafe24e352f0fb93 | /bancabcco/settings.py | bf26a76956ffe52085a72e09f77164bf761b1250 | [] | no_license | hristo-grudev/bancabcco | c37030e7fd5d275d05a3996e43bf3d98b5addb6f | 022bd28a6622ce683c6eea120d0d6611e65f64b8 | refs/heads/main | 2023-04-03T16:24:13.752705 | 2021-04-12T10:56:27 | 2021-04-12T10:56:27 | 357,158,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | BOT_NAME = 'bancabcco'
SPIDER_MODULES = ['bancabcco.spiders']
NEWSPIDER_MODULE = 'bancabcco.spiders'
FEED_EXPORT_ENCODING = 'utf-8'
LOG_LEVEL = 'ERROR'
DOWNLOAD_DELAY = 0
ROBOTSTXT_OBEY = True
ITEM_PIPELINES = {
'bancabcco.pipelines.BancabccoPipeline': 100,
}
USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64;... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
a4a3eb1a39616bff525f509f8aa457b29a995d8e | 91015480741ec59dda36712d71e7e6f0704bc516 | /model_zoo/official/cv/resnet152/src/dataset.py | 020ecb5d2367f09a1b58d18af9a74b80edc0a50e | [
"Apache-2.0",
"Libpng",
"LGPL-3.0-only",
"AGPL-3.0-only",
"MPL-1.1",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-mit-nagy",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-only",
"OpenSSL",
"LicenseRef-scanco... | permissive | Ming-blue/mindspore | b5dfa6af7876b00163ccfa2e18512678026c232b | 9ec8bc233c76c9903a2f7be5dfc134992e4bf757 | refs/heads/master | 2023-06-23T23:35:38.143983 | 2021-07-14T07:36:40 | 2021-07-14T07:36:40 | 286,421,966 | 1 | 0 | Apache-2.0 | 2020-08-10T08:41:45 | 2020-08-10T08:41:45 | null | UTF-8 | Python | false | false | 9,887 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"ruippan@126.com"
] | ruippan@126.com |
e7c7e1ac5d231ee5f40f075cb49c007b28690385 | c9036301aff9c02162f1a5a0641d16c94367a8f4 | /highway_tramultask/train.py | 7cd1267c3bb8587d25011109e2f9e0b1777e101a | [
"MIT"
] | permissive | daweidavidwang/temp | cb54bebf45214d80fe8727977b526bab4432df94 | c9014595bd9a391a542adbb6ed434ccb7efc254d | refs/heads/master | 2023-02-25T03:18:38.802374 | 2021-01-29T11:32:36 | 2021-01-29T11:32:36 | 316,666,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,676 | py | import os
import torch
import gym
import numpy as np
from tensorboardX import SummaryWriter
import highway_env
from dqnagent import DQNAgent
ENV = gym.make('highway-v0')
EPISODES = 200000
STORE_PATH = "./model"
tensorboard_saved_dir = os.path.join(STORE_PATH,"tensorboard")
writer = SummaryWriter(tensorboard_saved_di... | [
"dawei.wang@inceptio.ai"
] | dawei.wang@inceptio.ai |
7a7801229cd87021ea7f5fef9aa98f4639ba4fde | 8a2d2d4419180576f9a4ceefbca5cc207d13ed0a | /dataset/pascal2tfrecord.py | 87ff642dda430f4b054f69bbb0efaff161d9c141 | [] | no_license | Samjith888/EfficientDet-tf-custom_dataset | 570eb6ede1f704a4b71573c736d6eed422a79aed | a0129e810b169b485f94860a6a650c28e83241f8 | refs/heads/master | 2022-05-28T13:38:23.524304 | 2020-04-29T07:52:34 | 2020-04-29T07:52:34 | 257,501,864 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,924 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import glob
import logging
import numpy as np
import xml.etree.cElementTree as ET
import os
import tensorflow.compat.v1 as tf
NAME_LABEL_MAP = {'back_ground': 0,
'class_name': 1,}
def int6... | [
"samjith@detecttechnologies.com"
] | samjith@detecttechnologies.com |
94370865d26031d9d5c812275cd02b83ef10dd0e | 138c81b38013bc19eed814458c1440d641d18a9f | /dldt/dldt_object_detection.py | 473487df9532c5082b63d33f53fcc9e748046125 | [] | no_license | vdevaram/deep_learning_utilities_cpu | b12c4a49759274533ba09880616e67385b92115c | d2a0dd3362443bb25715c7f953ca41ca1504aa7e | refs/heads/master | 2021-05-09T06:40:21.265510 | 2020-12-01T10:55:19 | 2020-12-01T10:55:19 | 119,337,125 | 4 | 6 | null | 2020-03-22T12:43:46 | 2018-01-29T05:40:54 | Python | UTF-8 | Python | false | false | 8,813 | py | ###########################################################################
# This is a sample script file to run Caffe/TF inference benchmarks with
# mkldnn library on Intel CPUs using DLDT tool
# Please contact vinod.devarampati@intel.com for any clarifications
# Instructions to fill the variable are given in comment... | [
"noreply@github.com"
] | vdevaram.noreply@github.com |
91ea86d8c1433c4f3b991f43622c0b3bbe3136b3 | 8700ea37c191dd6d7d21a9c8c245ccba59e73124 | /EstimateTimeForATransition.py | c4cd39aeb1cc1af1e8ef7947e7c7ca51f8dc6650 | [] | no_license | rolaechea/ml-traces-analysis | b62ca205bf13edf7a56e3e3d231618cb11c2a3b6 | 4d43e61298f6c0eb54b93eae2fedd6a72c5e6151 | refs/heads/master | 2020-04-05T13:12:03.764118 | 2019-06-11T18:58:36 | 2019-06-11T18:58:36 | 156,891,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,916 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 25 14:40:55 2019
@author: rafaelolaechea
"""
import argparse
import MLConstants
from pickleFacade import loadObjectFromPickle
from AnalyzerRQ2 import getRegressorToTransitionIdMapping
from AutonomooseTraces import generateBitsetForOneConfigurati... | [
"rolaechea@gsd.uwaterloo.ca"
] | rolaechea@gsd.uwaterloo.ca |
a5bece4fd2c50b5f90963b093272617330b42b75 | 6ade743d033a23311a45bffea2d423254a16032b | /dev/track-sale-sms-py/controls_frame.py | 005e4f0b54086c3f53610e6a2a56ed862fb5e685 | [
"Apache-2.0"
] | permissive | capitalch/trace | ebeb7d86ace4c711cf2be27d914f1a6d0ddaafad | 510c947609b06fc179bc8fe5b981a4e3bcb6d610 | refs/heads/main | 2023-09-01T21:51:45.021429 | 2023-08-28T07:01:32 | 2023-08-28T07:01:32 | 213,639,100 | 0 | 0 | Apache-2.0 | 2019-11-17T15:37:44 | 2019-10-08T12:41:22 | TypeScript | UTF-8 | Python | false | false | 1,475 | py | from tkinter import Button, Frame
from tkinter.constants import E, RIDGE
from tkcalendar import DateEntry
from utils import fetch_local_data
from ibuki import Ibuki
sale_date = ''
def fetch_sale_data():
tuple_data = fetch_local_data('track-sale-sms', sale_date)
Ibuki.emit('POPULATE-DATA-TABLE-TREE-VIEW',
... | [
"capitalch@gmail.com"
] | capitalch@gmail.com |
64f7c71a570166d36c95ad273c373ac5bff92033 | 76aa7635803e3c573dffe1892b5ffaebff792000 | /work/bayes.py | 3c4b1afa1584f343f387222fa846372e7320463f | [] | no_license | bruceSz/ML-some-implementation | d809b832ed19db335840ee774e895806c444f3dc | 9a39ebb01f43f55aa82a7489c7ecada13893c55f | refs/heads/master | 2020-06-17T19:48:36.559759 | 2018-09-16T11:19:15 | 2018-09-16T11:19:15 | 74,975,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | #!/usr/bin/python
import numpy as np
def loadDataSet():
postingList = [['my', 'dog', 'has', 'flea', 'problems', 'help', 'please'],
['maybe', 'not', 'take', 'him', 'to', 'dog', 'park', 'stupid'],
['my', 'dalmation', 'is', 'so', 'cute', 'I', 'love', 'him'],
['... | [
"brucesz@zhangsongdeMacBook-Pro.local"
] | brucesz@zhangsongdeMacBook-Pro.local |
1aa131979281a93765cfeb1f8add5cec5fd1acd7 | 17f5dfd1e4f2e6b4f4a497350ca541c341e2ea3c | /models.py | 96779476f1870c75f3743ec8664a52156c458f5b | [] | no_license | Nikolai-veb/Blog_Flask | fbbd74f9b5177376174fb9c751030c453bbfe78f | 4a0fc7b6b1c55065af7fe3879d838c741066c6ce | refs/heads/master | 2022-12-22T03:18:06.789044 | 2020-10-03T17:53:21 | 2020-10-03T17:53:21 | 297,778,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | from app import db
from datetime import datetime
import re
def slugfy(s):
pattern = r'[^\w+]'
return re.sub(pattern, '-', s)
post_tags = db.Table('post_tags',
db.Column('post_id', db.Integer, db.ForeignKey('posts.id')),
db.Column('tag_id', db.Integer, db.ForeignKey('... | [
"nik.vagin1995@mail.ru"
] | nik.vagin1995@mail.ru |
29fb88a6bf317c7942af8630380f72c794e35206 | d2b81ede3d3a516f5313835ce07dfea97db46c87 | /maple/thomas_kacz/Kacz.py | 1a9383ff786c003763e244a203dd078fec7d251f | [] | no_license | p15-git-acc/code | 8b847ad95cd59a13446f595ac65d96d6bc45b512 | 59337447523018dfab71cbbbda53b4bb88b7ce59 | refs/heads/master | 2022-12-16T14:38:09.073676 | 2020-09-16T09:23:00 | 2020-09-16T09:23:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,798 | py | from scipy import pi
from scipy import sin
from scipy import exp
import numpy as np
from scipy.optimize import newton
from scipy.optimize import minimize
from scipy.optimize import basinhopping
file = open('zeros1', 'r')
zeros = file.read().split('\n')
zeros = [float(string) for string in zeros[:4000]]
file.close()
pr... | [
"dave.platt@bris.ac.uk"
] | dave.platt@bris.ac.uk |
b190c54adbe0a9fd40c58475eaabbd0a3217a96c | 6d9bfaa330fbe3076637b6beaaa62a69b28d0e9c | /manage.py | 547113df814a95436179ed34505af810631ef67b | [] | no_license | edubega0707/ventas-backend | 71fcf1470d1f0349ce1ab256057790e50b690c0a | 3fa6580c738c710509177b0ac8e5924d6a398dce | refs/heads/master | 2020-03-28T00:30:40.586243 | 2018-09-04T21:47:08 | 2018-09-04T21:47:08 | 147,423,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "nfh.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you ... | [
"eduardobenitez@MacBook-Pro-de-EDUARDO.local"
] | eduardobenitez@MacBook-Pro-de-EDUARDO.local |
f063485253aa0a5721efdf11de85a116fdc1277e | e10bc27de5a63b9fac8b663bf69b501ecb6b3adf | /shop/migrations/0001_initial.py | bd4b0139e40f86222f2069234cba0ad391bd056a | [] | no_license | rahultanwar8814/Retail_India | acac5f60a65655ed3f607084211b5b8d0d08b218 | baa6059ab949c08f47c56adb094041c53bbafca8 | refs/heads/master | 2023-06-03T14:22:52.683850 | 2021-06-20T12:57:22 | 2021-06-20T12:57:22 | 378,247,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # Generated by Django 3.1.7 on 2021-06-04 08:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='item',
fields=[
('id', models.AutoField(aut... | [
"hulkvsironmanmark2@gamil.com"
] | hulkvsironmanmark2@gamil.com |
1b1c6f1ffe39f736efb69c58a0d9e489f47a50ae | 7d1f481cdb53c1b4edd19a0d77611059e2f7f722 | /appengine/antonym/model.py | d530e79863b5d1b16370a1a1266ca385256306c3 | [] | no_license | Mohibtech/antonym | 9b3f81def92043dbe2d9fee4d38c0e7fd533a475 | 89781b6b3428f21997a2f9e687d0688ab78ab2ca | refs/heads/master | 2020-04-27T02:20:13.920032 | 2013-01-13T00:36:18 | 2013-01-13T00:36:18 | 173,990,863 | 0 | 0 | null | 2019-03-05T17:27:56 | 2019-03-05T17:27:56 | null | UTF-8 | Python | false | false | 9,792 | py | import logging
from google.appengine.ext import db, search
from google.appengine.api import users
from katapult.log import LoggerFactory
from katapult.models import entity_has_property, IdGenerator
from antonym.core import IllegalArgumentException, NotFoundException
def strict_key_lookup():
"""
decorator t... | [
"mhawthorne@gmail.com"
] | mhawthorne@gmail.com |
2f81c857ad70cb625554c4685c89572ec852b616 | e79fcba3028185673337b657d42d104249a936ab | /main_keyword_extraction.py | 1a895944ece983c77b3b9dbfe6a4d39340506965 | [] | no_license | NusretOzates/TransformerFromTheGround | a7701438105bf8261589d49108f4b89a6774a2bc | a3b6f194ed594742613d95a0c306218cd877db96 | refs/heads/master | 2023-04-19T13:14:00.092586 | 2021-05-06T19:26:25 | 2021-05-06T19:26:25 | 364,676,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,174 | py | ### This is a deprecated file, to see nice example look at the main_tr_to_en.py file!
import tensorflow as tf
import time
from tokenizers import BertWordPieceTokenizer
from transformers import T5TokenizerFast
from learning_scheduler import CustomScheduler
from models.transformer import Transformer
from utilities impo... | [
"nozatespc@gmail.com"
] | nozatespc@gmail.com |
757e6d2de18eccf6e3b67a96e24952d1ff951630 | 384a30df1d8ed9c811c6ceed3db42eb3b5fe83ba | /configs/ocr/cascade.py | aff1403368b70e014a327c5466c89990595aee8d | [] | no_license | clw5180/prcv-ocr-detection | 4a04300d1ebc7605b6f17467c5375464e79a5635 | 7c6187d9cfde3e91de84a25d36f359295e411ce6 | refs/heads/master | 2021-04-22T18:34:07.879055 | 2019-11-08T07:50:38 | 2019-11-08T07:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,514 | py | # model settings
model = dict(
type='CascadeRCNN',
num_stages=3,
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
style='... | [
"hope@peterzhangdeMacBook-Pro.local"
] | hope@peterzhangdeMacBook-Pro.local |
7f5f88e7d894c4c6be190b9fd4c1111002cfb9fb | 3e9b9c0257f7b009aa37dfc75524333ba6edc44e | /src-Webpage/old/main_old.py | 6aa222c8dd5d205ca7791a5fd3452b784a322b45 | [] | no_license | jaguila/councilmatic | dcf461b077194a1be04310ec2ef575aa95e71c46 | 5b00aa1f704ed3db866ee5039c87f13efd7dd915 | refs/heads/main | 2023-03-09T18:33:04.124110 | 2021-02-24T01:07:31 | 2021-02-24T01:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,874 | py | # THIS IS NO LONGER USED IT IS FOR REFERENCE
#
# This program creates a web page
# Create by Howard Matis for OpenOakland - October 19, 2018
#
# Takes data scraped from Oakland Legistar web page - https://oakland.legistar.com/Calendar.aspx
#
import csv
from datetime import datetime, timedelta
import shutil
from creat... | [
"hsmatis@gmail.com"
] | hsmatis@gmail.com |
bfc341b43e90e607ae4959008f9a5864d4b91510 | 9c6b4fd7e92918a7e9962ad6156b91b0eba0087e | /gossip/__init__.py | 9f920f4b01416c553063c44b4483080553f18fde | [] | no_license | schatt/gossip | 2145e26ddf50e35d060eedd2ea1575e9f3ebe45f | 2d772125332667b78f1dc001458c764077a2e5b3 | refs/heads/master | 2021-01-18T07:41:11.752950 | 2012-11-08T22:18:56 | 2012-11-08T22:18:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | """
Gossip module.
"""
| [
"rudnyh@corp.mail.ru"
] | rudnyh@corp.mail.ru |
821dcfad9c455b3d5649a9d49a2739ac928f2005 | 1b1e8e73649ad1eed89556a5d479b0a549354fd5 | /opennem/db/migrations/versions/12c8cbba29f0_update_mv_facility_all_view.py | 0cb19d2383f03ce37029805efd331870c6553bbc | [
"MIT"
] | permissive | zalihat/opennem | 3ea8db7246f350fb0eacf8c6078dbffa4fe9aea2 | 0f82e4fc3fd2bcfbf56a2741d89e4228d017dcf3 | refs/heads/master | 2023-02-27T15:37:47.206336 | 2021-02-08T07:28:57 | 2021-02-08T07:28:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | # pylint: disable=no-member
"""
Update mv_facility_all view
Revision ID: 12c8cbba29f0
Revises: 3f6867b6de7e
Create Date: 2021-01-19 17:15:59.557141
"""
from alembic import op
# revision identifiers, used by Alembic.
revision = "12c8cbba29f0"
down_revision = "3f6867b6de7e"
branch_labels = None
depends_on = None
stmt... | [
"git@nikcub.me"
] | git@nikcub.me |
157f95fbb9a5d858c93915e607ca89bf51d90eee | 5eafdf502a7545ba33adedca2692aed7a20d129b | /books/migrations/0006_auto_20191201_1446.py | 3e812a6c3aaf138809e2388a82b89273734d7a40 | [] | no_license | tsuno1045/TadokuRecord | 9e28555f34a54b0d01f90526278882b0ed8f40ab | 8cee1fa3eed39da52120716f2a0fb9aef110b0f7 | refs/heads/master | 2021-09-27T00:13:42.315646 | 2020-04-24T17:18:41 | 2020-04-24T17:18:41 | 228,169,711 | 0 | 0 | null | 2021-09-22T18:16:23 | 2019-12-15T10:59:26 | Python | UTF-8 | Python | false | false | 587 | py | # Generated by Django 2.2.7 on 2019-12-01 05:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0005_auto_20191201_1442'),
]
operations = [
migrations.AddField(
model_name='readingrecord',
name='read_pag... | [
"tsuno1045@gmail.com"
] | tsuno1045@gmail.com |
d7f7a0cf28f990fa3f14fef754d51440f5c3f5f2 | 1db9fb289ac9987cd206d3736d2399ed59bebac6 | /6 Типы данных/6.1 Числовые типы данных: int, float/2.py | be9488f6ff24dbb26c3fb8e8b92204e369d1c3d0 | [] | no_license | vqpv/stepik-course-58852 | 780576c291aad481612d547405acb2bdf85b9feb | bcc1afbae4d8f35bc825e6cedb6645a4afa0604c | refs/heads/master | 2023-05-13T07:36:49.331649 | 2021-06-02T20:31:41 | 2021-06-02T20:31:41 | 309,791,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | s, v1, v2 = float(input()), float(input()), float(input())
print(s / (v1 + v2))
| [
"raxer93@mail.ru"
] | raxer93@mail.ru |
c43e9f244010e00a1d2ac7ef61e8a358e7114137 | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /nearest_exit_from_entrance_in_maze.py | 09ca501f24559d8dce1ac7e51885cbd6b539e663 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 3,839 | py | '''
You are given an m x n matrix maze (0-indexed) with empty cells (represented as '.') and walls (represented as '+'). You are also given the entrance of the maze, where entrance = [entrancerow, entrancecol] denotes the row and column of the cell you are initially standing at.
In one step, you can move one cell up, ... | [
"noreply@github.com"
] | erjan.noreply@github.com |
16e30da4b6f91ca32176574c0adce3cd21cfc776 | b7e5f03fa633a6a2d86fec39c4afee5186bb9b42 | /scripts/doug | a99efc64846eac4eab0f3da893704e199c64aabe | [] | no_license | moretea/doug | 858a59914d5f13120ab462224a4c0ee4f091146a | 1ff4acdba0e6d4167f9a79c6790cc4ba4d2b56b2 | refs/heads/master | 2021-05-09T04:27:49.033901 | 2018-01-28T16:12:40 | 2018-01-28T16:12:40 | 119,274,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | #!/usr/bin/env python
from gui.application import Application
from gui import Gtk
# Initialize application
Application()
# Make CTRL+C work in GTK
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
# Run GTK main loop
Gtk.main()
| [
"maarten@moretea.nl"
] | maarten@moretea.nl | |
71dce96d87c61d035b1a2b7516eb19663198d0ea | 5855d7432fecdf58341d8410ed34a1ccf13b516c | /algorithms/flat.py | 225b784b060166bc71d6b626eaafed988ce326f6 | [] | no_license | zyz10086/leetcode | 376fc648b218e869e1213dbbbb12a07751cb35a3 | 2358c417d4d31739e79e965e1a0093db9e7a6b1b | refs/heads/master | 2022-10-01T10:20:44.518761 | 2020-06-07T12:48:36 | 2020-06-07T12:48:36 | 259,667,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # 给你们个题玩玩:
# 写一个flat函数,拍平一个数组,数组内可能有多重嵌套,例如这种:
# [1,"2",[3,"4",[5,undefined,[null,[1,[2,3,[{}]]]]],null]]
# 拍平后返回
# [1, "2", 3, "4", 5, undefined, null, 1, 2, 3, {}, null]
# 要求不能使用语言提供的原生flat方法,不能使用第三方库,不能使用递归
# [1,2,[3,[4]],5]
def flat(datas):
if(not datas):
return datas
res,stack = [],[]
tmp,tm... | [
"693076854@qq.com"
] | 693076854@qq.com |
f19b5bd0d68a0ea60efb0252df8167f299652108 | 5da6e6cc655421038efc1e4fcb4bd28b36055a11 | /Python/cadenas.py | 2fd8a725981e869e95f05a88bcea5e7359f2ccd4 | [] | no_license | rmlu20xx/MiPrimerRepositorio | 2ea8b408f927fbb9fa4e97d07d50b8b9a1d68214 | 9512e8211fb8d47b1da6c022553e5218184b1ab0 | refs/heads/master | 2023-07-20T05:47:53.120660 | 2021-09-07T01:31:28 | 2021-09-07T01:31:28 | 403,801,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | #***************************************************************************************************************************************************
#***************************************************************************************************************************************************
# ANALIZANDO CADENAS
#... | [
"rmlu20xx@gmail.com"
] | rmlu20xx@gmail.com |
79c023c03992644798a3cfc41a250db969961b86 | 5cb29d1ddd97f5836ed407bb82ee340c3c49169f | /py/examples/client_send_request.py | 155452b1687a5f30a206409fb40438ca499ba0ed | [
"MIT"
] | permissive | Mee6/loqui | 6de1ce7a192303d60dd165199ac9f870e4a83406 | 34c7d1c016ed646589068536987a04c4cdae0696 | refs/heads/master | 2020-05-07T09:08:04.082314 | 2019-04-09T12:40:26 | 2019-04-09T12:40:26 | 180,363,712 | 2 | 1 | MIT | 2019-04-09T12:39:11 | 2019-04-09T12:39:11 | null | UTF-8 | Python | false | false | 125 | py | from loqui.client import LoquiClient
client = LoquiClient(('localhost', 4001))
print len(client.send_request('hello world')) | [
"me@jh.gg"
] | me@jh.gg |
6304c7501303e467156ad1a4ee7a4123d27ec28a | 642401fc5ed408de3d9cf44cd66a73ed4937415f | /Scraping/models.py | c4e060b11dafa81f4f6c708fc14bf10d7bfddff2 | [] | no_license | cacamacho6/Scraping | 632df28848950aef358b3e6966fb3d4e5377e503 | 0a9403775b84cec1c21677209c1cf1d61e78986c | refs/heads/master | 2020-12-11T02:43:06.500216 | 2020-01-14T06:33:48 | 2020-01-14T06:33:48 | 233,770,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from django.conf import settings
from django.db import models
class Producto(models.Model):
titulo = models.CharField()
precio = models.CharField()
envio = models.CharField()
def _str_(self):
return self.titulo
| [
"carloscamacho09@hotmail.com"
] | carloscamacho09@hotmail.com |
0d0aeca39228f1876ddd1e96fff08303e582462d | feb4dbe7f57b617151bf2e85f202ba423955513a | /hdv/redfish/conftest.py | b1d8d5f0ea7324d8b9efd34ff74153d3794d2d9d | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | opnfv/cirv-hdv | 6d91a0c19c9f970dd1e991718b0f0ef957fd71f7 | 2d145d4f1fd231def2c9d52a71267031b938c0ac | refs/heads/master | 2023-01-23T12:27:33.545466 | 2020-11-18T03:21:10 | 2020-11-18T03:21:10 | 293,824,124 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | import pytest
from hdv_redfish import read_yaml, parse_config
def pytest_addoption(parser):
parser.addoption(
"--cases", action="store", default="./conf/cases.yaml", help="case yaml file"
)
parser.addoption(
"--config", action="store", default="./conf/pdf2.0.json", help="given global config... | [
"shivam828787@gmail.com"
] | shivam828787@gmail.com |
675455d54ade58bd3490f43bcfb4faa5e0edaf0b | f829b3c47acd05a48991dfd28431a2628cf7d62c | /blog/views.py | 1d94385e891151bf588f57f119b128c762308970 | [] | no_license | jamcoy/Django-blog | 18d6831969ee36e4ebeca5d1e2f0231ae155a175 | 40a631f9375a2b711d4142d9533002c1c8d2bcbd | refs/heads/master | 2020-07-12T11:51:17.386761 | 2016-12-02T13:24:08 | 2016-12-02T13:24:08 | 73,909,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
from .forms import BlogPostForm
from django.shortcuts import redirect
def post_detail(request, db_id):
"""
Create a view that return a single
Post object based on the post ID and
and rende... | [
"james@coynemail.net"
] | james@coynemail.net |
af5289946025cce438a0d5c1c4207ff8809d349e | 8a6db656031a7225c9a27ec830f93fff12b612be | /tests/settings.py | a3a1ce02052c9513de957f3eb438d10e70424527 | [
"BSD-3-Clause"
] | permissive | arneb/django-campaign | aa149bb5724bf6e2a1f7024d2402e09d95418951 | 181d96d1af31f60f426b64ea79fc9acd6608a001 | refs/heads/master | 2023-07-07T12:55:51.237537 | 2023-06-30T13:26:34 | 2023-06-30T13:26:34 | 8,314,115 | 57 | 27 | BSD-3-Clause | 2023-08-16T09:28:43 | 2013-02-20T14:00:23 | Python | UTF-8 | Python | false | false | 2,402 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: keep the... | [
"mail@arnebrodowski.de"
] | mail@arnebrodowski.de |
f579e96041e0b2e5e50434649ec9ccf0fc33072b | 397ee3067ccd999bd1dc7d3e2779961d9dfb92f0 | /backbone/MNISTMLP_OC.py | 7ad88caa644e96d2f7b9aebe3e860f6b1385abc5 | [] | no_license | tq-zhang/ILCOC | afd491cf8c5c070335494fb32710ffba0a2aba28 | 14de25e22f975d88fcb408416a86a26ba8e8d71f | refs/heads/main | 2023-08-02T20:37:45.323567 | 2021-09-21T11:49:00 | 2021-09-21T11:49:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,023 | py | # Copyright 2020-present, Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, Simone Calderara.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import torch
import torch.nn as nn
from backbone import xavier, num_... | [
"swjyouxiang@126.com"
] | swjyouxiang@126.com |
a89b19068362d568996f1248eb937e7a3f09c0d2 | 5e358c2f37e8e2b329b412bc153377d3b62e916d | /tests/test_doctest.py | 9344c70d5723c0e4646249977ad200bbbc955fb3 | [
"MIT"
] | permissive | miketheman/pytest-socket | 3f81470c2dd12f9769a98482013130aa4d6c4ee7 | bdf012cffdfd6606dfac504fa033a3ca55b374ee | refs/heads/main | 2023-08-07T22:30:32.218725 | 2023-07-31T23:41:04 | 2023-07-31T23:41:04 | 93,013,711 | 233 | 42 | MIT | 2023-09-12T00:39:48 | 2017-06-01T03:43:01 | Python | UTF-8 | Python | false | false | 326 | py | def test_function_with_doctest(testdir):
testdir.makepyfile(
'''
def my_sum(a, b):
"""Sum two values.
>>> my_sum(1, 1)
2
"""
return a + b
'''
)
result = testdir.runpytest("--doctest-modules")
result.assert_outcomes(pass... | [
"noreply@github.com"
] | miketheman.noreply@github.com |
1af00bc3688f5f95b5a75de652d9bcd3650618be | 36885d07b9a5fa3d805547d99457ccbce7211fea | /isprime.py | 235c68d316a34c64a49fb1649791e29e3f4dd72e | [] | no_license | kks18/solutions | ee25cc16540cc531bb0f76f525c19ef6be209690 | c39026acee2c80bdab7f809b385feb82b4a05dc4 | refs/heads/master | 2020-04-09T16:41:26.659671 | 2018-12-05T04:39:43 | 2018-12-05T04:39:43 | 160,459,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py |
#function definitions
def IsNum(x):
if x % 2 == 0:
print "%d is not a prime number" %x
elif x == 1:
print "1 is a prime number indeed"
else:
print "%s is a prime number" %x
x = input('enter a number')
IsNum(x)
| [
"kks2018y@gmail.com"
] | kks2018y@gmail.com |
a0e99c6c50719741c81822c086a9c47b494cfd24 | 48fff5012b0459f7f7cd3a4374b7c56351461409 | /_utils/util_evaluate.py | 344ed1985408f3005cd1a2cf7a8581307e20b9ed | [] | no_license | ikesan009/CCSSAV-SpeechEnhancement | 5bd16fe9b8086691f03d48c8a53a0d2b066e0508 | 5a98db38e70ee4802eb52cac5f8ab18d80cf5be7 | refs/heads/master | 2023-03-13T17:59:56.433503 | 2021-03-09T07:17:49 | 2021-03-09T07:17:49 | 345,915,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | #coding: utf-8
import math
import pickle
import numpy as np
from pypesq import pypesq
from collections import namedtuple
import _utils.data_processor
Sample = namedtuple('Sample', [
'speaker_id',
'video_file_path',
'speech_file_path',
'noise_file_path',
'video_samples',
'mixed_spectrograms',
... | [
"ikesan009@gmail.com"
] | ikesan009@gmail.com |
d3398311ad24bdba3ea54ffed03ff46a20de77fc | 2d634953149d5e6c793123349b1d56606a945c41 | /bin/freeze_graph | 342bf4965165eda9e404d8918a817600f4a511b0 | [] | no_license | Bhoomikapanwar/S-P-Index-Predictor | cb705bbf7ad2b8d9713bc5ad68302001ceb8f862 | c53418079226a246dac37d9fa21237bd43c9edd5 | refs/heads/master | 2020-04-03T22:21:02.002222 | 2018-07-25T16:35:43 | 2018-07-25T16:35:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | #!/home/shivam/gitRepos/stockPricePredictor/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from tensorflow.python.tools.freeze_graph import run_main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_main())
| [
"shivam.mcs17.du@gmail.com"
] | shivam.mcs17.du@gmail.com | |
9d786ce994891cf351b32beb491a051eb0956581 | 1418e843a6535d934cd3b0d4452de00eaa37b6ad | /02.Part B/19.graph-algos/graph.py | f6895cdee03a899aa034502fcafcadb9183388f0 | [] | no_license | filvi/sciprog | afdd9bb629570a381c0f71d3451946708a943f83 | 1393ca95e8645f608826bd43cd6bfa488229853e | refs/heads/master | 2023-02-02T12:30:31.847045 | 2020-12-16T10:17:27 | 2020-12-16T10:17:27 | 310,028,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,160 | py | import pprint
from queue import Queue
from collections import deque
DEBUG = True
def debug(msg):
if DEBUG:
print("DEBUG: ", msg.replace('\n', '\n' + (' '*8)))
#PrettyPrint(indent=4)
pp = pprint.PrettyPrinter(indent=4).pprint
pformat = pprint.PrettyPrinter(indent=4).pformat
class DiGraph:
""" A simple... | [
"fil.vicari@gmail.com"
] | fil.vicari@gmail.com |
6e5fbc9f665ac5fad6c6debd465470d6056c7bef | 6cf01d84ec49050ffa0a5f4f10e79c89e3970818 | /gufm1/__init__.py | 550cd7a479d6531766edf144c76417d9a897bd2a | [
"MIT"
] | permissive | nknezek/gufm1 | 1a4e72df6f826dadae6b46b96239165de5556823 | a0ca60aa9b1932bfc63713ce8d95d0443746aa3c | refs/heads/master | 2022-02-18T20:00:48.718995 | 2016-03-14T22:31:57 | 2016-03-14T22:31:57 | 52,418,205 | 0 | 1 | MIT | 2022-02-07T02:00:44 | 2016-02-24T05:56:12 | Python | UTF-8 | Python | false | false | 20 | py | from .gufm1 import * | [
"nknezek@mcc-411-6.geo.berkeley.edu"
] | nknezek@mcc-411-6.geo.berkeley.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.