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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1603f794730d82775b9c08df1c1c6289ae8cf270 | f68cd225b050d11616ad9542dda60288f6eeccff | /testscripts/RDKB/component/WIFIHAL/TS_WIFIHAL_5GHzIsRadioAutoBlockAckEnabled.py | 342c1a28d36b0e908ebc40dcbfc9e62a2bb7a193 | [
"Apache-2.0"
] | permissive | cablelabs/tools-tdkb | 18fb98fadcd169fa9000db8865285fbf6ff8dc9d | 1fd5af0f6b23ce6614a4cfcbbaec4dde430fad69 | refs/heads/master | 2020-03-28T03:06:50.595160 | 2018-09-04T11:11:00 | 2018-09-05T00:24:38 | 147,621,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,337 | py | ##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
#
# Copyright 2017 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not... | [
"jim.lawton@accenture.com"
] | jim.lawton@accenture.com |
b7e1494583b46dd49a7b486744b90a16eb290391 | bd785aa3a8187ba8f8b2e08c3d2164f2cc52c8d1 | /venv/Scripts/pip3.7-script.py | 57f6332e84d5aaf45adb4358c3a18625182cb3ca | [] | no_license | Abelsjcheng/HighlightGraph | efe09f397fd4ef8df6b85f7b25d075b4cbf0fbff | 25cb34572f45dc034f160735b7dfceaefadc0d23 | refs/heads/master | 2023-04-28T20:53:42.125896 | 2020-06-06T01:45:51 | 2020-06-06T01:45:51 | 227,281,804 | 0 | 0 | null | 2023-04-21T20:44:28 | 2019-12-11T05:13:42 | Python | UTF-8 | Python | false | false | 411 | py | #!H:\vueTest\csulab\HighlightGraph\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"429433693@qq.com"
] | 429433693@qq.com |
5b22739b99e3e91edf122d4ae985e94f4de1eb87 | 8edcb05b198589bbeb32aed1a779bb98d837a7cb | /AI/lista3/zad5.py | 75d2afc9f9dee4d8f93076d82b0b988115b2ba50 | [] | no_license | mikikora/University | 053abaa11c64e334d0193b4ae087036ea644627c | 95145c19834e3cc35267e1631c7324e1989eedb6 | refs/heads/master | 2023-03-03T00:31:04.415501 | 2021-02-11T11:10:00 | 2021-02-11T11:10:00 | 253,537,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py |
out = open('zad_output.txt', 'w')
txt = list()
for e in open('zad_input.txt'):
txt.append(e)
# print(txt[0].strip().split())
raws = [int(e) for e in txt[0].strip().split()]
cols = [int(e) for e in txt[1].strip().split()]
triples = []
for i in range(2, len(txt)):
if txt[i].strip():
triples.append([int(e... | [
"mikolaj.korobczak@gmail.com"
] | mikolaj.korobczak@gmail.com |
b5b156cdd0e5a59512ec09150e8dfd07ed2350af | 3ba8bf9fb1a3d54233e927893bc2d3865692c896 | /ophyd/controls/ophydobj.py | c94c640ca165b825b3e5f70be5d377a4f711108f | [] | no_license | NSLS-II-CSX/ophyd | 68fee01393d819350270b143457f76a4a5ccf703 | aadf6197f7a3b1ba907e48a73d5af8b07b7c57ad | refs/heads/master | 2021-01-17T21:19:16.867892 | 2014-12-13T23:39:40 | 2014-12-13T23:39:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,022 | py | # vi: ts=4 sw=4
'''
:mod:`ophyd.control.ophydobj` - Base object type
================================================
.. module:: ophyd.control.ophydobj
:synopsis:
'''
from __future__ import print_function
from ..session import register_object
class OphydObject(object):
_default_sub = None
def __init__... | [
"klauer@bnl.gov"
] | klauer@bnl.gov |
ec6879702a992defe3eeda5237652d76a5937cf1 | 21983299552937cac6c788b4e1328c0466f6260e | /game_stats.py | 9207b8161b8c993d969c11a5809152dcd4cb4fde | [] | no_license | LuiRangel/Pong | 0928e74f667a160bd7b0cc9648ade0e6b6dc2028 | 5cae092d927470b2800a1bb3b23c7ab864e8ba32 | refs/heads/master | 2020-03-30T11:33:27.087307 | 2018-10-02T00:32:00 | 2018-10-02T00:32:00 | 151,179,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | class GameStats:
"""Track statistics for Alien Invasion."""
def __init__(self, ai_settings):
"""Initialize statistics"""
self.ai_settings = ai_settings
self.reset_stats()
# Start Alien Invasion in an inactive state
self.game_active = False
self.p_score = 0
... | [
"xxcmgxx02@gmail.com"
] | xxcmgxx02@gmail.com |
84e7d9a493e30b3985e39ae5126bbaeeca00239c | 82c73b70c2002f647bdc254125f0bdb18f0b79d2 | /openstack_dashboard/dashboards/admin/license/forms.py | 099ccaf8c180726a41000b7ec3cdcf950aee7eaa | [
"Apache-2.0"
] | permissive | xuweiliang/Codelibrary | cfb5755ced54c65cacdb3e35ab2b98385f8d5f8e | 54e45b2daa205132c05b0ff5a2c3db7fca2853a7 | refs/heads/master | 2021-05-04T00:31:42.025238 | 2018-03-20T07:05:20 | 2018-03-20T07:05:20 | 71,852,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,302 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 Nebula, Inc.
#
# 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
#
# ... | [
"root@newton.com"
] | root@newton.com |
75f47a350fa2bb30c95448863cacdf862933db36 | 634f4d8257b5f996e6e0aabeaf2cfa5ee81b19b4 | /django_file_upload_example/settings.py | 46e41ba1a9581756030af4a342d23d1d40aea1f2 | [] | no_license | tariqulislam/django_file_upload_example | e063eb39565b9bbdb0d3fe86362fa18cc8e94e99 | 3bd872db7e4fec22233fd0ed8c00f311bf624d3f | refs/heads/master | 2023-05-30T20:30:29.041820 | 2021-06-10T02:52:46 | 2021-06-10T02:52:46 | 375,522,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | """
Django settings for django_file_upload_example project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings... | [
"mohamis2@cisco.com"
] | mohamis2@cisco.com |
7729127747875beb9e1c54ec41e5262adf929d88 | 30a77d60da2ae18a82bbcae64c84b1a9d6b374f2 | /zsl_utils/datasets/awa_sae.py | 1d28f24c228c0c507265e08de51200ee453a9b31 | [] | no_license | nmadapan/ZSL | e5cb486ae3b9576c645973507fe3bea9aa63155e | bf5306611f7ae9e1d5fbe0b4dd6c9f430d05a76a | refs/heads/master | 2023-07-26T14:09:33.646085 | 2021-05-14T18:53:35 | 2021-05-14T18:53:35 | 262,430,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | '''
This code processes the Animal With Attributes Dataset and creates
the data in the standard format.
Dataset:
1. Download the data from
https://drive.google.com/file/d/1l0UVhhIU-SmtJ9hqk7OVOG9zNga9qt_I/view
2. Copy paste this file into a directory. Provide this module the
path to this file.
How to run:
g... | [
"naveen.madapana@gmail.com"
] | naveen.madapana@gmail.com |
9d9dc0d65b9969fd9b6d08c4e83a9161ca1e9ffe | e1ecb9d520ad82f73de4e2d99650b2905964d287 | /scrapers/ASN_scraper.py | 5352dc98ccf1ed09ee9b10f733ecf9add2f69507 | [] | no_license | uless/inca | e692698924a00120b732088b58f01e5c4010726e | e179d9c6245399fea039e4e4de59577ad710ed90 | refs/heads/master | 2021-04-06T00:53:18.197955 | 2018-03-09T13:06:44 | 2018-03-09T13:06:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,046 | py | import requests
import datetime
from lxml.html import fromstring
from core.scraper_class import Scraper
from scrapers.rss_scraper import rss
from core.database import check_exists
import feedparser
import re
import logging
logger = logging.getLogger(__name__)
MAAND2INT = {'January':1,'February':2, 'March':3, 'April':... | [
"annekroon@gmail.com"
] | annekroon@gmail.com |
c538d7fb63b0fdaa6a301a56425e6565d8d4b84c | 818ec3399668d8e04840045fa371258c705b0dba | /Task1/prgm4.py | 233d583c8c24488f63efa2c51bdfa4686d16cbd1 | [] | no_license | jawed321/Spectrum_Internship_Tasks | 3da3702a4065d89db57f0dcaaa87f595ca39b8cf | 174fcd1172d28f87ef37152abdb568aaa2b0dbbd | refs/heads/main | 2023-06-01T03:38:40.369042 | 2021-06-28T12:45:52 | 2021-06-28T12:45:52 | 381,024,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Python Program to find the greatest common divisor(GCD) of a the given set of numbers.
# Function
def getgcd(x, y):
while (y):
x, y = y, x % y
return x
lst = []
n = int(input("Enter number of elements in the array : "))
for i in range(0, n):
element = int(input())
l... | [
"noreply@github.com"
] | noreply@github.com |
320fc489a681229a1477eb045d80b0b016199ef0 | 7b26a0058c05b35f3520d47bbe979b8fdebbaadb | /Scrappy/Scrapy3/quotetutorial/quotetutorial/items.py | 699dd4ca26f7da018509b65f05ce79936eaadc95 | [] | no_license | marco714/WebScraping | 7f66c7a1e08d450c0377a173fcaa85b8b1aab736 | 41655e0b11db59a344b09c0ad798d30361187754 | refs/heads/main | 2023-01-05T07:44:33.074919 | 2020-10-29T08:34:46 | 2020-10-29T08:34:46 | 308,264,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
# Extracted Data -> Temporary Containers (items) ->Storing in the databasae
import scrapy
class QuotetutorialItem(scrapy.Item):
# define the fields for your item here like:
title = s... | [
"iannarca123@gmail.com"
] | iannarca123@gmail.com |
7fa86d8b542bd91ae527f605694388c5e6e58d35 | 5608a9cd3bec8cab1c3f9d7f42896107b78593cc | /tests/unit/mock_docker/fake_stat.py | b85bc3b8007c8c020d9650a655a3cbcd34fdafe7 | [
"Apache-2.0"
] | permissive | troyready/runway | cdee6d94f42173c8aa0bd414620b68be36a510aa | 4fd299961a4b73df39e14f4f19a7236f7be17dd8 | refs/heads/master | 2021-06-18T16:05:30.712211 | 2021-01-14T01:44:32 | 2021-01-14T01:44:32 | 151,314,626 | 0 | 0 | Apache-2.0 | 2018-10-02T19:55:09 | 2018-10-02T19:55:08 | null | UTF-8 | Python | false | false | 2,990 | py | """Stats for fake Docker API."""
OBJ = {
"read": "2015-02-11T19:20:46.667237763+02:00",
"network": {
"rx_bytes": 567224,
"rx_packets": 3773,
"rx_errors": 0,
"rx_dropped": 0,
"tx_bytes": 1176,
"tx_packets": 13,
"tx_errors": 0,
"tx_dropped": 0,
... | [
"noreply@github.com"
] | noreply@github.com |
45c0b3714283c9d79c90ec16602557102296f6bb | 1a954a64050a62a09813f01a21bd60f8a8246ed1 | /KSI_make.py | 09bb36d75d5e078805dc4c8b863cef24aa748947 | [] | no_license | ZhaCong2017/KSI | 8319ad8b9671a31138e84cbe7752e8c9208f18a8 | f85bdb375457a76cf4bd250ba1447116c59406e1 | refs/heads/master | 2020-03-06T21:13:43.895525 | 2018-03-28T02:40:52 | 2018-03-28T02:40:52 | 127,072,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | import hashlib
import os
def eachFile(filepath):
pathDir = os.listdir(filepath)
hashlist = []
hashlist.append([])
for allDir in pathDir:
child = os.path.join('%s\\\\%s' % (filepath, allDir))
# print(child)
hashlist[0].append(readFile(child))
KSIBuild(hashlist)... | [
"noreply@github.com"
] | noreply@github.com |
e377f19b589481dbf905a552eec68820234caf36 | 021af6e39c6be7cb6a18b75247ca05d0f7dee09d | /algorism/week_3/03_insertion_sort.py | df3c43391eaaf373dc79f8693b2abe1bcc4560aa | [] | no_license | WonJunPyun/sparta | d92af505b6504e9b8d5cd6dc0368836faaecdbf8 | 6fb5ead73644ade6768197c3a5f56e40e3875a2a | refs/heads/main | 2023-05-28T01:47:56.979410 | 2021-06-13T08:37:24 | 2021-06-13T08:37:24 | 366,363,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | input = [4, 6, 2, 9, 1]
def insertion_sort(array):
n = len(array)
for i in range(1, n):
for j in range(i):
if array[i - j - 1] > array[i - j]:
array[i - j - 1] , array[i - j] = array[i - j] , array[i - j - 1]
else:
break
insertion_sort(input)
p... | [
"84018317+WonJunPyun@users.noreply.github.com"
] | 84018317+WonJunPyun@users.noreply.github.com |
fe8899a833f009acfbb52aa601ba0dd2f87d5642 | 9d9d09b01cf8fcab50b895de37f894d5b0cbcdcb | /tarotmodule.py | 63d05e82416113939b5640bfaf12bff57683d8d6 | [] | no_license | SBerenbon/Legion | daf7e5f0e5df0358f850f15169a816aa43bf0b8b | 8e6e0ae8109251a04ef224544b3a10a6967b139e | refs/heads/master | 2020-12-24T16:15:22.698022 | 2018-06-02T19:15:31 | 2018-06-02T19:15:31 | 37,211,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,258 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#make a version as a module, a Spread class, the base for different spreads
from random import randint, shuffle, seed
seed()
#store all the "Card 1, wisdom" etc in lists, so the individual spreads don't look ugly
#eventually, add reverse as an option?
#tarotspreads
class... | [
"sberenbon@gmail.com"
] | sberenbon@gmail.com |
a2c709a82b9f707add011e641eedf079ded0b67e | 95f9c734c4bf5de8e5d0adff9ac2cf0228df75ac | /Django/mysite-bak/mysite/polls/views.py | da0e946bc8b3ef8aea7fb16256eecbdb21caf692 | [] | no_license | holen/Python | 7a996b13ff2224084397223879c380169d47ff8c | 506fff291d6e9c6f80c30a51cc3b77e9dd048468 | refs/heads/master | 2022-12-12T22:12:51.561716 | 2019-10-16T03:08:00 | 2019-10-16T03:08:00 | 14,278,665 | 1 | 0 | null | 2022-12-08T00:51:26 | 2013-11-10T15:29:59 | Python | UTF-8 | Python | false | false | 2,090 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from polls.models import Question, Choice
from django.template import RequestContext, loader
from django.http import Http404
from django.shortcuts import get_object_or_404, render
from django.core.urlresolvers import reverse
... | [
"yh_zhl@sina.com"
] | yh_zhl@sina.com |
b4e60d4747db4b3823750c69fecee8522989f43d | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ControlRegions/SS/2016HIPM_v9/variables.py | b38df10fccc279186d7b3cf5a9b34a05e48c2e2e | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 3,120 | py | # variables
# 0 = not fold (default), 1 = fold underflowbin, 2 = fold overflow bin, 3 = fold underflow and overflow
#variables = {}
#variables['nvtx'] = { 'name': 'PV_npvsGood',
# 'range' : (20,0,100),
# 'xaxis' : 'nvtx',
# 'fold' : 3
#... | [
"nicolo.trevisani@cern.ch"
] | nicolo.trevisani@cern.ch |
3d2593dd343028f206e1548511ced66b3db3726e | e41876fccf0ba56bb7b5fa46d333c507055b0ead | /api/migrations/0002_alter_room_code.py | 0401a2ad051deedd790ad2b60c74e30cfa48b4f5 | [] | no_license | jainendra7373/vision | 363b186a6a3692963bdb7bc50eef0d792587d6d8 | 56142fe69ee88749c0767e04b08778ed0470e353 | refs/heads/master | 2023-05-27T17:45:18.277968 | 2021-06-11T11:47:21 | 2021-06-11T11:47:21 | 337,919,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Generated by Django 3.2 on 2021-05-23 12:00
import api.models
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='room',
name='code',
... | [
"jainendra@main-server.vision.samba"
] | jainendra@main-server.vision.samba |
f45efa63ee31b14e92c107bbbb7b463e735c765d | f018a5a2202ac659b8da7a873b15ea4bf83a4d6b | /Explaining_ML/permutation_importance.py | 0ba8f149ec702cb05ccae7bc4f919ced921aecc0 | [] | no_license | khthomas/machine_learning_class | 89b4bd1afb008d4a7fc190915bb443decb147d3d | 3de784c8b595c55b8401a2cfdb1cee2471e04749 | refs/heads/master | 2020-04-16T01:00:29.853148 | 2019-03-26T02:49:50 | 2019-03-26T02:49:50 | 165,158,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,319 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
import eli5
from eli5.sklearn import PermutationImportance
data_path = '/home/kyle_thomas/Documents/For_Others/ME/SMU/machine_learning_class/Explaining_ML/Data/FIFA_2018_Stati... | [
"khthomas@smu.edu"
] | khthomas@smu.edu |
cd48ec424a68cdd7160e48f82ac4d7e54ffecb4d | 509a947a27970f732fc73fd98a5f7b5dee412159 | /functions/aws_functions.py | 0966d5cd91e6106d381dced191edd5f36213558f | [] | no_license | Vlasko/electricity-upload | 925660b85173d70dcf0edcfa5148581a85be8c87 | b3acef60f95cb8605c20d4a41b22693d96dba801 | refs/heads/master | 2022-12-28T04:54:45.695418 | 2020-10-13T09:09:19 | 2020-10-13T09:09:19 | 228,801,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Standard Library Imports
# Third Party Imports
import boto3
from botocore.exceptions import NoCredentialsError
# Local Application Imports
from keys.AWS_keys import ACCESS_KEY, SECRET_KEY
def upload_to_aws(local_file, bucket, s3_file):
s3 = boto3.client('s3', aws_access_key_id=ACCESS_KEY,
... | [
"luka.j.v@gmail.com"
] | luka.j.v@gmail.com |
c1c9a05b329b20a1426443b132e09f4f15edab0d | c8aad23138ef904887bbd36dd617d49defefb94e | /certificate.py | 25e4e87c7fb98b63041fcf49ca07cae3a0566a6c | [] | no_license | pedro596/IEEE_certificate | f5e0a31f337368aa3132b4203b3c114572377205 | d1f1b689bb3b8c3c34bbf54d93aec63f810476ed | refs/heads/master | 2016-09-05T23:12:55.552412 | 2014-05-05T15:44:51 | 2014-05-05T15:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,857 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# ------------------------------------------------------ #
# Certificate Generator - Version:1.0.1 Date: 4/May/14 #
# --------- Specially designed to ISEPinIEEE ---------- #
# This module have one funtion > createCertificate #
# Author: Victor Fernandes | victorf... | [
"victorfern91@gmail.com"
] | victorfern91@gmail.com |
1fd9ce90f8f3415f21b24e8a45ccea0eb3176975 | 325deeeaf206ca8f188239d0bab8ccd6d2e81302 | /s2016/wsgi.py | b7e1e2ed8229392e85ec8e862300e16278b080af | [] | no_license | ksj1993/s2016 | 0549c7e84b7f105713772542c6756d1d9b0fcb3d | 3654eaaa992ec0f6eaea75ff71203fa7e577d292 | refs/heads/master | 2020-04-16T08:48:36.670928 | 2016-02-09T01:37:32 | 2016-02-09T01:37:32 | 50,819,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for s2016 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_SETTING... | [
"ksj2114@columbia.edu"
] | ksj2114@columbia.edu |
03709cd35e503c160fe8a9549efb876c563cb91e | 36c4533838d90c7cd9b578163edff6f18578ff6d | /main.py | d2061acaa5964c78dc51fffe78dc6b1cb44f6143 | [] | no_license | oneisme/ajaiblogin | b89d84b88bf4465781a520cbacc6fa95ffcb5e71 | 1790a66b8f1c48b0fd3de7d890680e43bfd3b1df | refs/heads/master | 2020-03-07T13:29:37.055386 | 2018-03-31T05:47:05 | 2018-03-31T05:47:05 | 127,502,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | dari QtWidgets impor PyQt5, QtCore, QtGui, QtWidgets
dari mainWindow impor Ui_MainWindow
impor sys, os
dari webdriver impor selenium
waktu impor
kelas execc :
progress_value = 0
stop_progress = Salah
def __init__ ( diri ):
app = QtWidgets.QApplication (sys.argv)
MainWindow = QtWidget... | [
"noreply@github.com"
] | noreply@github.com |
5da52ead45c4bd23ee3bdb92b61a53bf3af19766 | d12637f1cb7c6a77cb7363af84be5976b0da93d7 | /2 - Variáveis e tipos de dados em Python/Exercicios/ex19.py | 75185210eb98d41c79b01f981d6fbea5a0b11722 | [] | no_license | rafhaeldeandrade/learning-python | bb413a7020b793fd583042200de0f1cabce09a15 | 07856ce561243639e9758ef2428edcd367700163 | refs/heads/main | 2023-03-15T09:32:58.851739 | 2021-03-15T20:54:51 | 2021-03-15T20:54:51 | 336,089,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | """
19. Leia um valor de volume em litros e apresente-o convertido em metros cúbicos m3.
A fórmula de conversão é: M = L/1000 sendo L o volume em litros e M o volume em metros cúbicos.
"""
litros = float(input('Digite o volume em litros: '))
metros_cubicos = litros / 1000
print(f'{litros}l corresponde a {metros_cubicos... | [
"rafhael.andrade@hotmail.com.br"
] | rafhael.andrade@hotmail.com.br |
83658a7440868da6b0180c625b5ed67e754e09fd | 66bd932f799b0e6df3b007994e3809c95fba480a | /pratica0/000-hello-word.py | bcd9602fe976f6ef14f81002d01742f973ee672a | [] | no_license | carlabarden/pdi | e7d930aa13056d92ad812255d88f5fa3ee94b2fa | 84b7d9a0265954125c54ecd6708adf609bdd66b7 | refs/heads/master | 2022-09-30T05:34:33.693704 | 2020-06-07T18:23:07 | 2020-06-07T18:23:07 | 252,779,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | #biblioteca
import cv2
#ler a img
img = cv2.imread("../imgs/snowman.png")
#dimensões e tipo de dados
print("Dimensões: ", img.shape)
print("Tipo de Dados: ", img.dtype)
#mostrar a imagem em uma janela, até que se pressione uma tecla
cv2.imshow("Hello World ", img)
cv2.waitKey(0)
cv2.destroyAllWindows()
| [
"cdbarden@inf.ufsm.br"
] | cdbarden@inf.ufsm.br |
07fa58b0c6b9b98a5653e469cdbab5cf5474ff55 | cad7029098303844f09100e5231f714069a13ac2 | /src/emigrate/service/_CommandService.py | 5c53be708d85f002a6eeddc6db1efa6e07830a8c | [] | no_license | anilktechie/emigrate | 2b57a1cf0b0cc0627d837160584d8564d3cb63e7 | 8418b908b028596aa3d65cc62856db1af22a6030 | refs/heads/master | 2022-01-04T05:58:16.416378 | 2017-11-06T11:33:27 | 2017-11-06T11:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,693 | py | #
from __future__ import absolute_import
from logging import getLogger
from sys import stdout
class CommandService(object):
def __init__(self, context):
self.__log = getLogger('emigrate.service.command')
self._context = context
self._actions = []
def initialize(self, **kwargs):
... | [
"vit1251@gmail.com"
] | vit1251@gmail.com |
4e34a730b864d69b523b57e3aa77e1fa634c28c4 | 63799e607c7273ca8d1e911abae8924ce9fbceac | /detect_color_copy.py | bb655c898c6164e4718b14be1778507132de2d5e | [] | no_license | LeiZheng/pycv-lab | bed13b23c1aa82778e7ace5c758b042cf5732a2c | 1f2c0ae0fd13baae24808083316c03dbbbd60c87 | refs/heads/master | 2021-09-13T20:43:59.398193 | 2018-05-04T03:48:55 | 2018-05-04T03:48:55 | 116,767,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | import argparse
import cv2
from matplotlib import pyplot as plt
# initialize the list of reference points and boolean indicating
# whether cropping is being performed or not
import numpy as np
refPt = []
cropping = False
def find_first(item, vec):
"""return the index of the first occurence of item in vec"""
f... | [
"lzheng@xosdigital.com"
] | lzheng@xosdigital.com |
824fb1171df745eaa8010e468a8f9c1484f23197 | db8a515c6bf71d891f9a4e53436d3900f2601cf6 | /leer.py | 61083fddfc6f95348575bbff3841da6e37944afd | [] | no_license | RubennCastilloo/curso-python | 6b0159e315da1013de3b359918fc1864fca9df13 | 45ae1bb7ba8f4043151e4143d04384ce77771bd4 | refs/heads/master | 2023-05-25T17:10:30.231500 | 2020-01-24T16:15:01 | 2020-01-24T16:15:01 | 228,020,413 | 0 | 0 | null | 2023-05-22T22:38:32 | 2019-12-14T12:36:42 | Python | UTF-8 | Python | false | false | 489 | py |
def run():
counter = 0
with open('aleph.txt') as f:
# with open('texto.txt', 'r', encoding='utf8') asf: Para manejar errores con tildes
# print(f.readlines())
for line in f:
counter += line.count('Beatriz')
if counter == '1':
print('Beatriz se encuentra ... | [
"rcastillo@raivtech.com"
] | rcastillo@raivtech.com |
34b08ad6d210010c6b2ade8a424b60497a2db040 | 586fd4e95d148dd26a20c9c3657731dd7fbecbcf | /K_fbV/para_split_grid.py | c1cf6d887bc8db6904a243f37a346d404c346ab2 | [] | no_license | howardx/FacebookV | 8c7a0ce04cdb54e15c694243a353394ba5511225 | 29b4528ccb9f44ed955f6b20783fbf1c7d6b0c24 | refs/heads/master | 2020-04-06T03:52:29.424655 | 2016-06-12T01:09:37 | 2016-06-12T01:09:37 | 58,887,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,391 | py | import pandas as pd
import numpy as np
from itertools import tee, izip
import os
from multiprocessing import Manager
manager = Manager()
# a helper function takes an iterable, return its stepwise pair tuple in a list
# [1, 2, 3, 4, 5] -> [(1, 2), (2, 3), (3, 4), (4, 5)]
def pairwise(iterable):
floor, ceiling = ... | [
"howardx@example.com"
] | howardx@example.com |
e7b2d8da1a97d6d7fcac655adc0ed51d7ad9f346 | b6274870beca3e066cb453ee76aa970bad60227b | /data-collection/models.py | 52cf892f493af9f02c4994d2ea5dd7f2cf9823d8 | [] | no_license | EchoExplorer/dataCollection | 48fbf367300e66edb5adde9b1108ed8810bbe00f | 8eede58d16ba6c66a3e02a3312828985ec5db8d5 | refs/heads/master | 2021-01-17T06:17:33.296235 | 2016-06-23T07:09:56 | 2016-06-23T07:09:56 | 51,801,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from django.db import models
class CrashLocation(models.Model):
x = models.IntegerField(max_length=3)
y = models.IntegerField(max_length=3)
detail = models.CharField(max_length=300)
class GameLevel(models.Model):
level = models.IntegerField(max_length=3)
numSteps = models.IntegerField(max_length=5)
numCrashes =... | [
"hchivuku@andrew.cmu.edu"
] | hchivuku@andrew.cmu.edu |
af9be54eaf0a11d0367b22715385e1cf75d92fd0 | 5acd7b67ff7a50af9aa2f232c80c4e61a702e565 | /main.py | 90a7749579de7c468cf645eebd6453ef340d4d41 | [] | no_license | joelmoxley/materialsmodel | 7aa199bc5c8d57ffca42857d8b84490ec7b535f3 | f920bac4afe2953261f02f1d3955e0362dd78795 | refs/heads/master | 2016-09-06T18:50:10.518489 | 2010-12-20T01:30:38 | 2010-12-20T01:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py | import logging
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.dist import use_library
use_library('django', '1.1')
from google.appengine.ext.webapp import template
class FetchLMECobaltPrice(webapp.RequestHandler):
def get(self):
"""... | [
"kljensen@gmail.com"
] | kljensen@gmail.com |
ff9d10c84448a1f47b8ab9374247b004431a8c67 | 766da3ffcbd26e7f58d711f5b0e7312cb365e9fb | /layers/transformer/__init__.py | 9950eabee3288f70b34f0e30bc81b80b808266ca | [
"MIT"
] | permissive | RobertCsordas/ndr | 1277b353eb61267e023b671072730bdc7e779ca5 | da20530dfb4336deddfbe5e79d62e72d1dc2580e | refs/heads/master | 2023-09-02T22:38:57.601098 | 2021-11-19T09:52:23 | 2021-11-19T09:52:23 | 414,588,414 | 20 | 4 | null | null | null | null | UTF-8 | Python | false | false | 489 | py | from .transformer import Transformer, AttentionMask
from .relative_transformer import RelativeTransformer
from .universal_transformer import UniversalTransformer
from .universal_relative_transformer import UniversalRelativeTransformer
from .transformer import TransformerEncoderWithLayer
from .relative_transformer impor... | [
"xdever@gmail.com"
] | xdever@gmail.com |
c15fc215e37c0aa60636c4aae2960bc6958f9a65 | 1a82f25cc66f551385c5d0e8e39cc22fdf254cf9 | /base_dir/settings.py | a108ae59b41c7968c5024958bffad4f06f1775ff | [] | no_license | nimit07/articleList | 742db832ed327ca8d153c9611ec02716feb54e76 | a79982ec6a7a7314ee695146fbc8631c45a9a612 | refs/heads/master | 2021-01-10T20:36:13.595528 | 2015-09-16T23:09:35 | 2015-09-16T23:09:35 | 42,388,885 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | """
Django settings for base_dir project.
Generated by 'django-admin startproject' using Django 1.8.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build pat... | [
"nimitkhandelwal7@gmail.com"
] | nimitkhandelwal7@gmail.com |
50aa2f697843cdae8870254969edb835c40acae3 | c817f45a7045048094081c88dabca2c0eec507ad | /compose/config/validation.py | 26f3ca8ec7a933da896cd0ef8bb601076c57d554 | [
"Apache-2.0"
] | permissive | liemtranvu/compose | a18ae5ac6908cf226a08722f601a957fe9028b55 | 2da8b7e511038d390274fbc5c57f95535c9a8e1b | refs/heads/master | 2021-01-18T08:52:33.827520 | 2015-08-24T15:23:33 | 2015-08-24T15:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,328 | py | from functools import wraps
import os
from docker.utils.ports import split_port
import json
from jsonschema import Draft4Validator, FormatChecker, ValidationError
from .errors import ConfigurationError
DOCKER_CONFIG_HINTS = {
'cpu_share': 'cpu_shares',
'add_host': 'extra_hosts',
'hosts': 'extra_hosts',
... | [
"mazz@houseofmnowster.com"
] | mazz@houseofmnowster.com |
da438d62796849f5943b946b0eb503f9de653e05 | 16c3e2fb7fa78331a49a729f7f9a74bc3db85b34 | /viceversa/settings.py | cb1ee8a6f791e8d566e7b1059865c6736d139e68 | [] | no_license | DianaKh1988/vice-versa | 5c3328039192fefcd806a652e262556889eb0c12 | 864a2306348a4b8b98b482c8c153a8dd4770bd34 | refs/heads/main | 2023-02-16T17:27:03.988822 | 2021-01-15T15:31:32 | 2021-01-15T15:31:32 | 329,625,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | """
Django settings for viceversa project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"dianakhromova88@gmail.com"
] | dianakhromova88@gmail.com |
eed27667191baccdf291ad846b1ccb2cc4275663 | 13247ea52905d9eb975de04817fdfa92d7027499 | /app.py | 7f1581484faee43578a88bc3b7254e22250d39f7 | [] | no_license | Johnny-Morgan/thorin-flask-app | 72a9f7891ac31d84509435dc557117d3992a9359 | 8707033f7eb2ce3348cbb40d6c2c2d0d80c890a1 | refs/heads/master | 2023-03-09T01:10:58.512153 | 2021-02-24T23:37:52 | 2021-02-24T23:37:52 | 340,091,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | import os
import json
from flask import Flask, render_template, request, flash
if os.path.exists("env.py"):
import env
app = Flask(__name__)
app.secret_key = os.environ.get("SECRET_KEY")
@app.route("/")
def index():
return render_template('index.html')
@app.route("/about")
def about():
data = []
w... | [
"jwjmorgan@gmail.com"
] | jwjmorgan@gmail.com |
2e9c6fc968033b44b3c7a9c988f79f368e6d525a | b8a339dc077aca5af2555b2a49beee66dbf60ff6 | /capture_camera_test_1.py | b667b19d0346f3ab0ed92aebde85cb53a6b96007 | [] | no_license | AlexLexx706/opencv_tests | 7606e03163722b0f2ce83f9c676ee9419735754f | d7d8556eddab749f733d8562ca0387043ab51a96 | refs/heads/master | 2020-04-05T23:24:56.963044 | 2014-02-28T23:15:25 | 2014-02-28T23:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import cv2
import numpy as np
cap = cv2.VideoCapture(0)
while(1):
# Take each frame
_, frame = cap.read()
# Convert BGR to HSV
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
# define range of blue color in HSV
lower_blue = np.array([110,50,50])
upper_blue = np.array([130,255,255])
# ... | [
"kalmykov_av@stel.ru"
] | kalmykov_av@stel.ru |
e1da3255668999c3b77aa8c9332b197a9203478e | 42104a0ebfc03caf9c7648211ca6ac69de984cbb | /memedata/errors.py | 1a923ec91aa865271c3a85ad8fe34bf5b1120fc9 | [
"MIT"
] | permissive | bomdiabot/memedata-service | 61fbdf00d32fb9ef55f352aa400c8830588b8cfe | 52c772c1440901fd23bc8d5254d1f16d11d6c629 | refs/heads/dev | 2022-12-09T13:46:29.588250 | 2018-10-29T23:31:30 | 2018-10-29T23:31:30 | 147,910,641 | 2 | 0 | MIT | 2022-12-08T02:53:13 | 2018-09-08T07:09:59 | Python | UTF-8 | Python | false | false | 1,818 | py | from marshmallow import ValidationError
from werkzeug.exceptions import HTTPException
from flask_jwt_extended.exceptions import JWTExtendedException
from memedata.util import mk_errors
from memedata import config
def jwt_error_handler(error):
code = 401
messages = list(getattr(error, 'args', []))
return mk... | [
"erik.perillo@gmail.com"
] | erik.perillo@gmail.com |
3c1b868d3cac228676723fa206baae291441009e | 1a52315a176bd011d93e16ab51603e4ee92b8fae | /Hackerrank/Algo/Python/PDFViewer.py | 2bfdfc76dd76b5e5ee458d68486e3e0e6f33c2f9 | [] | no_license | divyamagwl/CompetitiveProgramming | c2fd3a2a02e3ecac0d06f2de550c84337a261b73 | fe2feb342e0a4d971c7809c0ee4f6290d5231b77 | refs/heads/master | 2023-02-11T01:28:22.744590 | 2021-01-09T12:40:34 | 2021-01-09T12:40:34 | 240,654,489 | 3 | 3 | null | 2020-10-01T10:46:34 | 2020-02-15T06:08:42 | C | UTF-8 | Python | false | false | 616 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the designerPdfViewer function below.
def designerPdfViewer(h, word):
width = len(word)
letters = "abcdefghijklmnopqrstuvwxyz"
height = -1
for i in word:
if(h[letters.index(i)] > height):
height ... | [
"noreply@github.com"
] | noreply@github.com |
def5bee172c99dbc14e305944d436ace1638ad7d | 3082387a331ac52fdb6f216eaee67c1c645edb18 | /script/old/batchClip_modelbuilder.py | fd2c535c614a1a30446536e93d52ddf1243119b7 | [
"Unlicense"
] | permissive | baltimorecounty/address-points | 39ca5130ba95f73e51d3c82df496645e006ff7ea | 10aacf00e051d11ff5dffda6b52550691d0342cf | refs/heads/master | 2021-01-21T13:11:52.815354 | 2014-04-14T13:45:38 | 2014-04-14T13:45:38 | 12,600,612 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# batchClip_modelbuilder.py
# Created on: 2013-11-29 09:54:29.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy m... | [
"elliott.plack@gmail.com"
] | elliott.plack@gmail.com |
d4aefcb5ce4616d247dcce6e3df3236b7ba1794c | 32921e595e7a09524ae8abb5f4d01ab3436407d8 | /trunk/Setup/DocType/Territory/Territory.py | c5c66af532f444394c6662d8c99123519a86cb8d | [] | no_license | ranjithtenz/stable | 605742259068fbe3c40126edddf28f7a6b5400ef | 92b05c9106a0c69412983c28fbc3ea14306cc47a | refs/heads/master | 2021-01-01T20:48:47.515534 | 2011-02-10T12:56:10 | 2011-02-10T12:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | class DocType:
def __init__(self, doc, doclist=[]):
self.doc = doc
self.doclist = doclist
self.nsm_parent_field = 'parent_territory'
def check_state(self):
return NEWLINE + NEWLINE.join([i[0] for i in sql("select state_name from `tabState` where `tabState`.country='%s' " % self.doc.country)])
... | [
"ranjith.k@sedin.co.in"
] | ranjith.k@sedin.co.in |
476654bc49e7272f77917b445426eaf80a1cee93 | 35efa105f00073303284103699fcaec54045a8a4 | /invoke_servers.py | d3bd5d43949a4ac06d60f0cf6a4d3fb25c6e0e22 | [] | no_license | Quantumke/mpesaapi | b12c7e663fc89d6b98170a229b7876fdb5c1541f | e0941927b194d361f443aa8cf665fc3cfce71bca | refs/heads/master | 2021-01-19T00:25:47.958078 | 2016-05-27T09:19:27 | 2016-05-27T09:19:27 | 59,822,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | import urllib.parse
import urllib.request
import ssl
def invoke_server():
url="https://safaricom.co.ke/mpesa_online/lnmo_checkout_server.php?wsdl"
values = ({
"MERCHANT_TRANSACTION_ID": "1",
"PASSWORD": "1",
"REFERENCE_ID" :'1',
"TIMESTAMP":'1461164700'
})
find_a_better_way = ssl.SSLCo... | [
"nguruben@gmail.com"
] | nguruben@gmail.com |
460c7b578eff351a79b2f870f67f5189f05a81a9 | b3ffdb4d8f648eadc8a0b8f7fb097390e99a91be | /preprocess/ROT/main.py | 36c3c32fac93c7431e6d1bb7a86960a494a571ea | [] | no_license | anshiquanshu66/MTM | e2c163fd4e13cb42745f3f6f12d8013d35e51b97 | 72a694cc6a22c1b49ea20c2b0115b5b68f0ddbe0 | refs/heads/main | 2023-06-10T13:14:16.211898 | 2021-07-06T12:30:41 | 2021-07-06T12:30:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,044 | py | # -*- coding: utf-8 -*-
"""
@author: RMSnow
@file: eval.py
@time: 2020/10/29 10:50
@contact: xueyao_98@foxmail.com
"""
import os
import time
import json
from tqdm import tqdm
import pickle
import random
import numpy as np
import torch
import torch.nn as nn
from torch.utils.data import DataLoader, RandomSampler, Sequ... | [
"xueyao_98@foxmail.com"
] | xueyao_98@foxmail.com |
9e8d908bb9a3e0df4f77747904f891c8cc6123f0 | f0a162f6c6fbc2b7afe087c2be516f46f64ce593 | /src/transformers/models/nllb_moe/configuration_nllb_moe.py | 03a37bb35d6b4f5f444db167f5702e90a14e6447 | [
"Apache-2.0"
] | permissive | tianyi-chen/transformers | a6a17aa0a7f3fb9c1abd23a0942f503186e2ef92 | b29fd6971d9cd6ba2a824628effe243f543b8f61 | refs/heads/main | 2023-03-30T17:04:44.776022 | 2023-03-28T14:42:02 | 2023-03-28T14:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,315 | py | # coding=utf-8
# Copyright 2023, HuggingFace Inc.
#
# 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... | [
"noreply@github.com"
] | noreply@github.com |
31abd5ef24459b6c62af258b25f1201638b650b3 | 8e1d05d2e130e30585a08b54ce8d613ee78d6b8c | /Evaluation/modularity_analysis.py | 93c04dc25880df6da1ce71526c29416018e92e39 | [] | no_license | mturja-vf-ic-bd/AD-Longitudinal-Smoothing | 11793fafcfb039629a5a5265d98789a1e1576de2 | 10fafdd57c63cc7b5a1c0400abdbfaa4353254f3 | refs/heads/master | 2020-04-16T17:09:14.790401 | 2019-08-17T17:05:54 | 2019-08-17T17:05:54 | 165,764,720 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | # Modularity Analysis of the raw and smooth connectomes
# The goal is to show that our method produce connectomes that has consistent modularity along time
#from bct import community_louvain
import numpy as np
from utils.readFile import readSubjectFiles
from plot_functions import plot_matrix_all, plot_community_structu... | [
"mturja.vf.ic.bd@gmail.com"
] | mturja.vf.ic.bd@gmail.com |
ba0ed21f514a96ce88c3e696e06318b7e08f47aa | bf34acf1e354230a32331a2f00a061e3f57cc32d | /scripts/querystack.py | 211d6f4f1b440ee8b76c72fe9bfd56a8574f0a07 | [
"BSD-3-Clause"
] | permissive | zuds-survey/zuds-pipeline | a390ade01df3d3dfbc6d00eea129b799afb74dae | 16a8f034983c194f9fed53659b926f733b738069 | refs/heads/master | 2022-11-30T10:20:30.338324 | 2020-08-06T19:49:28 | 2020-08-06T19:49:28 | 256,986,955 | 10 | 3 | BSD-3-Clause | 2020-08-12T16:24:37 | 2020-04-19T11:54:53 | Python | UTF-8 | Python | false | false | 2,620 | py | import zuds
from datetime import timedelta
import pandas as pd
import sys
import sqlalchemy as sa
outfile = sys.argv[1]
zuds.init_db()
# set the stack window size
STACK_WINDOW = 7. # days
STACK_INTERVAL = timedelta(days=STACK_WINDOW)
# create the date table
gs = sa.func.generate_series
timetype = sa.DateTime(time... | [
"dgold@berkeley.edu"
] | dgold@berkeley.edu |
118b3f62bb9d66b7eb8dbaf93f80b8a13613532b | f33c4d3236a8f9e15b25c681892b80bacc1ee431 | /FirstApp/migrations/0005_auto_20191216_2020.py | 8874615255d6486a8fd05f96fe27cfae3ca472ed | [] | no_license | yogesh-shinde/Job-Portal | 15a671e5b1d68af1269699716b438d5deba0fa41 | d4e223c00945ee0ac5f1462d1ff6d23f05e836a0 | refs/heads/master | 2022-02-13T16:51:08.852669 | 2022-01-26T13:55:14 | 2022-01-26T13:55:14 | 227,772,407 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | # Generated by Django 3.0 on 2019-12-16 14:50
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('UserApp', '0001_initial'),
('FirstApp', '0004_auto_20191216_2008'),
]
operations = [
migrations.AddFi... | [
"shinde_yogeshr@yahoo.com"
] | shinde_yogeshr@yahoo.com |
2ee0088396c8b6299c327c0d2faefc2d53d9a962 | f0cec246e2f30f6b4ee5656f1cb6406dd0f7879a | /thingsboard_client/models/rule_node_id.py | cad448df1ff67cb7c21896a0d4480fd703c9bb39 | [] | no_license | ascentio-tech/thingsboard-swagger-client | 4e2f7c943e243ec8505c32dab0aa3d6cf1559105 | 1e8bf7664c281c29612fd5b44261f049ca7c44fd | refs/heads/master | 2021-07-20T07:18:12.969459 | 2020-06-17T02:35:54 | 2020-06-17T02:35:54 | 184,322,192 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | # coding: utf-8
"""
Thingsboard REST API
For instructions how to authorize requests please visit <a href='http://thingsboard.io/docs/reference/rest-api/'>REST API documentation page</a>. # noqa: E501
OpenAPI spec version: 2.0
Contact: info@thingsboard.io
Generated by: https://github.com/swagger-... | [
"gmatheu@ascentio.com.ar"
] | gmatheu@ascentio.com.ar |
e61de5896d8f03ac07781ca6346936bfb668d142 | 3882f6887ee68b2fb7ff85c47fafe742f82d8c4b | /imagecapture.py | 14610aeda7e1dfb22a5a906c389910718fead37a | [] | no_license | zarigata/TELLO | 26d7be48b71d426c919f5ac7d460d46c93530a7a | 84d2e66c7a74ccc7139de4d656d9976e7f9e0e22 | refs/heads/master | 2023-07-27T09:50:18.272083 | 2021-09-11T14:07:28 | 2021-09-11T14:07:28 | 405,395,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | from djitellopy import tello
import KeyPressModule as kp
import numpy as np
from time import sleep
import cv2
import math
######## PARAMETERS ###########
fSpeed = 117 / 10 # Forward Speed in cm/s (15cm/s)
aSpeed = 360 / 10 # Angular Speed Degrees/s (50d/s)
interval = 0.25
dInterval = fSpeed * interval
a... | [
"vallestrauch@yahoo.com"
] | vallestrauch@yahoo.com |
05e6eabeb47851f352d08410fed15c1810e190dc | e14ce84895933a14520c820fc3e95cd660b68374 | /Jeter_Dustin_ForLoopBasic2.py | f99dcd52b68ef448ff6db5ac16dbaf6226340aa7 | [] | no_license | Drjeter/Bootcamp-Python | b7d1012866d385ff564f59ed38c42352b388b600 | 2c9a0dd26277b094a98e29d8105682958e7d07b6 | refs/heads/main | 2023-06-26T03:00:45.139048 | 2021-07-12T04:50:36 | 2021-07-12T04:50:36 | 376,435,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,362 | py | # Biggie Size - Given a list, write a function that changes all positive numbers in the list to "big".
# Example: biggie_size([-1, 3, 5, -5]) returns that same list, but whose values are now [-1, "big", "big", -5]
def Biggie(list):
for number in range(len(list)):
if list[number] > 0:
list[n... | [
"noreply@github.com"
] | noreply@github.com |
5e6da40e16daacc02b88bc34640e13eb872d5a0d | 48559a749d1663242c31ba6a996945932049b7d9 | /pre_processing.py | e004857e0234fae318157b8be2c3574b17ad6314 | [] | no_license | EthanCDD/Adversarial-Attack_Genetic-attack | 148893af12e2081094c3f5a3801d243b0d344acd | 81191a52a3bade73d114d8837637c74edc0a5c51 | refs/heads/master | 2022-12-24T13:18:46.681250 | 2020-10-09T01:38:15 | 2020-10-09T01:38:15 | 273,260,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,613 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jun 24 15:54:12 2020
@author: 13758
"""
import os
import re
import numpy as np
from collections import OrderedDict, defaultdict
class pre_processing(object):
def __init__(self, path, max_vocab, length):
# extract all dataset
self.l = length
self.max_vocab = ma... | [
"dc15426@my.bristol.ac.uk"
] | dc15426@my.bristol.ac.uk |
2e591c75cf416554f2390d6f07ce14a30e727956 | c715bed016b2e414495fe05b1e3e1d49e78751e9 | /project/mydemo/demo6.py | 6e88b818c39177907efb52ec8393b505bf08ecec | [] | no_license | hzqfxx/python | d134de824a33aec9d10bc5ac7626ceb3ebe03701 | 6b97a7bf81090c0835854c77687cd5543c04933c | refs/heads/master | 2020-03-16T00:53:36.798934 | 2018-05-07T08:30:11 | 2018-05-07T08:30:11 | 132,427,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,472 | py | #!C:/Users/xiaox/Anaconda3 python
# -*-coding:utf-8 -*-
import functools
import datetime
import time
def log(text):
def decorator(func):
@functools.wraps(func)
def wrapper(*args,**kw):
print("好像代理啊! 执行%s 方法%s()" %(text,func.__name__))
return func(*args,**kw)
return ... | [
"xiaoxiang0719@126.com"
] | xiaoxiang0719@126.com |
7e59f965301071339cf8b02f1232ee076d1d8bc1 | d697c1d45e96bd440be9c17ab14243a5882b1f52 | /qianfeng/常用模块/Tkinter/Text控件.py | 720a8d02a87bfe968a9f57bcdad6841620b2607e | [] | no_license | ithjl521/python | 9eeda2e60dda97ee36e8764c06400eb12818689f | f4fe50799501c483cb64445fd05ee0f30f56576c | refs/heads/master | 2020-07-12T23:10:53.608276 | 2019-11-08T08:59:35 | 2019-11-08T08:59:35 | 204,931,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import tkinter
# 创建主窗口
win = tkinter.Tk()
# 设置标题
win.title('title-hjl')
# 设置大小和位置
win.geometry("400x400+200+50")
'''
文本控件,用于显示多行文本
'''
text = tkinter.Text(win,width=30,height=4)
text.pack()
str = '''
【推荐】超50万C++/C#源码: 大型实时仿真组态图形源码
【活动】阿里云910会员节多款云产品满减活动火热进行中
【推荐】新手上天翼云,数十款云产品、新一代主机0元体验
【推荐】零基础轻松玩转华为云产品,获壕礼加返百元大礼
【推... | [
"it_hjl@163.com"
] | it_hjl@163.com |
76038704f149d0d0ccd6d599ce1c41e91226c9e4 | 827755891aaf0244caed9f7c7dbd8fa56412e78c | /day5/枚举Study.py | 09279a2f67de5a0a783e56baefffc1d540a04f13 | [] | no_license | quanwen20006/PythonLearn | d5eeff32270f20cd688affcd75bc189cee8042ef | e37092427ef9352fd6fc79a6cba370ace1285960 | refs/heads/master | 2022-05-31T14:11:45.670871 | 2022-05-24T07:27:01 | 2022-05-24T07:27:01 | 148,615,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | from enum import Enum
from enum import IntEnum, unique
'''
python枚举使用,枚举使用,或枚举遍历
IntEnum 要求枚举类型的值,必须为整形
unique 要求枚举类型的值必须唯一,用法如下
@unique
class A(Enum):
YELLOW = 1
GREEN = 1 # 会报错
'''
class VIP(Enum):
YELLOW = 1
GREEN = 2
BLACK = 3
RED = 4
print('类型:', VIP.GREEN.n... | [
"wen.quan@pheiot.com"
] | wen.quan@pheiot.com |
1347cb0bc5e3e45e3059dc21bc39542075d68074 | 5bab35edb162c30d6439775f66ac2705e460d36a | /com/a_py/index.py | 9fea07eea612f8b26a34cb44a7fa4dc8d2972ddb | [] | no_license | zhoujiahua/python_study | eb78dacef4a2a7248649f8324809f9a40bbe904d | 9cfd2cca89cd849aaeb10364de0ff48858823d4c | refs/heads/master | 2021-03-26T19:35:19.526267 | 2020-03-23T10:06:22 | 2020-03-23T10:06:22 | 247,742,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | #!/usr/bin/python3
# -*- coding: UTF-8 -*-
from flask import Flask, request
app = Flask(__name__)
@app.route('/')
def hello_world():
return '<h1>波波来吃鸡,我们开挂横着走!</h1>'
@app.route('/welcome')
def welcome():
return '<h2>哟西。。。。。</h2>'
# Get request
@app.route('/info')
def info():
a = request.args.get('a'... | [
"jerry.zhou@ptn.advantest.com"
] | jerry.zhou@ptn.advantest.com |
993811c79fbcce8ed6bb3b3f117b9e8bd71cf972 | 99f6f7c015dcc679d9b224b72eb0e2264e88adbf | /mysite/mysite/urls.py | b671de8317b0d558df87b72a10524855cecc777c | [] | no_license | Gensias/SimpleIMS | d47a842df3ddc6926d0d5c9ef6b3932971491705 | 8a34cf767d847a5346baea91153bda7363977dbf | refs/heads/master | 2022-04-07T11:10:13.144596 | 2020-02-22T07:08:11 | 2020-02-22T07:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('basic/', include('basic.urls', namespace='basic')),
path('sale/', include('sale.urls', namespace='sale')),
path('finance/', include('finance.urls', namespace='finance')),
pa... | [
"2721327967@qq.com"
] | 2721327967@qq.com |
9e374836569d4aa1541f6d838fc0cf6528594d4e | 70c69365a7a5b86af601fbf071f221c85abef9fc | /tensorflow/python/tpu/api.py | 540f425494a6a23291c5ec68fa93deda8c08911a | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | dyna999/tensorflow | 3ed8f243b8cc8bb30a8c96dbd30e4b27be226f83 | 163c946f6827ce9e3ffa49e56fa65ce520bf6ea5 | refs/heads/master | 2022-03-28T03:00:28.650532 | 2022-03-25T22:47:49 | 2022-03-25T22:51:26 | 97,944,926 | 0 | 0 | Apache-2.0 | 2022-01-07T22:43:29 | 2017-07-21T12:22:03 | C++ | UTF-8 | Python | false | false | 1,365 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
42d294449d87d8f5270b8c6904bee4b4a06c957d | 035cf711a22d489e305b68554c4937e3cf51e925 | /motion_detector.py | 9d53842338c71bb2acd2f495f202ef29324fface | [] | no_license | itavares/Master-s-Project---Image-Processing-Analysis | fe7b8c0f6b2dd784506618e56377fdf5b8c47d81 | 70919e4e0f353964e02e24bdefb0c298e5b00c89 | refs/heads/master | 2022-06-14T20:11:42.107577 | 2020-05-05T22:16:31 | 2020-05-05T22:16:31 | 260,067,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | '''
// ===============================
// AUTHOR : Ighor Tavares
// CREATE DATE : FEB 16,2020
// PURPOSE : Master's Project
// SPECIAL NOTES: Please, ask permission to reuse this script (f.tavares@wustl.edu)
// ===============================
'''
import cv2, time, pandas
f... | [
"noreply@github.com"
] | noreply@github.com |
d9840cd23e285c4fb99de135ac90de6f39ed3f37 | 120109b022ec7baa43ca412ef4ea766d814bec69 | /code/DNN/MiniFramework/DataReader_2_0.py | a42a2dffa73e54fd70c8fd430fa499ff40d65dc1 | [
"MIT"
] | permissive | Knowledge-Precipitation-Tribe/Neural-network | e13ca4475881fbb7a40e01cc55c4c0b69c8fc7e8 | eac2e66cdde85b34ddf9313ce4d2b123cc1b8be8 | refs/heads/master | 2023-01-05T07:13:38.429446 | 2020-10-27T00:33:02 | 2020-10-27T00:33:02 | 260,854,463 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,690 | py | # -*- coding: utf-8 -*-#
'''
# Name: DataReader_2_0
# Description:
# Author: super
# Date: 2020/6/2
'''
import numpy as np
from pathlib import Path
from MiniFramework.EnumDef_4_0 import *
"""
X:
x1: feature1 feature2 feature3...
x2: feature1 feature2 feature3...
x3: feature1 featu... | [
"supeng842499467@gmail.com"
] | supeng842499467@gmail.com |
9f531e0eaf6f4b7c54ba7928cb1cfa50714bfe90 | 49dbac90edc329416525825e842382470345641d | /tests/medium/test_num_sum.py | 13f451161779c5dc0a928281932484afcf2ce90a | [] | no_license | AleksTor/belhard_6_tasks | 4a9ed9367978a2086531a9e31f2d1c71a17446b6 | f5f77a622bbb020a01d251423cbb5f25cc6239f3 | refs/heads/master | 2023-07-26T19:10:22.957008 | 2021-09-13T02:19:28 | 2021-09-13T02:19:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | import pytest
from tasks.medium.num_sum import sum_of_numbers
@pytest.mark.parametrize(
"n, expected", (
(123, 6),
(1111111, 7),
(4, 4),
(935145, 27),
)
)
def test_sum_of_numbers(n, expected):
assert sum_of_numbers(n) == expected
| [
"rineisky@gmail.com"
] | rineisky@gmail.com |
af566ecfbb44440a1ec164059caab18a664f4f21 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/fdlm_chordrec/chordrec-master/experiments/mlsp2016/create_crf_init_params.py | 989cab4c857b5f28322c54b30be3b0271045634f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,285 | py | import numpy as np
import pickle
import os
from docopt import docopt
from glob import glob
from os.path import join, exists
USAGE = """
create_crf_init_params.py - creates initial crf parameters from a learned
gap convnet.
Usage:
create_crf_init_params.py <src_dir> <dst_dir>
Argument... | [
"659338505@qq.com"
] | 659338505@qq.com |
97210ea3fec9b92d035e5e3c826327e710361fdc | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /pytools/utilities/python/tklib_image_utils.py | fcfd1fa577b7d1e1f3361b64d84d1a8f276abf3b | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,553 | py | from copy import deepcopy
from scipy import *
def median_filter(myimage, filter_size):
new_map = deepcopy(myimage)
#for i in range(filter_size, len(myimage)-filter_size):
# for j in range(filter_size, len(myimage[0])-filter_size):
for i in range(len(myimage)):
for j in range(len(myimage[0])... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
20169d96b9401968bcdf127adb0320da202ddc15 | f79586acccd5158ace0e4b3ca3975a87d0849ccd | /lib/curate_seq_results.py | a8894837b0630e766b3af9cdef392425b5ca20f9 | [] | no_license | VADGS/CutShaw | a931cae8f348b613fb5ac298c8135159b0751c4c | 100b0fc9f666b5883c8cb080712aed49a589eaea | refs/heads/master | 2022-01-21T23:58:06.328927 | 2019-08-08T15:04:06 | 2019-08-08T15:04:06 | 174,561,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,652 | py | #!/usr/bin/env python3
# author: Kevin Libuit
#email: kevin.libuit@dgs.virginia.gov
import os
import sys
import shutil
import argparse
import re
import csv
import pandas
import datetime
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '../..'))
from CutShaw.core import fileparser
from CutShaw.core im... | [
"kevin.libuit@dgs.virginia.gov"
] | kevin.libuit@dgs.virginia.gov |
10f62ec3a8697a62635c2408154fb6daefdc7917 | cec39328bdcd5cddb0f0f85897fd3959f74f80ea | /scripts/reapr/parse_assembly_correction_rhody.py | 6a42856e98bc65b0faed7758793d4ea46773140d | [] | no_license | ksahlin/GetDistr | a1d6bbdf76760cfa73c1ad97ffb65c89203cccbb | 145cfff4be4edf4938feed94484b8c10ae076740 | refs/heads/master | 2016-09-09T18:23:45.125528 | 2015-12-28T18:59:35 | 2015-12-28T18:59:35 | 12,197,608 | 7 | 1 | null | 2015-10-28T21:23:23 | 2013-08-18T15:59:00 | Python | UTF-8 | Python | false | false | 3,267 | py | import re
import gzip
import argparse
from genomics_tools.file_formats.fasta import fasta_iter
def is_true_positive(pred_scaf,pred_start, pred_stop, true_breakpoints ):
for start, stop in true_breakpoints[pred_scaf]:
## in true expansion interval or contraction interval of a gap
if start <= pred_start <= stop or ... | [
"krsahlin@gmail.com"
] | krsahlin@gmail.com |
ffc51a551202748e2b844689ae88726dc0f22a93 | b310ea0f7a60786f7e17ac80154fcd5f2c3ffd29 | /Entity/Entity.py | 756f25faf1a3f34fce0ad9b1028e4b5531edb829 | [
"MIT"
] | permissive | twtrubiks/Flask-Migrate-Tutorial | 464e475e7ed8bd5127420c819b4672dc15f9ba61 | a659171eee4c84fd0ea1a1e39914c53d44177ea8 | refs/heads/master | 2021-01-11T22:42:04.620084 | 2017-02-15T09:49:45 | 2017-02-15T09:49:45 | 79,018,103 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///app.db'
db = SQLAlchemy(app)
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_comman... | [
"twtrubiks@gmail.com"
] | twtrubiks@gmail.com |
320dc3912f1f977a7bd8b1848b362bc433504664 | 57e7fbf2de00a24e841014c0c99eec64426668c2 | /1_fundation/week-03/day-03/08position_square.py | 834eb6e5f8a90d2fe241a94db0e72e3b8cf4d313 | [] | no_license | green-fox-academy/tamaskamaras | 520b9711fb6551e54f56ee25ec066746d6202568 | 0e733bd9ee830691619595429ab58609d35d9dd4 | refs/heads/master | 2022-08-23T02:57:17.335659 | 2022-08-15T18:38:05 | 2022-08-21T19:37:10 | 111,736,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # create a square drawing function that takes 2 parameters:
# the x and y coordinates of the square's top left corner
# and draws a 50x50 square from that point.
# draw 3 squares with that function.
from tkinter import *
my_root = Tk()
my_canvas = Canvas(my_root, width = '300', height = '300')
my_canvas.pack()
def ... | [
"kamaras.tamas.viktor@gmail.com"
] | kamaras.tamas.viktor@gmail.com |
521f7703b369d97aade938db9e3a4db2a64897e6 | d7d4a25a0a4b5e349b63a9930bcec246baf4a7a5 | /cords/selectionstrategies/supervisedlearning/ompgradmatchstrategy.py | 1f41ed6619c6d133909d09cc46fb27c821139c7d | [
"MIT"
] | permissive | vtnahsus/cords | 32c1b92797c8fd1450838cbf4009a400c47b4b0e | 2b2885042cb3a4b7425b73173617a8018729cef6 | refs/heads/main | 2023-02-17T09:37:23.434532 | 2021-01-18T04:40:27 | 2021-01-18T04:40:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,834 | py | import math
import time
import torch
import numpy as np
from .dataselectionstrategy import DataSelectionStrategy
from ..helpers import OrthogonalMP_REG_Parallel, OrthogonalMP_REG
from torch.utils.data import Subset, DataLoader
class OMPGradMatchStrategy(DataSelectionStrategy):
"""
Implementation of OMPGradMat... | [
"krishnateja.killamsetty@utdallas.edu"
] | krishnateja.killamsetty@utdallas.edu |
12e008f078d8009ca10f94626b66948633d9488e | 6457276f6b2732fc7f3ab4b94bcbe5ad5edae552 | /combined_ae_nn_classifier_main.py | 5ceb9e469caa05f3ac1629b49b6df5f73641a147 | [] | no_license | JonasPapmeier/Masterarbeit | 6d520a4b7e2d9271405af11af77b10c0879a362f | 4676228c81c7377568deee2756a8dcaedc68c29a | refs/heads/master | 2020-04-29T02:43:56.479727 | 2019-03-15T08:51:49 | 2019-03-15T08:51:49 | 175,781,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 19 13:21:06 2018
@author: brummli
"""
import baseParser
import config_
from experiment import AutoencoderSmallNNExperiment
import nn_main
def addExtraNNClassifierArguments(parser):
parser.add_argument("-nle", "--NNpred_lengthExample", type=baseParser.check_pos... | [
"1papmeie@informatik.uni-hamburg.de"
] | 1papmeie@informatik.uni-hamburg.de |
bddaa5fc693a4d20197b4786c5cb9ed60e073fc4 | b6e1df3d0c7251c07cd480a58b8b993a3b6694a2 | /sekolah/mataKuliah/views.py | 163051407671c94cf3d3adaa5f255212d2a4cae3 | [] | no_license | luhurLalu/djangoStudy | 07211b360101802299ad0db01065268e1a4a8cc3 | 819a1d7c9006db69cc554390467c3191ecbdecd0 | refs/heads/master | 2022-12-16T09:35:20.609778 | 2018-11-14T01:07:25 | 2018-11-14T01:07:25 | 157,463,398 | 0 | 0 | null | 2022-12-08T01:03:52 | 2018-11-13T23:57:38 | Python | UTF-8 | Python | false | false | 1,499 | py | from django.shortcuts import render
def index(request):
context = {
'title' : 'Matakuliah ',
'head' : 'Mata Kuliah Dashboard',
'sub' : [
['/mataKuliah/prasyarat','Mata Kuliah Prasyarat'],
['/mataKuliah/teori','Mata Kuliah Teori'],
],
'var' : [
['/','Home'],
['/mahasiswa','Mahasiswa'],
['/dose... | [
"noreply@github.com"
] | noreply@github.com |
ef65d624ada369ecd60fd78c94bf7905807cefb2 | 2af5f89257e268b63d66a29287a6290c40125372 | /Array/Leetcode_JZO_74_medium_二维数组的寻找.py | 1fca5bff8d82796caede9ab8f694f070255a3fa1 | [] | no_license | lilitom/Leetcode-problems | 7dea24a1d07b3ee49e2f90764330f3e695f4f64d | 82901a31c558433478dd23026efda63cf4dae8e5 | refs/heads/master | 2020-12-02T22:39:34.812479 | 2018-10-21T11:38:31 | 2018-10-21T11:38:31 | 96,162,066 | 2 | 2 | null | 2017-07-05T13:06:18 | 2017-07-04T01:07:41 | Python | GB18030 | Python | false | false | 1,164 | py | '''
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous row.
For example,
Consider the following matrix:
[
[1, 3, 5,... | [
"ahguohao11@163.com"
] | ahguohao11@163.com |
3ac9f562192b2a6de1788611f2f91c0e99a2b9dc | 66c32b782cbcc3126184bf4f3150d99c7b3a7c27 | /BUTTONS.py | 5d0444280b1b1070329283f021003ac836f1ca58 | [] | no_license | dudrhkd9005/2020_swp2_ADproject | 5f087f8bde44cd685c50d6cfaaf14c7247d4bc81 | 4d0ad6b21c5a539871c3b4af114eb5b31e37fc5c | refs/heads/master | 2023-02-01T03:08:57.214424 | 2020-12-13T13:46:11 | 2020-12-13T13:46:11 | 320,299,977 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,744 | py | # import library
import pygame
# Define Buttons size
_SCREEN_WIDTH, _SCREEN_HEIGHT = 1280, 720
mainButtonSize = (400, 120)
stageButtonSize = (120, 120)
# main screen buttons
_START_BUTTON = pygame.image.load("icons/start_game.png")
_START_BUTTON = pygame.transform.scale(_START_BUTTON, mainButtonSize)
_START_BUTTON_R... | [
"dudrhkd75@gmail.com"
] | dudrhkd75@gmail.com |
93dc4b460365f00007184adbfdfea6b17f6f08bb | 066ee4df594a5dc90335d271b9d5a1b1e2a4d34c | /y/google-cloud-sdk/platform/gcutil/lib/google_api_python_client/oauth2client/django_orm.py | 3607bb9442651745171963eb5d3b141bae8d4add | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | ychen820/microblog | a2d82447525325ec58285c2e5db58b79cceaca1b | d379afa2db3582d5c3be652165f0e9e2e0c154c6 | refs/heads/master | 2021-01-20T05:58:48.424357 | 2015-04-28T22:03:09 | 2015-04-28T22:03:09 | 32,948,331 | 0 | 2 | BSD-3-Clause | 2020-07-25T05:04:35 | 2015-03-26T19:45:07 | Python | UTF-8 | Python | false | false | 3,782 | py | # Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"ychen207@binghamton.edu"
] | ychen207@binghamton.edu |
dbb71fc84f21e8248b0d8785958399e6e263243d | cac7f14aacf04f10d30e8018ebdc4058d6d4ba84 | /models/NQG_ASs2s/encoder.py | cbaa114633ec1908abc960cbfc1892d398f8d444 | [
"MIT"
] | permissive | arthurdeschamps/question-generation-nus-ids | fef282cc75da187278ef7197dc1184b206e00639 | d67cacb158b2538aa702a1302196883681f0677e | refs/heads/master | 2022-12-12T05:19:02.223574 | 2020-09-13T08:07:32 | 2020-09-13T08:07:32 | 251,551,699 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | import tensorflow as tf
class Encoder(tf.keras.layers.Layer):
def __init__(self, nb_layers, hidden_size, rnn_dropout, **kwargs):
super(Encoder, self).__init__(**kwargs)
self.nb_layers = nb_layers
self.hidden_size = hidden_size
self.rnn_dropout = rnn_dropout
if nb_layers ==... | [
"arthur.deschamps1208@hotmail.com"
] | arthur.deschamps1208@hotmail.com |
ebb347ce810e96bd6456601271d8943ebe676627 | 1109ac2b8c85efc477ee09f8f11001c598fd6a2b | /plotting_bettor.py | 911994e82b1829d58dfa388010e8099ac76052a7 | [] | no_license | ffalq/monteCarlo | ff9a591502db38b6a8ee04de0732419c7bb10a71 | d99ba50a684da1cc91c2538aa37e49013fb3902e | refs/heads/master | 2021-05-29T15:14:28.051508 | 2015-10-02T11:12:00 | 2015-10-02T11:12:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | import random
import matplotlib
import matplotlib.pyplot as pyplot
def rollDice():
roll = random.randint(1, 100)
if(roll == 100):
return False
elif roll <= 50:
return False
elif 50 < roll < 100:
return True
def simple_bettor(funds, initial_wager, wager_count):
value = funds
wager = initial_wager
global ... | [
"laholmes@hotmail.co.uk"
] | laholmes@hotmail.co.uk |
3659a9cb0b6f4a841bc2c4baed5d46b5b32a3d27 | 99b17c90d6c864eb6849269c4f99c1b11bae5ae7 | /teste_multiplos_publicos.py | 04bf16424c4c2597d2b4058babd4f1692295084b | [
"MIT"
] | permissive | mortified-hugo/cceb-processamento | 32a58f2bb89fa64063139b9006ede86c308d7040 | 8ef269fb391218804619e6c0014932734832b4e0 | refs/heads/main | 2023-08-21T07:51:19.956277 | 2021-10-19T19:22:07 | 2021-10-19T19:22:07 | 321,986,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,508 | py | import numpy as np
import pandas as pd
def create_str_from_list(df, ftr, column_a, column_b):
try:
todos_os_usuarios = ';'.join(list(set(df[df[column_a] == ftr][column_b])))
return '; '.join(set(todos_os_usuarios.split(';')))
except TypeError:
return ''
def single_result_parcer(df, f... | [
"hugo.sjrp@gmail.com"
] | hugo.sjrp@gmail.com |
057e7c518f9f5a7259f99e6556287a0524184c50 | 0a23e1eaa5c598338dfe32798c1de31455102e85 | /customers/migrations/0001_initial.py | f7382a1a3080f6af70bbb50f4fe32392a4fd6b7b | [] | no_license | Ndoua/djreact | 54773f585937cc8b41950d0b554328d8c39860c5 | 11fd751222efc347ba07482314e044690fbd061b | refs/heads/master | 2020-04-09T18:23:42.478102 | 2018-12-05T11:56:03 | 2018-12-05T11:56:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | # Generated by Django 2.1.4 on 2018-12-05 01:06
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Customer',
fields=[
('id', models.AutoField... | [
"serge.ndoua@gmail.com"
] | serge.ndoua@gmail.com |
e8c702ea879fc0f480d935d5f9dc369319e07137 | 34d897e0f4d29684dfec7556f447adcdbed8a85b | /pp/bac/functional.py | 2c034ef2017dc880b1fd7f0f71bcb87bc66857a5 | [] | no_license | jarvislam1999/CMSSW-12100-Homework | bd231ca692433811dcc8323986c4293d017f6830 | 239655a756e97ec6729ebd37dea4956209c22c3e | refs/heads/master | 2020-04-25T14:33:47.232186 | 2019-02-27T05:00:03 | 2019-02-27T05:00:03 | 172,846,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py |
def functional_programming_warmup():
return map(lambda x: x + 1,
filter(lambda x: x % 3 == 0, range(0, 9)))
print("Warmup exercise #1")
l = functional_programming_warmup()
print(list(l))
print()
def mystery2(fn, N):
def g(x):
for i in range(N):
x = fn(x)
return x
... | [
"jarvislam1999@cs.uchicago.edu"
] | jarvislam1999@cs.uchicago.edu |
c442edea8bffc494b18b504b67a661651392627c | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/icml2020/hand/sparse/mc1.py | 91b9a0c61f14b220fae8f8cf80a48e1e0efe16a4 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,473 | py | """
AWR + SAC from demo experiment
"""
from rlkit.demos.source.dict_to_mdp_path_loader import DictToMDPPathLoader
from rlkit.launchers.experiments.awac.awac_rl import experiment
import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.arglauncher import run_variants
from rlkit.torch.sac.policies import GaussianP... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
2e053ff6bed0cdc6a3a62a2b822b3acd8d9d2530 | c28b092bf2c25a425d48de1f803b57090abb1cb6 | /Server/UserView.py | 33752e230c33de1a7d4dbef157c1dae8dc571c04 | [] | no_license | mumu0215/Monitor | 7c1582c527f9eab540d04e3fd1cc81f770c1d413 | f2fd4acdc682b2de30485986d7f20092c55d1563 | refs/heads/master | 2020-05-25T17:02:44.179122 | 2020-01-28T08:43:00 | 2020-01-28T08:43:00 | 187,900,844 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,608 | py | # _*_ coding=utf-8 _*_
from viewforUser import Ui_Form
from PyQt5.QtWidgets import QWidget,QApplication
import sys
import pyqtgraph as pg
class widgetView(QWidget,Ui_Form):
def __init__(self,id):
super(widgetView,self).__init__()
self.setupUi(self)
self.setWindowTitle('NetFlow of %s'%id)
... | [
"leolin0215@163.com"
] | leolin0215@163.com |
3e8fa85fb7afd03c45f83c311743c88e5e962eb2 | fd7406dcf3f898bd5b82a0ee4306e02c1d1b4970 | /backup/testcase/operation_testcase/testWebBasicDataOperation.py | d50339d1639b7162ead6e2eccf1c21f0aedb5275 | [] | no_license | 18786262315/zidonghuaapi | e5f979fc599f8bca08e7e5cfbd58943fe36b75d3 | 28145f13231e9df76a33894b82c0e552afb485fc | refs/heads/master | 2020-03-26T01:48:13.018859 | 2018-08-11T12:32:51 | 2018-08-11T12:32:51 | 144,383,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # -*- coding: utf8 -*-
import unittest
from AthenaTest.common.loadDatas import *
import sys
import importlib
importlib.reload(sys)
class testWebBasicDataOperation(unittest.TestCase):
def setUp(self):
self.datafile = '../../datacase/operation_datacase/web_basic_data_operation.xls'
def test_merchantIn... | [
"843092012@qq.com"
] | 843092012@qq.com |
6e0ebec1fc78e0835c6ecbdb7219e01a09843027 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_disobeying.py | 6227a9b226dae0e7d81f3e25281a295fcd1d7404 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _DISOBEYING():
def __init__(self,):
self.name = "DISOBEYING"
self.definitions = disobey
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['disobey']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
40a0491046aa6a9a1969e7332301e8bf6c8563c5 | fff58a2b21d163917e7d17618ef73d8d7c203f53 | /node_modules/@serialport/bindings/build/config.gypi | 42b7951a531477c1654a80cdf173c7d986143a8e | [
"MIT"
] | permissive | joal7299/Zombie-Game | 1f751cfa16b9aa74c1eaa067785064155bb9a815 | 1b174887b066872acdcf8689579d93d4e8a51b86 | refs/heads/master | 2022-12-16T08:20:05.186124 | 2019-09-23T19:57:34 | 2019-09-23T19:57:34 | 172,961,423 | 1 | 1 | MIT | 2022-12-08T15:54:47 | 2019-02-27T17:41:48 | JavaScript | UTF-8 | Python | false | false | 5,623 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"gafr4910@colorado.edu"
] | gafr4910@colorado.edu |
bcd4886bf2c9cd41f2928bea12ba0edd96a9cb5e | c1559086bb9e0bd12be91b0dac77778f2b49f5bd | /sesi.py | bb03b3e49f49de687022b665cd4ead73c0f7ae45 | [] | no_license | cuik00/bot | 18c55952bbf964f72f79efaa5c1b2b7b07e6718e | 800df2b89b6a64d3ace5b4c69634db24f3a157b3 | refs/heads/master | 2022-12-06T15:30:52.849064 | 2020-09-07T16:58:23 | 2020-09-07T16:58:23 | 293,388,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,010 | py | try:
from telethon import TelegramClient, sync, events
from telethon.tl.functions.messages import GetHistoryRequest, GetBotCallbackAnswerRequest
from telethon.errors import SessionPasswordNeededError
except:
print('telethon not installed\npip install telethon to solved')
from time import sleep
tr... | [
"noreply@github.com"
] | noreply@github.com |
5e90f53f83015074277634b94893dfe780aae9c0 | 32dbb74f03c7450ee1f3166f82260e60272f57e0 | /pushbase/session_recording_component.py | 7816971cab9b893aed9788a232cbc81f96f4be65 | [] | no_license | cce/buttons10 | 61555bc767f2bd300bfffb373f9feaae96b83ca7 | 6f1137c96eead0b9771ad8ec9327dd72ada2e916 | refs/heads/master | 2021-04-15T09:45:39.684764 | 2018-03-24T04:29:52 | 2018-03-24T04:29:52 | 126,565,725 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,429 | py | # Embedded file name: /Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/pushbase/session_recording_component.py
from __future__ import absolute_import, print_function, unicode_literals
from itertools import ifilter
import Live
from ableton.v2.base import listens, liveobj_vali... | [
"cce@appneta.com"
] | cce@appneta.com |
d11272b76e6c40ffa416901477b14ff4e262a502 | c4d913a3811bc83e7a3838c0efdf3424b73b1ac4 | /imagedownloader/requester/views.py | 7ec846097682125ab93deb419d45516bbda2bdcc | [] | no_license | tomasdelvechio/solar_radiation_model | d967b50b645fec3215339ed1785ffa4423b395a4 | c306c4e4311fd887e9985401b8e2731bbf372583 | refs/heads/master | 2021-01-18T01:46:30.739622 | 2014-04-14T00:08:30 | 2014-04-14T00:08:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.http import HttpResponse
from django.template import Context, loader
from requester.models import *
# Create your views here.
| [
"eloy.colell@gmail.com"
] | eloy.colell@gmail.com |
056733c403705d67eed45e7d0d8f07e0098d3da7 | b53e4752fa4b2a5ce05aeb2925cb0f0af579b57a | /auctions/models.py | 8ce4df32b6db86c84a34d91a87c64c574d0f0e20 | [] | no_license | elizarafee/commerce | ea95c68325dcb40cc643da407d9d852eb5efee15 | 5fa28ff5dc35220447b2f5540c9596be771ff1e2 | refs/heads/master | 2023-05-31T22:09:34.394537 | 2021-04-14T11:10:43 | 2021-04-14T11:10:43 | 346,672,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
from django.conf import settings
class User(AbstractUser):
pass
class Listing(models.Model):
listed_by = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
title = models.CharField(max_length=50)
descri... | [
"elizarafee@gmail.com"
] | elizarafee@gmail.com |
63ef7efb72cdbd6ab053b45a1e1b67b28b822140 | 3bb57eb1f7c1c0aced487e7ce88f3cb84d979054 | /reliability/scripts/selectors/user_study_sgss/Run_All_Grammaticality.py | e9e24f48f1582714451889b5453d7e2feb86cc90 | [] | no_license | ghpaetzold/phd-backup | e100cd0bbef82644dacc73a8d1c6b757b2203f71 | 6f5eee43e34baa796efb16db0bc8562243a049b6 | refs/heads/master | 2020-12-24T16:41:21.490426 | 2016-04-23T14:50:07 | 2016-04-23T14:50:07 | 37,981,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import os
#Generators:
generators = os.listdir('../../../substitutions/')
#generators.remove('all')
#Parameters:
ks = ['all']
criterions = ['gini']
splitters = ['best']
maxes = ['sqrt']
depths = ['None']
for c in criterions:
for s in splitters:
for m in maxes:
for d in depths:
for k in ks:
for generat... | [
"ghpaetzold@outlook.com"
] | ghpaetzold@outlook.com |
13913ac941c4d806457b6b5f47b78de1d1d63735 | 039e6a02a74ab44aeaeedc26417279e75a486553 | /manage.py | b301a1f1f69cb5d0a263cc556fe58fa1bd3f8778 | [
"MIT"
] | permissive | AbdiazizH/Blog-App | fc449616fea1da48c84d55d9d536b8174bbdcf8f | 6d7723c4a8a53bf6311f0629c201fdf08fb232a8 | refs/heads/master | 2023-06-06T09:08:04.734852 | 2021-06-22T18:22:32 | 2021-06-22T18:22:32 | 379,351,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from app import create_app, db
from flask_script import Manager, Server
from app.models import User, Blog, Comment
from flask_migrate import Migrate, MigrateCommand
app = create_app('development')
manager = Manager(app)
manager.add_command('server',Server)
migrate = Migrate(app,db)
manager.add_command('db', MigrateC... | [
"a.aziz69890@gmail.com"
] | a.aziz69890@gmail.com |
37c68ebf19fba44ed205065d80f180bc51dc40da | 680e8d73afd9f54d07e4784ea1496996574377db | /day3/setwebhook.py | ed0ec2421716b1cfd194d5077581bc2b9b756efa | [] | no_license | youll6798/startcamp | 82792dc842f126a84e51229424ef82e23e2b7f69 | 2b02b9ff77c46df711d474051f9683aad706b801 | refs/heads/master | 2023-02-17T07:58:18.847923 | 2021-01-15T08:04:48 | 2021-01-15T08:04:48 | 329,848,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,272 | py | import requests
token = '1556526336:AAHU1-MwPWDdAYidx-X6ig3W4VLlRBFO9D0'
url = f'https://api.telegram.org/bot{token}/'
ngrok_url = 'https://namgyukim.pythonanywhere.com' #원래 오전에는 이거 엥그록으로 했었는데 이제 파이썬에니웨얼로 바꿨다. (그냥 파이썬에니웨어가서 서버만들고 그 서버로 주소만 바꿨음)
#원래 local서버(나혼자만들... | [
"youll6798@naver.com"
] | youll6798@naver.com |
3eeadfd304910dd1396ec7956a102fbc17f74b2d | 7d35cf723f02884b245fa4b52802f3424e6bb302 | /utilities/mongodb/listing/listing.py | e3ba9903fe754e13f0d8d68a7f93045cee790db2 | [] | no_license | JonasBarros1998/ecommerce | a8d509a40c0ba382c2d5517706e9cf9a0d477597 | 2aa0ea2f86f5529f622e1ba72df802c2cd4dea34 | refs/heads/master | 2021-07-12T01:54:44.035176 | 2020-04-21T13:27:33 | 2020-04-21T13:27:33 | 234,154,138 | 0 | 0 | null | 2021-03-19T23:02:40 | 2020-01-15T19:15:37 | Python | UTF-8 | Python | false | false | 1,415 | py | from utilities.mongodb.config.mongodb_config import MongodbConfig
class ListingCollection:
def __init__(self):
self.mongodb_config = MongodbConfig()
self.mongo_client = self.mongodb_config.auth()
def search_all(self, database, collection):
"""
Função para listagem de todos os ... | [
"jonas_barros@outlook.com"
] | jonas_barros@outlook.com |
708dfe065a4305cd224fba18ccc4b7b6f2eec3ac | b7d4daaaf5dd99b6956be6fd4a30bdc792805a82 | /sandra/stt/wake_word/wake_word_stt.py | aa3c7a654abcc1f9cefc07851aa0bcdda5dce353 | [] | no_license | AndyMacDroo/sandra-bot | f93bc3eb7c51a2a83bb793fb07e8119719ada632 | 9c7c89ec7cc1d61ee14eecb36e7a1f7c3ab2122d | refs/heads/master | 2022-04-26T14:52:16.090199 | 2020-04-25T15:13:21 | 2020-04-25T15:13:21 | 258,805,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | from sandra.stt.stt_engine import STTEngine
import pvporcupine
from datetime import datetime
handle = pvporcupine.create(keywords=['picovoice', 'computer'])
class WakeWordSTT(STTEngine):
def __init__(self):
pass
def listen(self, mic, previous_frames=None):
keyword_index = handle.process(mic.g... | [
"hello@andymacdonald.dev"
] | hello@andymacdonald.dev |
30b531e6eb0142158a1892ad0f0af40a9c7ce372 | cc41537caf5cc3f44498a1876d14ac36e117c4d2 | /youtube video and audio downloader/UI_downloader_no_sound.py | 93eca0612b8004befc5f25fff3766c39ac923646 | [
"MIT"
] | permissive | karascr/Helpful-tools | 664b2e20828058502a8a4cd34ede5514b963fd02 | cd953b20647aecb2e8ca1b6781aa5936925e6c04 | refs/heads/master | 2023-02-07T12:42:20.978464 | 2020-12-30T19:58:15 | 2020-12-30T19:58:15 | 277,144,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | import re
from PyQt5.QtGui import QFont
from pytube import YouTube
from time import time
import os
import sys
from PyQt5.QtCore import QSize, Qt
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QVBoxLayout, QHBoxLayout, \
QLineEdit, QRadioButton, QLabel, QMessageBox
import moviepy.editor as mp
titl... | [
"muhammetkaratr@gmail.com"
] | muhammetkaratr@gmail.com |
410185c08a79ff6aae7df48712c8cfdff5bd1892 | 42906376a035031ba61d6a6e096ef2a5bd9e1f56 | /regression/support_vm2.py | f03eaba983499f97ea98265ca447ef82ef3333aa | [] | no_license | Julialiuu/KEX | d9f83fbb43ba6fe43c43855c898b380e2e745d54 | 9a702fd3469ae72cb9c7b54a7e4666d162bf575e | refs/heads/master | 2021-01-24T21:25:31.334928 | 2018-05-06T12:06:21 | 2018-05-06T12:06:21 | 123,270,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py |
print(__doc__)
import numpy as np
from sklearn.svm import SVR
import matplotlib.pyplot as plt
from sklearn import datasets, linear_model
from sklearn.metrics import mean_squared_error, r2_score, accuracy_score, mean_absolute_error
from sklearn.model_selection import train_test_split, KFold
import csv
from math impor... | [
"noreply@github.com"
] | noreply@github.com |
fbbe3103af506b0eb869c5add37204a62fd993ec | 0917af0a3f9f3beb34e5350764cde5cac32b77ed | /scripts/probability_seminar_scraper.py | 5647814013beda2852d246ceedbc49e30ec617ed | [] | no_license | fjeg/bmi-seminar-calendar | a7c76296e2cd9cb5088266299595c7e2e8e5b0dd | f0fc096da7cd6ac21e92ba8b2e9117a9e7711764 | refs/heads/master | 2016-09-02T04:50:28.247936 | 2014-04-05T00:30:26 | 2014-04-05T00:30:26 | 12,148,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | import urllib2
from bs4 import BeautifulSoup
from Event import Event
def get_events():
prob_seminar_url = 'http://statistics.stanford.edu/seminars/probability.html'
seminar_html = BeautifulSoup(urllib2.urlopen(prob_seminar_url),'html5lib')
headlines = seminar_html.find_all('strong',class_='headline')
... | [
"fgimenez@stanford.edu"
] | fgimenez@stanford.edu |
3bab7c812b73262b1fec5b2de5bb8c2dabbea041 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v8/enums/types/frequency_cap_time_unit.py | a0b4fac51b42f479dc71ca2908a0ddc7c56457ba | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 1,190 | 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... | [
"noreply@github.com"
] | noreply@github.com |
88baccca11ee863a12fa2cc3cf6f0534daa5111f | 9cbd7932d4fec35fc08dabe4b1ab5cc7d047d292 | /itproger/settings.py | 676d03bed4e15952a7189922cb95d3a15ab05871 | [] | no_license | aleksandrshafikov/web-project | cf1c9b3ed71e087252fafad950d61f7653d3e9b6 | 9ef3e6a7ab5546e7bd04124c4a90ce9a1f9600e5 | refs/heads/master | 2023-06-01T16:37:46.157300 | 2021-06-24T14:50:19 | 2021-06-24T14:50:19 | 378,626,964 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,692 | py | """
Django settings for itproger project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os.pa... | [
"aleksandrshafikov15@gmail.com"
] | aleksandrshafikov15@gmail.com |
c75af28c9291936a6161711ddbd4d4aa46c5acd0 | 99efa551de2a4586767d109b211d8c016c5454c4 | /Set/App1/H.py | 6adf6ff5e0459bf9ae5fdbe1dfe73ce7b57f8dd0 | [] | no_license | Vijay-Ky/Anit_Rooman_Python_Training | 9decf34b651ea8455bdd4cdf1e2239a77cf1bc7e | 155ba84620c28fd64a7219013c3bdd43f76fa278 | refs/heads/master | 2020-05-31T23:22:45.865104 | 2019-06-18T09:33:10 | 2019-06-18T09:33:10 | 190,537,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | myset = {"apple", "banana", "cherry"}
myset.remove("orange")
| [
"vijayky007@gmail.com"
] | vijayky007@gmail.com |
642e1e9eb6213ea382a825d9cf12a1a9552fa277 | ad8b30544480ba1e5f5b1cb2dec2aa77a644e8d2 | /SWEA/D2_5102_노드의거리.py | ffc560ef41043f390c247473811e0b1d849de0e1 | [] | no_license | hyunwoojeong123/Algorithm | 79abc82d944ca60342a7f8b6fc44fac20ac55123 | 0baaf3222fbbec699ffbec5d4cc680067cf293fb | refs/heads/master | 2023-07-10T18:28:51.934005 | 2021-08-18T01:51:23 | 2021-08-18T01:51:23 | 284,403,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | T = int(input())
for tc in range(1,T+1):
V,E = list(map(int,input().split()))
linked = [[False for j in range(V+1)] for i in range(V+1)]
#print('연결:')
for e in range(E):
s,g = list(map(int,input().split()))
#print(s,g)
linked[s][g] = True
linked[g][s] = True
#print('연... | [
"hw2621@daum.net"
] | hw2621@daum.net |
93adc426e23f819b69ee8465e4c80d868ba002bf | aa3a15838c191128c9c0b1476bbd2b35d45d658a | /excel/format_excel.py | 7613f9bee8010e19ca0e53b41b3f7ba49cb27483 | [] | no_license | Hahkarthick/python_workouts | 265eb587aa2939ef7261107ea77847b4952e10c0 | 12059ba17a192b04312d041b2bcf0e9aa8041798 | refs/heads/master | 2022-12-04T20:34:00.972625 | 2020-08-26T17:17:23 | 2020-08-26T17:17:23 | 290,558,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | import pandas
import re
exportExcelData = pandas.read_excel('product_category_name_translation.xlsx', sheetname='Sheet 1')
# print whole sheet data
# print(exportExcelData)
# print(exportExcelData.columns.ravel())
productList = exportExcelData['product_category_name'].tolist()
formatedProducts = []
for oneData in... | [
"harish@vastpro.in"
] | harish@vastpro.in |
e26fcee48f45a12649f798ae8f516007035f6c67 | fb338a0aa212a7f5498dc7a50160eaf8dff8eb2c | /mundo-02/exercicio-060.py | efa9b6358587b4d931f7e0b131eedf1f94d197e5 | [] | no_license | thinkerston/curso-em-video-python3 | 581f8e29c50ce5392f5d7f9c9f8ec3a0d5238c48 | dacc56d1aef6479fa68b571096caa2908d93d5d5 | refs/heads/master | 2020-11-24T17:15:04.191984 | 2020-01-21T11:22:31 | 2020-01-21T11:22:31 | 228,266,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | '''faça um programa que leia um numero qualquer e mostre o seu a fatorial'''
numero = int (input('insira um numero para ver o fatorial: '))
fatorial = int(1)
numeroOriginal = numero
while numero > 1:
fatorial = fatorial * numero
numero -=1
print(f'o fatorial de {numeroOriginal} é {fatorial}') | [
"thinkerston97@gmail.com"
] | thinkerston97@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.