blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38717c7c5e31cde86fb52b54eaeb64ce63792cf6 | 599ddd95bd9383752dbcad51642791541f7013db | /autoencoder_model.py | 6e2dc4bda0794156a75cdaf714b35ce18f0de856 | [
"MIT"
] | permissive | neemperor/UnDeepVO | e04e36cc28b63f424808ea5ced8ca7e024a4219f | 9159febdf8be7a317fd6f60cc29c5b1d41e6d1ec | refs/heads/master | 2022-06-17T19:43:36.730430 | 2020-04-26T16:17:49 | 2020-04-26T16:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,954 | py | from keras import Model
from keras.layers import Conv2D, Conv2DTranspose, concatenate
from keras.optimizers import Adam
class AutoEncoderModel(object):
def __init__(self, left_input, right_input, lr=1e-4, rows=128, cols=512):
self.rows = rows
self.cols = cols
self.left = left_input
... | [
"drmiguelalonsojr@gmail.com"
] | drmiguelalonsojr@gmail.com |
2695033b85102d7d598e889b156c7ad37c13df3c | 8d371fc0a83f05a7a34927f27ef634b10069b081 | /trail/trail/spiders/trail_spider.py | 54ff8d2d476326bb0809364afeb07991f2bf971c | [] | no_license | tmartin357/SlackTrail | 4ef09f6b7c1ce7a1fc6f8b9afa06bece54e5b5c3 | cf00e010eca2cc4ceee3e9956f76cd7ce7bfd1c5 | refs/heads/master | 2020-04-11T16:31:43.968076 | 2019-01-16T23:17:47 | 2019-01-16T23:17:47 | 161,927,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | import scrapy
import re
class QuotesSpider(scrapy.Spider):
name = "trails"
def start_requests(self):
urls = [
'https://trailhead.com/me/jameldjackson',
'https://trailhead.com/me/tmartin357',
'https://trailhead.com/me/BabatundeAborisade',
# 'https://trailhead.com/me/adhunter',
'https://trai... | [
"taylor.martin357@gmail.com"
] | taylor.martin357@gmail.com |
3de69146548769e595fd3ee6abeb17031185bfd2 | 560da392f8a2d0e3e75314d64d5701c1ee41378a | /_old/kadai1_3.py | e2eb42f9708511cceac0452d88d51ade3381d23b | [] | no_license | YenR/python_intro | 09de9532f7ddacd58aa9a8c143e320c28860cb16 | 73c47c7e2fb80b7217083bfeb9f5f51b7bf180b8 | refs/heads/master | 2020-05-29T14:59:07.966382 | 2019-07-15T15:52:47 | 2019-07-15T15:52:47 | 189,208,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 19 13:26:48 2019
@author: u593120c
課題1-3:下記のようにニュートン法(※)で探索するように変更し、調べた回数を変更前と比較せよ。
"""
a= float(input("Please input a positive number: "))
x= 1.0
epsilon = 0.01
numGuesses = 1
# f(x) = x²-a=0 implementation / 実装
def f(x,a):
return x**2 - a
# f'(x) = 2x=0 impleme... | [
"yen.0001@gmail.com"
] | yen.0001@gmail.com |
d5c3a71453efe07f06afe3e7fc2a1100ee47de6b | 324ce00226bc082eeec26fae6a71d95849f24ee9 | /cpu.py | dd8c4dc0f29fba982ef03001b1ddbc29bc74fdb9 | [] | no_license | iper4497/python | 6b1944f08f2e41b57b74c1311dc1e4ba41dc5715 | 99d43a7a41b49b67779bacef20673d8a599f64d1 | refs/heads/master | 2021-01-20T19:29:55.004820 | 2017-04-25T16:37:45 | 2017-04-25T16:37:45 | 60,462,166 | 0 | 0 | null | 2016-06-08T16:59:16 | 2016-06-05T13:45:25 | Python | UTF-8 | Python | false | false | 135 | py | p = 1
f = 1
while True:
p = p + p
a = [ ]
for b in range(p):
a.append(b)
c = b
print(c)
if c > 10000000:
p = f + 1
f = p
| [
"eqzqcj@pgpmail.cc"
] | eqzqcj@pgpmail.cc |
4800616aabba38aa6b9a82323c33a2963d14ba50 | 2da4dd290ae4b2f5a9106c6ce7e584d485b1995e | /pythonFiles/dnnTraining/FFN_gridSearch/thinLincGrid/FFN_Model_gridSearch.py | d9934957450293ed3dcbe540205ff138811fc0da | [] | no_license | zhaoforever/dnn-SpeechEnhancement-1 | 81eb85c9711eeae5f720c42cd79ba70aa7c59782 | 4125e0a5a63544889de6cfefc0558008798056ef | refs/heads/master | 2020-03-27T23:14:44.947522 | 2018-09-03T08:48:36 | 2018-09-03T08:48:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import tensorflow as tf
slim = tf.contrib.slim
import numpy as np
def defineFFN(next_feat_pl,NUM_CLASSES,slimStack,conigN):
with slim.arg_scope([slim.fully_connected],activation_fn=tf.nn.leaky_relu, weights_initializer=tf.truncated_normal_initializer(stddev=np.sqrt(1/257)),reuse=tf.AUTO_REUSE),tf.variable_scope('FFN'... | [
"31848964+s123028@users.noreply.github.com"
] | 31848964+s123028@users.noreply.github.com |
ac2f02367f4f4a0823ff315413f8a78ac99b2fdd | 442d79f6165fea1bb8a76ed5df537ce2eefb8578 | /elastic/migrations/0001_initial.py | 144a8ec978f9468223fc21b3192d04e2fdebf88c | [] | no_license | Shivamgera/OMDB_Search | aecf20aacfd6a52313b8b9e5fab153e1920e98d2 | 7926083cd04a6a9fbe4200b66df8d31eb803af17 | refs/heads/master | 2020-12-09T20:42:47.807839 | 2020-10-31T19:48:32 | 2020-10-31T19:48:32 | 233,410,830 | 0 | 0 | null | 2020-10-31T19:48:33 | 2020-01-12T15:07:07 | Python | UTF-8 | Python | false | false | 1,235 | py | # Generated by Django 2.1.5 on 2020-01-14 11:25
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Genres',
fields=[
... | [
"gopigof@gmail.com"
] | gopigof@gmail.com |
1c4eae8c8b14c9193edd4274cdd067c9ccd8b5b4 | 995edc8943a5bbd81fa0b714b0f65deef83ae563 | /groups/views.py | 5062e5b06a291617d43b6e7a58ace77d642ee658 | [] | no_license | shrey920/socio | a7b110383cf8b2940ce26ba71d61eee78c47fda9 | 345dcdb3ceb5f27ea6ce0b3ff23b4292d5015b5d | refs/heads/master | 2022-12-09T03:27:16.965187 | 2019-12-18T14:08:39 | 2019-12-18T14:08:39 | 124,672,221 | 1 | 1 | null | 2022-12-08T01:05:05 | 2018-03-10T16:09:05 | CSS | UTF-8 | Python | false | false | 6,530 | py | from django.views import generic
from django.shortcuts import render,redirect
from django.http import HttpResponseRedirect
from django.contrib.auth import authenticate, login, logout
from django.views.generic.edit import CreateView,UpdateView,DeleteView
from django.urls import reverse_lazy
from django.contrib.auth impo... | [
"shreyas.shankar920@gmail.com"
] | shreyas.shankar920@gmail.com |
06adaf5a2b333befc76eb410088c0c1e1914ba7f | 67a239a63fc1f155ad10250e5da7f92f0d2602f8 | /airflow/providers/google/common/links/storage.py | 7934d95d334195af97147ea0620b3fdd77fea3f6 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | dskoda1/airflow | e62519a28fa8b0f84970b4cf2f52141a16080815 | c0e9daa3632dc0ede695827d1ebdbd091401e94d | refs/heads/main | 2022-11-21T13:02:36.150877 | 2022-06-02T05:07:45 | 2022-06-02T05:07:45 | 279,863,324 | 0 | 0 | Apache-2.0 | 2020-07-15T12:33:03 | 2020-07-15T12:33:02 | null | UTF-8 | Python | false | false | 2,229 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
6634504430c78baa0380aac6c2379999128c94cb | c5e4de00279b77e9d50bcd2a38dd5bc968921ac9 | /django2/learning/main/apps/test_app/models.py | 3fce211c5fec0cccd368c02a077ab5a959b2dbc4 | [] | no_license | jennuinecode/learning_django | d7cbe25af6972c3d80803c5fdc9a971eff8e3600 | 2e1e7f7e61a52d92d2b8fc93996f5a5052f4bee8 | refs/heads/master | 2020-04-06T04:01:58.479363 | 2017-03-27T17:50:48 | 2017-03-27T17:50:48 | 83,070,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from __future__ import unicode_literals
from django.db import models
class Blog(models.Model):
title = models.CharField(max_length=100)
blog = models.TextField(max_length=1000)
created_at = models.DateField(auto_now_add=True)
updated_at = models.DateField(auto_now_add=True)
class Comment(models.Model... | [
"jennifer.cortes@hotmail.com"
] | jennifer.cortes@hotmail.com |
c66d78df9ffdb2f1bd3151ad8e532d31a5a809b8 | 9ba1f46453cdf4568c93e95caada451bbb4399fc | /portfolioAPI/portfolioAPI/portfolioAPI/wsgi.py | 82f79bc8618295e9b4c45c68c5b81412fdfbe24c | [] | no_license | laracork/Carta-PortfolioAPI | d8759edbb15c73255742d589ab3207a6f48dc9e7 | 45e6d873da8e8b679d909a6809985ebe541ce2c2 | refs/heads/master | 2022-12-24T19:36:09.305907 | 2018-12-04T07:53:06 | 2018-12-04T07:53:06 | 160,261,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for portfolioAPI project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"laracorkrey@gmail.com"
] | laracorkrey@gmail.com |
ff3215198197ffc05d5de16d675515d2f2296d0a | 87fe4181a085dccc2be4b0116181dd834db8f388 | /nomadgram/users/migrations/0003_auto_20171102_2125.py | d5f765ee24b0112bc6beff5f435cc107a6303f19 | [
"MIT"
] | permissive | hebaragiseed/nomadgram | 9683dae7c1b55ba3e55c1f1c5e1557ac4c9173af | 2351b70ba896d9f7550deb84ae7a1f7ae9c8b3d5 | refs/heads/master | 2021-05-07T22:10:15.458132 | 2017-12-13T18:46:16 | 2017-12-13T18:46:16 | 109,048,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-11-02 12:25
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20171102_1655'),
]
operations =... | [
"hebaragiseed@gmail.com"
] | hebaragiseed@gmail.com |
cfb32d3d8793db242c4673f5d5e2c5d2aad685db | 87943eaf435f35156e8dfa95d47e94de73705556 | /apps/common/common.py | 108b9ac47ce9659bae8262d4e5674c9e1cbd40ab | [] | no_license | youyingxiang/yxx_admin | 2c145f1ccdd26244008b43bfbc0ffc9426953ca1 | 7c546284eec222aa3a7fd4b50e15a9d338858e44 | refs/heads/master | 2023-03-11T09:46:20.759913 | 2020-05-16T17:09:07 | 2020-05-16T17:09:07 | 134,954,103 | 75 | 23 | null | 2022-12-08T02:08:01 | 2018-05-26T11:04:49 | Python | UTF-8 | Python | false | false | 161 | py | # 公用函数文件
from wtforms import Form
class FormBase(Form):
def get_err_one(self):
err = self.errors.popitem()[1][0]
return err
| [
"1365831278@qq.com"
] | 1365831278@qq.com |
c84dff9f1eb441fa427605385e28ccd176b193f1 | 6f9913971b07093d85d7395d438e30992d7b7456 | /ex3.py | 8f875b2554be5b6c32f8854ecfc23fabaffb4330 | [] | no_license | Lhotse867745418/Python3_Hardway | 1775d3b77073b25d50fec041917e85b8ae902c8e | b647cdd5bed5236096eedf9c752fda4e261a4da9 | refs/heads/master | 2021-09-10T11:13:43.879478 | 2018-03-25T11:01:53 | 2018-03-25T11:01:53 | 125,729,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | #-------------------------------------------------------------------------------
# Name: numbers and math
# Purpose: learn math
#
# Author: lhotse
#
# Created: 17/03/2018
# Copyright: (c) lhotse 2018
# Licence:
#-----------------------------------------------------------------------------... | [
"noreply@github.com"
] | noreply@github.com |
a28d8b93e2c943b416dc0e882ce5ceeaff0889f8 | 551ef0567aca428a535775d3949f5d9670c0d29c | /abc/212/c/main.py | 9351e78f01dac0c8505cf070b9bc58365ee2fbc7 | [] | no_license | komo-fr/AtCoder | 7451a9402466ce8d487d0c521128732061c647df | c916889294cb12f21e74254de43b3e17e1b354bc | refs/heads/master | 2023-07-22T07:05:52.955188 | 2023-03-01T14:22:16 | 2023-03-01T14:22:16 | 213,109,943 | 0 | 0 | null | 2023-07-06T22:01:28 | 2019-10-06T04:44:49 | Python | UTF-8 | Python | false | false | 529 | py | #!/usr/bin/env python3
N, M = list(map(int, input().split()))
a_list = list(map(int, input().split()))
b_list = list(map(int, input().split()))
ab_list = []
for a in a_list:
ab_list.append((a, "a"))
for b in b_list:
ab_list.append((b, "b"))
ab_list = sorted(ab_list)
a = None
b = None
min_y = float("inf")
fo... | [
"komo.mdrms@gmail.com"
] | komo.mdrms@gmail.com |
7189a6757c3e6f1b331a3105fbf5afa2d5263dd5 | 40c40be9916c1eba72588bdb301ce9ef1ad9de7c | /0x06-python-classes/4-square.py | 6f762831f9162e526ec1030581217b8cb8172ee6 | [] | no_license | Tr3v1n4t0r/holbertonschool-higher_level_programming | 943f4677553b6d59ae07b8eec328ea5b5a4f605e | f07d00adb4cf6b63072a5a095a51ecc747adb594 | refs/heads/master | 2020-09-29T02:59:28.923041 | 2020-05-15T05:52:06 | 2020-05-15T05:52:06 | 226,933,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | #!/usr/bin/python3
class Square:
def __init__(self, size=0):
self.size = size
@property
def size(self):
return self.__size
@size.setter
def size(self, value):
if type(value) != int:
raise TypeError('size must be an integer')
if value < 0:
rai... | [
"813@holbertonschool.com"
] | 813@holbertonschool.com |
32a50f5f84c0d94bfd460e73b46f74acd671f142 | fa740eac801924cf053a71836b310ff3b4479c4d | /game/pong_simple_ai.py | 3308831c3d4d903fb8e99fef5c5e22e8d44486c0 | [] | no_license | JoanneLin168/pongML | f701446a24c9a7c673b7491bc9c1590a8f3d5b76 | b63dbeca269d1cfb3844f08afd5a272c7b14e8cc | refs/heads/master | 2023-02-07T14:07:24.449328 | 2021-01-03T18:42:31 | 2021-01-03T18:42:31 | 326,065,707 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | # Simple pygame program
# Import and initialize the pygame library
import pygame
import paddle
import ball
### SETUP ###
pygame.init()
def show_score(screen, score):
score_overlay = FONT.render('Score: '+str(score), True, FONT_COLOUR)
screen.blit(score_overlay, (10, 5))
# FPS Counter
def sh... | [
"yulin20028@hotmail.co.uk"
] | yulin20028@hotmail.co.uk |
4f6c3c3b84254e921f2c0c5e943bbdf9507428ac | 54277288865f738e44d7be1d6b41b19c63af267e | /configs/vcop/pretraining/r3d_18_ucf101.py | eee5d0eb75ac9265d0ceb4f2ff2d8593597c7c29 | [] | no_license | scenarios/SR-SVRL | 7b41d29e16cff3020f333efc28a624d85bba4537 | 26e89ecb29355635b10a355f2f16f1b5db9c4e9b | refs/heads/master | 2023-02-26T06:16:13.314491 | 2021-01-30T16:30:57 | 2021-01-30T16:30:57 | 307,295,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | _base_ = ['./default_runtime.py']
work_dir = './output/vcop/pretraining/r3d_18_ucf101'
model = dict(
type='VCOP',
backbone=dict(
type='R3D',
depth=18,
num_stages=4,
stem=dict(
temporal_kernel_size=3,
temporal_stride=1,
in_channels=3,
... | [
"zyz0205@hotmail.com"
] | zyz0205@hotmail.com |
ccd6f80811a21dcdf462628ab9ef49956adb145b | b4a22431ee78300802af8c11a989baca6e6b2688 | /setup.py | af3d44f45e3f80a1fff5d242d5d48a6473198514 | [] | no_license | sfbrigade/open_ballot | 53f33c0a5b8f0b7d94854bcfb240e57d6a9fa411 | 2e8b59d8e1d3e6f8347c533650cbe372dd0c4a95 | refs/heads/master | 2020-05-01T07:58:36.625072 | 2014-05-29T02:38:59 | 2014-05-29T02:38:59 | 13,112,452 | 1 | 0 | null | 2015-11-10T22:12:06 | 2013-09-26T03:54:14 | SQL | UTF-8 | Python | false | false | 1,221 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md')) as f:
README = f.read()
with open(os.path.join(here, 'CHANGES.txt')) as f:
CHANGES = f.read()
requires = [
'pyramid',
'pyramid_chameleon',
'pyramid_de... | [
"aaron@goodeggs.com"
] | aaron@goodeggs.com |
c64a4dd21c4229520708409ded2b44b76b9c60ca | c118c2f09b17e110387946e45b0cd6049e30c8f4 | /lab08_minimax-master/lab08_minimax-master/tests/knapsack/benchmark_small.py | 91fe35261390c2425e25034f251b932dcc5b5f1b | [] | no_license | ZuzannaMisztal/Badania-Operacyjne | 0ec280ef0a5e82b919dbee6284cc4d1c02765099 | 89b516a0c4bcaca1c7a810e37d13eb6b9907be38 | refs/heads/main | 2023-04-15T17:18:52.375676 | 2021-04-23T20:42:06 | 2021-04-23T20:42:06 | 360,997,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | from tests.knapsack.knapsack_benchmark import KnapsackBenchmark
problems = ["ks_4_0", "ks_19_0", "ks_30_0", "ks_40_0", "ks_45_0"]
benchmark = KnapsackBenchmark(problems)
benchmark.run() | [
"zuzanna.misztal.3001@gmail.com"
] | zuzanna.misztal.3001@gmail.com |
0df64cbead81c2a07c3c63de293eecf1dcd41184 | 875bb84440094ce058a2ec25a661a7da6bb2e129 | /algo_py/boj/bj1212.py | 3005d1075ae35471fa8e65763598520f538478f1 | [] | no_license | shg9411/algo | 150e4291a7ba15990f17ca043ae8ab59db2bf97b | 8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d | refs/heads/master | 2023-06-22T00:24:08.970372 | 2021-07-20T06:07:29 | 2021-07-20T06:07:29 | 221,694,017 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | print(bin(int('0o'+input().rstrip(),8))[2:]) | [
"shg9411@naver.com"
] | shg9411@naver.com |
020d76615d6bd596f75e25283ea880e7c0a87283 | 1de81bc25cb6da27822273e803a97569e77ffc59 | /perceptron.py | 56bd48cee7387ecba620efbf08db5c57b809aaac | [] | no_license | Huarong/myML | 19cb0c8db4409527cb2202271caed8ce9f8f24ec | 21f7e09af40e843aa440270463f093efea7bb0d1 | refs/heads/master | 2016-09-05T15:08:32.337766 | 2014-02-10T08:55:25 | 2014-02-10T08:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | #coding=utf-8
import Queue as queue
class PerceptronModel(object):
"""This is an implemetion of Perceptron according "Statistic Learning Method"
written by Li Hang"""
def __init__(self, m=2):
self.m = m
self.w = [0 for i in range(m)]
self.b = 0
def set_w(self, w):
self... | [
"huohuarong@email.com"
] | huohuarong@email.com |
a23aaeb1fe329a362d00beace17f570d5ab087b3 | 5cb3b0b88c1baa2fae9562ac4cad5f84d65221e1 | /w7/demo/demo/core/models.py | b936ac6f63740a7a568da59d6fbd5aca09523171 | [] | no_license | bobur554396/BFDjango2020Spring | aa7ad9a595b247100f876e36585368af078d862e | e7ef04be2cf4d2506c2212ea4509a106e12d4dd4 | refs/heads/master | 2020-12-15T07:07:16.214284 | 2020-04-13T19:16:28 | 2020-04-13T19:16:28 | 235,028,587 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | from django.db import models
from rest_framework import serializers
class Publisher(models.Model):
"""Publisher class"""
MALE = 1
FEMALE = 2
GENDER = (
(MALE, 'male'),
(FEMALE, 'female'),
)
name = models.CharField(max_length=300, unique=True)
city = models.CharField(max_len... | [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
aa7195a1b211b36ccd80339edc54ae2ddedfa312 | c24e1214c18e724758d73735f431e37c283595c0 | /energy.py | 1f44018853b607107a8c34e85b2b017a5b1fdbfb | [] | no_license | laardi/SOP | 9e140535138b6e79ebbc67a126d0a33de1d1cfc8 | 5cc3dd1f99f4a07105402199b0c16c8eef13829f | refs/heads/master | 2021-01-13T11:38:19.640843 | 2017-02-07T16:49:44 | 2017-02-07T16:50:22 | 81,229,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import wave
from yaafelib import *
def _energy(audio_location, sample_rate):
# This function behaves the same as 'python yaafe.py -r SAMPLERATE -f \
# "energy: Energy PARAMETERS" WAV-LOCATION'
# SAMPLERATE : Samplerate of the file being processed
#- blockSize (default=1024): output fram... | [
"laardi@gmail.com"
] | laardi@gmail.com |
9dea8f027120df7ac7ae7eddda181e5fc4f7056f | f58bd787e996894c467b2ed7658ff5ab8c2cfb70 | /IT210/Exam2/Exam2beta.py | c0e8da74b4288896b170ea3586d1e923cc8a226e | [] | no_license | rumman07/python | 4250d56a1bec79f554880390ac7278bfe06ba98f | a4ac13fe434fd8235cbfbf7a5e34e81af0f02225 | refs/heads/master | 2023-08-17T00:55:23.254729 | 2023-08-16T07:09:36 | 2023-08-16T07:09:36 | 145,334,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | def main():
processInput()
def processInput():
#Prompt for the input and output file names
inputFileName = input("Input file: ")
outputFileName = input("Output file: ")
#Open the input and output files.
inputFile = open(inputFileName, "r")
outputFile = open(outputFileName, ... | [
"rummanahmed.ra@gmail.com"
] | rummanahmed.ra@gmail.com |
4c0b163a7460d2fd4bc039cf7ea4f217d04db9cf | 47ce68e1ff970318fd31ac43405d0e1fa3594bf6 | /Models/biGAN/lowerDimBiganXEntropy.py | c888aeec7669d02cd851651a907718f7717dec9c | [
"BSD-3-Clause"
] | permissive | Midoriii/Anomaly_Detection_Diploma | 7196da379f8aefbd4546ca23e8303d1829e059fb | 11145e3e5210a4e45a33d98b138213edb7bc5d3d | refs/heads/master | 2023-03-25T20:42:56.961210 | 2021-03-14T01:13:39 | 2021-03-14T01:13:39 | 261,205,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,537 | py | '''
Copyright (c) 2021, Štěpán Beneš
Basic bigAN net, using cross entropy as loss and made to work on 192x192
'''
import numpy as np
from Models.biGAN.BaseBiganModel import BaseBiganModel
from Models.Losses.custom_losses import wasserstein_loss
from Models.biGAN.weightclip_constraint import WeightClip
from keras.lay... | [
"stephen.Team24@gmail.com"
] | stephen.Team24@gmail.com |
601f6263f6c1ff4c717652ab7afb96c3d9ee243a | 214838dc887c044c7b10f26a6fd85ee231ad8107 | /vendor/github.com/google/protobuf/update_version.py | 7a961ae1397c6d597b84dfbd47b7d45b2ff0337b | [
"Apache-2.0",
"LicenseRef-scancode-protobuf"
] | permissive | coolbreeze000/ovs-gnxi | 5c486e192bad4880bff6ea38f6969417986fd262 | ad9c0bf3565a3cf8dfe5ca9929c2632a57fd279b | refs/heads/master | 2021-04-18T21:31:53.828567 | 2019-04-22T21:01:02 | 2019-04-22T21:01:02 | 126,850,919 | 2 | 1 | Apache-2.0 | 2019-04-22T21:01:03 | 2018-03-26T15:36:47 | Go | UTF-8 | Python | false | false | 7,883 | py | #!/usr/bin/env python
import datetime
import re
import sys
from xml.dom import minidom
if len(sys.argv) < 2:
print """
[ERROR] Please specify a version.
Example:
./update_version.py 2.1.3
"""
exit(1)
NEW_VERSION = sys.argv[1]
NEW_VERSION_INFO = NEW_VERSION.split('.')
if len(NEW_VERSION_INFO) != 3:
print """
[... | [
"dherkel@google.com"
] | dherkel@google.com |
b3171acf6e6391d74104fb29632f79fe9666a420 | 41b1db1c40fd7a17633117ea6c35641611ad74e2 | /main.py | 3f767ecac3018a83c43218fbeb4cad3f7d40eb1c | [] | no_license | samtsevich/VCNEB_input_generator | 0969a6b345308d74a4f5973ea43209c61e34e6ff | 5194a018cb15fc487b70171744c30c3d0990ce57 | refs/heads/master | 2021-01-21T16:48:33.741609 | 2017-05-20T18:41:33 | 2017-05-20T18:41:33 | 91,909,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,703 | py | '''
Code for creating linear interpolation between 2 structures.
IMPORTANT:
initial and final structures should be POSCAR-files of VASP5
'''
from __future__ import division
__author__ = 'asamtsevich'
from ase.atoms import Atoms
from ase.io.vasp import read_vasp, write_vasp
import argparse
import os
import numpy a... | [
"samtsevichartem@gmail.com"
] | samtsevichartem@gmail.com |
33d36ffcb8449ec8a1abc25e2289481273002db4 | 13f198b5837fe031ca972994a40e29579710708d | /eshop/cart/migrations/0003_delete_userorders.py | a563b7bd23692aa5a8f9795340557e1e2bc2624d | [] | no_license | jenish2/ElectronicShop | 44e60e3f93b8b8558dd045a255e95bd8764ed9e4 | c2b31c30b21383e103bced011c59c056d3220b07 | refs/heads/master | 2023-05-31T23:06:16.573868 | 2021-06-21T05:24:10 | 2021-06-21T05:24:10 | 267,392,752 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | # Generated by Django 3.0.4 on 2020-04-24 12:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('cart', '0002_userorders'),
]
operations = [
migrations.DeleteModel(
name='UserOrders',
),
]
| [
"dholariyajenish.ddjj@gmail.com"
] | dholariyajenish.ddjj@gmail.com |
39ba074dc4ed2dfc458d0f96d05397e202baecd3 | 5c2ed67bdaaa459f9332479bb6e499434bfee5db | /levels/pythonchallange_000/pythonchallange_000.py | db45bd906adbfb6fd1f2bf2977da6f2fd1d546fe | [] | no_license | reedcourty/pythonchallenge | 2b050aed20de973f88118dfada7dd39a38b4fc20 | 766b284831cee01d7e1e7f2b4251d9152c851077 | refs/heads/master | 2021-03-12T23:16:50.878070 | 2015-07-19T16:28:48 | 2015-07-19T16:33:41 | 2,092,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | # http://www.pythonchallenge.com/pc/def/0.html
# Hint: try to change the URL address.
# On http://www.pythonchallenge.com/pc/def/1.html
# 2**38 is much much larger.
import webbrowser
webbrowser.open('http://www.pythonchallenge.com/pc/def/' + str(2**38) + '.html')
| [
"reedcourty@gmail.com"
] | reedcourty@gmail.com |
7465cad3644655de43d7349acad63a4c4b35575d | 4ceba3652489088d8f9a264a654d2e6385fcc53e | /rbb_server/test/rbb_server_test/test_users.py | cf4d5928bd445f4e76cc14563a61fe23e6bfc31e | [
"MIT"
] | permissive | AMZ-Driverless/rbb_core | 344ce8a60dd1c91593e0b5f38751164bec81906d | 992380baf06271516ef4d2944e12ea941560ffce | refs/heads/master | 2022-05-10T19:15:03.328439 | 2022-04-03T16:57:54 | 2022-04-03T16:57:54 | 174,819,553 | 62 | 16 | MIT | 2022-04-21T09:30:31 | 2019-03-10T12:20:17 | Python | UTF-8 | Python | false | false | 6,358 | py | # AMZ-Driverless
# Copyright (c) 2019 Authors:
# - Huub Hendrikx <hhendrik@ethz.ch>
#
# 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 ... | [
"huub@sevensense.ch"
] | huub@sevensense.ch |
8373a4365d7dcd05ee9388f921ba2b4d4ba9dbba | 91ac9ffb1bc34a0651d7f4b47a8363c9a9016ac3 | /python/Python27/template.py | a01cdcd004591378e829edc79f3f873e864a5354 | [] | no_license | suto3/git-public | 966b5c4967d2f192f23dc3b00cd42ac612725039 | 3c6d19cd4093247b7b459598960047e08b88392c | refs/heads/master | 2021-07-16T05:47:45.523546 | 2020-08-25T04:39:33 | 2020-08-25T04:39:33 | 9,160,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# テンプレートです
#
import sys
def main():
'''
メイン関数
'''
if __name__ == '__main__':
main()
#EOF
| [
"suto3suto3@gmail.com"
] | suto3suto3@gmail.com |
cf6c0315c0e93791c5be5b0afc67a66c7de1c22f | f7bdc48d92862923e9e562aca0457197e5975cfb | /Src/ImageProcessing/Watershed/watershed.py | 456136a58de66deaa167fd006bbd8c8fdbeaae8b | [] | no_license | jackwiy/OpenCV-Python-Tutorials | 532556bcf87b66db1e6087c8d04d4ef790f7b7f1 | 01013e7f851effc97ec6932f689aef1ee81f4140 | refs/heads/master | 2022-11-29T03:59:36.410037 | 2020-08-13T18:02:43 | 2020-08-13T18:02:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,152 | py | #!/usr/bin/env python
'''
Watershed segmentation
=========
This program demonstrates the watershed segmentation algorithm
in OpenCV: watershed().
Usage
-----
watershed.py [image filename]
Keys
----
1-7 - switch marker color
SPACE - update segmentation
r - reset
a - toggle autoupdate
ESC - exit... | [
"leo_how@163.com"
] | leo_how@163.com |
371dd453508473d1f3f11653520e8f89490ddb56 | 5bd18933a2b88d59916b17c52056e9e70ba44d52 | /Assignment 2/Code/Francois/3. Crimes per District per Year.py | 3056bde0da6875f011839c1a3e8e0da58daf768d | [] | no_license | u14006512/MIT-805-Assignments | c78465345f181c3da6a77aa1b9c05de41113bf89 | 9be0e1b4813ff2ab83bfd9c46b68617161ce1ea8 | refs/heads/master | 2020-03-27T08:39:17.813027 | 2018-10-18T14:36:58 | 2018-10-18T14:36:58 | 146,273,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | import Shared as shared
data = shared.getData(25000)
counts = data.groupby(['District', 'Year']).size().to_dict()
print(counts) | [
"fgreunen@gmail.com"
] | fgreunen@gmail.com |
3c438f0750ba79289ddaa732dc702e72113b7ea5 | e8bef0f6dc2bd90f25e4bd2f32668ac31f2f0fe2 | /variable_neutral_line_manipulator/gui/widgets/result_text_widget.py | bece05c5efcff8c895d0bd9ccc9be9100c3aa8b8 | [] | no_license | MINGXUANCALVIN/variableNeutralLineManipulator | cdf3db4314029d84e3831ecb02570b0171615273 | c2356a49c9efd62d4ec6aa2bd83bcce26ede3707 | refs/heads/master | 2023-04-27T00:39:42.232858 | 2020-05-30T05:24:28 | 2020-05-30T05:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import math
from ..gui_common import *
from ..backend import *
class ResultTextWidget(QWidget):
def __init__(self, parent=None):
super().__init__(parent=parent)
self.mainLayout = QVBoxLayout()
self.text = QTextEdit("Result:\n Not computed yet")
self.mainLayout.addWidget(s... | [
"dickson0717@hotmail.com"
] | dickson0717@hotmail.com |
7a30bb5c72f7087e459db195116e66df3944d94c | eebf29bbf0b78aca02b9ed4c403fa56c9249fef8 | /cloto/__init__.py | ab118ddd3ccd94692eb633f414bf6f664e58383c | [] | no_license | jesuspg/fiware-cloto | a19798498d9d7273f8836bc277128fad66b9dc1d | 7d55ed33c1d67c225568af2bb2aa9041d90ff8f9 | refs/heads/master | 2021-01-18T01:24:20.934195 | 2013-11-12T15:14:45 | 2013-11-12T15:14:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | s = 'Hello, world.'
str(s)
print(s)
| [
"fla@tid.es"
] | fla@tid.es |
0829c068eca4809b37b25c8aaf5f7869cb1183a4 | 91639fea573828d08e8642a9022fe2ec62319414 | /future/backports/email/quoprimime.py | 6ede1ca4aa682af2b6276361d9dd94f8dbf4288a | [
"MIT"
] | permissive | agincel/AdamTestBot | 9787a22f25a3bfc2bbab0b6c6e66b857cb369f32 | fee093c3dd944881bd92c9180fbb3a13700673da | refs/heads/master | 2020-05-22T04:26:39.241479 | 2016-12-29T22:15:04 | 2016-12-29T22:15:04 | 44,931,116 | 0 | 8 | null | 2016-10-18T22:04:33 | 2015-10-25T21:40:35 | Python | UTF-8 | Python | false | false | 11,249 | py | # Copyright (C) 2001-2006 Python Software Foundation
# Author: Ben Gertzfield
# Contact: email-sig@python.org
"""Quoted-printable content transfer encoding per RFCs 2045-2047.
This module handles the content transfer encoding method defined in RFC 2045
to encode US ASCII-like 8-bit data called `quoted-printabl... | [
"adam@DESKTOP-TA850RC.localdomain"
] | adam@DESKTOP-TA850RC.localdomain |
a0b703f87a403de60bd497d01dc11969567edd6c | 2eb8e3606a8df45d432fdf56ee9aa24942304526 | /rocketgram/api/shipping_option.py | 55db89dd5aca13265cd5374ea45adc78d30833c9 | [
"MIT"
] | permissive | KulZlaK/rocketgram | 22848293980ba44dd9fb63db28f34be36c437c84 | 09587deecffcd7ccc9529f4d9e51221888870f23 | refs/heads/master | 2022-07-27T23:25:51.254444 | 2020-05-15T21:36:57 | 2020-05-15T21:36:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | # Copyright (C) 2015-2020 by Vd.
# This file is part of Rocketgram, the modern Telegram bot framework.
# Rocketgram is released under the MIT License (see LICENSE).
from dataclasses import dataclass
from typing import List
from .labeled_price import LabeledPrice
@dataclass(frozen=True)
class ShippingOption:
""... | [
"vd@"
] | vd@ |
4fcaed0256103e3eb8ace9827d79a215ae909c24 | 3dfb4ee39555b30e6e0c6fcdbef371864e69f694 | /google-cloud-sdk/.install/.backup/lib/surface/preview/app/__init__.py | 8250cdb4a7ea1553778dd1cecb732f0c19282aa6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | MD-Anderson-Bioinformatics/NG-CHM_Galaxy | 41d1566d5e60416e13e023182ca4351304381a51 | dcf4886d4ec06b13282143ef795c5f0ff20ffee3 | refs/heads/master | 2021-06-02T21:04:12.194964 | 2021-04-29T14:45:32 | 2021-04-29T14:45:32 | 130,249,632 | 0 | 1 | null | 2020-07-24T18:35:21 | 2018-04-19T17:25:33 | Python | UTF-8 | Python | false | false | 2,988 | py | # Copyright 2013 Google Inc. 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 applicable law or ag... | [
"rbrown@insilico.us.com"
] | rbrown@insilico.us.com |
7540ca37e20d2873725274e65d5542aadd500b00 | 2179ae6ea7da99fd58c968281f9dcdb28684214c | /re - phone pattern.py | 8be97877789ce9174ccd425bce1f01bf8f1116df | [] | no_license | Wintus/MyPythonCodes | 86d5aad9fabae0f6ed58b63741e44135bfee903e | 316d20c39c2de5960b094611c092805895037df7 | refs/heads/master | 2023-08-31T21:07:27.630010 | 2023-08-21T18:00:33 | 2023-08-21T18:00:33 | 29,950,620 | 0 | 0 | null | 2023-08-21T18:00:01 | 2015-01-28T04:32:30 | Python | UTF-8 | Python | false | false | 533 | py | phonePattern = re.compile(r'''
# don't match beginning of string, number can start anywhere
(\d{3}) # area code is 3 digits (e.g. '800')
\D* # optional separator is any number of non-digits
(\d{3}) # trunk is 3 digits (e.g. '555')
\D* # optional separator
(\d{... | [
"132e84e5@opayq.com"
] | 132e84e5@opayq.com |
f0519d1c749d0d1a71d9290c857d4bbbd150e781 | 1374cf697c8a83ebc4bbfd3a7ad52c2003b4788e | /pyDev/src/classifier/sklearn_svm_sample.py | 47c0d34fc624541dc6b813a8912481ac07e99e07 | [] | no_license | weskita/MachineLearning | cff28a40898b89f927eae744ac0fb3b8b2a40cbd | 6806c589c75c39563c558ecf0859d5c07d826b25 | refs/heads/master | 2016-09-06T04:25:18.898717 | 2015-06-23T08:14:21 | 2015-06-23T08:14:21 | 35,151,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | # -*- coding: utf-8 -*-
"""
Sklear svm example
"""
print(__doc__)
#使用SVM 分类器
from sklearn import svm
from sklearn.datasets import load_svmlight_file
#将数据集分为训练集、检验集
from sklearn.cross_validation import train_test_split
from sklearn import cross_validation
#引入评价指标
from sklearn.metrics import confusion_matrix #计算混淆矩... | [
"zkonline1989@163.com"
] | zkonline1989@163.com |
06ea068a4936143480c9a697be9cf4c96253f1ca | de9ab2997753d77d09f34a7eab63e47a68f6bf25 | /scripts/boolean_naive_bayes.py | a69abea803bb1cbb4c410923991f9b06ef85a616 | [] | no_license | sidsvash26/kaggle_movies_sentiment | f02a8bd0b1014d65b303db6d1b4348f4a78f5b0f | 2f1039340631db92ddd5df05dada89094a80623b | refs/heads/master | 2021-01-12T17:58:36.260372 | 2016-10-03T19:19:54 | 2016-10-03T19:19:54 | 69,901,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,734 | py | # -*- coding: utf-8 -*-
"""
Created on Sun May 8 02:31:20 2016
@author: sidvash
"""
# -*- coding: utf-8 -*-
"""
Created on Thu May 5 01:46:07 2016
@author: sidvash
"""
import pandas as pd
import numpy as np
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
import math
import re
stop_words... | [
"sidsvash26@gmail.com"
] | sidsvash26@gmail.com |
0f2f2af378ce339b3f1b56131519c55fa8fa4a8c | 8828b0048c6c6253d0f8886530af354ffbb51df2 | /config/test/config_test.py | 3c9f98ad4a3b34c99021d7566006f59fbdaa7d0d | [] | no_license | stefan-rz/Tap-News | 9031a2bd392b3cca81bb2a3ba0b178d0810c58bb | 21c5bd1bd474fee6d06c924fd5f0046754bdc036 | refs/heads/master | 2021-06-16T11:44:11.423615 | 2017-05-22T01:07:54 | 2017-05-22T01:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from config import Config as cfg
def test_read():
cf = cfg().load_config_file()
assert 'localhost', cf.operations.REDIS_HOST
print 'test pass.'
def test_singleton():
borg = cfg().load_config_file()
another_borg = ... | [
"stefan.ruihan@gmail.com"
] | stefan.ruihan@gmail.com |
7480bda28d7c6e29cbb2bd96889c9340d1a9e221 | 80e3dfac67631cef70da3dc015d4557d46d41801 | /src/grid/changemapanimations.py | 59382ea322cc21c033792db21c18f8d56677383d | [] | no_license | snizzo/lucrezia | 7b6d648f11581ddd21acd301df5426d77b6b21dd | fb41e5ba4435d48d702c58aa9402c10ab12a51b9 | refs/heads/master | 2023-06-22T13:14:06.634116 | 2023-06-18T22:42:14 | 2023-06-18T22:42:14 | 32,765,327 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | #panda3d
from panda3d.core import NodePath, LPoint2i
from direct.showbase.DirectObject import DirectObject
from direct.interval.IntervalGlobal import *
#internals
from utils.toggle import Toggle
from utils.once import Once
from objects.grass import Grass
from objects.light import Light
from tile import Tile
from chara... | [
"happy.snizzo@gmail.com"
] | happy.snizzo@gmail.com |
e6600a0f36a22c1dbdb2c5889697375206961f27 | 54a127fc963a95e5107c913b2340953bdc7c58c5 | /venv/bin/pip3.6 | c43c9adf7f43eee6a1398e4b7fdf46e402f6f315 | [] | no_license | JiyoungJeong/Term-Project | a4bc0d67c53de77beefe56c820225b9ee243ef65 | 6bfe47a586e503bbd4aa5085c9a3f4e241421be2 | refs/heads/master | 2020-04-12T19:48:21.834048 | 2018-12-21T13:49:22 | 2018-12-21T13:49:23 | 162,718,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | 6 | #!/Users/jungjiyoung/PycharmProjects/termproject/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__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.arg... | [
"jjy805606@hanyang.ac.kr"
] | jjy805606@hanyang.ac.kr |
3345e3d6d34fd46bbc12bc8bebb4b184beddd0d4 | c37257a50159e1c6076668c0c463eaa287d53cdc | /exercises/006/solution.py | f88de700baaec7149ca79a0646667e36c22967e8 | [] | no_license | June-VK/hackinscience | fd2b2a1f4a901ffb26e9aedd58556e7fedf76571 | 21d9bb142edd6f4b9845f9488a7e44f54baf4376 | refs/heads/master | 2020-06-14T22:28:25.108724 | 2016-12-19T14:56:06 | 2016-12-19T14:56:06 | 75,403,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | #!/usr/bin/python/
import sys
print(sys.argv[0])
| [
"june.vergekemp@cri-paris.org"
] | june.vergekemp@cri-paris.org |
1321de452caf0060f6d2cf2523a3f418c5ce49c9 | 4e382ae46cf997ea2dbdfcfa463a57d3e0e9ad97 | /sols/different_ways_to_add_parentheses.py | bd10c6c02ef9f79a33afab5e46cb95900b8ae084 | [] | no_license | hayeonk/leetcode | 5136824838eb17ed2e4b7004301ba5bb1037082f | 6485f8f9b5aa198e96fbb800b058d9283a28e4e2 | refs/heads/master | 2020-04-28T03:37:16.800519 | 2019-06-01T14:34:45 | 2019-06-01T14:34:45 | 174,943,756 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | class Solution(object):
def diffWaysToCompute(self, exp):
def calculate(num1, num2, sign):
if sign == "+":
return num1 + num2
elif sign == "-":
return num1 - num2
else:
return num1 * num2
ans = []
fo... | [
"31617695+hayeonk@users.noreply.github.com"
] | 31617695+hayeonk@users.noreply.github.com |
9a5e3603cbec3e1f9a021bad6ebb551781f4279a | 0f950b17166ec3a327612ac8bb78fba988b54645 | /models/sinapimodels.py | aa4e21f618eeb9102e7a0584ae104266016e9d1d | [
"MIT"
] | permissive | brunotvs/projecLCQ_paper | 218326710a431fd9d4a9bc152396fa6968e7df5b | b5f7af96a0da1116095d3777a4954afae0a64939 | refs/heads/main | 2023-04-05T16:41:24.445231 | 2021-04-15T01:08:57 | 2021-04-15T01:08:57 | 358,077,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,794 | py | from sqlalchemy import (Column, Float, ForeignKey, Integer, Sequence, String,
Table, Boolean)
from sqlalchemy.ext.associationproxy import association_proxy
from sqlalchemy.orm import relationship
from sqlalchemy.schema import UniqueConstraint, Index
from sqlalchemy.sql import func
from . import... | [
"brunothiagorvs@gmail.com"
] | brunothiagorvs@gmail.com |
aa3f4f7235ffe090bfb7628336f9b3504774ab15 | 4a4579254118db40fb008439d18ad8c573e8fc1a | /build/jsk_common_msgs/jsk_gui_msgs/cmake/jsk_gui_msgs-genmsg-context.py | f56cef5c14333e672ea233f015bc2fa7f8ca52be | [] | no_license | amilearning/AD_mpc_ws | 86ff6ef9e61c6cc5aae6e12f20c2c875b1930d41 | 1fc2d385f281e00c16aff688948f7296e02cbd3a | refs/heads/master | 2023-06-24T13:54:59.759921 | 2021-07-16T01:08:52 | 2021-07-16T01:08:52 | 386,465,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/hmcl/shared_dir/mpc_ws/src/jsk_common_msgs/jsk_gui_msgs/msg/Action.msg;/home/hmcl/shared_dir/mpc_ws/src/jsk_common_msgs/jsk_gui_msgs/msg/MagneticField.msg;/home/hmcl/shared_dir/mpc_ws/src/jsk_common_msgs/jsk_gui_msgs/msg/Touch.msg;/home/hmcl/sha... | [
"hojin.projects@gmail.com"
] | hojin.projects@gmail.com |
5ea65368b06c233a66fb293222f5e0e86ade3e0a | f81c9451768a52bc22c6a2abe87c25615ea8b3e6 | /汇总文件/jobboleproject/jobboleproject/spiders/crawlJobbole.py | b191639c8f7518c6e3da765558ff142ab763b436 | [] | no_license | hanfang302/crawlercollect | 07cb7fb5faf85018e82f48b0209bd86dc5c52f8f | 8f7b286df8bf0a344c3656bda5c7fb96cee640dc | refs/heads/master | 2020-03-22T05:27:07.928855 | 2018-07-03T10:26:07 | 2018-07-03T10:26:07 | 139,566,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
#继承crawlspider,crawlspider有继承之spider
class CrawljobboleSpider(CrawlSpider):
#爬虫名称
name = 'crawlJobbole'
#域,制定可以爬取的url必须在这个域下面,不在的自动忽略
allowed_domains = ['blog.jobbole.com']... | [
"hanfang123@aliyun.com"
] | hanfang123@aliyun.com |
fc255fe8fed8197264367180513e6fb8aebecba2 | 08b439af0eeccb93b41193b65c196b7ab2dbe773 | /award/urls.py | 1ae3b1aec217ee245e5c22ac908b89354d53b4e5 | [
"MIT"
] | permissive | EidAbdullahi/hilal | a80aa3f6b7ce2a3098f5dcada9bbb2fc52dc6ba9 | 1ccb6a1b5a5143164ced9b8a4c742997abbb6296 | refs/heads/master | 2023-05-01T14:28:46.837200 | 2021-05-05T12:02:48 | 2021-05-05T12:02:48 | 363,429,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | """award URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"eidabdullahi10@gmail.com"
] | eidabdullahi10@gmail.com |
5cc764c46a88da96560ed44ecd0a68781e9bf3f7 | 9e0d14ff84f104d7721b018008004f8ade5ddb70 | /venv/lib/python3.8/site-packages/google/protobuf/internal/decoder.py | 9a4e15202b2f4f6841a6841917a92b98b5229367 | [] | no_license | rowdypanda/Pandamonium | fc728af15a24d0a38c368ae2862d8d1c858e60ee | 599a26ccd6df3e298fc6fa1379f5d945d5ce4ee3 | refs/heads/master | 2023-07-19T03:49:34.171932 | 2023-07-08T08:58:15 | 2023-07-08T08:58:15 | 333,290,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/c4/5c/45/672b68707cafba78a03c05b4e0c5376c1ceb2d8d85a0a3f34f1123b992 | [
"3871230-RowdyPanda@users.noreply.replit.com"
] | 3871230-RowdyPanda@users.noreply.replit.com |
b486a84b438286c67481b13127a2048197fd09f7 | 456102b543d6e239394c91a62d26af4779ba0437 | /MGNNet/loss/__init__.py | 62a029827aa2c4901270a5582c93429994de27c2 | [] | no_license | pxssw/SLAB_Facial-Expression-Recognition | 8523f3c24584bb47fe13c4e70a23ad2ecdf7476f | f220475f7cdb9b5693c5b91e4769e7a9605cc450 | refs/heads/master | 2022-12-13T07:27:24.088863 | 2020-09-16T14:16:20 | 2020-09-16T14:16:20 | 296,046,311 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,461 | py | import os
import numpy as np
from importlib import import_module
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
from .triplet import TripletLoss, TripletSemihardLoss
class Loss(nn.modules.loss._Loss):
def __init__(self, args, ckpt):
super(Loss,... | [
"pxssw@126.com"
] | pxssw@126.com |
464e90b29f36fab7808df0251337c7a7dc1eb54d | 62c018ad1398317a4f18ffd5fb9f4d3ef9466fe5 | /apps/inscripciones/models.py | 959be0a27b479f6ff5bb9ec0159398a3a8837612 | [] | no_license | dgosandoval/proyectoMultiapps | ded950a09a85444b69db31e89821961ccbf8987f | eaa025451d1bac2f5ac768f33d115c03996dbda3 | refs/heads/main | 2023-04-26T01:15:57.095997 | 2021-05-25T16:19:54 | 2021-05-25T16:19:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | from __future__ import unicode_literals
from django.db import models
from apps.cursos.models import *
from apps.usuarios.models import *
class Inscripcion(models.Model):
participante = models.ForeignKey(Usuario, related_name="inscripcionUsuario", on_delete=models.CASCADE, blank=True,
null=True,
d... | [
"joaquin.cifuentes@gmail.com"
] | joaquin.cifuentes@gmail.com |
bff8f74051ac91f5994980953d38279ba111917d | e9b9626ffce09bf011803a33b4780d8dcc6657e8 | /class9/collateral/put_file.py | aae2559cec9e5615c13bc1c06a49886309059ceb | [
"Apache-2.0"
] | permissive | zh0u0liver/netmiko_course | f7a91eb3f543e2a609172280f13b6bc8c4fbe1b9 | 31943e4f6f66dbfe523d62d5a2f03285802a8c56 | refs/heads/master | 2023-08-04T05:41:32.745403 | 2021-09-14T02:18:44 | 2021-09-14T02:18:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | import os
from getpass import getpass
from netmiko import ConnectHandler, file_transfer
# Code so automated tests will run properly
password = os.getenv("NETMIKO_PASSWORD") if os.getenv("NETMIKO_PASSWORD") else getpass()
# Need a privilege15 account (no enable call)
cisco3 = {
"device_type": "cisco_ios",
"hos... | [
"ktbyers@twb-tech.com"
] | ktbyers@twb-tech.com |
9099a14ebb9e84852429bdb3e280f2b0e49072f1 | 0fef7c930629087ba38d2f1892f837719b34375d | /run_game.py | f976e871ddb49272e6556ac6cc47bca5577cd951 | [] | no_license | kn45/go-bang | cb3b43c77cc7c322a5786d663f617c7c0cdfb6cd | d25eecc8c77d549cd645c748411abea373d001ed | refs/heads/master | 2021-10-08T10:20:51.520825 | 2018-12-11T06:55:05 | 2018-12-11T06:55:05 | 114,105,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | #!/usr/bin/env python
from uct import *
from game import *
from player import *
from common import cprint, pos2h
def play_game(game, p1, p2, verbose=True):
players = [p1, p2]
gprint = cprint(verbose)
gprint(game.board)
while game.game_status == GameStatus.UNDERGOING:
player_idx = (game.player... | [
"381404825@qq.com"
] | 381404825@qq.com |
679e412a82c2340b28045e6cdb388a19bfb5b799 | d628948e86841ae3efc93eba2e321dd58fe33b07 | /bookmanager/settings.py | 14f4a01b82c72de936cfd48b51e0a9eebea7e085 | [] | no_license | shd0812/django_demo | 8986dde23c2fd8ae4a46f8a938c9c0924200d4b2 | 832c028171795bf6feabc39d313bcad8cfbe5b94 | refs/heads/master | 2022-12-05T18:57:11.213951 | 2020-08-24T08:15:50 | 2020-08-24T08:15:50 | 289,303,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | """
Django settings for bookmanager project.
Generated by 'django-admin startproject' using Django 1.11.28.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"759275499@qq.com"
] | 759275499@qq.com |
ab9a23317b1997f28cfa6c1d816d647193b2be04 | ddf55f8e6d23dee073865ae2f37d943643a342ac | /src/meltano/core/permissions/pg_spec_loader.py | d7b8a1cc004c1116b1a44e3f4ac0940513ccb1d9 | [
"MIT"
] | permissive | NikolayS/meltano | d7ac7c1355acd907c71c601ecfb3b965ce8448a0 | 4616d44ded9dff4e9ad19a9004349e9baa16ddd5 | refs/heads/master | 2023-01-05T22:55:15.423831 | 2019-12-09T07:51:09 | 2019-12-09T07:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,109 | py | import cerberus
import logging
import yaml
from typing import Dict, List
from meltano.core.permissions.utils.error import SpecLoadingError
from meltano.core.permissions.spec_schemas.postgres import *
VALIDATION_ERR_MSG = 'Spec error: Role "{}", field "{}": {}'
class PGSpecLoader:
def __init__(self, spec_path: ... | [
"iroussos@gitlab.com"
] | iroussos@gitlab.com |
098d0a2a8b1145a3df6d306fd83f6c68df598e98 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/distiller/CWD/pytorch/mmrazor/configs/nas/mmcls/onceforall/ofa_mobilenet_supernet_32xb64_in1k.py | 341f4bda969cdd7625e1da7e3e5ff0c36e6fee57 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 1,671 | py | _base_ = [
'mmcls::_base_/default_runtime.py',
'mmrazor::_base_/settings/imagenet_bs2048_ofa.py',
'mmrazor::_base_/nas_backbones/ofa_mobilenetv3_supernet.py',
]
supernet = dict(
_scope_='mmrazor',
type='SearchableImageClassifier',
data_preprocessor=_base_.data_preprocessor,
backbone=_base_.... | [
"mingjiang.li@iluvatar.ai"
] | mingjiang.li@iluvatar.ai |
7baea0a1689b386455cd0b163b447de69f0e447d | d632f1b850a389e6b011ec1b72bcfdc6801388a7 | /loss.py | 81db2127b41c7ceaca06e5cd69efd316ab29ebcb | [] | no_license | xkeys/CE-Net | 6539abf1728d6cd8b4332d890370add7d4da6865 | 4507604257801358a0a70d1d436cdeb165a60afc | refs/heads/master | 2020-05-01T16:20:58.230432 | 2019-03-17T17:22:10 | 2019-03-17T17:22:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,219 | py | import torch
import torch.nn as nn
from torch.autograd import Variable as V
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import cv2
import numpy as np
class weighted_cross_entropy(nn.Module):
def __init__(self, num_classes=12, batch=True):
super(we... | [
"guzaiwang@foxmail.com"
] | guzaiwang@foxmail.com |
515604f2abc3e0df4872c067064277872c874543 | 6f65ebe31650b73e9c5e77d598295eb1362702bd | /tools/Polygraphy/tests/logger/test_logger.py | 078390e71a50b887380cad96436dc31ad37a6be2 | [
"Apache-2.0",
"BSD-3-Clause",
"ISC",
"BSD-2-Clause",
"MIT"
] | permissive | hierarchyJK/TensorRT | d9b5be9964e54af8b2789a6e98f393519956ed90 | c2668947ea9ba4c73eb1182c162101f09ff250fd | refs/heads/master | 2023-06-26T07:01:08.922681 | 2021-07-12T09:28:23 | 2021-07-13T20:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appl... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
bcc53869bc52dae0e85fc0da278dc4dc84dde550 | 17238532f6d8ced670ab95da3792d12368373d60 | /get_toll_to_ljt_0828.py | a098e09ba31d5a5ed2d8843add299a6b2331e938 | [] | no_license | ljt55119922/lygh | 4b3b4262ecf0bea576a2e20f6ef384d7736bcd68 | 707f14a26736b77b720790f756939ce577d55dba | refs/heads/master | 2020-03-29T18:56:15.993829 | 2018-09-25T09:20:53 | 2018-09-25T09:20:53 | 150,239,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,432 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Filename: get_toll_to_ljt_0828
# Author : yuanzhou
# Date : 2018/8/28
# Description:
import requests
import pandas as pd
import numpy as np
import json
import matplotlib.pyplot as plt
import time
import functools
import os
from lonlat2adinfo_new2 import main_func_l... | [
"475895385@qq.com"
] | 475895385@qq.com |
4e8f3e9f23a13541a250bd396e11056ccbf3020b | 01ab44dc95fc7e7b058f428f3b64e9c9b775fd0d | /setup.py | 350f86d96c3e9e0b27ec41324991fc8fbf77383c | [
"MIT"
] | permissive | hinnefe2/poketrainer | 02a3a45db9627c3e40955f965c5e8ca8bc415b49 | a34e49919f9435e135a5a2775f5253207222e98c | refs/heads/master | 2023-08-14T06:05:13.426754 | 2023-05-23T18:29:11 | 2023-05-23T18:29:11 | 225,231,403 | 0 | 0 | MIT | 2023-07-25T20:49:05 | 2019-12-01T21:10:00 | Python | UTF-8 | Python | false | false | 307 | py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
from os import path
setup(
name='poketrainer',
version='0.1.0',
description='Webapp for gamifying personal training with pokemon',
url='https://pokefitbit.herokuapp.com/',
packages=find_packages(),
)
| [
"hinnefe2@illinois.edu"
] | hinnefe2@illinois.edu |
e05cc2b30e6bd80effae021dbc1b2b27b0d6c87b | 5d46c3c2cadf8d89668eccfe1fae51c2231e2962 | /dyn/tm/accounts.py | 75503d5610859ae96fab2bb91274b25043401cee | [] | no_license | Blueprint-Marketing/dyn-python | b740188dcb53380d4d0f01aa02384f5e2f8ea517 | f833b39f669f067de9d85d7771699df609ee231b | refs/heads/master | 2021-01-18T08:55:10.710366 | 2016-01-28T20:19:22 | 2016-01-28T20:19:22 | 50,611,641 | 1 | 0 | null | 2016-01-28T20:32:17 | 2016-01-28T20:32:16 | null | UTF-8 | Python | false | false | 58,426 | py | # -*- coding: utf-8 -*-
"""This module contains interfaces for all Account management features of the
REST API
"""
import logging
from .errors import DynectInvalidArgumentError
from .session import DynectSession
from ..compat import force_unicode
__author__ = 'jnappi'
__all__ = ['get_updateusers', 'get_users', 'get_p... | [
"jnappi@dyn.com"
] | jnappi@dyn.com |
9158efa3c4789e93bed407cc64f865fb40b2f449 | db0817d46280a24bc73f2baf4d155ce848b081a7 | /tests/gg_test_api.py | 77d65c06034d439cee2fa1cc336273ee80933eff | [
"Apache-2.0"
] | permissive | chengentest1/HttpRunner | 12bf778a9bca4289c19ad833eb61e54f61070e3c | e107f05dac53920df493fa4d99f9a64bfb711187 | refs/heads/master | 2020-04-16T10:11:18.419759 | 2019-01-26T08:15:28 | 2019-01-26T08:15:28 | 165,494,531 | 0 | 0 | null | 2019-01-13T10:56:45 | 2019-01-13T10:56:45 | null | UTF-8 | Python | false | false | 468 | py | from httprunner.loader import load_folder_content, load_folder_files, load_api_folder
from httprunner import exceptions, logger
import os
name_path='C:/Users/cheng/PycharmProjects/HttpRunner/tests/api'
r=load_folder_content(name_path)
print(r)
# print("=========")
# for api_file_path, api_items in r.items():
# prin... | [
"781055847@qq.com"
] | 781055847@qq.com |
242dcac100f14edf82f700c8ed38d31f8a71f669 | 1241d1c1432801aa28f67689e38e37df798b5324 | /model/ConversationCreator.py | c1c5216bb7d61d33825f9238b9ba69f05e5afa58 | [] | no_license | NoumanMustafa1/Drive-Villa-Online-Car-Dealership- | b6d045944ed47c08cdd2b8e1506357973ebfc00e | 6e6e2181099b664244b8b87d2d72eec704b11f14 | refs/heads/master | 2023-01-06T16:58:44.629573 | 2020-11-07T15:52:54 | 2020-11-07T15:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | def chatConversation(modelname,condition,boughtyear,transmission,purchaseprice,saleprice,lowestsalprice):
l1="Hey!\n Hello sir, welcome.\n I am here to buy a car. Could you please help me with that?\n Sure, sir. We have "+modelname+" bought at year "+boughtyear+" \n Could you please brief about it?.\n Sure! It was ... | [
"talhaamjadx@live.com"
] | talhaamjadx@live.com |
533646eaf481d05ece09b7e36c64575ff8465d6d | d91344eef0ab651bc9e8a99533ec7bb7667d9696 | /zodbtest.py | ff19c4756cbbb5e1e3c089e77b1de55089e55f93 | [] | no_license | jculpin/python-tutorial | 456a7fbb4dc0d626593dd4ea4920f4d85806b873 | 391ce0b9fcc09e0883c4ae0bf055afc0f75ebac7 | refs/heads/master | 2021-09-01T19:15:55.636225 | 2017-12-28T11:31:07 | 2017-12-28T11:31:07 | 109,722,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import ZODB, ZODB.FileStorage
import BTrees.OOBTree
import persistent
import transaction
class Account(persistent.Persistent):
def __init__(self):
self.balance = 0.0
def deposit(self, amount):
self.balance += amount
def cash(self, amount):
assert amount < self.balance
se... | [
"john@johnculpin.co.uk"
] | john@johnculpin.co.uk |
ac392da5ab9ef853b68f170160d29812ce05bd89 | b03708b101a0d0fd9a030728b7cdc0ba8459f7f8 | /022-pm25.py | bdd7c0bb416f3d1df21de42fc9b72c6477893773 | [] | no_license | xigyou/Tutorial | 53a4b63b9c1f52c78647a3f8376e6988dc106c7c | 9f9ca4199866707319c97422fa5de690c133f243 | refs/heads/master | 2020-03-27T07:08:26.609394 | 2018-05-25T02:08:29 | 2018-05-25T02:08:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | # -*- coding:utf-8 -*-
import requests
from bs4 import BeautifulSoup
import numpy as np
import pandas as pd
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from lxml import etree
def get_city_ls(url):
res = requests.get(url)
html = res.text
res = etree.HTML(html)
bf1 = res.xpath('//*[contains(co... | [
"noreply@github.com"
] | noreply@github.com |
3ee968cd58c3411ec79d84bd304b6c6ef7e8fef2 | 64d18f3d83f2e5fb84bdb0291370400841788aee | /iris.py | 559594882810c8adfbde1c3124ef4dd0b0c1422a | [] | no_license | KuffourJason/1-NN-Classifcation-with-Iris-Dataset | 61c06cbb4f73eacaaa2fe63ffb98b3a4bd73af04 | 73f8c8d21e556603af1a77b84d6519b02cb7163c | refs/heads/master | 2021-01-20T07:10:53.682692 | 2017-05-01T23:59:11 | 2017-05-01T23:59:11 | 89,973,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#loads iris data
iris_dataset = load_iris()
#prints all the keys in the data
print("Keys of iris_datase... | [
"jasfour.15@hotmail.com"
] | jasfour.15@hotmail.com |
bef3090f74a5d9bd04a6954de1907752e9738ed3 | dae652a3ca1497af6bc049944e3457a7c9d6cb49 | /z5tracker/rulesets/rando_aa_v4/Location.py | de4b97dde411f11966b510904a22c8f12df70a47 | [
"MIT"
] | permissive | HarborneD/z5-tracker | 8ca09fc9a317dc2b66685275b6d257dd5f4b9553 | 4631b33cc6584efcbd8df7e7d635d6ff0b7064fe | refs/heads/master | 2022-02-21T21:38:05.217211 | 2019-06-25T17:19:48 | 2019-07-05T08:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | from .LocationList import location_table
from enum import Enum
class Location(object):
def __init__(self, name='', address=None, address2=None, default=None, type='Chest', scene=None, hint='Termina', parent=None):
self.name = name
self.parent_region = parent
self.item = None
self.... | [
"z5tracker@feneg.net"
] | z5tracker@feneg.net |
c8673f26dbe2c39f5218a0b512d836550e57c683 | ec3d59db3210f8aed6b9a00eded9eff29a5dbfc5 | /backend/ravegenieApp/models/business.py | 2825569b8803014d9401d1bdc08ebbf64e08f0a5 | [] | no_license | Iamfocus/Ravegenieweb | 00f86e95afe8cf583298ab59dce3139602d6555f | 46b02146409589f0d7843d55a8edd6953a329fe8 | refs/heads/main | 2023-05-11T08:18:52.817113 | 2021-05-19T13:28:03 | 2021-05-19T13:28:03 | 347,775,447 | 0 | 0 | null | 2021-05-19T13:28:04 | 2021-03-14T23:01:20 | JavaScript | UTF-8 | Python | false | false | 2,051 | py | from django.db import models
from utils.models import ModelMixin
from django.utils import timezone
from datetime import timedelta
import time
class Business(models.Model, ModelMixin):
SUBSCRIPTION_DAYS = 30
exclusive_start_date = models.DateTimeField(null=True)
exclusive_end_date = models.DateTimeField(null=True)... | [
"ogbonnayaprosper1@gmail.com"
] | ogbonnayaprosper1@gmail.com |
81c26e3a0d8ed242955d3e50604d0bd97065e591 | 7fa4633ea229fc866cc99992bf9f891663d39ec6 | /common/experiment_manager/src/experiment_manager/msg/__init__.py | d4cd96b7b9dc0d1ccf630dd04ed765622acb87f2 | [] | no_license | onuryuruten/rossi-demo | f7aeccfea9228e13dbab85642426dce3de5ba925 | ab3ef04c40f66ec0883c26910c79cb0c72209051 | refs/heads/master | 2020-12-25T11:42:15.966155 | 2012-01-20T08:17:50 | 2012-01-20T08:17:50 | 3,162,374 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from ._ExperimentState import *
| [
"mparlaktuna@gmail.com"
] | mparlaktuna@gmail.com |
010582cd02fe383b3413bf2b655b36b3af22c368 | 7ba54b83de814cd34f0058e797cf3d6313057147 | /mmdetection/configs/xray/faster_rcnn_x101_32x4d_fpn_dconv_c3-c5_2x_nih_chestx_det.py | f3478d0c54101f9e68bb9062d6b3357c0452e8b7 | [] | no_license | TerryGriffin/COMP5300.AdvancedDeepLearning | 083344a939e99fe7e2119225e023ab8aebdda04e | 9521c3327ba6d8344711cd3e404e627af9ffc936 | refs/heads/master | 2023-02-01T10:06:00.355905 | 2020-12-16T02:05:12 | 2020-12-16T02:05:12 | 321,839,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | _base_ = './faster_rcnn_r50_fpn_2x_nih_chestx_det.py'
model = dict(
pretrained='open-mmlab://resnext101_32x4d',
backbone=dict(
type='ResNeXt',
depth=101,
groups=32,
base_width=4,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dic... | [
"tgriffin62@yahoo.com"
] | tgriffin62@yahoo.com |
65ed5768bb3bdfc61f10d6cc6a59dfbb999c8d92 | 4a020c0a492d931f7da5c452c9569fba06703686 | /testing/web-platform/tests/webdriver/ecmascript/ecmascript_test.py | cf27c01c06a02063b1347f6673721aec1f88a454 | [
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rbernon/wine-gecko | 353173511a790127ffa2ad39d630b8a0dcbbf5bf | 550ad9eac229b769992f421ce9492ca46edabaa0 | refs/heads/master | 2023-08-06T21:25:26.836672 | 2020-11-30T12:47:56 | 2021-09-30T08:14:19 | 411,965,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | import os
import sys
import unittest
sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../..")))
import base_test
class EcmasScriptTest(base_test.WebDriverBaseTest):
def test_that_ecmascript_returns_document_title(self):
self.driver.get(self.webserver.where_is("ecmascript/res/ecmascript_test.htm... | [
"rbernon@codeweavers.com"
] | rbernon@codeweavers.com |
fd6aea356a3246137a5ec0c275e30c2ce03ca7e2 | 4e61dda91cb503d780241ab3e9fe23e2203ff47a | /Squares.py | 50b1ee0bf08e9dcf76b026e093c8474149de2428 | [] | no_license | konrad-hod-kowalczyk/Python_exercises | bdb57e32a03c1101a679b56e14fb3325f69f389a | b5f40a9f7e3c9bcec2748fd7fc7b08a8404f2da9 | refs/heads/master | 2022-11-25T02:51:44.268063 | 2020-08-01T18:27:57 | 2020-08-01T18:27:57 | 247,715,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | def perimeter(n):
square=2;
r=[1,1]
for i in range(2,n+1):
r.append(r[i-1]+r[i-2])
square=square+r[i]
square = square*4
return square
| [
"noreply@github.com"
] | noreply@github.com |
802f0f9c3488a45954dd123dd019302f69a2ac51 | 3e46282bb17323669753dffa65142f4e4484ac0e | /adminPage/webApp/views.py | aafca5f3e8f02ac2c0984f51d5e27ecfdcf04207 | [] | no_license | YeongBinByeon/django_log | a88c064101bb338795aafff89084415149cc797e | aa9ccdf94ab17166c9a80a5f0400396bd68fb92b | refs/heads/master | 2022-04-10T04:44:42.715199 | 2020-03-11T17:11:23 | 2020-03-11T17:11:23 | 246,173,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,568 | py | from django.shortcuts import render
import pandas as pd
from .models import *
import sqlite3
from django.http import JsonResponse
# Create your views here.
def utterance(request):
print("hello")
df = pd.read_excel(r'C:\code_folder\django_log\adminPage\data.xlsx')
print(df['date'].iloc[0])
print(df.inde... | [
"yeongbin6483@gmail.com"
] | yeongbin6483@gmail.com |
4504613d10c713611621a028b61bb44666f0a9f3 | 716abd9e5ba4b72b72cc5f724a6cc0a6ad4390d1 | /6-Operators of Python/30-Identity-and-Membership-operators.py | 1c0385bd6405585f5684b04ece645772b30e7ea3 | [] | no_license | devopstasks/PythonScripting | ac45edd72dc134ec3539b962f02dfc866f365ecf | 48bc37733ae6b3be4e2d64909ffe0962b6908518 | refs/heads/master | 2023-03-29T11:18:01.329452 | 2021-04-07T03:25:20 | 2021-04-07T03:25:20 | 350,388,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | '''
===================================
Identity operators are used to find the type of: class/type/object.
There are 2 types of Identity operators
- is
- is not
===================================
x=6
type(x) -> <class 'int'>
y="hi"
type(y) -> <class 'str'>
type(x) is type(y) -> False
type(x) is not type(y) -> T... | [
"rpadhan2015@gmail.com"
] | rpadhan2015@gmail.com |
8eab42ec4e999316d34dc5b305592808d36f835a | 9dc8c299ee7d4a225002127cc03b4253c8a721fd | /libs/simulator/livepush_acl_topic_simulator.py | 823dabe3f0baee30b5bbd03a10492cff39593daf | [] | no_license | namesuqi/strategy_corgi | 5df5d8c89bdf7a7c465c438048be20ef16120f4f | 557b8f8eabf034c2a57c25e6bc581858dd4f1b6e | refs/heads/master | 2020-03-07T04:00:18.313901 | 2018-03-29T07:50:50 | 2018-03-29T07:50:50 | 127,253,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | #!/usr/bin/python
# coding=utf-8
# livepush_acl report simulator
from libs.simulator.topic_simulator import *
from config import push_review_duration
from libs.module.live_push import *
# live_push report livepush_acl
class LivePushAclTopicSimulator(TopicSimulator):
def __init__(self, log):
super(LivePu... | [
"suqi_name@163.com"
] | suqi_name@163.com |
2c918e376e381d5bd464137531852c689ae9df51 | 3d60dee9c6adac59ba7d8c1e8e3dc19bf309eaa5 | /dsa_starter/migrations/0003_auto_20170418_1538.py | 92579360bc98f85d9388cab15b0579ac84c3749c | [] | no_license | michelluther/table-top-server | 9d3eda8f9bb572884c1ed6e7a64052e93f52c95c | 476c33dd45f8baf89a24090520ba99c7de4386d5 | refs/heads/master | 2023-06-14T11:11:14.924642 | 2023-05-14T15:12:30 | 2023-05-14T15:12:30 | 89,470,476 | 2 | 0 | null | 2023-02-10T22:56:22 | 2017-04-26T10:51:02 | JavaScript | UTF-8 | Python | false | false | 1,014 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-04-18 13:38
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dsa_starter', '0002_character_name'),
]
operations =... | [
"michael.luther@tt-s.com"
] | michael.luther@tt-s.com |
5e8052af8629684bb42632d743efaf5d48119ba1 | 1b94aae63500b6ff94b0446d01c3c9bee385fad2 | /.history/chandori/account/views_20210824172332.py | 4c4c5078aeec6d0af4357fc59d04853d7bbcc83d | [] | no_license | miracle3070/chandori | 71389c2a9df76c242a5895c2c23d4394220f9c8e | b01d1eaa1d9c0d12d7abdc8f164039bcd9c42925 | refs/heads/master | 2023-08-18T11:46:11.303934 | 2021-09-28T19:23:22 | 2021-09-28T19:23:22 | 393,949,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.forms import UserChangeForm
from django.utils import timezone
from .models import *
from .forms import CustomUserChangeForm
from django.contrib import messages
def edit(request):
retur... | [
"62284729+ehddus980@users.noreply.github.com"
] | 62284729+ehddus980@users.noreply.github.com |
d8f78b6e7b8e862a47c874db93883e8e260cfe9e | cb56ef1cb0315767859e1e0599692fec54143139 | /scripts/map_manager.py | 4f322efc0afe94b7425cb658dfdc68828d4e1579 | [] | no_license | ddiggins/MavROS-Drone-Control | e68a7aff8a89ad9ffb35894c13c66f2dbaa1214a | 05e9f26baeff7392c6021bf48aa950376830abfb | refs/heads/master | 2021-01-17T19:56:36.549515 | 2015-07-28T21:14:53 | 2015-07-28T21:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,477 | py | #!/usr/bin/env python
import urllib2
import cv2
import numpy as np
import rospy
from geometry_msgs.msg import Polygon, Point32
import copy
import math
WINDOW_NAME = "Map"
MAP_HEIGHT = 640
ZOOM = 19
class MapManager(object):
BASE_URL = "http://maps.googleapis.com/maps/api/staticmap"
def __init__(self, map_h... | [
"Rocco.DiVerdi@students.olin.edu"
] | Rocco.DiVerdi@students.olin.edu |
d4e017fae28241185b5f46eaf8b7922f77b7cfcc | ca6975b6038e47e1b3e34d188039e96f1c695fc1 | /ListComprehension.py | db6a35087aace7efecf59d66b703963b85783158 | [] | no_license | jonesbf/PythScripto | d528f911a9dd0bb444e66113dc78e163a4f2541e | db325dd66ba785f85b9090ac7eb04c2735513bd3 | refs/heads/master | 2021-01-02T09:19:21.342917 | 2014-09-17T21:49:41 | 2014-09-17T21:49:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | doubles_by_3 = [x*2 for x in range(1,6) if (x*2) % 3 == 0]
# Complete the following line. Use the line above for help.
even_squares = [x ** 2 for x in range(1,11) if x % 2 == 0]
print even_squares
cubes_by_four = [x ** 3 for x in range(1,11) if (x ** 3) % 4 == 0]
print cubes_by_four
| [
"jonesbf@users.noreply.github.com"
] | jonesbf@users.noreply.github.com |
b7346b389ff30c566e8bc6651ae60b10c67ebf2b | 0e3462bd127c2072b34ac4885c034bde58ac8063 | /c_sharp_code_rewritten_in_python/transformer_command_line_interface.py | 7e6cb49274f86f384976fe5a54132f56ddee81b0 | [] | no_license | SNeicer/py_regex_translator_core | 608b3b6e5d4aff1496a910d38276562f25013cb7 | ea45e1eb556285f20f702ae6bd697aebd6f0efe6 | refs/heads/master | 2023-02-12T04:49:03.063797 | 2021-01-08T14:06:15 | 2021-01-08T14:06:15 | 326,164,216 | 0 | 0 | null | 2021-01-02T11:26:50 | 2021-01-02T11:04:11 | Python | UTF-8 | Python | false | false | 331 | py | from c_sharp_code_rewritten_in_python import interfaces
class TransformerCLI:
def __init__(self, transformer: interfaces.IFileTransformer):
self._transformer = transformer
def run(self, *args):
sourcePath = args[0]
targetPath = args[1]
self._transformer.transform(sourcePath, t... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
060486b8f89bc30164c00394137fae03c866a6b2 | 6471745f084ab85b814850af6f697607c456e7ad | /data_stream.py | f8f8e93d041f9fc483cf031fa28360ce5ea89755 | [] | no_license | YoshiyukiKono/Streaming_P2_SF-Crime-Statistics-w-Spark-Streaming | 8065bae6c73500142f37bc0a466f110c026fc821 | 163120454532bea090518fec272b789c7d42f900 | refs/heads/master | 2021-01-09T11:34:45.992602 | 2020-03-08T06:54:44 | 2020-03-08T06:54:44 | 242,285,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,068 | py | import logging
import json
from pyspark.sql import SparkSession
from pyspark.sql.types import *
import pyspark.sql.functions as psf
# Spark
from pyspark import SparkContext
# Spark Streaming
from pyspark.streaming import StreamingContext
from pyspark.sql.functions import col
from pyspark.sql.functions import ud... | [
"noreply@github.com"
] | noreply@github.com |
4bb21d2b7264dfd557b883070ce76da58e45731a | e90f8bd31d0f6eaa444824da2144200fbdb1e487 | /runtimelib/tests/grid/wrapping/wrapping.test | 08f93b2cab459bc77a8cc4cfd2c49e0e99d8ec03 | [] | no_license | stonea/gridweaver | 22e57286a5db8c6b60eee242147c6ef71f0c9929 | f3843b0b10d37c2f44df053c0a7e960de87ea1c5 | refs/heads/main | 2023-07-04T22:08:58.160006 | 2021-02-15T16:42:40 | 2021-02-15T16:42:40 | 338,865,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | test | #!/usr/bin/python
import commands
import os
import time
global passed
global processes
rebuild()
runProg("./wrapping", "wrapping")
| [
"aistone@gmail.com"
] | aistone@gmail.com |
c6fbb46e513e8c7d8eb126f21a81ecaac39f4d26 | 2bf43ccdcef26b6dce1c16d8058b5495a776c4dc | /proxy_service/urls.py | f5c1beb947f1c3f474c877c5d041108c45b1e500 | [] | no_license | xuhaomin/webservice_for_pachong | 7c2dc15b072064931081fa7f91c432da62e3c8a1 | 23c8ebd8cbaafb56c2f8396a809fc2e3fd896ba3 | refs/heads/master | 2021-08-26T09:44:58.090704 | 2017-11-23T03:19:28 | 2017-11-23T03:19:28 | 111,656,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """pachong_webservice URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home... | [
"xuhaomin@banggood.com"
] | xuhaomin@banggood.com |
da27329e32caa8569890e76264621a933e09077b | ece123467d071eb3e993760fd53ee86ab03f33f1 | /tutorapp/chat.py | 9584b1432fa52b2110a79e1c4bf97078409f818a | [
"MIT"
] | permissive | wann100/tutorapp | 69411bfb20795b2af7a4e44031180a82069e6230 | 27da5846cc36776c8d48d0db828c7e362b140da2 | refs/heads/master | 2020-03-28T20:26:25.031422 | 2018-09-17T05:09:30 | 2018-09-17T05:09:30 | 149,070,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,770 | py | #!/usr/bin/env python
"""
The Chat Handlers
Copyright 2010 Netgamix LLC
License: http://netgamix.com/information/terms/
"""
import header
class MainHandler(webapp.RequestHandler):
def get(self):
self.session = Session()
error = self.session['error'] if 'error' in self.session else ""
template_vars={'er... | [
"mwann@kognos.co"
] | mwann@kognos.co |
a22c702811b62c295c71fa1fb4f4aff77ee8108e | 9188d0d7ce9fc5fadf4d2593741894e1448f9326 | /indico/vendor/django_mail/backends/locmem.py | 4e3f2ecda085f3995cb3fbe9698f0f8bd4f91571 | [
"MIT"
] | permissive | vaclavstepan/indico | b411410416acdfa50b0d374f89ec8208de00fb2f | 8ca1ac4d4a958f22f24580a790b3cb015570bdfb | refs/heads/master | 2023-07-21T04:42:03.031131 | 2021-09-01T09:54:17 | 2021-09-01T09:54:17 | 385,897,420 | 0 | 0 | MIT | 2021-07-16T13:07:32 | 2021-07-14T10:16:57 | null | UTF-8 | Python | false | false | 1,481 | py | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
# The code in here is taken almost verbatim from `django.core.mail.backends.locmem`,
# which is licensed u... | [
"adrian.moennich@cern.ch"
] | adrian.moennich@cern.ch |
f6b37a366b054c1e431aefa17fb9943058075c76 | 0b0f4c15abb143a4b24b3bb01b9a6184df6867bf | /hello_requests/yes_or_no.py | f8b0ac04aff02b0e85c9cd9e2d08c68386c67414 | [] | no_license | saida93522/hello_requests_python | efe15130cbb327a78d3ef1aa8d6e43fdaf339709 | 76dc533dea9e1b1413d04b3fc20c52987139b780 | refs/heads/master | 2023-05-02T20:43:30.906319 | 2020-10-16T20:00:32 | 2020-10-16T20:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | import requests
import logging
class APIError(Exception):
pass
def yes_or_no():
try:
response = requests.get('https://yesno.wtf/api/')
response.raise_for_status()
except Exception as e:
logging.exception(e)
raise APIError('Error connecting to API')
try:
da... | [
"10088152+claraj@users.noreply.github.com"
] | 10088152+claraj@users.noreply.github.com |
80f1054d62723c8c77724d8030855559e25913d2 | 87eda1daa7c4ae0d5ad653a76d227d2f74a3c4a6 | /memn2n/memn2n/memn2n.py | 92a280b721b277fbdbf941cbd8b7397b72ae20e2 | [
"MIT"
] | permissive | xxxJenxxx/MEMn2n | 15ec3a2ca3c578948a106e9d477b8c2cfb7e187f | 340bdfa1e8fc41c097509ff8d06cd2c6d709112b | refs/heads/master | 2020-04-26T09:49:56.464233 | 2019-03-02T16:16:47 | 2019-03-02T16:16:47 | 173,469,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,348 | py | """End-To-End Memory Networks.
The implementation is based on http://arxiv.org/abs/1503.08895 [1]
"""
from __future__ import absolute_import
from __future__ import division
import tensorflow as tf
import numpy as np
from six.moves import range
def position_encoding(sentence_size, embedding_size):
"""... | [
"noreply@github.com"
] | noreply@github.com |
2e1a4eced854d9a4bdaf560370d10aa7bad3ffb8 | e529ad7e07468431239ea3bbf41fb829e75809e7 | /multi_model_train/__init__.py | 6cccaa1342c2e05c579fbf7b4f98a7d596070a99 | [] | no_license | khmurakami/multi_model_train_dataflow | 43671f3d0c425855e61c5046429066e748df54ff | 9a401191379ce42e819a9e49777282faf71cdd6a | refs/heads/master | 2022-01-14T04:56:47.876667 | 2019-05-19T02:31:09 | 2019-05-19T02:31:09 | 186,052,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from .multi_model_train import MultiModelTrain
from .utils import return_json_file, read_parameters_json
| [
"kalanimurakami1218@gmail.com"
] | kalanimurakami1218@gmail.com |
e28dde26a9b8013a59ef26b099fadafd5b640635 | c39ae20751f8a81ae6ca5dd1a486c19cb69627c0 | /Database/Big_Query/Creation_scripts/cumulative_returns.py | 262b080471ce87ddc38e345289dd77937548aed1 | [] | no_license | Ranga94/dax_project | 34d73ee05947ee561eeb613fd9b6e5a5ac9b971a | 7898570207ac99e6ff1d4fb5b2f51bdb7ced4733 | refs/heads/master | 2021-05-15T05:24:37.700366 | 2018-02-28T12:24:17 | 2018-02-28T12:24:17 | 117,215,872 | 0 | 0 | null | 2018-01-12T08:38:06 | 2018-01-12T08:38:06 | null | UTF-8 | Python | false | false | 1,425 | py | from google.cloud import bigquery
import sys
def create_table(dataset_id, table_id, project):
"""Creates a simple table in the given dataset.
If no project is specified, then the currently active project is used.
"""
bigquery_client = bigquery.Client(project=project)
dataset_ref = bigquery_client.... | [
"rangavittalprasad@gmail.com"
] | rangavittalprasad@gmail.com |
9c0ff87bb7893a27a6f2ce9b6a089f64ba40a399 | ecb86f922de930e08e945f5a4b5758e13841fe1d | /find_empty_region.py | 301d55e84495c1b6325944a09af28db51328ff85 | [] | no_license | azharul/misc_problems | b5e8fb0f1660a10399bfb47e9d1eed933938806b | 4c8706c348a39aab28f2ff0962695ffd93b553a7 | refs/heads/master | 2021-01-12T08:15:06.177939 | 2017-01-22T03:40:50 | 2017-01-22T03:40:50 | 76,521,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#Given a sorted array [0-99] With input: [1, 5, 45, 86] Write a function that prints the empty regions, example Output: “0,2-4,6-44,46-85,87-99”
# solution using iteration
def find_empty_region(arr):
for i in range(len(arr)):
if arr[i] is None:
print i
a=[None,1,None... | [
"noreply@github.com"
] | noreply@github.com |
192f5be2ea74ff5dd2215cd23fc641a35c5f9e09 | 3715df2c833919376a3ee44de8fc64d1c2abe8ce | /AutomlCore/build/lib/algorithms/classification/naive_bayes_complement.py | f057f2f40891211ae4bcc2e4da46ea7a74226a34 | [] | no_license | mindis/dachshund | 6c07f8eb6b9f75f66c74ec3748dfa42a31cff4d5 | 2f1b3e5866e06424c700f3a106051fe69bcb18bc | refs/heads/master | 2022-12-09T05:17:00.812348 | 2020-09-03T05:25:09 | 2020-09-03T05:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import numpy as np
from sklearn.naive_bayes import ComplementNB
from sklearn.metrics import accuracy_score
from hyperopt import hp
from utils import definitions
from .. import model, model_classification
class ComplementNBClassifier(model.Model, model_classification.ModelClassification):
def __init__(self, _project_... | [
"aoba0203@naver.com"
] | aoba0203@naver.com |
d712585cbc9c1e8c1e0865c28d6b449e189940a6 | 16a4d94fd018f5483f6cfca4e4d06fb4b7fff9b4 | /manage.py | aff974ebdf0e4ade18b7aa6d5d6fefe45a9a7d65 | [] | no_license | upfind/BlogFlask | b304daaf7de10324c39913c6d87d1c832f0f36fc | 21007415d32c585b052494e10426e8b06c38db4b | refs/heads/master | 2020-03-10T04:31:33.992697 | 2018-04-17T01:26:27 | 2018-04-17T01:26:27 | 129,194,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from BlogFlask import app
from exts import db
from models import User, Question, Answer
manager = Manager(app)
# 使用Migrate绑定App和db
migrate = Migrate(app, db)
# 添加迁移脚本的命令到manager中
manager.add_command('db', MigrateCommand)
if __name__ ==... | [
"824429779@qq.com"
] | 824429779@qq.com |
c7cee1ce7b74766902666791db0f8f0747fb6459 | aabe7008e0eb77617f1a76cddb98e4b17fd5ce27 | /examples/model_compress/pruning/v2/movement_pruning_glue.py | a8365d9834075161641b7946bb41b2c961cfe190 | [
"MIT"
] | permissive | penghouwen/nni | a09a374a81be46fe246c425275585d5fe79404af | 2e6a2fd2df0d5700cb028b25156bb535a3fc227a | refs/heads/master | 2021-12-21T14:02:32.228973 | 2021-12-13T16:54:39 | 2021-12-13T16:54:39 | 435,926,123 | 1 | 0 | MIT | 2021-12-07T15:09:36 | 2021-12-07T15:09:35 | null | UTF-8 | Python | false | false | 4,715 | py | import functools
from tqdm import tqdm
import torch
from torch.optim import Adam
from torch.utils.data import DataLoader
from datasets import load_metric, load_dataset
from transformers import (
BertForSequenceClassification,
BertTokenizerFast,
DataCollatorWithPadding,
set_seed
)
from nni.algorithms.... | [
"noreply@github.com"
] | noreply@github.com |
f4b07d056b6b0304d6a97622d9ff3ea596b95948 | 61e98b0302a43ab685be4c255b4ecf2979db55b6 | /sdks/python/.tox/lint/lib/python2.7/site-packages/pylint/test/input/func_e0604.py | d077f31adbfa8f55fc8501b1293f76262c0e2dfc | [
"Apache-2.0",
"BSD-3-Clause",
"EPL-2.0",
"CDDL-1.0",
"WTFPL",
"GPL-2.0-only",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.1",
"Classpath-exception-2.0"
] | permissive | dzenyu/kafka | 5631c05a6de6e288baeb8955bdddf2ff60ec2a0e | d69a24bce8d108f43376271f89ecc3b81c7b6622 | refs/heads/master | 2021-07-16T12:31:09.623509 | 2021-06-28T18:22:16 | 2021-06-28T18:22:16 | 198,724,535 | 0 | 0 | Apache-2.0 | 2019-07-24T23:51:47 | 2019-07-24T23:51:46 | null | UTF-8 | Python | false | false | 206 | py | """Test for invalid objects in a module's __all__ variable.
"""
# pylint: disable=R0903,R0201,W0612
__revision__ = 0
def some_function():
"""Just a function."""
pass
__all__ = [some_function]
| [
"alex.barreto@databricks.com"
] | alex.barreto@databricks.com |
0ea2deb0e70b0c11108b74b5f630dc873fde2ce4 | 5c9c08083658095eff1bc727e677c843a1c989b4 | /consumerproj4/venv/bin/wheel | 8202fdf8932400837a2223937e543b77bcd47609 | [] | no_license | xc150/project4 | 61d987a1e7a5dbf43597f3bca744c7c3ebedbf6c | ec92d399c470fad3f73d7d47acc98651bff478c5 | refs/heads/master | 2022-04-21T18:37:40.645727 | 2020-04-23T22:16:24 | 2020-04-23T22:16:24 | 258,323,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | #!/home/ec2-user/environment/consumerproj4/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ec2-user@ip-172-31-90-178.ec2.internal"
] | ec2-user@ip-172-31-90-178.ec2.internal | |
4162505f9cfb68cb567a576ee510ee61c4fafcea | 9acdfa61fc1408631482d0ac11c5dedd79ee32ef | /djangoApp/pca/urls.py | 4346aca879a4c3edcf4ead806011a223cf96870c | [] | no_license | helbendak/FinalProject | fea950344ccef7a97929233a8461dd0240761202 | ee7747011cf441d8bd5cd62b8660a7a81fe04a94 | refs/heads/master | 2020-04-25T18:47:46.606861 | 2019-05-13T00:18:15 | 2019-05-13T00:18:15 | 172,996,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | """finalProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"helbendak@me.com"
] | helbendak@me.com |
49f14e2117e3a266eb4b1adb9bc98e67bb907ac8 | 35165133d0cfb40117708f4b7f0f9f751508e115 | /back-end/chem-backend/General/Self_Assess_Answer_Generation/Data.py | 63d5633677ce7d98a1668b83b281512923354759 | [] | no_license | Chief97/edubot | 4297ea48278a2a8beb2ba7717df0704f627acce1 | 90ca0d3bbf3224c31868cb1831996a78076ddc10 | refs/heads/main | 2023-04-24T07:20:21.202870 | 2021-05-20T03:06:17 | 2021-05-20T03:06:17 | 365,427,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,366 | py | allSentenceAndQuestion = [ [
"But if the mass of very small particles such as a carbon @dash molecule, or a helium atom is given in units like kilogram or gram, the value obtained is extremely small",
"Is if the mass of very small particles such as a carbon dioxide molecule, or a helium atom given in un... | [
"it17137492@my.sliit.lk"
] | it17137492@my.sliit.lk |
1952f0c0642ab04555dee256c95b94ae4b6b275c | 3572a8576eb28b5ed9d06b27ecfc756de1e7a40a | /utils/handlers.py | aae4ba9595097f5b0de5f65e5b2499d3556dd3aa | [] | no_license | waytobehigh/classification-labeling-tool | a18488f47e01e5f636a278a67e181a76945a5c1f | 2095a247dd07359377cafe91399ac1a8ce6a9339 | refs/heads/master | 2022-12-07T19:00:55.937426 | 2020-08-17T19:32:04 | 2020-08-17T19:32:04 | 285,910,362 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import streamlit
from PIL import Image
def handle_image(path: str, width: int = 225, height: int = 225):
image = Image.open(path)
resized = image.resize((width, height))
streamlit.image(resized)
| [
"waytobehigh@gmail.com"
] | waytobehigh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.