blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c0ab73bc219a7184f6cbe57fe918ab6749aced2 | 797e98f66262a1f85ee3776028db520155045649 | /tests/player_test.py | a581e3a057edc68737ddc699b84d17f1268f4fab | [] | no_license | saskenuba/oop-casino-practice | f396f18ca512194520be0e1f85ef747b78bc5a28 | 65b9dffe906f45d12f3cc645fe5ceb125779876a | refs/heads/master | 2021-05-13T21:58:09.185386 | 2018-01-29T11:49:03 | 2018-01-29T11:49:03 | 116,476,605 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,923 | py | import unittest
from classes import Wheel, Table
from roulette import RouletteGame
from player import Passenger57, Martingale, SevenReds, PlayerRandom, Player1326
from player import Player1326ZeroWins, Player1326OneWins, Player1326TwoWins
from player import Player1326ThreeWins
from binbuilder import BinBuilder
from exc... | [
"martin@hotmail.com.br"
] | martin@hotmail.com.br |
ed581a13d5d3351cfc0b895f52666c695bf53ec4 | b6c3f3eb034ee9c19914633d1d48a897e92767cb | /Summarizers/forms.py | 6d33280e46944383fcd405244f3f4b064fd7fabd | [] | no_license | Birhant/Document-summarizer | 809420c31c27664c878b900df0965ef21065852e | a8a0270f382d9f8bc323c3042032d178c39f6083 | refs/heads/main | 2023-08-18T19:13:47.464356 | 2021-09-19T21:24:32 | 2021-09-19T21:24:32 | 408,151,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from Summarizers.supporters.get import preprocessor
from django import forms
from django.forms import widgets
from .models import PickledModel
from django.core.exceptions import ValidationError
import os
def validate(value):
path=value.url
valid_types=[".pk"]
_,base=os.path.split(path)
name,ext=os.path... | [
"birhancity@gmail.com"
] | birhancity@gmail.com |
597f6e44b90374e56fd32df848bc609cc1e37273 | 733496067584ee32eccc333056c82d60f673f211 | /idfy_rest_client/models/signer_info.py | be68e6b47d5cff31143fcbe749d6914360bfe06d | [
"MIT"
] | permissive | dealflowteam/Idfy | 90ee5fefaa5283ce7dd3bcee72ace4615ffd15d2 | fa3918a6c54ea0eedb9146578645b7eb1755b642 | refs/heads/master | 2020-03-07T09:11:15.410502 | 2018-03-30T08:12:40 | 2018-03-30T08:12:40 | 127,400,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | # -*- coding: utf-8 -*-
"""
idfy_rest_client.models.signer_info
This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io )
"""
import idfy_rest_client.models.mobile
import idfy_rest_client.models.organization_info
class SignerInfo(object):
"""Implementation of th... | [
"runes@unipluss.no"
] | runes@unipluss.no |
ec2324a282e94a826a991a83f03f98d3cb8c334b | 23684ea5e38a73fe3fad19475c0e56f6b2d58e6f | /app.py | 0dcc55885c27bc1d39cfc169ca7bd7ab7fd79109 | [] | no_license | Udaykiran87/LinearRegression_ai4i2020.csv_deployment | 0fdbb44da9493df93bb05567bbdb8298c4c89e11 | 390f770e4a8c305af0492d8e01f35405d054eb90 | refs/heads/main | 2023-07-17T23:11:48.213783 | 2021-09-06T09:59:09 | 2021-09-06T09:59:09 | 403,362,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,731 | py | from flask import Flask, render_template, request
import pandas as pd
import matplotlib.pyplot as plt
import pickle
from pandas_profiling import ProfileReport
import numpy as np
from sklearn.linear_model import LinearRegression
from statsmodels.stats.outliers_influence import variance_inflation_factor
from joblib impo... | [
"uday.patnaik@gmail.com"
] | uday.patnaik@gmail.com |
5589fa21b174c17f478fe57246aa63d218d815f0 | a58c8ec6f6f95fd9f24e7c326b476aae15e99bca | /NextGuesses.py | 75064507575c237514975b1cd5f9ad1fd1343b4c | [] | no_license | peggypan0411/snake_game | 38a36f17a28a30b0ae8182957e5af59486cff4f1 | 06fb470eaf2d20c4fc798564bff733a18cf15d4c | refs/heads/master | 2022-01-10T19:36:17.132926 | 2018-08-03T13:45:58 | 2018-08-03T13:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,935 | py | import random
import DelineateNetwork
import numpy as np
import FileSettings
import CreateGuesses
import Objective_functions
import Generations
def read_initial_parameters(inputfilename):
subc_params = []
subarea_params = []
global subc_names
subc_names = []
subcatchment_parameters =... | [
"noreply@github.com"
] | noreply@github.com |
e569e62df990823b645a87b476a01bd945d7f587 | 241c61be6061690699eb84cec2d72fe6eb91bad9 | /Q2.2.py | a464c381820c2e3058e74e40b1c6af735b00455f | [
"MIT"
] | permissive | leobouts/Merge_join_database_queries | de855fff9fe4a834cfb77b0a875563e86a65b665 | 3e41f75384796d503e968ca79d6b8d5a4915e50e | refs/heads/master | 2022-11-12T14:25:50.730505 | 2020-07-06T13:02:54 | 2020-07-06T13:02:54 | 277,543,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | import csv
def generateNextRowOfRatings():
with open('imdbData/title.ratings.tsv') as ratings:
reader = csv.reader(ratings, delimiter='\t')
for row in reader:
yield row
def generateNextRowOfBasics():
with open('imdbData/title.basics.tsv') as basics:
reader = csv.reader(basics, delimiter='\t')
f... | [
"leobouts@gmail.com"
] | leobouts@gmail.com |
040bdd66365e5a02822e473720f07843ff4c6112 | e5d0bb7241300507941746fe1134e047ee9511a4 | /app.py | 2077d55294351039186a925baffa90f0762f62ce | [
"Apache-2.0"
] | permissive | noelbk/cc4-project1-python27 | d3c99250756978c19a00f6bb9e40b08c48338bcc | 403b7678862dee48b0a5764e048f3377b1b33643 | refs/heads/master | 2020-06-12T19:27:05.715667 | 2016-12-06T23:25:49 | 2016-12-06T23:25:49 | 75,764,857 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #! /usr/bin/env python
import datetime
from flask import Flask, request, send_from_directory
app = Flask(__name__, static_url_path='')
@app.route('/')
def hello_world():
return """
<h1>Hello OpenShift</h1>
<p>From noelbk at %(now)s.</p>
<p>Deployed on Openshift at <a href="%(url)s">%(url)s</a>.</p>... | [
"noel@burton-krahn.com"
] | noel@burton-krahn.com |
11fad38dc34588ed44dd250c8b3bee034cee5107 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03495/s959914177.py | 79888ecf7a1c1e5617d415a8a5f3fbe869a319b8 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from collections import Counter
N,K=map(int,input().split())
A=list(map(int,input().split()))
c = Counter(A)
val = sorted(c.values())
if len(val) <= K:
print(0)
exit()
print(sum(val[:len(val)-K])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e4cc0112a33a78a68c92910a3405e4f59601922f | 80220579951046b30e5873ec42d8a31770a06b71 | /authentication/views.py | 8449872e5f3693eabf19d7e140a115f8d093e02a | [] | no_license | Mohamed2011-bit/hdya-api | 676e39e6ab8a2e50b26383ba06acc43274ef326e | fa213c36c6f88702cc6afd8d7f63c1d7bfc19956 | refs/heads/master | 2023-02-09T04:07:02.144404 | 2021-01-05T12:18:51 | 2021-01-05T12:18:51 | 326,989,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from django.shortcuts import render, HttpResponse
from django.http import JsonResponse
from rest_framework import viewsets
from .models import User
from .serializers import UserSerializer
# class UserViewSet(viewsets.ReadOnlyModelViewSet):
# queryset = User.objects.all()
# serializer_class = UserSerializer
... | [
"egyria2011@gmail.com"
] | egyria2011@gmail.com |
a728af285352f2bc6175af70b01b5f0761313a71 | acf5a0ea75b92eb8d082f04961a7646d8ccf7b32 | /passpie/database.py | cf67372c689b4ec9ef0d8045fd5348f847a064c1 | [
"MIT"
] | permissive | mauriciovieira/passpie | 6f9c98ba086bfe10a9d2c964c473507feba22586 | bd0f5cca6ce12fc4469f4007199bef7ab3b8980e | refs/heads/master | 2021-01-18T08:56:23.853489 | 2016-01-26T07:03:26 | 2016-01-26T07:03:26 | 50,439,403 | 0 | 0 | null | 2016-01-26T15:49:43 | 2016-01-26T15:49:43 | null | UTF-8 | Python | false | false | 3,841 | py | from datetime import datetime
import logging
import os
import shutil
from tinydb import TinyDB, Storage, where, Query
import yaml
from .utils import mkdir_open
from .credential import split_fullname, make_fullname
class PasspieStorage(Storage):
extension = ".pass"
def __init__(self, path):
super(Pa... | [
"marcwebbie@gmail.com"
] | marcwebbie@gmail.com |
419777ed9481857ad070ceddf25ce35d70a0057d | b477642c2897655ce51987a3866a8b5c6ebcdaba | /NLPCC_WORDSIM/Proc/LR/__init__.py | b72315133f048a4612ebf0decdb88aebc72400cc | [] | no_license | ppsunrise/NLPCC-2016-WordSim | 4ccbda149d24a0258a7d21f247e196e50f0c76cc | 379a66487e6e2369a7354207e29cb10ba88d430a | refs/heads/master | 2020-04-05T19:03:08.170273 | 2016-09-26T11:04:34 | 2016-09-26T11:04:34 | 67,658,256 | 0 | 0 | null | 2016-09-08T01:48:11 | 2016-09-08T01:48:11 | null | UTF-8 | Python | false | false | 107 | py | # encoding=UTF-8
"""
@author: Zeco on
@email: zhancong002@gmail.com
@step:
@function:
"""
| [
"zhangcong002@gmail.com"
] | zhangcong002@gmail.com |
934914f8511d88b19437f2a1f858134949506837 | 2d6b5bf0a3a233ae9183d08981acda8254583c7c | /Unidade4/procura_palavra.py | cb9d00828bc4cbb4e471bf29bd505e3df068ca21 | [] | no_license | RaquelFonseca/P1 | 62a98f1cc92b6d63bb7945cfb55372b8c2a17819 | d89187ae58dacfbec783f51fac734ff4a2be6661 | refs/heads/master | 2020-03-28T21:43:41.093742 | 2017-06-17T13:19:21 | 2017-06-17T13:19:21 | 94,622,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | #coding:utf-8
palavra = 'alomundo'
busca = 'mu'
posicao = 0 # vou precisar para comparar com a proxima letra da palavra, sem voltar para o inicio dela
contida = False # controle de verificacao
for index in range(len(palavra)):
if busca[0] == palavra[index]:
posicao = index #atualizo a posicao
contida = True # at... | [
"raquel.fonseca@ccc.ufcg.edu.br"
] | raquel.fonseca@ccc.ufcg.edu.br |
7ec84d7f205c037e07a1896a5ffa3fbe25e8d10c | d03b4c8e4e1eafbfaf19859c045cae8b880a460b | /scripts/tasks_scripts/cpus/generate_data.py | 867635dd34fbd67a63b6e776586fc4a62d93ad0f | [
"MIT"
] | permissive | MTz12/ratatoskr | f77b43080c3ea4ea4ad4298cfe2df2daf115b7bc | d8c117a0c77fd86464ebe1c1717e23c87439f396 | refs/heads/master | 2023-05-27T06:52:57.247309 | 2023-05-16T11:11:15 | 2023-05-16T11:11:15 | 250,216,036 | 0 | 0 | MIT | 2020-03-26T09:35:57 | 2020-03-26T09:35:57 | null | UTF-8 | Python | false | false | 3,146 | py | import xml.etree.ElementTree as ET
from xml.dom import minidom
def prettyPrint(elem):
"""Return a pretty-printed XML string for the Element.
"""
rough_string = ET.tostring(elem, 'utf-8')
reparsed = minidom.parseString(rough_string)
return reparsed.toprettyxml(indent=" ")
########################... | [
"jan.joseph@ovgu.de"
] | jan.joseph@ovgu.de |
8f92b88728ac56410ba502ac5efbdf5bfc9b72c8 | c540740aa24064f6adc4fe7640231412632911c8 | /DataPreparation.py | 30d502e42200df28e98aba4722e3de8e4475ca6f | [] | no_license | YunusKaratepe/Voice-Emotion-Analysis | 59d8a63e4f27c2428bccbeb01f6e559065a2d689 | f9678085874af95747707e1b06943ac79b4d1a30 | refs/heads/main | 2023-06-08T18:22:14.424867 | 2021-07-02T08:38:06 | 2021-07-02T08:38:06 | 357,509,623 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | # -*- coding: utf-8 -*-
"""
Created on Sat May 1 19:20:23 2021
@author: ilker
"""
import os
from shutil import copy
def changeName(directory):
workDirectory = directory + r'Augmented_Mel_Spectrograms-20210501T153934Z-001/Augmented_Mel_Spectrograms/Derivative_Augmentation_128_Order1/'
for filename in os.lis... | [
"noreply@github.com"
] | noreply@github.com |
4155f8276b6bce78b013ee04b5130f7cc76ce673 | c55ca3f5fccf24c963209270b03edc774631615c | /main.py | 61387daf95eb5a70ca28bb9cd6e7733955192db9 | [] | no_license | Changjinxing/titleCrawler | 38d081f6a5df84a617752e50b05bc57640b01e9e | 30faaa0f24e7112987b9a0b393682b6b0492222c | refs/heads/master | 2021-01-16T21:50:59.232770 | 2016-07-31T02:44:02 | 2016-07-31T02:44:02 | 64,399,453 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | # coding: utf-8
import threading
import Queue
from spider import Spider
from general import *
import sqlite3
# Choose the Project name
WORK_PATH = './'
DB_PATH = './'
QUEUE_FILE_NAME = 'top-1m.csv'
DB_FILE_NAME = 'test.db'
QUEUE_FILE_PATH = WORK_PATH + QUEUE_FILE_NAME
NUMBER_OF_THREADS = 8
DB_FILE_PATH = DB_PATH +... | [
"jinxingbay@163.com"
] | jinxingbay@163.com |
be9eeac0e7d18b2d86a121d7b5c11760f2dcab98 | 7aef9f1f549072c3f005e86ef83807eb457e76f1 | /notes/2017-08-31-polarized-detection/figures/ill-polarization-two.py | 00e763d77d8d3625b04f033f99d79d930a0ed17f | [
"MIT"
] | permissive | talonchandler/dipsim | 3d6b030666d20a3c67d33a6a79e790508faa8fab | 04904871924276fd1662ca15b7224166d271c0d8 | refs/heads/master | 2020-12-31T00:42:12.673766 | 2018-02-03T01:10:33 | 2018-02-03T01:10:33 | 80,641,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,444 | py | from dipsim import multiframe, util
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import matplotlib.patches as patches
import os; import time; start = time.time(); print('Running...')
import matplotlib.gridspec as gridspec
# Main input parameters
col_labels = ['Geometry (NA${}_{\\textrm{ill}}$ =... | [
"talonchandler@talonchandler.com"
] | talonchandler@talonchandler.com |
9728d3469911e999ed53abd170b3c8608947e880 | caaf9046de59559bb92641c46bb8ab00f731cb46 | /Configuration/Generator/python/Upsilon1SToMuMu_forSTEAM_13TeV_TuneCUETP8M1_cfi.py | eaeffad1236fe5b17d942a6e9bfb79db3a17feaa | [] | no_license | neumeist/cmssw | 7e26ad4a8f96c907c7373291eb8df205055f47f0 | a7061201efe9bc5fa3a69069db037d572eb3f235 | refs/heads/CMSSW_7_4_X | 2020-05-01T06:10:08.692078 | 2015-01-11T22:57:32 | 2015-01-11T22:57:32 | 29,109,257 | 1 | 1 | null | 2015-01-11T22:56:51 | 2015-01-11T22:56:49 | null | UTF-8 | Python | false | false | 3,453 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
source = cms.Source("EmptySource")
generator = cms.EDFilter("Pythia8GeneratorFilter",
pythiaPylistVerbosity = cms.untracked.i... | [
"you@somedomain.com"
] | you@somedomain.com |
649bb0bf2824bec1e45eafc3fd20ca5859cb78b6 | 6eee7d27c3bd74c705e85ac7f4476ece0dae54cc | /jobplus8-1/migrations/versions/55551f164231_v1_0.py | f89e1c0a2ed5cd3f578613266a34bf2e8190cc43 | [] | no_license | LouPlus/jobplus8-1 | fa90caaba5c61f89e0ddae0fce2d892d4a2b922f | b751d467fb6a7e11a716a43916c8e1d70c7f55fe | refs/heads/master | 2021-09-08T07:23:53.803014 | 2021-09-01T03:36:27 | 2021-09-01T03:36:27 | 152,206,376 | 0 | 4 | null | 2018-10-29T19:14:19 | 2018-10-09T07:23:04 | Python | UTF-8 | Python | false | false | 4,929 | py | """v1.0
Revision ID: 55551f164231
Revises:
Create Date: 2018-10-30 02:34:18.982619
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '55551f164231'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by ... | [
"noreply@github.com"
] | noreply@github.com |
f8202764eacbf21b84e1afab879c8f6bea7c9820 | ec6f83a3636fdb0d6f2266c56b58ac294eb2a945 | /ntut python/associationRule.py | 5c174b680a9cb0dfb518b5d31898b1cfb5313f2c | [] | no_license | jack20951948/Python-Learning | f65c2aacea6cbe61a8be2539f2959202546adb7d | d683790ba47b73c6360f5f804700c664d40777c9 | refs/heads/main | 2023-06-26T03:43:47.395088 | 2021-07-18T08:00:28 | 2021-07-18T08:00:28 | 387,111,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,601 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import networkx as nx
from apyori import apriori
#pip install apriori
from wordcloud import WordCloud
#pip install wordcloud
def testTensorflow():
hello = tf.constant('hello tensorflow!')
sess = tf.Session(... | [
"j20951948@gmail.com"
] | j20951948@gmail.com |
0a3953d0402b818210f35ac3401f274eb0d96b78 | cae8adc520ee71ffd9cfc82418152b4ec63f9302 | /template_wsgi/demo1.py | 98b1b0acbce69b38b641792d1f5dcb3850bfeb56 | [] | no_license | dong-c-git/WSGIServer | 55111c04f4bbefe239949ddaea16c71221b7f795 | 1f0b58977e2a951f3c6dec335854dd9d6e31cdfd | refs/heads/master | 2020-08-01T17:03:30.307962 | 2019-11-09T01:45:30 | 2019-11-09T01:45:30 | 211,054,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #coding:utf-8
import time
def application(environ,start_response):
status = '200 OK'
response_headers = [('Content-Type','text/html')]
start_response(status,response_headers)
return str(environ)+'==Hello world from a simple WSGI application!-->%s\n'%time.ctime()
| [
"dc111000@hotmail.com"
] | dc111000@hotmail.com |
fd5fb93fd710b6c091ebef0c5ac4ac885bf805fc | dcabc50bb549c3a805009932119a81b415a53baa | /CTCI/Trees and Graphs/list of depth.py | 52c3d9ea36f708512a47b2ce9d37ce9e960f9e88 | [] | no_license | totemw/algorithm | dacf68ac8890a3dbd18b0bc43a10b9a33c7babe5 | 608157956f13fccb663b3a3d888a585dbde78cde | refs/heads/master | 2020-03-18T12:39:16.086385 | 2019-08-21T17:14:26 | 2019-08-21T17:14:26 | 134,736,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | """
Given a binary tree, design an algorithm to create a linked list of all nodes
at each depth
"""
class ListNode:
def __init__(self, val):
self.val = val
self.next = None
# pre-order traversal
def createLevelLinkedList(root, lists, level):
if not root:
return None
... | [
"wyc980402@icloud.com"
] | wyc980402@icloud.com |
3137fe863cec39729918fb311670ec545849db7d | 17568ab855952cb51e9c7aca6d55eec585b596b5 | /mainoeuvres/apps.py | 0df8a50826151bce44c5dccfee4eefb108b31b1e | [] | no_license | kherox/gestion | d5db3fe94bd3521b3ea4d79059835ec97b587715 | fcdfb4cc5dcfce2155fc5d0327db9d2d906397a9 | refs/heads/master | 2020-03-24T12:08:47.938460 | 2018-07-28T19:35:35 | 2018-07-28T19:35:35 | 142,704,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class MainoeuvresConfig(AppConfig):
name = 'mainoeuvres'
| [
"deniskakou7@gmail.com"
] | deniskakou7@gmail.com |
16673573c540a7ba9280ab049455b09d684c3340 | a0fcabe9be3a63cb0b3129c193603e41b23541b9 | /Panels/ModePanel.py | 16a932ca3a077a5785f3d6427fe990b2bd0479ae | [] | no_license | AYWG/awake_bpm_daqcp | 6593b85d7dac3284ca148557dfaf1fc3cc4cb401 | cf6efacc3629f591900b4b68965263de47a01178 | refs/heads/master | 2021-03-24T13:51:56.160740 | 2018-01-07T21:59:28 | 2018-01-07T21:59:28 | 84,608,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,469 | py | import wx
class ModePanel(wx.Panel):
"""
Panel for setting the BPM mode
"""
def __init__(self, parent, title, data_processor):
# scrolled.ScrolledPanel.__init__(self, parent=parent, id=wx.ID_ANY)
wx.Panel.__init__(self, parent=parent, id=wx.ID_ANY)
self.data_processor = data_pr... | [
"student"
] | student |
10d204fc635044b7344518fc74937b94ee00ade7 | 1d0082893f5fd46dd8962470fbbe880fd251f2a8 | /[6-4] Triangle/triangle.py | fe23cdf067a8824846f04fe351b98ff888da544c | [] | no_license | autorsong/codility | c93d2c53847781ad1af135659150f12da66d80d1 | 545c42d9225320aefcf142c7a6a6927af859600e | refs/heads/master | 2022-11-22T19:14:39.339070 | 2020-07-18T09:02:40 | 2020-07-18T09:02:40 | 272,045,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | def solution(A):
A.sort()
for i in range(len(A) - 2):
if A[i] + A[i + 1] > A[i + 2]:
return 1
return 0
| [
"autorsong@hanyang.ac.kr"
] | autorsong@hanyang.ac.kr |
fbee478ecc1dd477bdebf5a09cd472cb2d0ebc20 | c42a085521cec895fac0021eb1638d6f077eadf7 | /PYTHON_FUNDAMENTALS_May_August_2020/Exersice_Objects_And_Classes_26_06_2020/Storage.py | 88a44072c4d4c8e1b26fab959fea06bf9c937ddf | [] | no_license | vasil-panoff/Python_Fundamentals_SoftUni_May_2020 | f645ce85efa6db047b52a8b63d411d2e5bd5bd9a | daf1a27ff1a4684d51cf875ee0a4c0706a1a4404 | refs/heads/main | 2023-01-06T22:20:30.151249 | 2020-11-03T22:56:24 | 2020-11-03T22:56:24 | 309,818,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | class Storage:
def __init__(self, capacity):
self.capacity = capacity
self.storage = []
def add_product(self, product):
if len(self.storage) < self.capacity:
self.storage.append(product)
def get_products(self):
return self.storage
storage = Storage(4)
storage.... | [
"vasil.panov@gmail.com"
] | vasil.panov@gmail.com |
d1dacc66bada8fb4bb99defef2671fabf7268722 | c22b5c68727ef7d351be6db6e4f68965dfd02146 | /blockchain/demo/blockchain.py | 3054280107adae46914daa29c37f16d3262a50fc | [] | no_license | louiewuliyu/mail-by-blockchain | b3baf8a297c78aa0adcba83e5117e079047e0b6d | 5f36f1d0a73027c7db26585ec26b85c36e8f40bb | refs/heads/master | 2020-03-30T15:40:52.549313 | 2018-10-03T07:16:59 | 2018-10-03T07:16:59 | 151,374,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,276 | py | import json
import hashlib
import time
import datetime
import email_track
import poplib
class Email_Content(object):
"""docstring for email_content"""
def __init__(self, content):
super(Email_Content, self).__init__()
self.content = content #list #string
self.id = content[:-1]
#self.timestamp = time.time()
... | [
"lywu0420@hotmail.com"
] | lywu0420@hotmail.com |
d93d8835c160041a3e693371468fd5984274927f | d700b9ad1e0b7225871b65ce0dafb27fb408c4bc | /students/k3343/practical_works/Lukina_Anastasia/django_project_Lukina/django_project_Lukina/wsgi.py | 23224686aaf13ce9ef9f14c3e3d72ca836ae159f | [
"MIT"
] | permissive | TonikX/ITMO_ICT_WebProgramming_2020 | a8c573ed467fdf99327777fb3f3bfeee5714667b | ba566c1b3ab04585665c69860b713741906935a0 | refs/heads/master | 2023-01-11T22:10:17.003838 | 2020-10-22T11:22:03 | 2020-10-22T11:22:03 | 248,549,610 | 10 | 71 | MIT | 2023-01-28T14:04:21 | 2020-03-19T16:18:55 | Python | UTF-8 | Python | false | false | 419 | py | """
WSGI config for django_project_Lukina 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... | [
"lukinanastya97@yandex.ru"
] | lukinanastya97@yandex.ru |
0bf6e651d7edbce0ab4bbe11c7a6e44a4acc18bf | 425c273a996ae6db3ed5ef7858e6a06b525270b7 | /tibanna/base.py | 4f9af45f4a8419f5d8144fc8955e3ca8505bb98a | [
"MIT"
] | permissive | 4dn-dcic/tibanna | cc253f3ff5ab07f7f376db077ef5ea8c05077a94 | 1f04d2d359c948c0da6f69614249334991d162db | refs/heads/master | 2023-08-17T00:13:02.288115 | 2023-08-07T19:13:45 | 2023-08-07T19:13:45 | 63,349,223 | 72 | 22 | MIT | 2023-09-12T20:09:09 | 2016-07-14T15:42:51 | Python | UTF-8 | Python | false | false | 964 | py | import copy
class SerializableObject(object):
def __init__(self):
pass
def update(self, **kwargs):
for k, v in kwargs.items():
setattr(self, k, v)
def as_dict(self):
# use deepcopy so that changing this dictionary later won't affect the SerializableObject
d = ... | [
"duplexa@gmail.com"
] | duplexa@gmail.com |
cf9fa0e13b32bff9e7af7e8a1611caa7f641ca2c | af114acdf78efc6473753145adb842cb8ae14b1b | /lab7_venv/bin/easy_install | 9fa289081a0d921aca57e42877fa7ecae9cbf4b4 | [] | no_license | ahmedt26/CS1XA3 | b2ae639fee2c53e1e25870cad3005244b1f099fa | 85d326591f3bf1e7dc4281a78475b13717fdae00 | refs/heads/master | 2021-10-09T16:08:33.173283 | 2019-04-28T01:55:32 | 2019-04-28T01:55:32 | 168,189,295 | 0 | 3 | null | 2021-10-01T22:50:14 | 2019-01-29T16:38:08 | Python | UTF-8 | Python | false | false | 261 | #!/home/ahmedt26/CS1XA3/lab7_venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ahmedt26@mcmaster.ca"
] | ahmedt26@mcmaster.ca | |
52edde132baa948f29b8e5355cd8839ec7dac34a | bd024bf20a7e03322c7790a6dcaf0937bad6d7c0 | /backend/app/alembic/versions/116c50c6f071_pk_from_user_table_in_identity_added_to_.py | 48444892c7c35483ea9a79740729dbdbf2f26514 | [] | no_license | hiveonlineaps/devops-task | 4279186b831eac5376294c02875aea4c4124ac75 | a3068d6ae07e6f20b13cfc7c0f47f7cb88b327b1 | refs/heads/main | 2023-08-03T17:27:06.951583 | 2020-12-08T04:48:19 | 2020-12-08T04:48:19 | 405,637,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | """pk from user table in identity added to user table in repulation
Revision ID: 116c50c6f071
Revises: 5ecead3a5fd7
Create Date: 2020-11-18 01:09:47.626126
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '116c50c6f071'
down_revision = '5ecead3a5fd7'
branch_labe... | [
"anne.namuli@gmail.com"
] | anne.namuli@gmail.com |
1c15a8f74611c3d902acaada8d3ea3b84236f041 | 8f55625f516526cd1ff4353327dffb2641bd036b | /2. webcam scripts/color_tracking.py | b98580ca506649cd1eb1665c353bdd1915980c4b | [] | no_license | PrateekGoyal18/My-OpenCV-Scripts | 092a700ca085acac6ed31779ee142e92c8e2f82a | 92b826622d57bc0b1c4c20e9e391aa8392586b55 | refs/heads/master | 2022-11-08T04:38:03.371159 | 2020-07-01T13:30:25 | 2020-07-01T13:30:25 | 258,193,588 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import numpy as np
import time
import cv2
blueLower = np.array([0, 67, 0], dtype="uint8")
blueUpper = np.array([255, 128, 50], dtype="uint8")
camera = cv2.VideoCapture(0)
while True:
(grabbed, frame) = camera.read()
blue = cv2.inRange(frame, blueLower, blueUpper)
blue = cv2.GaussianBlur(blue, (3,3), 0)
(cnts, _... | [
"prateekg045@gmail.com"
] | prateekg045@gmail.com |
8f7fa9ee64f3eae13acc71b971a91a617cf3069a | aaf89b226d715bccfa81354402b7dc7f8f7da8e4 | /Snishiki/Ant/初級/データ構造/set.py | 44209f518afe772d3797f6cf748d584ce5358222 | [] | no_license | kyojinatsubori/RoadToRedCoder | 56eec77eaccd1d0cba36dfc7edc8e65d4d311f77 | 72f5330ba8d8fe15a1c3f62a0e1640c3217e6a93 | refs/heads/master | 2021-04-23T21:01:32.425419 | 2020-06-06T08:05:32 | 2020-06-06T08:05:32 | 250,003,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | N = int(input())
d = [0]*N
for i in range(N):
d[i] = int(input())
ds = set(d)
print(len(ds)) | [
"shunj1224@gmail.com"
] | shunj1224@gmail.com |
3d2b1885527a8f369c00f33d381bb06310e21fde | 4314783205aa498038b6060f906d47e92731e290 | /test/functional/rpc_deriveaddresses.py | 21d5708de3558cb2de255e2b2b033101639c7eac | [
"MIT"
] | permissive | mraksoll4/litecoinfinance2 | 411a01360537e5ca097d479a433883441d0e9cb2 | 0e1d3b6d041d2d01559e615ca7f3cdef12146202 | refs/heads/master | 2022-03-03T17:55:47.677736 | 2019-10-30T19:29:15 | 2019-10-30T19:29:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,789 | py | #!/usr/bin/env python3
# Copyright (c) 2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the deriveaddresses rpc call."""
from test_framework.test_framework import LitecoinFinanceTestFramework... | [
"litecoinfinance@gmail.com"
] | litecoinfinance@gmail.com |
25e8922426db6bf553f76635f9254ef4505ce15f | a0ba425c9dc32b4e2face4228b7252d19b303f6f | /data-collection/PST/_discontinued/manual_balance_dataset.py | 24597ee112394378205f6eb7cd358be44430abb8 | [
"MIT"
] | permissive | pabsan-0/sub-t | a1f05c57cc39a9bd4fc92631027f161da927e6a3 | 7217fdbd3ba73a4d807939f3a2646ac9f4f00fe0 | refs/heads/master | 2023-08-14T20:37:22.654859 | 2021-10-05T15:44:22 | 2021-10-05T15:44:22 | 339,476,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | import pandas
import numpy as np
'''
This is a helper script meant for manually extracting a balanced dataset
from a collection of YOLO pictures+annotations.
Requires a prepared csv file!
DISCONTINUED: it is faster to scan the number of instances in a folder an manually move items around
'''
filename = ... | [
"noreply@github.com"
] | noreply@github.com |
a5a63d895a9e68e13d87a4ad0728b7202d87233f | bb0fcb4ddc133d50f8a56097459a772ad5b2f424 | /Phase_3/PacketHandler.py | 07b37b991b90c07a8cd6a48952caff524d1dbc2c | [] | no_license | CPat16/Client_Server | f84990d122a93e16b73e1d6ca5c24bd73581648a | 5e52c477da8f14f6562e1f218130f19da5f1f898 | refs/heads/master | 2020-08-04T15:30:18.696957 | 2019-12-18T18:07:27 | 2019-12-18T18:07:27 | 212,185,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,375 | py | # This file contains the Packet class which handles packing functions
import struct
class Packet():
def __init__(self, seq_num=-1, data=b''):
self.seq_num = seq_num
self.data = data
if(seq_num >= 0):
self.csum = self.checksum(self.seq_num, self.data)
else:
self.csum = -1
self.fmt = '!... | [
"fondu16@gmail.com"
] | fondu16@gmail.com |
fdaa6feee64f198d314c318bec4df6ed4a407efc | e9693a3d566b3a59f08c1a822e01213f48759f0e | /httprunner/parser.py | 43776609d7467f61302be02888e471b2bf74ca1a | [] | no_license | kfusac/MyHttpRunner | 94162f25ae0bddba4099099e0cbe7f247a0bdd17 | 4ffb06246a5c03dbfacaa224561496ee29f2f1ca | refs/heads/master | 2020-03-27T04:17:59.134345 | 2018-08-30T03:02:06 | 2018-08-30T03:02:06 | 145,515,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,309 | py | # !/usr/bin/python
# -*- coding: utf-8 -*-
import ast
import os
import re
from httprunner import exceptions, utils, logger
variable_regexp = r"\$([\w_]+)"
function_regexp = r"\$\{([\w_]+\([\$\w\.\-/_ =,]*\))\}"
funciton_regexp_compile = re.compile(r"^([\w_]+)\(([\$\w\.\-/_ =,]*)\)$")
###############################... | [
"kfusac@163.com"
] | kfusac@163.com |
b155c696a2a8dd91263093b7d99c2201926413c7 | e558e99f3403b5931573789d88c2ad47fffe7362 | /sum/two_sum.py | 7a24bce29b647d3f00253a6d4ffa9dfa70458f70 | [] | no_license | gerrycfchang/leetcode-python | a8a3a408381288a34caada8ca68c47c7354459fd | 7fa160362ebb58e7286b490012542baa2d51e5c9 | refs/heads/master | 2021-05-11T00:38:17.925831 | 2018-07-31T14:50:42 | 2018-07-31T14:50:42 | 118,306,858 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | '''
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input would have exactly one solution, and you may not use the same element twice.
'''
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[... | [
"alfie.gerrycheung@gmail.com"
] | alfie.gerrycheung@gmail.com |
1ba449c89a323feccfaf188abe2ca3cefcabfb28 | 8d042023e261df97d87ddf09edc076db323013a7 | /visual/plot_error_distribution.py | 98438454f0b32c5403949a47f6e262c5699e0873 | [] | no_license | myying/rankine | 8c5f538626590232cb160a53c5a2f6550005d292 | 878eb580253352e72c0871b485bce43226702894 | refs/heads/master | 2022-09-03T19:01:23.053120 | 2022-08-25T11:10:02 | 2022-08-25T11:10:02 | 154,381,581 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | #!/usr/bin/env python
import numpy as np
import rankine_vortex as rv
import graphics as g
import config as p
import matplotlib.pyplot as plt
plt.switch_backend('Agg')
# for x_in in range(41):
# for y_in in range(41):
for x_in in [17]:
for y_in in [29]:
iout = np.array([x_in])
jout = np.array([y_in])
... | [
"hardyying@gmail.com"
] | hardyying@gmail.com |
a1e5b68668893f65f7dad839b9ac38d0e9b9f2eb | 9bbe44641af7e3c4c4fa6e8d228f65304c9adfc7 | /bin/soniccmsscaletest-interpret | 636e87a0b04be08af2e6f38063b25e289b47d7ee | [
"BSD-3-Clause"
] | permissive | Keb-L/soniccmsscaletest | 584076e317ae21085d973ed1e528efcae1ffd82c | 091205607bf71a57dbb06402e5001f0a8de836dc | refs/heads/master | 2021-03-05T08:48:11.285231 | 2020-03-11T18:47:45 | 2020-03-11T18:47:45 | 246,109,185 | 0 | 0 | BSD-3-Clause | 2020-03-09T18:14:18 | 2020-03-09T18:14:17 | null | UTF-8 | Python | false | false | 801 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import soniccmsscaletest
import argparse, datetime
parser = argparse.ArgumentParser()
parser.add_argument(
'-i', '--infiles', metavar='file', type=str, nargs='+',
default = None,
help = 'List of filenames outputted by the sc... | [
"klijnsma@fnal.gov"
] | klijnsma@fnal.gov | |
0225822eeb840ea21393dd7350bdbdacef84178c | 1fbf2532eb85a902769f8ea4d550fded4e7a6944 | /jdwp/commands/__init__.py | e07bc7b85ae7dbe73a9a81c3c94319d06e6b6884 | [] | no_license | soulseekah/pyjdb | 559de43dbdebf3f373a99328ee0622bf8ebe028a | 29db8d98afebcf5090f80eba406bcad64e487282 | refs/heads/master | 2016-09-05T19:40:03.823395 | 2012-12-23T18:45:36 | 2012-12-23T18:51:08 | 6,878,807 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | import virtualmachine
import threadreference
| [
"gennady@kovshenin.com"
] | gennady@kovshenin.com |
866d1c051acc929fded0b916a5dc384cd729456e | 29f18e8ddde0379cef7fa00b1a50058be3cafa79 | /numba/tests/test_make_function_to_jit_function.py | 29161fff594545fffceee89dbe9390cb349f1dc4 | [
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"BSD-2-Clause"
] | permissive | numba/numba | 9a8345ff5f7d57f0ffec40e39941ebf2684df0d1 | 46059957ad416e68476d1e5f32ccd59f7d5df2bb | refs/heads/main | 2023-08-09T22:29:38.170300 | 2023-08-07T15:00:27 | 2023-08-07T15:00:27 | 3,659,275 | 8,247 | 1,151 | BSD-2-Clause | 2023-09-13T14:43:48 | 2012-03-08T11:12:43 | Python | UTF-8 | Python | false | false | 8,288 | py | from numba import njit
from numba.core import errors
from numba.core.extending import overload
import numpy as np
import unittest
@njit
def consumer(func, *args):
return func(*args)
@njit
def consumer2arg(func1, func2):
return func2(func1)
_global = 123
class TestMakeFunctionToJITFunction(unittest.Test... | [
"stuart.archibald@googlemail.com"
] | stuart.archibald@googlemail.com |
2f53f56c0560c7f4ff172de6e383f8c1dc7dffe6 | 7f9dac51bb0c19850f0cb1651c44a1b314298bb3 | /app/admin.py | ee56eeb374ced1fce4567328067a2d1be859f800 | [] | no_license | Manikanndan/Django-Project25-UserRegistrationwitEmail | 5f5b900939f416ccd09f64470750bf1765d24740 | 932c2a793a2d6816246b62ab8eba0cb35f50fc6d | refs/heads/main | 2023-08-14T00:05:28.696076 | 2021-09-29T14:05:01 | 2021-09-29T14:05:01 | 411,698,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from django.contrib import admin
from app.models import *
# Register your models here.
admin.site.register(Profile) | [
"manikanndan.n15@gmail.com"
] | manikanndan.n15@gmail.com |
4e55a601d92c29b22f244e030fe951b5687b9795 | 69c6b92156296ea38a9cb24c56dfb206cd078ec3 | /app.py | e5d8d5a26051dd27d7418a8a46f772b79a3055a3 | [] | no_license | N1ghtF1re/bsuir-get-free-audience-bot | 4d886cd96564321ccaf5fbbb84833741164480f5 | e3e34719187802975197a6d31e79dd6d6e810d92 | refs/heads/master | 2020-03-26T17:19:46.970024 | 2018-08-17T18:45:59 | 2018-08-17T18:45:59 | 145,155,300 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | import requests
import sys
import updateDB
import sqlite3
import os
from getEmployedFromDB import getEmployedAud
from getAudiences import getAudiencesList
db_file = '/projects/parser/db/schedule.sqlite' # Файл базы данных SQLite
try:
# Подключаемся к БД
conn = sqlite3.connect(db_file)
cursor = conn.cursor()
upd... | [
"sasha.pankratiew@gmail.com"
] | sasha.pankratiew@gmail.com |
699d74bdfccb64902879770139ec009f1b017033 | fc26310fd41cf06d27c98088d1cd754119025a13 | /Laboratorio1.py | d76f34768db8a6da784b54809693e56a616a8866 | [] | no_license | JuanPineda115/RPiGPIO | 121cae52bf2de502b6c30ce7021470829c998249 | 23adad0632d2671033d4568373b772da3719cc36 | refs/heads/master | 2022-11-26T18:34:40.461268 | 2020-07-31T03:35:18 | 2020-07-31T03:35:18 | 282,972,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | import RPi.GPIO as GPIO
import time
def Main():
ciclo = 0
tiempo1 = 2
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(2, GPIO.IN)
GPIO.setup(3, GPIO.IN)
GPIO.setup(21, GPIO.IN)
GPIO.setup(14, GPIO.OUT)
GPIO.setup(15, GPIO.OUT)
GPIO.setup(18, GPIO.OUT)
GPIO.setup(23... | [
"pin19087@uvg.edu.gt"
] | pin19087@uvg.edu.gt |
446c77742e62b48ce33d3998b58635e643327fe0 | ac1f594bee57ac383ca2f721a1921435b430e2ae | /2/Activities/03-Hashlib/Unsolved/hashing.py | 2a6718bb9d3cf6a69eb53edf14f726bcfa220083 | [] | no_license | Asheladia/Blockchain | d2ef87c8fd69c6d9a9f389c837cf101b2819dde7 | 984f7eb63083e145be82c0bafef7a1b5e237d2c5 | refs/heads/main | 2023-03-04T12:49:26.023920 | 2021-02-19T19:55:53 | 2021-02-19T19:55:53 | 340,473,680 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | import hashlib
# output sha256 hash in hexadecimal string format
def hash(message):
return hashlib.sha256(message).hexdigest()
# modify these messages
# note: we include the "b" before the string definition in order to represent it as bytes instead of a string
message_one = b"You owe me $100,000, please pay asap"... | [
"alpee01@gmail.com"
] | alpee01@gmail.com |
38367fd6306431bab28c7d9476eb7f23583717bf | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/highlevelstream/udf/valuelist/valuelist.py | dbfa6ca0e26dadbdb5304e3fe9253effed894d09 | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,049 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
858517b9ae608ac5a57f9a6451ad9f46d97f3c4b | 36e63f94f074777ec4f53637cf2f74cca34dae5d | /TRmod_kernel_A1.py | f399c4b2640109b31d5b7d9622ba168d4d97b068 | [] | no_license | yingjin-ma/Fcst_sys_public | ff75efbc62ee84bd67b8e5d900eec4f3955c4638 | a255e3e41fe2f6f26bcb6d7788f777f3d269e5f0 | refs/heads/main | 2023-01-06T02:15:59.674138 | 2022-12-30T03:46:03 | 2022-12-30T03:46:03 | 313,652,326 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | import sys
import os
import time
import socket
hostname = socket.gethostname()
PWD=os.getcwd()
SRC=PWD+"/src"
RAW=PWD+"/database/rawdata"
BAK=PWD+"/database/trained-models"
# add the runtime environments
print(SRC)
sys.path.append(SRC)
# originally import
import torch
import Models
import Configs
#import PredictTim... | [
"yingjin_ma@163.com"
] | yingjin_ma@163.com |
0cd87e0d9eca96df30c68ee957e543ea4bf80730 | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/linearrelu_19.py | 7b3a00c5cb35632a17f95048599dcdc9247a02b4 | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 1,091 | py | # -*- coding: utf-8 -*-
"""
linearrelu_19.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class LinearReLU_19(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Linear(in_features=784, out_features=75, bias=F... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
520f33f52e07345e0ce8da2416007cdb06d9164d | 0e1abae708fa0d0afc312bcfdc15b4d587d487e1 | /flask_library_app/lib/exceptions.py | 41cb4b0edec54f60a65c5ff9443080c05d1c31cd | [] | no_license | davidiakobidze/flask_library | 2ea156545401a5ba78441bcd5c3c28dd4b831446 | 92a1a15fe1fcb40513e665018dfce9ee6dae8dcd | refs/heads/master | 2023-05-11T16:02:15.743752 | 2019-06-05T11:25:00 | 2019-06-05T11:25:00 | 178,378,117 | 0 | 0 | null | 2023-05-01T20:57:26 | 2019-03-29T09:47:41 | Python | UTF-8 | Python | false | false | 692 | py | from flask import Blueprint, jsonify, make_response
class HandleException(Exception):
status_code = 404
def __init__(self, message, status_code=None, payload=None):
Exception.__init__(self)
self.message = message
if status_code is not None:
self.status_code = status_code
... | [
"davidiakobidze1@gmail.com"
] | davidiakobidze1@gmail.com |
a08ed3e1f7d2d89e2c8be0bc0cab17f2893907d4 | e86f88bd05d2dfc3197191245a28734e0a94306c | /application/resources/front_end_caging.py | 11e8038147e8de306c4178f76445707f20e23355 | [] | no_license | transreductionist/API-Project-1 | b83e008a8dcf19f690109d89b298111062f760c0 | d5ffcc5d276692d1578cea704125b1b3952beb1c | refs/heads/master | 2022-01-16T06:31:06.951095 | 2019-05-09T15:22:44 | 2019-05-09T15:22:44 | 185,820,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,613 | py | """Resource entry point to handle the business logic for the endpoint."""
from flask import request
from flask_api import status
from nusa_jwt_auth.restful import AdminResource
from application.controllers.front_end_caging import build_ultsys_user
from application.controllers.front_end_caging import update_caged_donor... | [
"transreductionist@gmail.com"
] | transreductionist@gmail.com |
d9afbb72bcda9098cdba94f209637b513ae84b0f | 294a91790d9751c08b05030396ebe8f06e846f86 | /python_rob/rob.py | c90092f7e8fe174fac0024bc1303dde09a087958 | [] | no_license | lcy2218/python_robot | 508833ca3d4959d23e350f15149e66093199d639 | 81c20bd98e9dc472113eeb0fd67575cda07ee60e | refs/heads/main | 2023-04-23T04:24:05.083971 | 2021-05-14T08:39:42 | 2021-05-14T08:39:42 | 352,033,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
@File : rob.py
@Time : 2021/04/08 16:25:35
@Author : Liu ChaoYang
@Version : 1.0
@Contact : 2218932687@qq.com
'''
# here put the import lib
'''
爬虫,按照一定规则,自动抓取互联网信息的程序或者脚本
模拟浏览器打开网页,获取想要的那部分数据
'''
#思路
import re #正则表达式、文字匹
from bs4 import Beauti... | [
"39287095+lcy2218@users.noreply.github.com"
] | 39287095+lcy2218@users.noreply.github.com |
c1321c5631ebf0c448cc548297c676d898002ddd | 7ec0707166dc1395a3a7f1c688ad2f199493049b | /python/flowfilter/update.py | 62c177874e91045ed456aac36a32f5d23841d3be | [] | no_license | CaptainJL/optical-flow-filter | f597ffdfae307580f6aafcecc365d0cac7af3cdc | ea4cc4e267e146e3aea77a9729413c0cc37bed1d | refs/heads/master | 2021-01-09T20:22:13.029904 | 2017-05-18T01:22:50 | 2017-05-18T01:22:50 | 81,279,627 | 0 | 0 | null | 2017-02-08T02:43:45 | 2017-02-08T02:43:45 | null | UTF-8 | Python | false | false | 5,043 | py | """
flowfilter.update
-----------------
Module containing Python implementationso of the filter
image model and update methods.
:copyright: 2015, Juan David Adarve, ANU. See AUTHORS for more details
:license: 3-clause BSD, see LICENSE for more details
"""
import math
import numpy as np
impor... | [
"juan.adarve@anu.edu.au"
] | juan.adarve@anu.edu.au |
fc4c15d75a0433a3161767e328348de670f23a26 | 8d49251a314921f86c9db879fd0f5e0cba0c80fa | /my_notes_and_codes/second_exceptions.py | 8c579dd15dc24f5acd2cad5f474a4abf425e8a76 | [] | no_license | LSLubanco/python_fh | 42d3ea253c6d64f5133e741b788247baa378884b | 12222270b314c8eda888356d043077a30b504897 | refs/heads/master | 2020-11-24T07:25:25.711127 | 2020-01-16T09:47:48 | 2020-01-16T09:47:48 | 228,028,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 28 17:27:04 2019
@author: Daniel
second class exceptions
"""
while True:
try:
x = int(input("Enter a number: "))
break
except ValueError:
print("Enter a valid number!")
print("You have entered the number {}".form... | [
"lubancod@gmail.com"
] | lubancod@gmail.com |
0eaa5041ad678be0831e566690633ee4cbe95362 | 427fb8ca7f1b3cfe524ac0b08339451ce304731b | /src/tracks/jennens_family_speedway_track.py | 54fcfae8de535da21420dad96d8af37c03ab9ba9 | [
"Apache-2.0"
] | permissive | jackycct/deep_racer_guru | 9d33ca0f950adf11459803269db5790940da506b | b6048536b46df98aff1861be460183e6c9c78e22 | refs/heads/master | 2023-07-10T07:28:33.404989 | 2023-06-12T14:31:19 | 2023-06-12T14:31:19 | 285,490,040 | 0 | 0 | MIT | 2020-08-06T06:18:15 | 2020-08-06T06:18:13 | null | UTF-8 | Python | false | false | 10,634 | py | #
# DeepRacer Guru
#
# Version 3.0 onwards
#
# Copyright (c) 2021 dmh23
#
from src.tracks.track import Track
import src.personalize.configuration.personal_track_annotations as config
class JennensFamilySpeedwayTrack(Track):
def __init__(self):
super().__init__()
self._ui_name = "Jennens Family S... | [
"davidmuttonhughes@yahoo.co.uk"
] | davidmuttonhughes@yahoo.co.uk |
5660fae0652271b4c6073443da4b19c18a073dd8 | 6c08fa056cffcf40e7a9c9bbedbe7164a2eb0b08 | /api/api_home_module.py | 86eab06ffae13e62ebc1c81431b068459b03658e | [] | no_license | linzichu/liequ_aotu_master | 09bff617034b02d715b2a91637a1927a4eb46aa2 | bd581b177bd4af48fa696d171b0f8aef3687df7f | refs/heads/master | 2022-12-07T19:02:20.357958 | 2020-08-23T04:06:54 | 2020-08-23T04:06:54 | 282,369,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | import json
import requests
from api.api_get_host import ApiGetHost
import os
class ApiHomeModule(object):
def __init__(self):
self.host = "http://liequ.czhepeng.cn:8888/"
# 验证配置文件
def api_get_config(self):
url = self.host + "/api/public/?service=Home.getConfig"
headers = {"Conten... | [
"644896645@qq.com"
] | 644896645@qq.com |
0ed21295ba0f9f7a224a5a1217d7f998182ad42d | 2ce9700da22e37f27a991c230e9d1658c02e66e0 | /tasks/migrations/0001_initial.py | 1979ad9a384793e6ae0fb0a84c162a8f6020ff06 | [] | no_license | raphaelarcanjo/agenda | a0724ffb99370e3805cdeea8ceba3f907f43a3b2 | e309c71c0d74e11f0af7c987dad54a49ca077252 | refs/heads/master | 2022-05-07T21:16:46.354218 | 2022-03-21T20:53:48 | 2022-03-21T20:53:48 | 201,701,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # Generated by Django 2.2.16 on 2021-02-03 22:48
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(au... | [
"raphael.o.cunha@hotmail.com"
] | raphael.o.cunha@hotmail.com |
f30b74b74f08df9126992b9926bc6a514aa82cac | 3cd1246ff58f26329021f2d13caa62221c91d5a4 | /testdata/python/stmt/with_.py | 9fd016ae112182564286080a9cbcc9d114768021 | [] | no_license | mwkmwkmwk/unpyc | 0929e15fb37599496930299d7ced0bf1bedd7e99 | 000fdaec159050c94b7ecf6ab57be3950676f778 | refs/heads/master | 2020-12-01T14:01:57.592806 | 2016-03-21T14:11:43 | 2016-03-21T14:12:01 | 230,650,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from __future__ import with_statement
with a:
b
c
d
with a as b:
c
with a as (a, b):
c
d
while a:
with b as c:
continue
| [
"koriakin@0x04.net"
] | koriakin@0x04.net |
bff3627d5b8abf459b876f17bbd1d47abc50bf37 | 2fda7a3f7c21eedf4a1bdd627e04bea4dd0b1c1c | /arrays/max_sum_array.py | 1819b82620c19a5a529273a58511846c1dda3be2 | [] | no_license | shedolkar12/DS-Algo | a9f71ea3f1c2d975844ce44e69298c81f9ae8f44 | 1df65546581b91489509e15484dcada81bd0911b | refs/heads/master | 2021-06-04T21:30:23.917352 | 2016-09-17T15:32:14 | 2016-09-17T15:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # Maximum sum of subarray of given array
#A = [-2, -3, 4, -1, 2, -5, 4]
def max_sum(A):
max_sum=sum= A[0]
j,index,count = 1,0,1
for i in A[1:]:
sum = sum+i
if sum < i:
sum = i
index = j
count=1
if(max_sum <= sum ):
max_sum... | [
"rajeshshedolkar12@gmail.com"
] | rajeshshedolkar12@gmail.com |
22d26910b602553d6a00545801f30dac1d8c9a36 | 4f1c3f764b29953ece5cf50aeedfe8abce1b8700 | /lj_metadata.py | 267d3a45427782c76ef12e94b5bb67aeb6805e03 | [] | no_license | smagellan/ljData | 9de9281289aea4ee2ba03711497ba42e49542b39 | 25df0bca3a52ddd3de454685b92abf1cebcd814e | refs/heads/master | 2021-01-18T04:54:42.433147 | 2015-12-01T14:44:01 | 2015-12-01T14:44:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,576 | py | # Gathers tabulated data (username, account number and registration date)
# on extended network of LiveJournal accounts, based on friends-of-friends of starting user
# By Lawrence Alexander @LawrenceA_UK
import requests
import time
import argparse
from BeautifulSoup import BeautifulStoneSoup
import re
import csv
impo... | [
"lawz.alexander@gmail.com"
] | lawz.alexander@gmail.com |
0e128695b6d32a1534a11c72d93838c79e35da17 | a89d5746ab0255a32558be21c33c2d028e9b7148 | /数学基础/code/朴素贝叶斯/高斯朴素贝叶斯.py | 4b876860ed9d51444155b18dc4a4af60d2f108a0 | [] | no_license | 15110500442/pa- | 9c4bf3b2e6906c4df1e609f65a58e00660f31fa7 | 561757e6f6f1e16deaa1b9e5af5ac78fed0e21f5 | refs/heads/master | 2020-04-13T01:56:20.208424 | 2018-12-24T11:39:11 | 2018-12-24T11:39:11 | 162,887,811 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #测试数据
import numpy as np
#引入高斯朴素贝叶斯
from sklearn.naive_bayes import GaussianNB
#训练集
features_train = np.array([[1,1],[1,2],[2,3],[2,3],[1,4],[2,4]])
labels_train = np.array([1,2,3,1,1,3])
#实例化
clf = GaussianNB()
#训练数据 fit相当于train
clf.fit(features_train, labels_train)
#输出单个预测结果
features_test = np.array([[1,3... | [
"597945045@qq.com"
] | 597945045@qq.com |
cb91209f548fbbf043bcdb0238ad37fd9d391a2f | 5367f9740ad9b13ae42438b2d031f71466498675 | /Bonus2_Mike.py | 8cc06a97ceff7d0e560a228a5f65925fdd6bbc0e | [] | no_license | own2pwn/Intro_To_Prog_HSE | 5e34ca08a02e584b607b3718bbee9627cb5a4344 | ca9e63a68420b2583ee1223a2f126861cb1895e6 | refs/heads/master | 2020-04-01T11:01:01.110063 | 2018-09-26T21:04:53 | 2018-09-26T21:04:53 | 153,142,759 | 0 | 0 | null | 2018-10-15T16:03:01 | 2018-10-15T16:03:24 | null | UTF-8 | Python | false | false | 1,103 | py | # BONUS TASK 1
def f(s, n):
s = s.lower()
l = list(s)
result = ''
for i in l:
if i.isalpha():
result += abc[((ord(i) - ord('a')) % 25 + n) % 25]
else:
result += i
return result
import random
import argparse
parser = argparse.ArgumentParser(description='Proces... | [
"noreply@github.com"
] | noreply@github.com |
61c12fba05665362085355b586a72a95a6cb9038 | 65a3f548503cd1bdd9a429704aec630c0a507b4b | /src/genie/libs/parser/nxos/show_vxlan.py | 7c7f3d6d9fb672cf68724c8a9bca7691087b3db0 | [
"Apache-2.0"
] | permissive | LouiseSianEvans/genieparser | 75c3c73612db4a7cb31f657dc6ad9f25b5bfebb5 | 7dd4d81834479e35a6c08254e10e7692b00b897b | refs/heads/master | 2020-04-30T15:25:04.158694 | 2019-03-27T22:58:15 | 2019-03-27T22:58:15 | 176,919,539 | 0 | 0 | Apache-2.0 | 2019-03-21T10:10:46 | 2019-03-21T10:10:43 | Python | UTF-8 | Python | false | false | 84,285 | py | """show_vxlan.py
NXOS parser for the following show commands:
* show nve peers
* show nve interface <nve> detail
* show nve ethernet-segment
* show nve vni
* show nve vni summary
* show nve multisite dci-links
* show nve multisite fabric-links
* show l2route fl all
* show l2route ev... | [
"karmoham@cisco.com"
] | karmoham@cisco.com |
9aba0ae9bcdfe028c9cadf0031e66dedbca900f8 | 063d7a179118c7f24e116f4c649b60d263995e3a | /sightings/models.py | e20591ee9941956131331729110a2d88108d23a2 | [] | no_license | hgaoj/S | 4f1fa678ee443038227d5c852027ea4bfc093c49 | d3d998f89b49df16693a5d8bc561b000507eacc8 | refs/heads/main | 2023-04-09T15:16:15.305024 | 2021-04-14T11:37:48 | 2021-04-14T11:37:48 | 357,882,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | from django.db import models
class Squirrel(models.Model):
latitude = models.FloatField(null=False, blank=False)
longitude = models.FloatField(null=False, blank=False)
unique_squirrel_id = models.CharField(max_length=100, unique=True, null=False, blank=False)
AM = 'AM'
PM = 'PM'
OTHER = ''
... | [
"690631890@qq.com"
] | 690631890@qq.com |
edc28a97bf576f1d94cb0070259494365f4e5648 | b4c24bdbb6f87841fc2f4aa5cefb010d9512b1f7 | /main.rf_servo.py | ba30a7efea3f2abf18cb9030250b189092a43298 | [
"MIT"
] | permissive | martin-c/micro-python-intro | d18365d61bf588f57bd5f2aa11a7fec95b55eb95 | 626ff8342f3a00494d43cb6beb25d7c6b3dddb4c | refs/heads/master | 2020-04-28T00:03:05.681718 | 2015-02-12T21:33:41 | 2015-02-12T21:33:41 | 30,710,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | """
The MIT License (MIT)
Copyright (c) 2015 Martin Clemons
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge,... | [
"martin.clemons@mac.com"
] | martin.clemons@mac.com |
6ac2ba97c748b6e22830c9b04d81743c690db51a | 7064d88584ed8d9da2ac53e0c92caa5c951a643b | /return_multiple_valueFunction.py | fac6c6860c081c30f44d533bb618d626cd67990c | [] | no_license | tushargoyal02/PythonBasicsToAdVance | 328509ecbe596eb3b2e12137cd9141f6128167c8 | ba47906a7a0dbee59776985f68046eb3c7cfc37f | refs/heads/main | 2023-02-23T23:20:24.221622 | 2021-02-02T13:24:29 | 2021-02-02T13:24:29 | 333,090,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py |
def returnFunction(a):
if a%2 ==0:
return True, 1
return False, -1
# Taking the return in the OUTPUT VARIABLe here
output = returnFunction(10)
#printing the type of value: ----> RETURNS (TUPLE) <----
print(type(output))
firstVal, secondVal = returnFunction(10)
print("First Value ... | [
"noreply@github.com"
] | noreply@github.com |
956e0a351c167d8f2fbfeb2afb2935e09c0d6ebd | f844be5d2e5913fc3dfa46767b4633076906afb1 | /Programmierung/Sicherungen/Plotkram/plotkram.py | ffa199788d2f70750d8c035e4bfa4e5b00542538 | [] | no_license | Syssy/diplom | dd11a64ab1a9a9faf659728195a89c80242af954 | 74a3f4b8a662490be8b5c22bbf4bdde625bc3d1e | refs/heads/master | 2016-09-05T23:36:49.408174 | 2015-10-02T06:27:53 | 2015-10-02T06:27:53 | 25,148,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,396 | py | # -*- coding: utf-8 -*-
import scipy.stats
import csv
import matplotlib.pyplot as plt
import statsmodels.api as sm
import numpy as np
import pickle
import pylab
import matplotlib.gridspec as gridspec
import time
import simulation
import math
from matplotlib import colors, cm
import argparse
class Simul... | [
"elly@oh14.de"
] | elly@oh14.de |
af8b0a51f2881672fd3f3fa9774af391f4149570 | 4d37658937bd45e3cbd94e3b7dbfe0d532f855f9 | /Strings.py | 83122f9c2a3a26cef45b19b192d35e2262bc6506 | [] | no_license | dylanmcg22/Scripts | e894906dc9b9e70abd69bae44292307562c786b4 | 005d92933d275792e5f6a7e5967fc647c62f3e77 | refs/heads/master | 2023-01-24T09:45:15.872720 | 2020-12-04T16:22:04 | 2020-12-04T16:22:04 | 298,628,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | #first_name = 'Dylan'
#last_name = 'McGrath'
first_name = input('Please enter your first name: ')
last_name = input('Please enter your last name: ')
#print(first_name + last_name)
print('Hello, ' + first_name.capitalize() + ' '+ last_name.capitalize())
| [
"noreply@github.com"
] | noreply@github.com |
4e564c1af8b54467afa88755cdf82caf68dc1605 | 4197efca9fe4761549d7baa8e5219479ab811d27 | /r1_bea.py | 0f0b9f9b8d60687b0a14f3e8be48e48f3a401255 | [] | no_license | bealeebrandt/chat | 1f1b15276b1242e77668700f2dd705b8b2c7ed8a | 23532c7705507843c8db0a42fc8252c5cd489e82 | refs/heads/main | 2023-01-24T10:06:03.501492 | 2020-11-25T08:04:38 | 2020-11-25T08:04:38 | 314,179,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py |
def read_file(filename):
lines = []
with open(filename, 'r', encoding='utf-8-sig') as f:
for line in f:
lines.append(line.strip())
return lines
def convert(lines):
person = None
bea_sticker_count = 0
bea_image_count = 0
bea_word_count = 0
phoebe_sticker_count = 0
... | [
"bea1209@gmail.com"
] | bea1209@gmail.com |
c5bd377254ceb0e1cfae1420ab742301e4d04971 | 52a2871b71b990bdddb046ececfc437e6e462844 | /jira_utils/jira_utils.py | b9bb0cff8e30d5df0a89895b34a78b4a42314327 | [] | no_license | DanteLore/jira-utils | 896eaa2fffc57862b9028c2f11b7973d039744f1 | f68fdc9ada4b7946d34f6817cefb64d6e930054b | refs/heads/master | 2020-09-26T08:04:09.802440 | 2017-05-30T08:47:38 | 2017-05-30T08:47:38 | 66,531,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,989 | py | import getpass
import logging
import keyring
from jira import JIRA
class Jira:
def __init__(self, server, username="", jql="", logger=None):
self.server = server
self.username = username
self.jql = jql
self.jira = None
self.fields = ["id","summary","assignee","status","pr... | [
"dan@logicalgenetics.com"
] | dan@logicalgenetics.com |
2daeb330fc949ff6e83869c733eda7bee8c15ee1 | e77eacb7c0ef654d8a5372811cdde73e57f89ac2 | /pattern_pr06.py | 1b6cd239f5ca88f00b8e831134c6af5241c52ba8 | [] | no_license | Ashish492/printingPattern | 38664025622c2f093e62df364ca010be050ae163 | 39498a8da09424dc328567ce08cc638f5c22a614 | refs/heads/main | 2023-08-17T12:34:03.827300 | 2021-10-03T05:37:59 | 2021-10-03T05:37:59 | 411,888,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | total_rows = int(input("enter a total rows:"))
for i in range(1,total_rows+1):
print(" "*(total_rows-i),"*"*i,sep="")
| [
"ashishshrestha492@gmail.com"
] | ashishshrestha492@gmail.com |
a5b5e59778367fdedcfbd2d092bc70983a936624 | 97bcb422a3a2366426b6fbe6c53b1c05a6b48d8d | /fichaMedica/apps.py | ba12bafb9e72627beefce57a442747ee65c6bf37 | [] | no_license | maravida292/heartsafe | 616e53fbe5bf2065d7fc945180cca8aca9a49239 | 3d2e3a46fbeead8491fd032fabfaa0be7693ccf5 | refs/heads/master | 2020-04-06T07:11:52.629103 | 2016-09-12T13:13:42 | 2016-09-12T13:13:42 | 65,582,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class FichamedicaConfig(AppConfig):
name = 'fichaMedica'
| [
"villacismr@gmail.com"
] | villacismr@gmail.com |
e7a1d482b26844bb379d5b8a4c17af142e3a914e | 50a74e2b920c4d7ee9d30784448db1d594ca0b48 | /scripts/python/sql_queries.py | 7d0b0092b2895cdbc3e30f9a1f52fcde1701a163 | [
"MIT"
] | permissive | chamsrut/Postgres-data-modeling-Udacity | 5c096cc906b9e487cbf515a2676f02f24e13f49a | d4a73bd29ccf77e2e7ed2acc04ca7c4c4246981a | refs/heads/main | 2023-06-02T16:00:05.162725 | 2021-06-15T10:20:18 | 2021-06-15T10:20:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays"
user_table_drop = "DROP TABLE IF EXISTS users"
song_table_drop = "DROP TABLE IF EXISTS songs"
artist_table_drop = "DROP TABLE IF EXISTS artists"
time_table_drop = "DROP TABLE IF EXISTS time"
# CREATE TABLES
songplay_table_create = ("""
CREATE T... | [
"61270261+chamsrut@users.noreply.github.com"
] | 61270261+chamsrut@users.noreply.github.com |
949195cf0b233dbb3c3c0c87b6f7a7aac64fedb0 | 79164b6ef1a663a077359623fd82e07b1c86de4f | /pirover_controller/AVstreamer.py | 441c84f139fa93c836a6446ae60b6dccb5bfb4f8 | [] | no_license | gnshshraiGit/pirover | ff412b456f1450cfb0fe6c8d24a2bd587d44c318 | bf3decbb677ec6b4bdfdb991f6a73b0a9027a449 | refs/heads/master | 2022-12-21T12:53:22.904212 | 2017-12-23T10:30:20 | 2017-12-23T10:30:20 | 94,701,780 | 2 | 0 | null | 2022-12-07T23:59:58 | 2017-06-18T17:16:12 | Python | UTF-8 | Python | false | false | 1,830 | py | from subprocess import Popen
import config as cfg
import time
class avstreamer:
sendVideoStreamHandle = False
sendAudioStreamHandle = False
@classmethod
def startStream(cls):
if avstreamer.isStreaming() == False:
cls.sendVideoStreamHandle = Popen(cfg.videoStreamingCommand)
... | [
"gnsh_sh_rai@yahoo.co.in"
] | gnsh_sh_rai@yahoo.co.in |
f4788c99df65eea5f4c06b3a63f6156c51a3610b | 09d42b7fe150d0dc467e3e26379949434aa35f5b | /MLDL_Learning/tf-Tutorials/07_read_data.py | 811361cdd96c172121f455c3c333e0a2cc4906d4 | [] | no_license | shqg/ML-DL_Learning | f333303ece99ed78748f080f0bcfc5da25bdd73f | e3983abcb791233a07c322c51ee6ee17fdd9994f | refs/heads/master | 2021-01-11T22:38:05.767633 | 2017-06-15T08:44:17 | 2017-06-15T08:44:17 | 79,005,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,821 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Date : 2017-06-12 11:00:40
@Author : gengshuoqin (gengshuoqin@360.com)
description:
dense_to_one_hot:Convert class labels from scalars to one-hot vectors
"""
import os
import numpy as np
###################################################
"""
将 vector型的label转为oneHo... | [
"gengshuoqin@163.com"
] | gengshuoqin@163.com |
b1fa504216c5745ac6eacf6e2af43947e70ddfcf | 9311cc059d234ad2263314a83b734e732f0be71f | /Main.py | 3847a6ec65797cc3b8780eb449b78d15130f9acf | [] | no_license | caarson/collegesocialgatherer | 76c8c5bf65f9c9c54fc95b5554bcb791c7dea3f8 | 8eab50db54db86775c1119086d8bb84fadb44166 | refs/heads/master | 2020-12-26T13:03:56.529956 | 2020-01-31T21:18:12 | 2020-01-31T21:18:12 | 237,517,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,580 | py | import gspread
import sys
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from oauth2client.service_account import ServiceAccountCredentials
from selenium.webdriver.support.wait import WebDriverWait
#####################... | [
"noreply@github.com"
] | noreply@github.com |
27c666183a810fbbf071984d91e6e19c62f210b9 | e1b4c28ddac47bd39d01199ee8013836d0f1a6c3 | /lab2/3-8.py | 239bd52d909a08abf37017420d061d5fef9d89d6 | [] | no_license | LukaszSztuka/Jezyki-Skryptowe | 00eccb8636ad6454973321d7f96d66787e3bf76d | aca6e6bda080f3ddaa1f061a0d00ae63822ddc0a | refs/heads/master | 2023-05-09T23:55:38.283039 | 2021-06-12T18:31:01 | 2021-06-12T18:31:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from math import sqrt
def pier(a, b, c):
delta = pow(b, 2) - (4 * a * c)
if delta < 0:
delta = -delta
delta = sqrt(delta) * 1j
x1 = (-b - delta) / (2 * a)
x2 = (-b + delta) / (2 * a)
return "Pierwiasteki wynoszą: " + str(x1) + " i " + str(x2)
if delta >= 0:
... | [
"lukaszsztuka21@gmail.com"
] | lukaszsztuka21@gmail.com |
2425211ba02da1a8b060213fea11664e045f8545 | 815bffc29a0479f516f2f31c1da11214a254e804 | /run.py | f1a67a1075bdfb2fc33f5690883348d29544995a | [] | no_license | Jbothost/derp | abe4c9ea983b3327761e89bc8a4eafd06896ad0d | f87ae00a26cf63ebcfcf503e348dc18c8ccd03d5 | refs/heads/master | 2020-03-28T18:59:44.265063 | 2018-09-15T19:39:38 | 2018-09-15T19:39:38 | 148,934,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,953 | py | import discord
import asyncio
from discord.ext.commands import Bot
from discord.ext import commands
Client = discord.Client()
bot_prefix= "/"
client = commands.Bot(command_prefix=bot_prefix)
@client.event
async def on_ready():
print("Bot Online!")
print("Name: {}".format(client.user.name))
... | [
"noreply@github.com"
] | noreply@github.com |
eb405f35229c384be7119c0426a36b47fd375b1e | d656f8fda2b9247a28fcd2eb649345136bc863af | /pytorch/letter_vae/meanstd.py | 042764d15fbdc6a2eedd87859467e08bdb47748a | [] | no_license | VasuAgrawal/fun_with_fonts | 7f72fb65e1b33a2c46480239f3100d05e52737d4 | 899703b18c4d38987f65b42f51c22cec8490ab18 | refs/heads/master | 2023-03-11T23:23:25.328006 | 2021-02-20T21:20:16 | 2021-02-20T21:20:16 | 275,771,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,761 | py | #!/usr/bin/env python3
# https://discuss.pytorch.org/t/about-normalization-using-pre-trained-vgg16-networks/23560/39
from loaders import makeLoaders
import torch
import torchvision
import torchvision.transforms as transforms
import torchvision.datasets as datasets
# transform = transforms.Compose([transforms.ToTens... | [
"vasu_agrawal@yahoo.com"
] | vasu_agrawal@yahoo.com |
1c0396241c5678129c6a9423cdd169a9fcdbee83 | de213b73f703fb8f285bc8cf15e388cc2f98898f | /venv/bin/Peg.py | 9586b955a31d199a83f0a27a6c4cf33e702d3049 | [] | no_license | adampehrson/Kattis | 18de025a6a569a46c54cc85c996eec0b55c9f74b | a04922caa356f8113fe30a523f3a148d458a6132 | refs/heads/main | 2023-07-10T02:53:29.782854 | 2021-08-14T10:44:30 | 2021-08-14T10:44:30 | 395,948,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | def checkmoves(karta, posx, posy):
moves = 0
if karta[posy][posx - 1] == 'o':
if karta[posy][posx - 2] == 'o':
moves += 1
if karta[posy][posx + 1] == 'o':
if karta[posy][posx + 2] == 'o':
moves += 1
if karta[posy - 1][posx] == 'o':
if karta[posy - 2][posx]... | [
"85373641+adampehrson@users.noreply.github.com"
] | 85373641+adampehrson@users.noreply.github.com |
5dd5656c70b3d3fb0041c28be639da84f8a05701 | 7bb37821b54c2ffe0dc8cbf2a70bd20c932fb515 | /users/migrations/0006_auto_20190812_1022.py | ae4141e0132bfd3748bbf0be56a5be60ae0212fd | [] | no_license | andrewhstead/dating-site | 6dfed04404fa1ea03594ff08a1d3aa31fe07b47c | bc81ade529ab916093ba80ab009d03a00e1dfab0 | refs/heads/master | 2020-07-02T13:04:02.878187 | 2020-05-07T22:23:09 | 2020-05-07T22:23:09 | 176,342,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 2.2.4 on 2019-08-12 09:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0005_auto_20190811_2134'),
]
operations = [
migrations.AlterField(
model_name='user',
name='intro',
... | [
"andrew@andrewstead.co.uk"
] | andrew@andrewstead.co.uk |
18a6ad89d7dac68e7b90c90d2f1a53e0a54d17e0 | d4122944fb1a0559572362dd9ba591d5de13c58f | /logmailer.py | 0f55dd74c4b36dc91fd723336778a37a2b28835e | [
"MIT"
] | permissive | jmares/logmailer | 60108c39533f7c50912c2c0c5226035c5120f6fc | 64e0bdd2e160d32340df658d4b65fa5e7e0fc2a8 | refs/heads/main | 2023-07-19T04:30:49.265432 | 2021-09-06T15:21:02 | 2021-09-06T15:21:02 | 389,320,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | import os
from datetime import datetime
import time
from config import DEST_EMAIL, LOG_DIR
now = datetime.now()
for file in os.listdir(LOG_DIR):
if file.endswith(".log"):
# get the full path for the file, incl. the file
file_full_path = os.path.join(LOG_DIR, file)
# get the last modified ti... | [
"67288966+jmares@users.noreply.github.com"
] | 67288966+jmares@users.noreply.github.com |
6f002af3955d84710a19217854ee51ea99ccb8f2 | 6f5e08afeb4efc4b5897b2df69a939dbfbdd7714 | /lib/python3.6/site-packages/djangocms_picture/__init__.py | bdd8b9cf626b9012e56840eebf6520b2c90f46ce | [
"MIT"
] | permissive | mitchellbohn/glacier-arena-website | 487e950cbd232d0d6b7e231743426389e8b6f5cd | 43b35a178ea47113268bacaf676268c4cf5c5245 | refs/heads/master | 2020-04-22T11:22:25.428919 | 2019-05-14T14:27:00 | 2019-05-14T14:27:00 | 170,337,893 | 0 | 0 | MIT | 2019-04-19T14:37:45 | 2019-02-12T15:05:13 | Python | UTF-8 | Python | false | false | 46 | py | # -*- coding: utf-8 -*-
__version__ = '2.0.8'
| [
"mitchellbohn96@gmail.com"
] | mitchellbohn96@gmail.com |
c5b684d3453380613bb9bf76e73a9a85aaf4e078 | 70b21bc6a6426a3360abc1bba0c9757b412e3f88 | /Insults/shakespeare.py | 7436fb99a603888f45f5966e74fe11b55af8bfda | [] | no_license | CGasberg/PythonCrashCourse | 029ca65c6358d8168651e72f51f87dd873d8d1c5 | 5591ba65e4bd3f05605da65b1f18de7e6e10593c | refs/heads/master | 2021-01-19T17:25:55.383495 | 2017-07-18T17:57:20 | 2017-07-18T17:57:20 | 82,457,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | #with open("insults.csv","r") as f:
# contents = f.read()
# print(contents)
import random
import csv
list_a = []
list_b = []
list_c = []
with open("insults.csv", "r") as f:
for line in f:
words = line.split(";")
list_a.append(words[0])
list_b.append(words[1])
list_c.append(wo... | [
"christian.gasberg@accenture.com"
] | christian.gasberg@accenture.com |
1b9e1c8e39b3c1eefb20397ddd723788aa07ebbe | 0eeb0bc894587b9f266eca668b5bca3330df72a4 | /src/indexer/indexer.py | 4bbfd8a6f1a764839246f1e945047b17bf115117 | [] | no_license | taddo3/IdnesCrawl | d86bd5d92671319c07491db06eebafd5585eb27c | f0e7012eb13b4941926d8e127280013f774423f6 | refs/heads/master | 2023-01-21T10:04:55.302532 | 2020-12-01T20:44:49 | 2020-12-01T20:44:49 | 299,682,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,066 | py | from json import loads, dumps
from os import path
class Indexer:
def __init__(self):
self.indexes = dict()
if path.exists('../../data/indexes.txt'):
with open('../../data/indexes.txt', 'r', encoding='utf-8') as index_file:
index_lines = index_file.read()
... | [
"td256489"
] | td256489 |
7ad3d6880008f2c252e939266d8e8e9eded5ffa4 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/logging/v2/logging-v2-py/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py | 50feab7c61e55e6a3d999723b820f2fd4318e856 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,147 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
ded6ed30a96d3495a0c55cdab2f2c3075fcfd9bb | 409a3d53b08f55b6b42643dc68b1eb6daeb54ced | /mars/tensor/special/core.py | 3044dddb31a5dd75958a4ce9e56120459f859e1a | [
"BSD-3-Clause",
"MIT",
"OFL-1.1",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | sighingnow/mars | 06cbcd8f4aa132a85cdb6c7215c61139636e316b | c7897fbd144d230fff5edabc1494fb3ff44aa0d2 | refs/heads/master | 2023-01-21T12:11:12.469853 | 2019-09-26T09:34:13 | 2019-09-26T09:34:13 | 189,408,668 | 0 | 0 | Apache-2.0 | 2021-01-12T06:19:58 | 2019-05-30T12:19:28 | Python | UTF-8 | Python | false | false | 1,114 | py | # Copyright 1999-2018 Alibaba Group Holding 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 a... | [
"wenjun.swj@alibaba-inc.com"
] | wenjun.swj@alibaba-inc.com |
04fa739afb063ffe1d5696d7a3f6013540aac270 | e9506f2050ed415e1e0ca263dc72817b95d3393c | /custom_components/hubitat/lock.py | 64227fbff775a479c99410e770e9e42a9910fec3 | [
"MIT"
] | permissive | maxim31cote/hacs-hubitat | 5b2e9e8d6d42c384144625d1d8dc49bb3116b47b | 07f429e530797db2616466bee0e74c80d5724b22 | refs/heads/master | 2022-05-29T06:55:54.934009 | 2020-04-22T12:10:50 | 2020-04-22T12:10:50 | 260,245,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,695 | py | from logging import getLogger
from typing import Any, Dict, Optional, Union, cast
import hubitatmaker as hm
import voluptuous as vol
from homeassistant.components.lock import LockDevice
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.core import H... | [
"j.cheatham@gmail.com"
] | j.cheatham@gmail.com |
065c07dbd1adc232386da465812aba87f2c9e666 | 61d77677afd8af7f42a700f85cb35804ae04e9e4 | /exe 3.py | 22fd713739534bd39e0f35d2acce0e8691c220c2 | [] | no_license | NeroWithoutHat/tpa-lista-5 | 6de1d212ec98dc3c2767913aeaccdd1693bf587c | bffa1b4b8e5a84a4160d204d8ee37f6a2d74e1cf | refs/heads/main | 2023-08-13T22:37:15.624507 | 2021-09-23T20:04:05 | 2021-09-23T20:04:05 | 409,728,707 | 0 | 1 | null | 2021-09-28T20:29:53 | 2021-09-23T20:03:07 | Python | UTF-8 | Python | false | false | 245 | py | n1= 0
calculator= 1
total= 0
while calculator <= 10:
calculator += 1
n1= int(input('Em que ano você nasceu: '))
maior= (n1 - 2021) *-1
if maior >= 18:
total += 1
print ('{} São maiores de idade'.format (total)) | [
"noreply@github.com"
] | noreply@github.com |
be8163c52c1db68cd70a64e63fa2802bd8be0dc2 | d2993f38ea15467c0c581bfc62282869d411b0c4 | /blog/migrations/0002_auto_20200907_0401.py | 4f44c0bee9b3d81eb1d84c96851e0cf784b44ca6 | [] | no_license | AzmainMahtab/very-basic-blog | 952a8f4d74dbc4b6691ad4d2dddcc29f2dfc99bc | 18f47955bfd0a4aa2f5f8aa145393e0e0a4c57a1 | refs/heads/master | 2022-12-17T08:23:22.834693 | 2020-09-24T08:29:19 | 2020-09-24T08:29:19 | 293,366,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # Generated by Django 3.1 on 2020-09-06 22:01
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='blog',
name='da... | [
"azmainmahtab97@gmail.com"
] | azmainmahtab97@gmail.com |
b6441bd419e7b43c5518e361d1ff550fe25ded57 | 70628500b7bdfa5fc548c39cbc8e6df449952a98 | /baseball_API/stats/migrations/0017_auto_20161026_2209.py | a95a83c41aeceea5bfe0f1e070e0a6d70a7f17ae | [] | no_license | cjredmond/baseball_API | 7cd4c1bd07560287d135ceb17f93821234a4fd1d | 0bbe8b4573b34915ebe6eae0ec9b1de62ef42d13 | refs/heads/master | 2021-01-16T23:06:33.866358 | 2016-10-27T04:01:21 | 2016-10-27T04:01:21 | 72,024,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,220 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-26 22:09
from __future__ import unicode_literals
from django.db import migrations
import csv
def add_master_data(apps, schema_editor):
Master = apps.get_model("stats", "Master")
with open('Master.csv') as infile:
reader = csv.DictReader(... | [
"connor.redmond@gmail.com"
] | connor.redmond@gmail.com |
71af2627ed2fe94a82fd4eed3d9461def451698b | 92d6bcc11d0e4004f973a3ca281b4316ea643d14 | /resources_rc.py | aa5fb46473b399d275f444feb4fa0c7a38aef5e2 | [] | no_license | geodrinx/sentinelhub | e8c3cc8e747832749348a504c8122118665aee11 | 306a0d5e2757f75475caceaa0bc906b646ea2a2a | refs/heads/master | 2021-01-11T02:39:41.611055 | 2016-10-14T13:47:27 | 2016-10-14T13:47:27 | 70,914,333 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,220 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: lun 19. set 15:54:05 2016
# by: The Resource Compiler for PyQt (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x06\xba\
\x00\
\x00\x18\x2c\x78\x9c\xed\x58\x7d\x54\x4c\x69\x18\... | [
"geodrinx@gmail.com"
] | geodrinx@gmail.com |
deb7a61f33472ab71282a207498f5f23dcc79f7a | 3d1b58a90279cdd6f574ff159ff9459137447dfa | /WebApp/app/models/cmdb_GROUP.py | 3dbe361000769b5385182b407e52d1b4661b1c9e | [
"MIT"
] | permissive | abasu644/AIOPS_PLATFORM | 83d05d4177fd01539fd257bf0e2c6d29f98c822e | 239885c9f3cb2f391e060321a01aa735e37fda72 | refs/heads/master | 2021-07-14T16:24:24.171333 | 2021-04-27T07:05:29 | 2021-04-27T07:05:29 | 245,570,774 | 0 | 0 | MIT | 2020-03-07T04:54:29 | 2020-03-07T04:54:28 | null | UTF-8 | Python | false | false | 629 | py | '''
cmdb_GROUP.py Lib
Written By Kyle Chen
Version 20190420v1
'''
# import buildin pkgs
## import priviate pkgs
from app import db
## cmdb_GROUP Class
class cmdb_GROUP(db.Model):
__tablename__ = 'cmdb_GROUP'
id = db.Column('id', db.String(128), primary_key = True, nullable = False, unique = True)... | [
"kyle@hacking-linux.com"
] | kyle@hacking-linux.com |
a1f7592ca76c0b11e4f3990d8ed9b8577228f45a | 50c21ad40e7000d8678a9c800f2faa01ad2936df | /w5/C198.py | 291ce6b7f021b1c62e2fb342cd527504d759119d | [] | no_license | qubit-finance/algostudy | 1ea6add559fcbac94c91631aa367aea27d20a267 | aa7b7abed00d68d60ede85d65d968e9dd0c7eb8a | refs/heads/main | 2023-07-17T17:12:55.091042 | 2021-08-26T17:26:20 | 2021-08-26T17:26:20 | 369,228,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | """
198. House Robber
You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security systems connected and it will automatically contact the police if two adjacent... | [
"noreply@github.com"
] | noreply@github.com |
5f48983e3802341541423c341cc6f5d54e73071f | b26d11147736cae7a1b10e7deaef08c339cb1e4e | /profiles/views.py | 0173cad0d63ba9afa27f6df0fd76eb4ed69d0cdc | [] | no_license | Komilcoder/Art-blog-website | bcc72e6b18925c141efd28a101c321c82fe7e534 | 8c88e4245a3e5f36593ceade2ab242f331bf3121 | refs/heads/master | 2022-12-15T14:06:57.094660 | 2020-09-02T06:58:00 | 2020-09-02T06:58:00 | 291,511,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,498 | py | from django.shortcuts import render, redirect , get_object_or_404
from .models import Profile,Relationship,RelationshipManager
from .forms import ProfileModelForm, CreateUserForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth import authenticate,login
from django.contrib import messa... | [
"yaxshilikovkomil@gmail.com"
] | yaxshilikovkomil@gmail.com |
469ad333f4179cbdcbf8ce66fba436b6172c4ab3 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/fare_structure_element_price_ref.py | 739a4aabbe862e4a51739db6b69106122466c992 | [] | 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 | 333 | py | from dataclasses import dataclass
from .fare_structure_element_price_ref_structure import FareStructureElementPriceRefStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class FareStructureElementPriceRef(FareStructureElementPriceRefStructure):
class Meta:
namespace = "http://www.netex.o... | [
"chris@komposta.net"
] | chris@komposta.net |
a2f18034289b7450eea0d77004a2c70a1f3c0571 | b8e9dd6fd8f8b691cba5a3af2388467bcf6c90bb | /samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/paths/response_body_post_not_more_complex_schema_response_body_for_content_types/post.py | c63a09de280ebef09cc33bb720ce32b8c0316ad4 | [
"Apache-2.0"
] | permissive | FallenRiteMonk/openapi-generator | f8b98940219eecf14dc76dced4b0fbd394522aa3 | b6576d11733ecad6fa4a0a616e1a06d502a771b7 | refs/heads/master | 2023-03-16T05:23:36.501909 | 2022-09-02T01:46:56 | 2022-09-02T01:46:56 | 164,609,299 | 0 | 0 | Apache-2.0 | 2019-01-08T09:08:56 | 2019-01-08T09:08:56 | null | UTF-8 | Python | false | false | 7,669 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools ... | [
"noreply@github.com"
] | noreply@github.com |
9968b52187515eab726166c5004b7c6ee7b41156 | 2f58ac1aa0c1c5935fbff58b96f2798cc957b5e6 | /mdpo_off/__init__.py | 45a88df824e7a270a06fb4c90bcc9322dd047271 | [] | no_license | manantomar/Mirror-Descent-Policy-Optimization | 21016e8e9578e64db71421734f6d98cfe7f0eff9 | c9bd3ba080e34f94e104ffe7633167e246dd63c6 | refs/heads/master | 2023-01-08T11:55:20.975440 | 2020-10-31T13:14:57 | 2020-10-31T13:14:57 | 306,298,987 | 33 | 2 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from stable_baselines.mdpo_off.mdpo import MDPO
from stable_baselines.mdpo_off.policies import MlpPolicy, CnnPolicy, LnMlpPolicy, LnCnnPolicy
| [
"manant@cedar5.cedar.computecanada.ca"
] | manant@cedar5.cedar.computecanada.ca |
d579d9d7481591148299eedcc255a8d1d8a8cb21 | 7bd15f37ffd26f9f0470cae2b4c1ef491c35c5c1 | /python/dirigible/sheet/tests/test_rewrite_formula_offset_cell_references.py | 3ec2ce88b387f1e57dbbe6c330c75e45665fdf06 | [
"MIT"
] | permissive | bwhmather/dirigible-spreadsheet | 0063aba1cec7df1dc4fc0d5dbbcfaeeb1dad932f | ff0414912110553a5d0f317495cdba39a077a044 | refs/heads/master | 2020-12-28T22:53:10.312409 | 2014-09-14T16:15:59 | 2014-09-14T16:15:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,396 | py | # Copyright (c) 2010 Resolver Systems Ltd, PythonAnywhere LLP
# See LICENSE.md
#
try:
import unittest2 as unittest
except ImportError:
import unittest
from dirigible.sheet.worksheet import Worksheet
from dirigible.sheet.rewrite_formula_offset_cell_references import (
rewrite_formula, rewrite_source_sheet_... | [
"hjwp2@cantab.net"
] | hjwp2@cantab.net |
7d6a47dc7a6b8898711f070c63d62cc6bb9eba33 | 70231e35b13260a9dca71214b2891c9792f2fbb5 | /78.py | fd5696bf136524a68eb710019d9f0169051ebde1 | [] | no_license | pavithracapricon/aritifical | 60de25de306e24fa1003744d1cf6088c0073986d | 688756c87ebb59b29b0e13150dcd1ec19df5b948 | refs/heads/master | 2020-04-14T22:31:36.354706 | 2019-07-11T03:23:45 | 2019-07-11T03:23:45 | 164,166,279 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 72 | py |
sur=int(input())
if(sur%13==0):
print('yes')
else:
print('no')
| [
"noreply@github.com"
] | noreply@github.com |
b93954d0e740810f7ead8b600a468c948f77aa18 | a2f2a2c78c0f1bc7d7430df1929f541bffefc323 | /hybrid_branch_predictor_simulation.py | 0b17e1ef70c15c17cef07f69074b74b53dd9fab9 | [] | no_license | koura911/ECE_562_project | f6e03caef337051b865ebbbfc03677a698660463 | 05e49a2891d547f7f8f78c012c82b6c47a76f13a | refs/heads/master | 2020-05-16T21:24:03.418644 | 2019-05-02T01:21:06 | 2019-05-02T01:21:06 | 183,304,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,411 | py | import pdb
import os
from collections import deque
import numpy as np
class Counter:
def __init__(self):
# start at weakly taken
self.state = 3
def predict(self):
# if in a not taken state, return not taken
if self.state < 3:
return 0
# return ... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.