blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7be4262816647cfa7d7ac36d3376958dc21ac85 | 78d6f3ebf672f1e3f7fce700b10de04fd06308f5 | /test.py | 7d176256fb464bca0652bb10922652cf0907bb53 | [] | no_license | stirplate/tensor | 92d4d2282f0cca2a34bc5db9b12c2ea512378864 | f2c886a897bb254942fbbbe4a8eb34ec8116cd92 | refs/heads/master | 2021-01-01T20:21:26.061470 | 2017-07-30T21:37:08 | 2017-07-30T21:37:08 | 98,821,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import input_data
mnist = input_data.read_data_sets ("/temp/data", one_hot = True)
import tensorflow as tf
#set parameters
learning_rate =0.01
traning_iteration = 30
batch_size = 100
display_step =2
| [
"keith@anotherMacbook.local"
] | keith@anotherMacbook.local |
1908871205bbf084240cf35244bd40fb118c1458 | f0c097b2ec557e2aede2ae986eedbc5ae808e0a2 | /FinalProject.py | 3c8c1af4b6a5d03ea389f8ed585a5244c82f30e8 | [] | no_license | seymatufekci/gaih-students-repo-example | 6f895c99fa662eb234913b60d3c4699d31ebc528 | db7f7793ab3eb851bf3e88f3496a26d5c5f6716b | refs/heads/main | 2023-02-28T06:24:01.469266 | 2021-02-07T15:24:50 | 2021-02-07T15:24:50 | 335,745,033 | 0 | 0 | null | 2021-02-03T20:23:27 | 2021-02-03T20:23:27 | null | UTF-8 | Python | false | false | 2,603 | py | #!/usr/bin/env python
# coding: utf-8
#Seyma Tufekci - @seymaatufekci
#Final Project
#I created 3 classes as Company, Employee and Manager
print("Company Management System")
print("")
class Company():
def __init__(self, name, age, language, job):
self.name = name
self.age = age
self.lang... | [
"noreply@github.com"
] | seymatufekci.noreply@github.com |
00713021a63ea87fa1fcab814c364976f6908e90 | afdd48bf12b7c0e0a70d8168f05f29bfc1b5ba82 | /cart/views.py | 6feb11e29727573cd4a90dc95ac68e7c1831f7b6 | [] | no_license | niceShuai/fruitWeb | c0ddab496f181ce211d5460db9629391e840cb99 | f6943b362d0d6eff4dc12728b1483bcf68de52e9 | refs/heads/master | 2020-04-02T04:02:50.444099 | 2018-11-11T01:02:38 | 2018-11-11T01:02:38 | 153,997,066 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | from django.shortcuts import render
from django.http.response import JsonResponse
from cart.models import *
from users.login_verify import *
from users.models import *
from goods.models import *
# Create your views here.
@verify
def cart(request):
u_id = int(request.session.get('u_id'))
carts = Cart.objects.f... | [
"nice_shuai@126.com"
] | nice_shuai@126.com |
c9482df517c604a1782931a4893bcbceaf7f3f8c | c247f36c7c249d7c108c9959a041a9e782d2a865 | /slack.py | 0aa797b466db078cf4d2098fb76b7cc2aef37d26 | [] | no_license | anirudhvarma12/refeed | a52eade5a0b0be5408726213ebb9b5b2b80db093 | 930c9950d362b5c3de3d3d3c8a07087b5ad9bbee | refs/heads/master | 2021-01-17T15:33:59.272763 | 2016-05-26T09:57:48 | 2016-05-26T09:57:48 | 50,859,938 | 9 | 3 | null | 2016-05-26T09:57:48 | 2016-02-01T18:14:37 | Python | UTF-8 | Python | false | false | 2,043 | py | from flask import jsonify
from urllib.parse import urlparse
import rss
import settings
import dbservice
def get_response(text):
return jsonify({'text': text})
def split(command):
return str(command).split()
def get_help():
text = "Your Re-Feed command was incomplete. Use `add <url> <title (optional)>`... | [
"varma93@hotmail.com"
] | varma93@hotmail.com |
9bda45fa9571930ab7604ce41b6b04af91b8a53e | 70e4aee0047702e332f0c2b1d352d512592aa39b | /posts/urls.py | a3ac076cd1528a95761959cd8c555173e62f8a2e | [] | no_license | xSebeq/messaging-app | 9be2a8cb5be53ad555eb0511817940c4ac8c0ce1 | 6ac9017277d8c2816314b0f87bee6073bb8fb6d2 | refs/heads/master | 2023-04-08T14:24:10.110062 | 2021-04-21T19:31:10 | 2021-04-21T19:31:10 | 360,276,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.PostListView.as_view(), name='posts'),
path('new/', views.PostCreateView.as_view(), name='post_new'),
path('<int:pk>/edit/', views.PostUpdateView.as_view(), name='post_edit'),
path('<int:pk>/', views.PostDetailView.as_view... | [
"sebeq245@interia.eu"
] | sebeq245@interia.eu |
ff3c2ffcf3cc11d160de55a7272c549fcd6a7555 | 3b24e5edf37401dcb6749629927a906ea41ecae7 | /pyexocross/exomol/exomolpf.py | 31813748b889a46c453f626d8574b02d39d3b383 | [
"BSD-3-Clause"
] | permissive | ucl-exoplanets/pyexocross | e686743150116b23e93f07251d0874db4d6c553b | 703341cd0fddafcbb04e935c89ddc9d02dda9f59 | refs/heads/master | 2023-02-15T16:27:10.944504 | 2021-01-11T11:32:43 | 2021-01-11T11:32:43 | 296,402,473 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import numpy as np
from scipy.interpolate import interp1d
class ExomolPF:
def __init__(self, filename):
pfarray = np.loadtxt(filename)
self._f = interp1d(pfarray[:,0], pfarray[:,1])
def Q(self, temperature):
return self._f(temperature)[()]
| [
"ahmed.al-refaie.12@ucl.ac.uk"
] | ahmed.al-refaie.12@ucl.ac.uk |
eee60eb55dc363e9ec8a3d0a3995dffa2c16519d | 19bf98c843d54d0c173928fdb1db39be9bd88ed7 | /utils/util.py | fcdbdcce8a2277190467418623b6c00160d55c64 | [] | no_license | pomelyu/AnimateGAN | 6dbf438aa4ba4663ecfa928e36813ef491f0893f | faf692eb41a58bd3a69b4aa552fbf00c858ed857 | refs/heads/master | 2020-04-02T01:48:23.965145 | 2019-01-26T09:16:41 | 2019-01-26T09:16:41 | 153,875,975 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from pathlib import Path
def mkdirs(paths):
if isinstance(paths, list):
for path in paths:
mkdir(path)
else:
mkdir(paths)
def mkdir(path):
if isinstance(path, str):
path = Path(path)
path.mkdir(parents=True, exist_ok=True)
| [
"pomelyu5199@icloud.com"
] | pomelyu5199@icloud.com |
3987865d319df9ad8ec9e0131bb87d39978e72e9 | 23972e95e2fb39011731af7e5f9d0df47c7747bb | /etl.py | 894806c3da03c4f5d2aaabcad729b842b1541757 | [] | no_license | jasonwashburn/udacity-postgress-project | 4cf506ee182b043dbf6aaaf1eb552b0c3aace19a | 2cb32e7d0485aba44d26f5b07f18cdbcfa1bfe59 | refs/heads/master | 2022-11-23T23:33:01.094606 | 2020-07-14T23:24:17 | 2020-07-14T23:25:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,889 | py | import os
import glob
import psycopg2
import pandas as pd
from sql_queries import *
def process_song_file(cur, filepath):
"""Process song file for song and artists data.
INPUT:
cur : cursor object from psycopg2 connection to sparkifydb
filepath : String containing filepath to file for processing
... | [
"wburn@wburn.net"
] | wburn@wburn.net |
a7c6f8636993116c7a66155ac7432348a4115dfa | b3b68efa404a7034f0d5a1c10b281ef721f8321a | /Scripts/simulation/date_and_time.py | 1ceb06b1195becb57c479f4372fe8044d6aba0a6 | [
"Apache-2.0"
] | permissive | velocist/TS4CheatsInfo | 62195f3333076c148b2a59f926c9fb5202f1c6fb | b59ea7e5f4bd01d3b3bd7603843d525a9c179867 | refs/heads/main | 2023-03-08T01:57:39.879485 | 2021-02-13T21:27:38 | 2021-02-13T21:27:38 | 337,543,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,479 | py | # uncompyle6 version 3.7.4
# Python bytecode 3.7 (3394)
# Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)]
# Embedded file name: T:\InGame\Gameplay\Scripts\Server\date_and_time.py
# Compiled at: 2020-01-15 01:21:52
# Size of source mod 2**32: 19262 bytes
import m... | [
"cristina.caballero2406@gmail.com"
] | cristina.caballero2406@gmail.com |
03b94fba005aef7a21da5b4fbd42ce546c053fa8 | c74c3eb45913edb2c50555c076bb76f1c4200cb3 | /tests/test_Bayes.py | eae520ef2adc22bda276ddb95798718629675875 | [
"MIT"
] | permissive | fepegar/Semiology-Visualisation-Tool | a6897d25d468607fe62af100e154694661e4572b | 990e0aec7f39d4063303a64aa1674c0aa6e16daf | refs/heads/master | 2022-02-26T16:05:52.736377 | 2021-12-05T19:30:29 | 2021-12-05T19:30:29 | 251,682,167 | 0 | 0 | MIT | 2020-03-31T17:37:44 | 2020-03-31T17:37:43 | null | UTF-8 | Python | false | false | 7,894 | py | import sys
import unittest
import pandas as pd
from pathlib import Path
from mega_analysis.Bayesian.Bayesian_marginals import p_GIFs, p_Semiology_and_Localisation
from mega_analysis.Bayesian.Posterior_only_cache import Bayes_posterior_GIF_only
from pandas.testing import assert_series_equal, assert_frame_equal
from meg... | [
"noreply@github.com"
] | fepegar.noreply@github.com |
496f476afaaa22132cae4cbdc1c98f4b5eb976b5 | 49b55363d7eb12cbc3e48132ea4da726747e70e4 | /tpandas_backend/urls.py | 32cafe6ef58bfc3935cea178e21b472e3234181d | [] | no_license | zgq346712481/TPandas-Platform-Backend | 8227499ed5e984b1df60b865083bf2068f5c7bfb | d4c25f62b69d8f822952c073c205aad3491c0f65 | refs/heads/master | 2023-08-23T18:53:15.861120 | 2020-05-01T09:30:18 | 2020-05-01T09:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | """tpandas_backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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')
Cla... | [
"yangwf86@gmail.com"
] | yangwf86@gmail.com |
1681cf3956952c3b2add6ceb0f3ae7b5d6d21f62 | dd31ec8f3f979b0339cf686ce9094def03ef003a | /myvenv/Lib/site-packages/pylint/reporters/json.py | be37b21102933ca7fe5d330945a71fcc8280180a | [
"MIT"
] | permissive | rvmoura96/projeto-almoxarifado | 872bb945b4057bdbf108776e2101e9966a23f4de | 4ca5e5d00f449a940f7c601479bb3fe14c54f012 | refs/heads/master | 2022-11-11T07:45:33.475443 | 2017-11-21T21:13:19 | 2017-11-21T21:13:19 | 106,044,249 | 1 | 1 | MIT | 2022-10-26T05:02:32 | 2017-10-06T19:48:08 | Python | UTF-8 | Python | false | false | 1,662 | py | # Copyright (c) 2015-2016 Claudiu Popa <pcmanticore@gmail.com>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""JSON reporter"""
from __future__ import absolute_import, print_function
import cgi
import json
import s... | [
"rvmoura.96@gmail.com"
] | rvmoura.96@gmail.com |
a5339d93afe6aefd103bdcdaf61e0cee6da3be9f | d7819d68d983d0ae7ab85416efa4ba4fef04c80c | /object-detection-in-keras/data_generators/__init__.py | 5c1877881429610a9fe8a368a3e6143fc99dae7f | [] | no_license | achanani98/SSD_keras_digit | 8b4a87aee71add4c71dda649f383adfca482296d | 8e1d14a1ec06f38c9f00c5a38f12cc2b1b05114d | refs/heads/main | 2023-03-22T09:13:41.554065 | 2021-03-18T06:44:07 | 2021-03-18T06:44:07 | 348,962,007 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from .ssd_data_generator import SSD_DATA_GENERATOR
from .tbpp_data_generator import TBPP_DATA_GENERATOR
| [
"noreply@github.com"
] | achanani98.noreply@github.com |
476fbc2a8701e9feb827bde916a033d1a6a6aa69 | 63046c0d0e89bf827bf01f7bfab0ae2cc3acebbf | /domain/Article/shared/command/__init__.py | f5dd65c37dca15f2033979addff8548e9ed074e9 | [] | no_license | ericgj/gws-noticeboard | 62db73ccb848645b8126f73a82cc83a1f6a7f5f9 | 9c20d9066566b7637601273018ef4c7de16052ac | refs/heads/master | 2022-12-11T15:56:26.348018 | 2019-09-12T15:49:12 | 2019-09-12T15:49:12 | 203,261,694 | 0 | 0 | null | 2022-12-08T06:07:23 | 2019-08-19T22:55:36 | Python | UTF-8 | Python | false | false | 329 | py | class UnknownCommandError(Exception):
def __init__(self, command):
self.command_type = (command.__class__.__name__,)
self.command = (
command.to_json() if hasattr(command, "to_json") else str(command)
)
def __str__(self):
return "Unknown command: '%s'" % (self.comman... | [
"ericgj72@gmail.com"
] | ericgj72@gmail.com |
cfc5e4ece94e9ce5014e5e908266654bb1dded98 | fd9ea3bf0d048fe40e635cde7414aa2a27e73b2a | /src/rbx1/rbx1_dynamixels/catkin_generated/pkg.develspace.context.pc.py | 62e3d495119da2a02c2a2709f2bc0a68f98c2b61 | [] | no_license | shydhryw/catkin_ws | 30428cec9290b85fe9412bb2e85d37594e3fa39b | 35a0d2cd089b71e2b11c72b3dc7256bb1d948c0d | refs/heads/master | 2020-04-15T17:13:45.339758 | 2019-01-09T13:18:51 | 2019-01-09T13:18:51 | 164,776,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rbx1_dynamixels"
PROJECT_SPACE_DIR = ... | [
"shydhryw@qq.com"
] | shydhryw@qq.com |
219305932842bb0a951cda0aab9e9783eb969379 | f361126ee099303113b5ed3cc0e838bd01a9e41b | /Semana3/pattern.py | ce21f32f68915c1c4ac487f6d46600d7fa9a86c0 | [] | no_license | ju-c-lopes/Univesp_Algoritmos_II | e1ce5557d342ea75fe929cf7b207e633f9aa89cd | 5d4eec368be91c18f0ae5c17d342e6eb0f1c79be | refs/heads/master | 2023-06-05T11:09:25.415719 | 2021-07-07T22:26:53 | 2021-07-07T22:26:53 | 383,600,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def pattern(n):
if n == 0:
print(n, end=' ')
else:
pattern(n-1)
print(n, end=' ')
pattern(n-1)
pattern(3)
| [
"juliano.co.lopes@gmail.com"
] | juliano.co.lopes@gmail.com |
600b5d49487605e376e745ff50c7047d387368b4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/288/105862/submittedfiles/testes.py | 2d998344bd13ef5f84800052822c63b3268d44ad | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,713 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
#from minha_bib import *
print
("7 | 8 | 9")
import random
def solicitaSimboloDoHumano():
simbolo=0
while (simbolo)!= 'X' and (simbolo)!='O':
print ("Escolha um simbolo para jogar [X:O]: ")
simbolo=input()
if simbolo=='O':
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
84383ba4737b5d4a2ec4906a127e9f199b441298 | b3de29590c9433579a3310dbc29c5c53369921ac | /scripts/pose_controller.py | fe20561c15fac2606b3bf48ffa0830c273198112 | [] | no_license | TB3-playground/asl_turtlebot | 42c47038d67fb463abfc8cec0ac82670a8e1951c | 3b56b49180f542fa76994659388031ac4bf3eaf6 | refs/heads/master | 2021-04-06T11:19:27.078800 | 2018-02-22T11:34:01 | 2018-02-22T11:34:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | #!/usr/bin/env python
import rospy
from gazebo_msgs.msg import ModelStates
from geometry_msgs.msg import Twist, PoseArray, Pose2D
from std_msgs.msg import Float32MultiArray, String
import tf
import numpy as np
from numpy import linalg
from utils import wrapToPi
# control gains
K1 = 0.4
K2 = 0.8
K3 = 0.8
# tells the ... | [
"ben.acc.landry@gmail.com"
] | ben.acc.landry@gmail.com |
3c6f54197ab39b3ca1970196846f097fa922e153 | 97e304a7297c4ed15980df3cbbb99338d5d9ba07 | /IBM/venv/bin/pip | f5df195e8f73d49d6aadbd6183181e9caa128eb3 | [] | no_license | stasg001/Video-Segmentation- | 0604d7b02a735b1b780ee927fd6b8e8bfbd903e4 | 5b621150149fc04f8c40fe9c58037f87ac7cb925 | refs/heads/master | 2023-06-26T21:53:19.201983 | 2021-07-26T15:39:01 | 2021-07-26T15:39:01 | 389,684,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | #!/Users/stasgaonkar/suraksha/Python/SentimentAnalysis/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"stasg001@odu.edu"
] | stasg001@odu.edu | |
ab07ae62ffddc1b029bb9d8dc00908892452f79a | 729958b2af793bffaec179cd40598990be491fea | /src/ftp_functions.py | 9dbad579268a6219da224b0af749c5180f6d8053 | [
"MIT"
] | permissive | psikon/pyBlastDB | 46d967f51a3968ecff68040f89ca5c6b34bf2cf4 | 3caa8456e31948cf942dc649abd0ed1ea392bef8 | refs/heads/master | 2016-09-05T08:57:43.858920 | 2014-02-25T14:55:26 | 2014-02-25T14:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,047 | py | import sys, os, tarfile
from ftplib import FTP
from src.utils import select_files, get_local_timestamp, get_remote_timestamp, \
update_progress, create_folder, is_compressed, is_tgz, is_gz, \
extract_gz, extract_tar
from src.exceptions import ConnectionException, FtpPathExcep... | [
"psikon86@gmail.com"
] | psikon86@gmail.com |
faf5bb0942b68286cc73e7bd1b72726907278e27 | c7d5a74520d480c580d9ebfaf67ec14537001e06 | /yellowpages_ratings_crawler/yellowpages_ratings_crawler/settings.py | 899a204b195eee093e68125157934dd99189c93c | [] | no_license | saahyl-rafiq/Python_practices | dc88b109b6fb8ac844a9d82e8ae6c4df51c460ca | 1d69d44e91f0209a289e2439c96bda623fac308a | refs/heads/master | 2021-01-21T12:26:23.649233 | 2015-09-08T05:33:33 | 2015-09-08T05:33:33 | 38,415,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | # -*- coding: utf-8 -*-
# Scrapy settings for yellowpages_ratings_crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readt... | [
"saahylrafiq@gmail.com"
] | saahylrafiq@gmail.com |
db94b8be93caa79107404cc7be61680baea5d65f | 5ef08c6fd982c8754a51efb8331b7b657f01af8e | /server/main.py | 9d5d868873e3a2c65ab7e3bb479a4bdee6cb78dc | [] | no_license | idoazzz/memorizer | 41897766e27f95f6aa4a95b6c53ee85eddb2648e | 72e53eb9d4794d6aac22a0a663e4022f3e15eaae | refs/heads/master | 2023-04-08T10:19:28.218314 | 2021-04-17T17:03:31 | 2021-04-17T17:03:31 | 302,721,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | """Main memorize server entry point."""
from fastapi import FastAPI, HTTPException
from server.associations_manager.datamuse import get_closest_word
from server.associations_manager.associations import get_associations
from server.associations_manager.auto_splitter import \
get_auto_splits_associations
app = FastA... | [
"idoazzz@gmail.com"
] | idoazzz@gmail.com |
d994de6b6f4cae81c2964710ea1fe0d545af8824 | 4be8901dbc5b9b41ef7080890f6e936e71db4121 | /stimpi/handlers.py | 3f106851f9ceafcc764ad8400fb98fe12554212e | [
"Apache-2.0"
] | permissive | skippyprime/stimpi | 93262e85e4a7a1c4492a3c4313e5feb3a07d1bad | 9ba99f1e261270925d8a5b8d7d7a06e57a1894a2 | refs/heads/master | 2021-06-25T20:48:41.746877 | 2017-01-03T20:49:47 | 2017-01-03T20:49:47 | 41,161,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,042 | py | #
# Copyright 2015 Geoff MacGill
#
# 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 writi... | [
"skippydev007@gmail.com"
] | skippydev007@gmail.com |
48e3040635a924031634c0454868718c0de33bf9 | f2fb33ec8901a2251cfb28b728f0bd19851b48bf | /app/api/api_routes/boards/get_boards.py | 32482f94ae7c45abf8279c7267199cf3467911be | [] | no_license | DebugProd-inc/restfull | 5c876f7ebbe351272b582003cc6b971969104ddb | 1c3c779ebf26f70beea411fd6dd444fab8f7cadd | refs/heads/master | 2022-11-29T14:53:36.171711 | 2020-08-02T07:07:34 | 2020-08-02T07:07:34 | 277,918,870 | 0 | 0 | null | 2020-08-02T07:07:35 | 2020-07-07T20:47:04 | Python | UTF-8 | Python | false | false | 476 | py | from flask import request, jsonify
from app.all_models import Board
from app.api import bp
from app.api.auth import token_auth
@bp.route('/boards', methods=['GET'])
@token_auth.login_required
def get_boards():
page = request.args.get('page', 1, type=int)
per_page = min(request.args.get('per_page', 10, type=i... | [
"maxim.v.filatov@outlook.com"
] | maxim.v.filatov@outlook.com |
1ba907cea749adb5b9d3bd97299e2fddd8c9a2bd | 135b5f7f28f488e10dac5801f7a86ef2a72c0c41 | /HER/trajectory.py | b6a0e6f3168a3289aaa76d7fc142a82379f1de00 | [] | no_license | federicobergamin/DDPG-HER-PyTorch | 6cf050940fb99a085ec738cb404a9551ab27cb1e | 9ef2b025f8939e9ed2749a1aca41077813e5653b | refs/heads/master | 2022-04-01T06:21:21.797511 | 2020-02-03T22:33:56 | 2020-02-03T22:33:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | ''' In this file we implement a Trajectory class.
This would be a dictionary that store all the observation, actions, next_observation, and done.
In this way, when we sample a new goal, we have all the information here.
This idea is taken from https://github.com/vitchyr/rlkit
'''
import numpy as np
# TODO... | [
"bergamin.federico@gmail.com"
] | bergamin.federico@gmail.com |
8ad6704531f11096b6c1d2f7cda086784124487a | 789a9373f6198e158822706d6c243ed45e487f87 | /test/backward_compatibility/check_backward_compatibility.py | 6ba9ff66de293a14c2278e0df011e83144cde989 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | JakobHavtorn/pytorch | 98bc88e46a6acc7c77f9ec34810cd93b74e9aceb | 6de7a4a2818fbdd9fd763ad171bdb4c7514990fe | refs/heads/master | 2021-01-02T02:58:39.819315 | 2020-10-01T08:17:22 | 2020-10-01T08:17:22 | 239,460,735 | 0 | 0 | NOASSERTION | 2020-02-10T08:20:40 | 2020-02-10T08:20:39 | null | UTF-8 | Python | false | false | 8,892 | py | import argparse
import datetime
import re
import sys
from collections import defaultdict
import torch
from torch._C import parse_schema
# The date specifies how long the allowlist exclusion should apply to.
#
# - If we NEVER give BC guarantee for an operator, you can put the
# date arbitrarily far in the futur... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
72617de8630073f33d203679e4c08daf96ade7dd | b3311cdcac67f47c7d90fbe899d1348a180fe1f1 | /onlymain.py | 80c4f066c5a035db12e92dedd80a5ba36000be3e | [] | no_license | ashnaj8/gitrepo2021oct | b4267cf6d76b86ff703cb0a4932f6c4e1cb25312 | 13cf78ef7b0dd4847a06b18e1490db14ce0074cb | refs/heads/main | 2023-08-29T18:13:08.945489 | 2021-10-21T06:50:01 | 2021-10-21T06:50:01 | 419,293,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23 | py | javascript with python
| [
"ashnaj@rps.in"
] | ashnaj@rps.in |
987a17d914a736bfd5c9b0d9f1f189906277a58b | 1dab0e6655025530d9f22ae737d78615c8685b62 | /tests/test_parser_script.py | ce3022ec27a7da7399f76dc0a74266a64ebdd530 | [
"MIT"
] | permissive | Vhibli/kopyt | e5c9c3dc61ece27788174311f0c46d2847a4e10a | 48e59ed4196cb80c5498cca62ecffbcb27e6599b | refs/heads/main | 2023-06-21T21:11:55.129537 | 2021-07-21T09:25:19 | 2021-07-21T09:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,035 | py | import unittest
from kopyt import node
from . import TestParserBase
class TestParserScript(TestParserBase):
def do_test(self, code: str, test_str: bool = True) -> node.Script:
return super().do_test("parse_script",
code,
node.Script,
... | [
"9150540+mvisat@users.noreply.github.com"
] | 9150540+mvisat@users.noreply.github.com |
7e5a0a4b2e4b83568dafc54541a561cc3404b48e | 04b71cef66a039196a2965dfab0ff56b0793fe32 | /python/run/brian_2_xgb.py | 231a8c822d29764c92ace11f0ede645217b21be4 | [] | no_license | gviejo/Prediction_xgb_head_direction | 69d57b7d7a2f366f2c96a6e6e933d0978592718f | 6fbe724f92c15afcc634c84383f57bbeedff7d24 | refs/heads/master | 2021-11-05T09:10:48.067439 | 2021-11-05T01:15:17 | 2021-11-05T01:15:17 | 93,687,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | import scipy.io
import sys,os
import numpy as np
from matplotlib.pyplot import *
import pandas as pd
import xgboost as xgb
store = pd.HDFStore("../data/spikes_brian.h5")
data = store['data']
store.close()
adn_neuron = [n for n in data.keys() if 'ADn' in n]
pos_neuron = [n for n in data.keys() if 'Pos' in n]
bi... | [
"guillaume.viejo@gmail.com"
] | guillaume.viejo@gmail.com |
5eea3e2662e9bdbad5bdec502510d98d17062249 | 78ccd7e47ab7e11893efd8f946ce0bdc3a471acd | /projects/kc_projects/creating autocorrect app.py | bcfb416db9e3a1c372c28a8f1eefd188f9c57403 | [
"MIT"
] | permissive | nduprincekc/python-mini-projects | 0a1cfe122343565b725e4ef96226478d04d4ed47 | 5501399694ca2361f251c6190a1e450011101477 | refs/heads/master | 2023-02-15T23:46:10.701754 | 2021-01-10T23:41:23 | 2021-01-10T23:41:23 | 290,812,385 | 0 | 0 | MIT | 2020-08-27T15:28:20 | 2020-08-27T15:28:19 | null | UTF-8 | Python | false | false | 218 | py | from textblob import TextBlob
# documentation
# the libary use is textblob .. you must first install textblob libray
words = TextBlob(input( 'enter the word to correct: ' ))
words = words.correct()
print(words)
| [
"nduagubaemma@gmail.com"
] | nduagubaemma@gmail.com |
b38a6e32dd6d94aff39e2eb86c3d430596662f91 | 92b086142798939a5d787c2a9667f13fb93d6849 | /DogeClassroom/DogeClassroom/urls.py | 632c8e935cf4dda86ff84576ffed61e4b408b559 | [] | no_license | sujaykonda/DogeClassroom | cebee8deec4c163dbd7a838bc6fdb949e55fb8da | 4cca97b135b404c09e21c40851514b509a92b3d1 | refs/heads/main | 2023-03-15T08:21:32.401603 | 2021-03-27T23:56:25 | 2021-03-27T23:56:25 | 343,014,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | """DogeClassroom 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... | [
"kondasujay2@gmail.com"
] | kondasujay2@gmail.com |
c4a5c53fe0c724283a79b58fa49d8c565719ac3a | 98a9d63356d7825e803ae620a687b7a966fc834a | /range.py | 803a78ecdd0ec0bedcce75a2805c9f4ef3fc9e19 | [] | no_license | jboc01234/ATOM-desktop-files | 08465d83dd55ecf52b6c205ee8f27ee0c7b1d8d5 | 855ae39a681fc6930751bb5dadff82123a289990 | refs/heads/master | 2020-04-04T08:08:12.443157 | 2018-11-01T20:37:45 | 2018-11-01T20:37:45 | 155,772,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | colors=["red", "green", "blue"]
#print out a list using a for
for colors in colors:
print("")
| [
"noreply@github.com"
] | jboc01234.noreply@github.com |
7a69ab34a801fce8a75eeeb26e27e918f0e19922 | 9b2ec64d2a1f72b2deb8a3a8f81592b3e21936e8 | /venv/Scripts/easy_install-3.7-script.py | c25b0954ffe1c7a1321a63bbd302222bfcfdab9b | [] | no_license | arshkalsi/databases_project_arshkalsi_gurlivleenkainth | c96107564d35c8865ca1ba7aaba841d8d6675e3a | 2acb78a73dea0a344d94f6b4b7941fc8de5f7ac8 | refs/heads/master | 2021-07-19T06:12:31.465313 | 2019-07-05T12:17:58 | 2019-07-05T12:17:58 | 195,403,606 | 0 | 1 | null | 2020-07-21T03:42:47 | 2019-07-05T12:11:38 | Python | UTF-8 | Python | false | false | 467 | py | #!"D:\python project\databases_project_arshkalsi\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-sc... | [
"49651060+joshkainth@users.noreply.github.com"
] | 49651060+joshkainth@users.noreply.github.com |
2e365a0e3632fac19bb1b71f7416e71b337dfdfc | d5dbafb77d9cce05aee5a29eac7e2f6c37102a38 | /blog/views.py | 97919433f9ad91d66dc8ba55342fd58ef1f8ed1b | [] | no_license | orjack/my_first_blog | 81c8cdc26e0a076d28414cebc96290c1f2be0760 | 2cf5bc5d088af4dce8ea3d8c39cdae5eb9b04502 | refs/heads/master | 2020-03-09T03:45:41.728046 | 2018-04-11T02:39:04 | 2018-04-11T02:39:04 | 128,571,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | from django.shortcuts import render
from .models import Post
from django.utils import timezone
from django.shortcuts import render, get_object_or_404, redirect
from .forms import PostForm
# Create your views here.
def post_detail(request, pk):
post = get_object_or_404(Post, pk=pk)
return render(request, 'blog... | [
"thiago.almeida777@gmail.com"
] | thiago.almeida777@gmail.com |
cceb2d165e808602310d672c2ff13582894f9540 | 716449f3104bd4e349aa95459ddebfff4284d53f | /config.py | aa8a64a946afb588ed1252abc8a4be0942a821b8 | [] | no_license | faustofjunqueira/fast-cp | 30a6f934e78f4fef5d5a58970126acf2fd28ad6b | c44df25aab139a89f491ea3004a8ae5a70ac3be1 | refs/heads/master | 2021-01-22T13:37:11.226258 | 2014-03-14T22:52:58 | 2014-03-14T22:52:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | from sys import *
import time
import os
if __name__ == "__main__":
print("Esse arquivo não pode ser chamado na main")
exit()
def getPathProg():
pathProgram = str()
splited = argv[0].split("/")
for i in splited[:len(splited)-1]:
pathProgram += i+"/"
return pathProgram
def configProg():
pathProgram = getPath... | [
"faustoferjunqueira@gmail.com"
] | faustoferjunqueira@gmail.com |
5aac20a2aecbc256eece5a88b85506d574fd62b9 | b114b6a9a6a79407c3223d34bbdc8c99078b2771 | /oo_basic/static.py | c797a70959a8319d7c2b281dd844328177ddcee4 | [] | no_license | notaidea/python | ba584d047ad57cb743aaba140ed0dd6c2510d591 | 40f8d06aa4e91cc5e55c12b20152cc7ff2d6b7f1 | refs/heads/master | 2022-06-02T19:49:58.595105 | 2022-05-01T12:03:18 | 2022-05-01T12:03:18 | 143,007,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | # -*- coding: utf-8 -*-
class Test(object):
@classmethod
def say(self):
print("saying......")
"""
@staticmethod,表示这是个静态方法,不会自动传入形参self
"""
@staticmethod
def go():
print("gogogo......")
obj1 = Test()
#Test.say()
Test.go() | [
"2423574112@qq.com"
] | 2423574112@qq.com |
8f379ad779593db29e48aae6fe21773644c6f09d | 02f9a3a6f4ab6c126761d6345d1711074365c48e | /Task 2(DataTypes&Sets)/13_Set_differnce().py | 2517ed5827fed9f4b76469950f45d640d4ec4fee | [] | no_license | Saquib472/Innomatics-Tasks | fb6829acb3821f7ea67ffecd3b9357c633fecf6c | facdb5a20e1c933888d0f43dfa679adea3d8b263 | refs/heads/main | 2023-08-19T14:46:54.031758 | 2021-10-24T18:24:24 | 2021-10-24T18:24:24 | 418,057,095 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,442 | py | # Task_2 Q_13:
# The students of District College have subscriptions to English and French newspapers. Some students have subscribed only to English, some have subscribed to only French and some have subscribed to both newspapers.
# You are given two sets of student roll numbers. One set has subscribed to the English n... | [
"saquibali472@gmail.com"
] | saquibali472@gmail.com |
20c7093180173bed8d1b460dc9ad16da229d5411 | 30c2b694f7443507ed666dfb3755236cb21fc8e4 | /EcalFlowNtp/python/ecalflowntp_cfi.py | f45151b26fbe0d7616425c90522675737d6688cd | [] | no_license | ravijanjam/Pi0Analysis | fcf2ca5bb2855b0648ffdb6771cfa4c7b51e4846 | 0498c12338045811e2abfbcd939a781ba468e957 | refs/heads/master | 2021-01-10T05:38:40.127206 | 2015-11-15T13:51:26 | 2015-11-15T13:51:26 | 43,605,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,039 | py | import FWCore.ParameterSet.Config as cms
EcalFlowNtp = cms.EDAnalyzer("EcalFlowNtp",
OutputFile = cms.untracked.string('EcalNtp.root'),
MCTruthCollection = cms.untracked.InputTag("source"),
nPhysSeeds = cms.untracked.int32(24),
myL1SeedName_0 = cms.untracked.string('L1_MinBias_HTT10'),
myL1SeedNam... | [
"ravi.k.janjam@vanderbilt.edu"
] | ravi.k.janjam@vanderbilt.edu |
877e6eb6b48c890435f371b8421b1d2c2d709d9e | c5a0aa5b88c8bc776505fc4dab4d241f45866ba5 | /views/utils.py | f7f0598a2dd77b37bbb2d8f943f6c20c437be047 | [] | no_license | pixix4/PMines | 1965a4865570163e1543618d100ffc21b46880a6 | 85204e5b5d4115be2d90677fb4cf826e02bfb588 | refs/heads/master | 2021-04-26T03:48:51.577889 | 2018-12-28T18:19:48 | 2018-12-28T18:19:48 | 121,419,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | from typing import Tuple
def get_size_from_screen(screen) -> Tuple[int, int]:
height, width = screen.getmaxyx()
if width % 2 == 0:
width -= 1
width = width // 2
return height, width
def game_pos_to_screen_pos(pos: Tuple[int, int]) -> Tuple[int, int]:
return pos[0], pos[1] * 2 + 1
def r... | [
"lars-westermann@live.de"
] | lars-westermann@live.de |
3531b0c301c98e93085d7fe47eef62615f433c47 | f6914f6e48124b786721036fe48a52ff6658e250 | /business/spiders/AStorageInnWeidman.py | bad3216185a799c69be26c46f07731c7378edc36 | [] | no_license | daveyman123/CompetitionScraper3 | 5bea482b9e93eeac42600bf97981821a0f6488dc | 9299e906689bcd6bb65abfd394ffe1a18f3edd9a | refs/heads/master | 2021-09-02T02:20:14.913049 | 2017-12-29T17:56:09 | 2017-12-29T17:56:09 | 115,743,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,534 | py |
import scrapy
from scrapy.selector import Selector
from business.items import TesttestItem
import datetime
from selenium import webdriver
from bs4 import BeautifulSoup
from HTMLParser import HTMLParser
import re
import time
from pyvirtualdisplay import Display
class AStorageInnLemay(scrapy.Spider):
name = "AStorag... | [
"djgraff1@cougars.ccis.edu"
] | djgraff1@cougars.ccis.edu |
54d742fddbf23d6e37c5dd17dab58239532c1e02 | b1ef3379bd8a77c1760d04f9328487aea8934962 | /app/services/index.py | a8261775993b6d9163cfe16f4ed933ff9bf59b6f | [
"MIT"
] | permissive | sloppysid/faunadb-hipflask | c583fd5f03af655823b287f539d9709208398e98 | 554fb8d35a26d990ac1207af1d475a36720b102f | refs/heads/master | 2023-02-27T23:02:28.524039 | 2021-02-09T11:06:44 | 2021-02-09T11:06:44 | 337,372,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from flask import (
Blueprint, render_template, jsonify
)
bp = Blueprint('index', __name__, url_prefix='')
from app.functions import login_required
@bp.route('/')
def index_root():
return render_template("index.html")
@bp.route('/secured')
@login_required
def index_unsecured():
return render_template... | [
"sloppysid"
] | sloppysid |
dc42be6f6ec4a99923e28d0c384803650200edce | 06c670eb8f2899b7c99d3e1e3bbe60750baf3841 | /programs/py/quiz.py | acbe6daa8e54eff848e0d21cae0530892c9b17ac | [
"CC0-1.0"
] | permissive | ErikBoesen/ibhlcs | 8591e5263730cac09e0cd9a95fa4b09a1d71a96d | be34f54477f07647fa15a0671a806cce4e237b72 | refs/heads/master | 2021-06-11T19:16:20.596679 | 2019-09-04T15:21:52 | 2019-09-04T15:21:52 | 112,275,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | NUM_QUESTIONS = 5
questions = (
'Are Connor and Brendan the same person, moving between two positions so quickly as to trick the eye into believing there are two Fletchalls',
'Does James sleep with his 12-inch MacBook under the pillow',
'Are expletives more than 20% of Chris Deng\'s vocabulary',
'Is Ni... | [
"me@erikboesen.com"
] | me@erikboesen.com |
73766be87c861a771f5ae7e6784f2aa71dfca856 | f954729a6941d5309f02865b5313b8524e9e6f53 | /resources/genomes.py | d4d95ae8aa3d7389867fd4d1f1a5fe88474820de | [] | no_license | bnbowman/NoAmpTools | 5f597adec6f49ab8422f443dfdd234b7a9a1dd8d | b59800c675c764ba8b5aee734c3ed79e4ac8e9a5 | refs/heads/master | 2018-12-18T18:58:27.201236 | 2018-09-14T19:33:04 | 2018-09-14T19:34:23 | 107,060,977 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,330 | py | #! /usr/bin/env python
from collections import defaultdict
import matplotlib.cm as cm
class Genome(object):
def labels(self):
return self._labels
def sizes(self):
return self._sizes
def size(self, key):
return self._sizes[key]
def targets(self):
return self._target... | [
"bbowman@pacificbiosciences.com"
] | bbowman@pacificbiosciences.com |
9c00b1032a314e8e825af25109a0962fa173603e | 3b28981d3f641f214442fe02d3ec59a34a408ecc | /crud.py | 8c29996de48c3998fd026df2c233d75417a7a4cf | [] | no_license | IMeinen/etl_geocode | 25f11d7112630c9e06d898ea09b69b68c6b36930 | fab150145ae98bb167ffc28c7758c228baeb0569 | refs/heads/master | 2020-06-14T08:54:07.358032 | 2019-07-03T03:22:11 | 2019-07-03T03:22:11 | 194,964,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | import mysql.connector
#Conexao com o banco de dados | parametros(host,usuario,senha,base de dados(se houver))
def conectBanco(mhost,muser,mpassword,mdbase = ''):
db = mysql.connector.connect(
host = mhost, #EX: "localhost"
user = muser, #EX: root"
passwd = mpassword, #EX: "... | [
"noreply@github.com"
] | IMeinen.noreply@github.com |
3b493ccd44a350d419055556f1e3528d5ed650cb | 23db2e05d0106a2ebcb3955bf46f23dca8441ce8 | /action-log.py | 6bb1a901d2be775e6635d6b96167d63ce323526e | [] | no_license | balilarder/dengue-fever | 53f9ea8ac20f608127bb4f1e91a81669fdc38713 | f51604b022ef61541306b505e37dfec13c00cbef | refs/heads/master | 2021-01-17T09:52:44.821147 | 2016-05-24T10:21:16 | 2016-05-24T10:21:16 | 54,388,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,935 | py | """get area in time-space"""
f1=open("time-space.txt")
lines=f1.readlines()
#print lines[0]
A = 0
for ch in lines[0]:
if ch == "A":
A += 1
print "there are %d areas~" %A
areas = lines[0].split("\t") #areas is area in the time-space
del(areas[0]) #del first element
areas[len(areas) - 1] = areas[len(areas) - 1].rstrip... | [
"balilarder@yahoo.com.tw"
] | balilarder@yahoo.com.tw |
724bc39e279eec75839111aa9054d6038c556254 | 20dd027ef90f12069c896ccae2fe8b7354ee0ff5 | /01.FundamentalsCourse/Chap04/Challange02.py | c6e7cf17abcfcb75dd4a9e22219524b206455dff | [] | no_license | elsayed-hussein/ProgrammingFoundationsCourses | 34eee8f93bfa86097016134dc7acd8b4919115fc | dfb61b2ec8f973fa513ff995f51b8a4755220689 | refs/heads/main | 2023-08-05T01:15:59.076188 | 2021-09-27T16:21:40 | 2021-09-27T16:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | favFood = "chicken"
answer = input("What is your favourite food?(chicken, bashmel, rise or meat) ")
if answer == favFood:
print("Yeah!! You're RIGHT ='D , My favroute food is ", favFood)
elif answer == "idk":
print("My favroute food is ", favFood)
else:
print("Oops!! You're WRONG ='( , My favourite food is'n... | [
"mansourashraf173@gmail.com"
] | mansourashraf173@gmail.com |
3e1ec13d9713698ea3b60235bc2652142e584fa8 | 693d045d08f4e0839e31362debbd40d196e3eb75 | /bot.py | 3f43ae572bfa420119467ce29b4d72046009a509 | [] | no_license | Debique/asyncbot | d5ee38c15aac866f7cecef4d2e98ce88d4ce4d10 | d5374a0fba2a09354fa7baab8d363b9c626ccc64 | refs/heads/main | 2023-01-30T22:03:18.897047 | 2020-12-09T21:04:15 | 2020-12-09T21:04:15 | 320,077,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,673 | py | import datetime
import time
from aiogram import Bot, Dispatcher
from aiogram.utils import executor
from aiogram import types
from bs4 import BeautifulSoup
import asyncio
import aiohttp
from src.config import TOKEN
from src.states import ArticleFinder
from aiogram.contrib.fsm_storage.memory import MemoryStorage
impor... | [
"sashuk.danila@gmail.com"
] | sashuk.danila@gmail.com |
ed329fe829585a042a59d6c01959272c9d3ee31e | cdc48931cb3adb62c5e4963e43aeaf3cbc5080c4 | /Scripts/Read_omi_data.py | c977f0e3517d4bf8d1888816d3f96f6023bdb222 | [] | no_license | giovannilopez9808/SEDEMA_2000_2019 | ce8f1955b7d0f760485e2a984f36e72141867a0f | 857be19c0acd9587904107ecd470b94a6a7d93b3 | refs/heads/main | 2023-06-25T10:32:06.536548 | 2021-08-04T19:55:16 | 2021-08-04T19:55:16 | 382,178,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,969 | py | import matplotlib.pyplot as plt
import pandas as pd
def date_format(data):
data["Date"] = data["Datetime"].str[0:4]+"-" + \
data["Datetime"].str[4:6]+"-"+data["Datetime"].str[6:8]
data["Date"] = pd.to_datetime(data["Date"])
data.index = data["Date"]
data = data.drop(["Date", "Datetime... | [
"giovannilopez9808@gmail.com"
] | giovannilopez9808@gmail.com |
8de573b4952e92ee7d39ef3e50562e02b95dafb6 | 9df8ca72108d95f703d6839b67f71e3c185860a9 | /python/feature_selection/lib/_class/DFDuplicateThreshold.py | f40af7dd6a2397f9a0daaf902a5b1710916e34f4 | [] | no_license | Hann-THL/DATA_SCIENCE | d0010c9c77326f21a03d989faab61ccf1b53f3f1 | 7cda0a36d81e0d710704a1261521a3bb73e5c690 | refs/heads/master | 2022-11-21T11:21:41.568958 | 2020-07-27T11:09:10 | 2020-07-27T11:09:10 | 204,294,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,137 | py | from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.exceptions import NotFittedError
class DFDuplicateThreshold(BaseEstimator, TransformerMixin):
def __init__(self, columns=None):
self.columns = columns
self.transform_cols = None
self.stat_df = None
... | [
"hann_lim@hotmail.com"
] | hann_lim@hotmail.com |
f5fc84e84bee9b998c67a3bef1c772d4d876b1c0 | e0edaab6b189580bab8728a54e2f0d32dacb6bfd | /graph_search/kosaraju_two_pass_algo.py | 1037e172af14cd836895dad5b893b61d2079f39a | [] | no_license | tjfarringer/algo_practice | a4245ef975fd890c32f56ebb3f7d114d8a99be3b | 5204de458b600bd0e3083aa2af4b4190ef57fb8d | refs/heads/master | 2020-09-20T11:40:02.184021 | 2020-01-25T15:36:18 | 2020-01-25T15:36:18 | 224,465,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | from collections import defaultdict
# # Import graph class
from depth_first_search import graph
# RUN TIME: O(m + n). More or less 2x DFS.
def reverse_graph(graph_to_reverse: dict) -> dict:
'''
This function reverses all the edges in a graph. Required for step 1 of this algo.
:param graph_to_reverse:... | [
"tjfarrin@gmail.com"
] | tjfarrin@gmail.com |
a887b527eb3bbae296743ac0b1dafd78fa4b2523 | 2e3c3b31576213b24d059b91e29be3ddcb4fe4cf | /build/line_follower/catkin_generated/generate_cached_setup.py | 3f13b03199d9f2c4075d54524dd65eb9f9837e25 | [] | no_license | AjayaDahal/ROS-Melodic-line-follower-raspberry-pi-simulation | fa9967b5706600b22a86cd3f8deec6736c2bef86 | c69fd9be20b083806d49499d723396154ffd7de4 | refs/heads/master | 2022-06-12T14:29:48.399389 | 2020-05-08T07:30:57 | 2020-05-08T07:30:57 | 262,224,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"ajayadahal1000@gmail.com"
] | ajayadahal1000@gmail.com |
3b7dbaa8d490c3da4756ccad3b0ccf36d205d1c9 | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /C_LinkList/Swap/L2_24_Swap_Nodes_in_Pairs.py | 875e98e38bc4183aafaf3c32d8ccd3bd631735f4 | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 526 | py | """ https://leetcode.com/problems/swap-nodes-in-pairs/
from dba: https://leetcode.com/problems/swap-nodes-in-pairs/discuss/984392/Python-O(n)-solution-explained
"""
from header import *
class Solution:
def swapPairs(self, head: Optional[ListNode]) -> Optional[ListNode]:
ans = pre = ListNode(next=head)
... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
d1faa4d1096e05a75abf9104689cfa3aa4924821 | a6fa6484e4f16b93cc162859701e0bc94a16e9ac | /issue_tracker/models.py | 6d3f1ea3be345e4c9bb86401cf10661b69bac5fa | [] | no_license | Code-Institute-Submissions/django-issue-tracker-1 | 81b588c521f7ef027041ce0e52ab250edfc9f848 | 839c8f8c70e3745f711cb68bd8454d77eae3d79c | refs/heads/master | 2020-04-24T11:29:49.316692 | 2019-02-21T18:40:28 | 2019-02-21T18:40:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.db import models
# Create your models here.
class Item(models.Model):
name = models.CharField(max_length=30, blank=False)
done = models.BooleanField(blank=False, default=False)
def __str__(self):
return self.name | [
"marcushornby@outlook.com"
] | marcushornby@outlook.com |
bc8458174d943aa92afd84ab3a38cb97fffa9235 | 32f75193d8c11cb1e19e4aa2d19983f43a7bfd11 | /google/cloud/aiplatform_v1beta1/services/tensorboard_service/transports/grpc_asyncio.py | 4af4514351d545909cc09e37c02f260c892fc0e4 | [
"Apache-2.0"
] | permissive | anooshrees/python-aiplatform | c4a1a69d3455985bb7c47031984fba1ddb34e5e6 | 1b28ce73c3b4af2c957377280d160f6112b322fe | refs/heads/master | 2023-07-28T15:21:27.903784 | 2021-07-27T16:32:32 | 2021-07-27T16:32:32 | 385,986,085 | 0 | 0 | Apache-2.0 | 2021-07-14T15:59:40 | 2021-07-14T15:22:28 | null | UTF-8 | Python | false | false | 43,614 | 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"
] | anooshrees.noreply@github.com |
d86242cd87dd8323bb6214deb9dacb2b9f552040 | 2b3817fb9e4078e912fe1df2e964a68dcd48d053 | /code/pgms/can-sum.py | 021e88ad56ffd0af0b5efa8652465910059432a6 | [
"MIT"
] | permissive | souradeepta/PythonPractice | 350a130b341efec7b22ebd061c3d89036603587f | fa956ca4b87a0eb92fee21fa78e59757ce665770 | refs/heads/master | 2023-08-08T03:46:01.238861 | 2021-09-23T02:37:13 | 2021-09-23T02:37:13 | 256,668,632 | 1 | 0 | MIT | 2021-09-22T18:54:17 | 2020-04-18T04:22:25 | Python | UTF-8 | Python | false | false | 1,810 | py | from typing import List
def canSumRepeat(target: int, input: List, memo: dict) -> bool:
"""Can the sum of input number lead to the target value
Args:
target (int): target
input (List): list of numbers
Returns:
bool: True or False
"""
if not input:
return None
... | [
"sdb.svnit@gmail.com"
] | sdb.svnit@gmail.com |
fa08c389387d3996a691d6d4338fcd25c63c4168 | cda86008a292ed5bc130dde5b0ce930226394460 | /django_intro_env/bin/django-admin.py | de7944e5974ad45a6622f5d1ba06cbea393e558c | [] | no_license | Luisttine/django_necto_fatec | 00492f451c3d5516777c10839e9f48f63d613821 | 39b7e0a2a852e4e01e38e9fa861b8f4b397e4f7e | refs/heads/main | 2023-08-04T01:29:00.491051 | 2021-07-27T16:22:29 | 2021-07-27T16:22:29 | 388,638,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | #!/home/luisouza/Workspace/django_necto_fatec/django_intro_env/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'djan... | [
"luisttine@gmail.com"
] | luisttine@gmail.com |
36c8aa5f1334f81fcdcf3cffaf6fe2f5836d7abe | 951fc0da7384b961726999e5451a10e2783462c4 | /script.module.exodusscrapers/lib/exodusscrapers/sources_placenta/en_placenta-1.7.8/ororo.py | da4be034f81d870663f7cf7dbc21eacd06fa0f60 | [
"Beerware"
] | permissive | vphuc81/MyRepository | eaf7b8531b2362f0e0de997a67b889bc114cd7c2 | 9bf8aca6de07fcd91bcec573f438f29e520eb87a | refs/heads/master | 2022-01-02T15:07:35.821826 | 2021-12-24T05:57:58 | 2021-12-24T05:57:58 | 37,680,232 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 4,444 | py | # -*- coding: UTF-8 -*-
#######################################################################
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# @Daddy_Blamo wrote this file. As long as you retain this notice you
# can do whatever you want wi... | [
"vinhphuc_81@yahoo.com"
] | vinhphuc_81@yahoo.com |
0fc48ee4ae9297fa1ee68ef96349fe8ae9f128f5 | b324669f1d320eefa7e891f778f93d3a7cb8c54d | /prediction/__init__.py | 65d9fdbc56dd0fded733fff5af9b665cd8546c0f | [] | no_license | lorey/find-underpriced-cars | 45bd452dce7452489e9fda0a7bb74f30c20011ce | a4a056fcc3c0d7f1eb3a1504e62f3c45a15855ce | refs/heads/master | 2020-12-03T00:18:04.502295 | 2017-07-29T13:45:50 | 2017-07-29T13:45:50 | 96,012,523 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,828 | py | import json
import logging
import os
import re
from datetime import datetime
from time import sleep
import numpy
import pandas
import requests
import sklearn
from graphviz import Source
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.feature_selection import SelectKBest
from sklearn.feature_se... | [
"git@karllorey.com"
] | git@karllorey.com |
7d382bee63d4ab632c33c235b382848e1693243a | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Graph/733.py | 5ae87bd51e724a76ced10a0220dd9ab5401483da | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | # 733. Flood Fill
# An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535).
# Given a coordinate (sr, sc) representing the starting pixel (row and column) of the flood fill, and a pixel value newColor, "flood fill" the image.
# To perform a "flood f... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
fe03050162375aa635804696a5e813c44fe84d13 | 712458e610774b753618307f85f504b2260917ee | /populate_rango.py | f0897dabaaf1419732535f94b65778b00a11f46b | [] | no_license | AhmadZafarani/shetab | cc86f1dcc3e9e9765136d4d3d8354a25839adfca | 9af489076c919543eda653ba4eabd9cbab442531 | refs/heads/master | 2023-06-12T13:16:34.888327 | 2021-07-08T06:54:02 | 2021-07-08T06:54:02 | 355,777,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_pages = [
{"title": "Official Python Tutorial",
"url": "http://docs.python.org/2/t... | [
"ahmadzafarani2013@gmail.com"
] | ahmadzafarani2013@gmail.com |
211eacb705507ff237263f7b7b3ebf16837f78c1 | fe25cd7ef24a3b2b80dc76e25813a2f6a5d8ca70 | /pokemon.py | 0af029f2feb69b799a82d634190cc4bee63c843e | [] | no_license | artur31415/py-simple-pokemon | dd26ef9ca9d3fd06f3cbfb2bba1c18131c46c653 | cce54e9eed43ae01ad7af6a5f81ad4efefadb29e | refs/heads/master | 2020-09-27T04:42:28.175931 | 2019-12-09T13:44:27 | 2019-12-09T13:44:27 | 226,432,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | import random
class Skill:
def __init__(self, name, atk = 0, cost = 1):
self.name = name
self.cost = cost
self.atk = atk
#handle buffs
self.effect = {
"atr": "atk",
"val": "1",
"cdw": "3", #cooldown
"IsEnemy": True
}
#--------------------------------------
class Monster:
def __init__... | [
"noreply@github.com"
] | artur31415.noreply@github.com |
0e4ea3b20b875aa0d0f525b5688b469b1ae1cd07 | 242f1dafae18d3c597b51067e2a8622c600d6df2 | /src/1300-1399/1389.create.target.array.in.given.order.py | fbf27d7eff98adccaa487419a2b2644f45f97e17 | [] | no_license | gyang274/leetcode | a873adaa083270eb05ddcdd3db225025533e0dfe | 6043134736452a6f4704b62857d0aed2e9571164 | refs/heads/master | 2021-08-07T15:15:01.885679 | 2020-12-22T20:57:19 | 2020-12-22T20:57:19 | 233,179,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from typing import List
class Solution:
def createTargetArray(self, nums: List[int], index: List[int]) -> List[int]:
ans = []
for i, x in zip(index, nums):
ans.insert(i, x)
return ans
if __name__ == '__main__':
solver = Solution()
cases = [
([1], [0]),
([0,1,2,3,4], [0,1,2,2,1]),
(... | [
"gyang274@gmail.com"
] | gyang274@gmail.com |
0d7619664281b61ade37dcb0adaaf4499acee6da | a6e3acd02d9040017e017627e70a79e9e77c5836 | /lbypl2/accounts/views.py | c5963ce05e87dd6b94dda04e61ea628481a97038 | [] | no_license | goldader/lbypl2 | 16e792b54dd19f643dc95f550ad44a098c7515a6 | b70be30850630c5a99bdb28b46e79a69ffb105e0 | refs/heads/master | 2021-04-26T22:26:10.794903 | 2018-05-25T11:27:38 | 2018-05-25T11:27:38 | 123,505,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | #from django.shortcuts import render
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
from django.shortcuts import HttpResponseRedirect
# Create your views here.
class SignUp(generic.CreateView):
form_class = UserCreationForm
#succes... | [
"goldader@gmail.com"
] | goldader@gmail.com |
9f6538d7659db6addfb5002c1185aa040078ec4e | e80ab87a327c66c5e550ed4cbd23b1f96f409b4c | /assignment1/cs231n/classifiers/neural_net.py | e1a28c2663b8e5f93cc72b72470f60c9a1da3fe0 | [
"MIT"
] | permissive | iraquitan/stanford-cnn-visual-recog | 58a7a783e9165dd6af4cb079e9944d06a7fb7505 | 28d515661b65dc525f4d0532eeb0f37741d1c6d0 | refs/heads/master | 2022-12-20T19:18:19.837040 | 2019-06-05T20:46:19 | 2019-06-05T20:46:19 | 177,224,658 | 0 | 0 | MIT | 2022-12-07T23:32:26 | 2019-03-23T00:13:44 | Jupyter Notebook | UTF-8 | Python | false | false | 11,830 | py | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from .softmax import softmax_loss_vectorized
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network. The net has an input dimension of
N, a hidden layer dimension of H, and performs classification ove... | [
"iraquitanfilho@gmail.com"
] | iraquitanfilho@gmail.com |
95f3efbcfbb527dfeaefc187e196a7b44e16a647 | fa5d4f205daea86b7a1a2ac76701aadfba43ebf5 | /blog/migrations/0009_auto_20190205_1944.py | f3b2ad7b5cce5a31cf74a000553659dfe93c7414 | [] | no_license | Gootime/plateforme_django | 3b9e0d043e9c38bf01ca50d5988eb19a50d5a7db | 8c0840964258873938e79cc0b2f99612d4a73ee4 | refs/heads/master | 2022-12-08T09:32:19.020591 | 2019-04-19T14:48:28 | 2019-04-19T14:48:28 | 177,818,395 | 0 | 0 | null | 2022-12-08T01:21:45 | 2019-03-26T15:36:20 | HTML | UTF-8 | Python | false | false | 1,042 | py | # Generated by Django 2.1.3 on 2019-02-05 18:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0008_capsule_category'),
]
operations = [
migrations.CreateModel(
name='PlaylistOrder',... | [
"gotimeingame@gmail.com"
] | gotimeingame@gmail.com |
44a14915aa2c6e0f3c8c95683beb60f253d06b93 | adc543b467b0bf755806cb62bcdd95ef2849f38d | /Weather-server/venv/Scripts/easy_install-script.py | effd55cfe1a71dd419961dae3fe6153a1d32458c | [] | no_license | YTGhost/Weather-data-analysis | c2e3e564589ad18973307832fe0bcbd755bcafb0 | 33108e10d7e91badd010d9cc05b626648e25e3e3 | refs/heads/master | 2022-11-19T03:00:47.948196 | 2020-07-13T19:03:22 | 2020-07-13T19:03:22 | 275,761,761 | 1 | 0 | null | null | null | null | GB18030 | Python | false | false | 439 | py | #!D:\小学期\flask项目\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
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... | [
"283304489@qq.com"
] | 283304489@qq.com |
f1959b64db655c3aea429bd8339ace3b6f161bff | 51dc1f3d5985b1937251077f424f1ebc0ab5d5b3 | /app/migrations/0012_imgdata_image_type.py | a34d074cfdb739525049ddbd27a6e525bed97e55 | [] | no_license | aryankul97/venueshub | 51ca6fcb4801f676cafbb234fe4efba3b02bcccc | 8adb7a2abe4c94896a956cd477d3dc95940b7288 | refs/heads/master | 2020-06-29T20:29:28.049619 | 2019-08-05T08:39:45 | 2019-08-05T08:39:45 | 200,616,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 2.2.2 on 2019-08-04 03:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0011_auto_20190804_0900'),
]
operations = [
migrations.AddField(
model_name='imgdata',
name='Image_Type',
... | [
"aryankul97@gmail.com"
] | aryankul97@gmail.com |
51c7bfc627e6b35c639541571b753e522484c521 | 9beeb26b6cbe9cd8df51bf8b5f99d58d20981680 | /pdb2pqr/hydrogens/__init__.py | e3e5c0e7f3453599bad31f0f602c573951ceb97d | [] | no_license | broadinstitute/pdb2pqr | ee32d222f3f28ae84dab55f2634457a61b40f882 | 0012ff25e565d13009e92393bd6ffbc0940ff7f5 | refs/heads/master | 2022-12-06T23:05:54.523551 | 2020-08-28T13:04:49 | 2020-08-28T13:04:49 | 287,517,171 | 0 | 0 | null | 2020-08-14T11:27:52 | 2020-08-14T11:27:51 | null | UTF-8 | Python | false | false | 32,205 | py | """Hydrogen optimization for PDB2PQR
This is an module for hydrogen optimization routines.
TODO - This module is insane... so many lines!
Authors: Todd Dolinsky, Jens Erik Nielsen, Yong Huang
"""
import logging
import math
from xml import sax
from .. import input_output as io
from .. import aa
from .. ... | [
"mattfeng@mit.edu"
] | mattfeng@mit.edu |
2eaddb865c3514499a6de7757d39c34e1ee61f2c | bc952d7c5dcf39876d5b1b1ad46a9ede8c84e1df | /model_zoo/official/nlp/bert_thor/src/lr_generator.py | c2416e9b81a522e622beec0810fb1e7af0a319dc | [
"Apache-2.0",
"Libpng",
"LGPL-2.1-only",
"MIT",
"IJG",
"Zlib",
"BSD-3-Clause-Open-MPI",
"AGPL-3.0-only",
"MPL-2.0-no-copyleft-exception",
"MPL-1.0",
"MPL-1.1",
"MPL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Unlicense",
"LicenseRef-scancode-proprietary-lice... | permissive | dilingsong/mindspore | f69c88ebc773bb6eaf88162bd038e807f84633bc | 4276050f2494cfbf8682560a1647576f859991e8 | refs/heads/master | 2022-12-01T12:23:13.490558 | 2020-08-10T09:16:27 | 2020-08-10T09:16:27 | 286,463,866 | 1 | 0 | Apache-2.0 | 2020-08-10T12:06:08 | 2020-08-10T12:06:07 | null | UTF-8 | Python | false | false | 2,442 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"zhangzhongpeng1@huawei.com"
] | zhangzhongpeng1@huawei.com |
668a65b4b0b55b74b317267172130bd341836dc6 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_6_mask_unet/mask_5_3a_sobel_k5/sobel_k5_s001_6l/step10_a_mask_5_3_sobel_k5_s001_6l.py | 11a26e1fd09e420e7e64ad4554eaaf5af90295e7 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,254 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
7c7a13988c1414c47d5397c1e6f97e7be4e23afa | 90b95ac525ee731ec5ba7d5da5c9038396ac4c3d | /zoom_data/migrations/0032_auto_20180129_1556.py | 852054a2c4f744955572c6156d903d4e86f2e8a1 | [] | no_license | 5klynna5/zoom_c | 33364146915611917ae0e6e0fd49233370424929 | 59c39eece1dd0ad5e7e210f4f03d8bb64df44b98 | refs/heads/master | 2021-05-12T04:06:39.031130 | 2018-08-04T23:52:19 | 2018-08-04T23:52:19 | 117,153,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('zoom_data', '0031_auto_20180129_1151'),
]
operations = [
migrations.AlterField(
model_name='annual',
... | [
"anderson.kirsten.l@gmail.com"
] | anderson.kirsten.l@gmail.com |
ef6abd3fdc6fc6edee0112e69117a31560195ac9 | 0e719bc0915f83d0fb96a252ab24af9159624a44 | /Learning-python/scratch_paper.py | bf96c2d9827e17f7e7b13c46db92f3fddf2394d1 | [] | no_license | skhadka007/learning_algos | 09a0d89194fe610186e5af03a4683b971d1c7f2c | a9f7e432f5b6b5a2ccefb713e029c43be9421969 | refs/heads/master | 2023-09-02T03:11:27.855951 | 2021-10-04T14:11:34 | 2021-10-04T14:11:34 | 286,854,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | location = 11
location = str(location)
# print("checkEmpty:", location)
row = int(location[0])
column = int(location[1])
# print(row, column)
row1 = ['X', ' ', 'X']
row2 = ['O', ' ', ' ']
row3 = ['X', 'O', 'X']
# if (row1[0]=='X' and rXw1[1]=='X' and row1[2]=='X'): #horizontals
# return 'X'
# elif (row... | [
"skhadka.code@gmail.com"
] | skhadka.code@gmail.com |
cc4eba6e3df71175e8bb9a8b7e93a16f03e105e8 | 21fb99baaaeaed674cd99fb1a5d39ea54a1db827 | /MNguyen/patMacrosForMC/makePatJets_ppHIReco_withPF_Escale.py | b8b6810328c06368109d9b56f27c02cd95e4dce1 | [] | no_license | kurtejung/PurdueForest | e413d4bc953df386a50d01ca09d1b648d07a926c | 9c7de9e7452b0837a872cfdd428244cb46b55322 | refs/heads/master | 2020-05-16T20:32:30.896495 | 2014-06-02T18:42:18 | 2014-06-02T18:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,521 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process('HIJETS')
#process.Timing = cms.Service("Timing")
#process.SimpleMemoryCheck = cms.Service('SimpleMemoryCheck',
# ignoreTotal=cms.untracked.int32(0),
# oncePerEventMode = cms.... | [
"kurtejung@gmail.com"
] | kurtejung@gmail.com |
18ce61c2000a18f6226de2fae3759ecbdeeb9bfa | 2b471e5c6b669211a19abece478be8d96e34dea3 | /python3.6/modelservicerecord.py | d5e075128015a2212e739e974ae89332a36dde04 | [] | no_license | xhqiao89/OpenGMS_SDK_Python | 4ef341a5b894d28245d7ad5d1e2938ac6b406c56 | 4c211742a046fb9976cabb36ad15f3941b218e85 | refs/heads/master | 2020-07-31T17:43:35.645470 | 2019-10-10T18:55:43 | 2019-10-10T18:55:43 | 210,698,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | import time
from utils import HttpHelper
from base import Service
from data import DataConfigrationItem
from utils import CommonMethod
class ModelServiceRunningRecord(Service):
def __init__(self, ip, port, id, msid, guid, status = 1, inputs = [], outputs = [], timespan = 0.0, standout = '', standerr = '', invokeer... | [
"xhqiao89@gmail.com"
] | xhqiao89@gmail.com |
71e5e0ac4ac04f50cb98103aed3a8f745c736247 | 630c4570bc8dbdfe47b76133579451ad901ccfb1 | /opecvPrj/asgi.py | ff04354449bbecb12045a07434d1835c117ab788 | [] | no_license | camelrush/face_recognition | cb97e35887de664571f406b51f27fb33ebf2fc14 | 7c1416b184758f1f9d45fec67ead5a2c5198e3cc | refs/heads/master | 2021-02-07T17:04:28.059745 | 2020-03-28T16:01:43 | 2020-03-28T16:01:43 | 244,054,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for opecvPrj project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"shinya.pyonkici@gmail.com"
] | shinya.pyonkici@gmail.com |
ff61f9d12ceebe86532e622aaecb819f0c39eb8f | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/python/LC_573.py | a585295ef01ebf47f30590d98f2feb1f45f6657f | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py |
"""
There's a tree, a squirrel, and several nuts. Positions are represented by the cells in a 2D grid. Your goal is to find the minimal distance for the squirrel to collect all the nuts and put them under the tree one by one. The squirrel can only take at most one nut at one time and can move in four directions - up, ... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
d01245daf3978c21934279b8155a5ee000cc07ce | 1297962650cabd546c2212c61b1fd816fe577e3f | /Extras/Tflow.py | c5b9e891155620a63ddfd9ce4f88da12179aef3a | [] | no_license | prbh695a/MyPrograms | 23eb00f1df1edcf1937961575b16e53f4a11f36d | e8fce30ab53f79d181e5c6db3e4857ca02293464 | refs/heads/master | 2022-12-15T23:08:58.362890 | 2020-09-17T13:29:15 | 2020-09-17T13:29:15 | 259,377,359 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | import tensorflow as tf
from tensorflow import keras
import numpy as np
import matplotlib.pyplot as plt
hello_constant=tf.constant("Hello World")
tf.print(hello_constant)
#Loading Data
data=keras.datasets.fashion_mnist
#Passing training and test data
(train_images,train_labels),(test_images,test_labels) = data.loa... | [
"prateek.bhat.it@gmail.com"
] | prateek.bhat.it@gmail.com |
10b42b9c096fb19446e043163c9cfb3ae6a2ed9d | 098f80474295aa024657330b8f0813eca7d015c2 | /UnrealPythonLibrary/PythonLibraries/PythonHelpers.py | 9614830514ae6520ef42d4429675bed7ed05a765 | [] | no_license | sniler/UnrealScript | e4c4387caa6402a61b4bf0ba8952faf598e4464e | a4587d578366551b2470862f18b33c42439c5cdd | refs/heads/master | 2023-04-01T18:45:37.803690 | 2021-04-13T11:25:13 | 2021-04-13T11:25:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # unreal._ObjectBase
# https://api.unrealengine.com/INT/PythonAPI/class/_ObjectBase.html
import unreal
# object_to_cast: obj unreal.Object : The object you want to cast
# object_class: obj unreal.Class : The class you want to cast the object into
def cast(object_to_cast=None, object_class=None):
try:
... | [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
444a0213126c7ae41ecef808a9a61907c3e052a1 | 65df26aa3e179c61d0952208712bd30b1c518939 | /IG_Autolike.py | e57188d0d938d0bccc762d4b290487d8b77dbdfc | [
"MIT"
] | permissive | georgezywang/IG_Autolike | 6fe8a9a6ac01b6174a8c5e5738f892f22ae5d3b3 | 9517edacd25bca336cee9be3de2008e54f8beda7 | refs/heads/main | 2023-05-14T06:33:38.625933 | 2021-05-31T23:04:25 | 2021-05-31T23:04:25 | 365,931,913 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,901 | py | import argparse
import yaml
import instaloader
import threading
import signal
import sys
from instapy import InstaPy
from instapy.util import web_address_navigator, get_relationship_counts
from instapy.like_util import get_links_from_feed, check_link, like_image, verify_liking
from selenium.common.exceptions import No... | [
"georgezywang@outlook.com"
] | georgezywang@outlook.com |
aa680423f2958a393e449a990b4747fc8f1b6e0a | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/gsi_handlers/business_handlers.py | 37908330768a0f86bd61914ae6d9ee428b3c28f5 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,223 | py | from business.business_enums import BusinessType, BusinessEmployeeType
from gsi_handlers.gameplay_archiver import GameplayArchiver
from sims4.gsi.dispatcher import GsiHandler
from sims4.gsi.schema import GsiGridSchema, GsiFieldVisualizers
import services
business_managers_schema = GsiGridSchema(label='Business Managers... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
56113bdeea081fbc16893e7fdd670b1aea96fa36 | 4cdd73fe38027d41bda2959f940fc8a2a6c4ca78 | /l10n_ve_islr_report/__openerp__.py | 437bf359edf4cb159557ab769dca6e3d5272dd75 | [] | no_license | adrt271988/l10n_ve | af408fcc0bd2c87475beccd5ec92ee180d35a0d8 | 0a762490f4ee0a4257fb75dc5ea5607dec91d3bd | refs/heads/master | 2020-04-05T14:04:14.374612 | 2016-09-05T22:19:54 | 2016-09-05T22:19:54 | 53,200,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"adrt271988@gmail.com"
] | adrt271988@gmail.com |
24f09b1506d38dc1f4573c4e39aea68ff1b55a1d | 671022d37e94aa53b85094b4084ad7afd31132c9 | /webconfig/wsgi.py | f61a80ee5c59fd38a4c5ea9f9201da3bc30e7526 | [
"MIT"
] | permissive | gmferise/tree-model-demo | b1aa6724571425573cd5884503020c60272fb0d4 | 6305e033c1683651ddbfb45d9987c4f6461efdd0 | refs/heads/main | 2023-08-15T08:18:31.271625 | 2021-10-07T14:35:30 | 2021-10-07T14:35:30 | 414,634,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for webconfig project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"gmferise@gmail.com"
] | gmferise@gmail.com |
c619da97bac03ac05837116a61091bc98f5f3abe | a90696463a19e02a9cb4839b6fc0a198ae65994c | /app.py | 4721ac69381c12f20f13d991d52a27e1d2dac365 | [] | no_license | gurrambhaskar25/graduateadmissionprediction | d75566fc7a5af97fa6f71e75c37e0e252e174d99 | 28238f078026933c51dde781e2f8b74ce4291d26 | refs/heads/main | 2023-05-13T19:51:07.045796 | 2021-06-08T07:53:55 | 2021-06-08T07:53:55 | 309,035,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from flask import Flask , render_template,request
import pickle
from sklearn.linear_model import LinearRegression
import numpy as np
app = Flask(__name__)
model = pickle.load(open('college.pkl', 'rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict',methods=['PO... | [
"noreply@github.com"
] | gurrambhaskar25.noreply@github.com |
aa65edc6a9fad44cf2ffbff749afa4d460888629 | 3944261f92ad298450742fd2d55300e58ad4df38 | /apps/users/migrations/0004_auto_20180427_1641.py | df9d05391f175eabee7681e7c7fa4a21eea4d0c3 | [] | no_license | ybyangjian/moocdemo | f38124351bb2da5421768e3a2aa94dd81d281cd6 | 0ebbe7f7da44fbea1a08dbbe0142fd7394891ee6 | refs/heads/master | 2020-03-13T07:21:44.856961 | 2018-04-28T15:34:35 | 2018-04-28T15:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 2.0.4 on 2018-04-27 16:41
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20180427_1623'),
]
operations = [
migrations.AlterField(
model_name='emailverifyrecord',
... | [
"809127232@qq.com"
] | 809127232@qq.com |
a623adbefc27ed9eae53bfe2d00c5bce02281a82 | 74d7e42e58cc4ee2d4b2d8dc4fa040a3b99f1e06 | /src/nirvana/api/models.py | 209c338b505115a52009cdf06a625c09b57c8b4e | [] | no_license | tangrui9105/nirvana-old | d2ed3846805fd44bd8f314f68e69200bd8107a63 | e83466029ffa71702abb208bc4eaf90a9e656da5 | refs/heads/master | 2021-01-10T20:39:53.217668 | 2011-05-31T09:09:53 | 2011-05-31T09:09:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from google.appengine.ext import db
class Blogpost(db.Model):
title = db.StringProperty()
content = db.StringProperty()
author = db.UserProperty()
created_on = db.DateTimeProperty(auto_now_add = 1)
def __str__(self):
return '%s' %self.title
def get_absolute_url(self):
return '/helloworld/%s/' % self.key()
| [
"tangrui9105@gmail.com"
] | tangrui9105@gmail.com |
7dc23f2e6b30c1f56cb61a76d225e09a83b7d5b5 | d34b39c8f0a2f7ba39cd68c46a667c0ba462c939 | /Assignments/A3/code/data.py | e6c31a513bbe5cc7b92bf97a9b0de7ecdcc05294 | [] | no_license | hfiuza/Object-recognition-and-computer-vision | f0f0adb4ba8202bab5bc1b6b2d5acd13bb0f62b2 | 1462f9f1e4bfe597dcd5175375c48467839d5394 | refs/heads/master | 2020-04-01T14:54:00.270861 | 2018-12-28T15:13:04 | 2018-12-28T15:17:48 | 153,312,685 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import torchvision.transforms as transforms
# once the images are loaded, how do we pre-process them before being passed into the network
# by default, we resize the images to 64 x 64 in size
# and normalize them to mean = 0 and standard-deviation = 1 based on statistics collected from
# the training set
data_transfor... | [
"henriquegfn@gmail.com"
] | henriquegfn@gmail.com |
0cbf2f1b7ec5d1f577341e36cb4ba628c179c49c | 090ea950fb8c2a22ad7a6aac58df3ac5153d1ffc | /mooclet_engine/data_exchange/migrations/0001_initial.py | acafb0453282da836496e6f44dab13d613ed3f9a | [
"MIT"
] | permissive | pretendWhale/mooclet-engine | b2c2453d15274557835b4010bec03084395e0725 | 5dd38970d94aaf636cd15eddb966239a925b2be0 | refs/heads/master | 2023-08-03T12:21:39.190628 | 2023-07-28T12:48:31 | 2023-07-28T12:48:31 | 156,955,621 | 6 | 4 | MIT | 2023-07-28T12:48:33 | 2018-11-10T06:47:44 | Python | UTF-8 | Python | false | false | 1,801 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-06-01 08:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"sam.maldonado@cognitivescience.co"
] | sam.maldonado@cognitivescience.co |
0e0c0655d2c1df2ca5788835d9c5f18b23b60b9b | 06f9244f659b93a5af4d500bc02d05ff6a203025 | /ML DATA/genetic.py | 4a68be2a3ba88eef7a3eff9d270b366814e75322 | [] | no_license | shubhamk0027/covid-website | 656b2a4ee1a0b6d46327b7ddb0c76e34bd33da01 | 147cb435be607be6dd3d1adf15513dd12800062a | refs/heads/master | 2022-12-18T14:19:07.127933 | 2020-08-03T12:45:05 | 2020-08-03T12:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,999 | py | import random
# Number of individuals in each generation
POPULATION_SIZE = 100
# Valid genes
GENES = '''abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890, .-;:_!"#%&/()=?@${[]}'''
# Target string to be generated
TARGET = "Ritwik Tiwari"
class Individual(object):
'''
Class represe... | [
"ritwiktiwari24@gmail.com"
] | ritwiktiwari24@gmail.com |
2c04493cb273d512782685740ac79e2cbd5f69c8 | 1168714f6e900a8011473f9b8facb315ca74e833 | /URI/Beginner/2670_maquina-de-cafe.py | f284b94e2be7dfd4370aa28ff1817783ce4fc6e5 | [] | no_license | thomazthz/programming-challenges | d60fc6a7cf0008cfcd06cb5ddbb86fa6b0d1ade1 | 7767431a67b8ebf01a9539087484479739ac1368 | refs/heads/master | 2023-01-23T08:46:18.553139 | 2023-01-08T23:25:07 | 2023-01-08T23:25:07 | 38,544,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # -*- coding: utf-8 -*-
# Maratona de Programção da SBC, ACM ICPC 2017
# https://www.urionlinejudge.com.br/judge/pt/problems/view/2670
a1 = int(input())
a2 = int(input())
a3 = int(input())
print(min((a2 * 2 + a3 * 4, a1 * 2 + a3 * 2, a1 * 4 + a2 * 2)))
| [
"thomazthz0@gmail.com"
] | thomazthz0@gmail.com |
3762b2ddd3b499501b422e888c874dcaba0a1833 | 2f816ccb6eb76a75d96a59b2d48309ea9789e815 | /main.py | d228cb48b829baa851d62c2eaa4354289decfd61 | [] | no_license | superman-wrdh/tornado_rest_api | a6102509726d9da3b03909a32ec2e45b34ee414a | 327630763c1dfb2db6435816dfac843d405b10ff | refs/heads/master | 2022-04-11T04:49:17.383870 | 2020-04-11T13:23:45 | 2020-04-11T13:23:45 | 254,538,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import logging
import tornado.ioloop
import tornado.web
from lib.rest_handler import RestHandler
from customer_handers import UserLoginHandler
from customer_handers import UserAuthDemoHandler
class MainHandler(RestHandler):
def get(self):
self.write("Hello, world")
def make_app():
return tornado.web... | [
"13419655360@163.com"
] | 13419655360@163.com |
08bded91bfa4cec0dbe34fd48500b86cb9f2aa64 | 4a4d18191d1c0aaaa831310a40fe6b4b8ab05ab0 | /atri_core.py | 76f61958b50b1f0c050f38c752830db27782505c | [] | no_license | theodorehreuter/Portfolio | 5a80782ddff0aa0ab7e94c329bddbc2c8c241863 | 87f62dfd29433a8d11d1a20f2fe32f1115c8fc66 | refs/heads/master | 2020-06-28T01:54:43.206992 | 2019-09-14T16:41:59 | 2019-09-14T16:41:59 | 200,112,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,337 | py | # This script is written by Theodore Reuter, Geospatial Fellow working at the USDOT BTS OSAV OST on the port performance project. This script is designed to
# take csv inputs of GPS points and run them through python geospatial packages and scripts to produce truck turn times. Turn time is defined as the amount of ... | [
"noreply@github.com"
] | theodorehreuter.noreply@github.com |
fbd7b63e0bea8d2f1a7fe3025d35f131a38d6a03 | cc8117a23ddd95731a6ddf402586e6187a9ad2f0 | /mars/test.py | 448e0af7988a05f154860e73ba28a83c21eac59e | [] | no_license | 78Moonlight78/sqlalchemy | ae482702286b6879fd3ba28cdf26490c443fe4ae | 1a4f452d2ab3ac478dc609f2430ba6183aad1be6 | refs/heads/main | 2023-03-29T23:33:55.300309 | 2021-04-05T09:23:36 | 2021-04-05T09:23:36 | 354,778,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from requests import get
print(get('http://localhost:5000/api/jobs').json())
print(get('http://localhost:5000/api/jobs/2').json())
print(get('http://localhost:5000/api/jobs/999').json())
print(get('http://localhost:5000/api/jobs/pyataya').json()) | [
"noreply@github.com"
] | 78Moonlight78.noreply@github.com |
08ef7d7366442405ed1825291e85e0724e926c79 | 2374059f8366c2fa2930965f814aa21881cb43ac | /my_test.py | 8422dc0d5511ab0dc5daddf47a9b1b8e741ce1a7 | [
"Apache-2.0"
] | permissive | Athenian-ComputerScience-Fall2020/greatest-common-factor-21lsparks | 668cd6931c57e87441580cf2173e45b0f3d53f3d | e5a10375b8a82c3a82cdfe04bf3a21c9a17f6fc2 | refs/heads/master | 2022-12-22T22:45:23.695317 | 2020-09-24T22:41:26 | 2020-09-24T22:41:26 | 295,586,748 | 0 | 0 | Apache-2.0 | 2020-09-15T01:58:11 | 2020-09-15T01:58:02 | Python | UTF-8 | Python | false | false | 146 | py | from my_code import find_gcf
def test_find_gcf():
assert 5 == find_gcf(10,5)
assert 3 == find_gcf(6,9)
assert 6 == find_gcf(12, 66)
| [
"51799170+maleich@users.noreply.github.com"
] | 51799170+maleich@users.noreply.github.com |
ce66b53d7285dac6e176d5821653f51e284ddfd2 | b8ff486144e6253400dc7696b4f0271a0c53e6da | /Predavanje-09/nikolakblog/urls.py | 4c02537589c347c4fbb46f85ce4c2b7a5922a15e | [] | no_license | Mirko998/Django-kurs | 2c2e62d7e7355b06580e6d90e9e1a1132aea82b2 | 1188b4604c9a1256288891ab32d136a0505b5e12 | refs/heads/master | 2023-03-03T03:00:55.995779 | 2021-02-10T23:28:13 | 2021-02-10T23:28:13 | 336,784,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | """nikolakblog 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-ba... | [
"nk.mirko998@gmail.com"
] | nk.mirko998@gmail.com |
33195cbe3b5aa41ae324922745c8b99c3ebb848a | 6ad0663f90f06c20a062b38a2d027f136a6d3289 | /lunwen/OPEREVENT/clusteranalysis/jiangwei_1.py | aaa9e58e933c8a08f96e81292002613113262ce7 | [] | no_license | highflykxf/pycharm_projects | 697869b346efe3440a16f1c02a4546b9738d4f43 | 5d3ada7f37ca7eddf275d9fb29755f1b82f2bfa9 | refs/heads/master | 2020-06-16T22:33:19.571788 | 2018-03-03T07:04:56 | 2018-03-03T07:04:56 | 75,062,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,954 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import math
import pickle
import os
import re
import string
import sys
import csv
import shutil
import matplotlib.pyplot as plt
import nltk
import pandas as pd
from nltk.stem.snowball import SnowballStemmer
from nltk.tag import pos_tag
from ... | [
"xiangfei0919@gmail.com"
] | xiangfei0919@gmail.com |
373a934fbcfd4c0494e43a836771b89136d7cfbf | 0bc6e9a02c9cf2c11381f214345e8517583df26e | /KDL/arm_navigation_msgs/src/arm_navigation_msgs/srv/__init__.py | 379f031ebce4fc138f73e8bdbcb8175567e17181 | [] | no_license | brennand/ics_bioloid_fuerte | 811468decf9de950e624716950df25ed6194fdc4 | 62565d6e91f8747b6ab5e61b322bf008826d199c | refs/heads/master | 2021-01-10T19:41:28.538557 | 2013-05-27T13:03:55 | 2013-05-27T13:03:55 | 4,114,733 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from _GetMotionPlan import *
from _FilterJointTrajectoryWithConstraints import *
from _GetStateValidity import *
from _GetJointTrajectoryValidity import *
from _FilterJointTrajectory import *
from _GetRobotTrajectoryValidity import *
from _GetPlanningScene import *
from _GetCollisionObjects import *
from _SetPlanningSc... | [
"bren@tum.de"
] | bren@tum.de |
f3b81faf8b198c973e769422e4d2fc0286aa3f00 | 31706a986caeb915a397370a2ed58703fe60846c | /enghack/a_basic_concepts/d_printing_variables.py | 4959b30ec93dc88f995e3ca37a83967602f5494b | [] | no_license | ricetech/enghack-2021-python-workshop | b4f6d38c17f4c4b7e2c63ca2ec00513e7150725c | b28c1283d6929d04a4a4b8ceb3394d27fe9a9430 | refs/heads/main | 2023-06-01T14:35:21.254008 | 2021-06-26T00:37:51 | 2021-06-26T00:37:51 | 380,026,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # EngHack 2021 - Intro to Python
# Example code
# Written by Eric Chen (@the_ricetech)
some_str = "hello world"
some_num = 26.5
# Using commas (automatic spaces & type casting)
print(some_str, some_num, (2 + 2))
# Using plus signs (no spaces or type casting)
print(some_str + str(some_num) + str(2 + 2))
# Add spaces ... | [
"39015447+ricetech@users.noreply.github.com"
] | 39015447+ricetech@users.noreply.github.com |
666bf1d20cd7fa6c7aca37814b0f0c25d89ed126 | 5ff71d4fb2b9a2d69a1993d0ef14ed50b131f7b9 | /xyz_histeq.py | c525e77769062fdb7a4c8a8ce3b90807a5241a05 | [] | no_license | SuvanshKumar/image-equalization | f950c3aa421ad34d0bc7ab391c8d7352340de9f2 | 1a1198f27ca818b656014beb26a0fb77f1822ebb | refs/heads/master | 2021-05-26T22:57:52.846671 | 2020-04-08T19:39:10 | 2020-04-08T19:39:10 | 254,182,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | import cv2
import numpy as np
import sys
# read arguments
if(len(sys.argv) != 7) :
print(sys.argv[0], ": takes 6 arguments. Not ", len(sys.argv)-1)
print("Expecting arguments: w1 h1 w2 h2 ImageIn ImageOut.")
print("Example:", sys.argv[0], " 0.2 0.1 0.8 0.5 fruits.jpg out.png")
sys.exit()
w1 = float(sy... | [
"suvansh.kumar07@gmail.com"
] | suvansh.kumar07@gmail.com |
cf29657646e6dc10ca79da4d4d8f025b52a0bdd1 | 7416056e689dfc94391c4b108652cea02d59a31a | /reservation/migrations/0009_auto_20200128_0154.py | ee59b4e4dcefa53f8ef69cf34200507a3c15f18a | [] | no_license | zshanabek/house-booking-app | 0ea29fb8113671eb164ead8d335a986b850898a1 | cca5225f40b8a055a2db78810258325f2ba7ded1 | refs/heads/master | 2022-11-28T00:20:12.789534 | 2020-08-14T09:16:40 | 2020-08-14T09:16:40 | 225,791,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Generated by Django 2.2.7 on 2020-01-27 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservation', '0008_auto_20200125_2102'),
]
operations = [
migrations.AlterField(
model_name='reservation',
name='ch... | [
"zshanabek@gmail.com"
] | zshanabek@gmail.com |
a1a470654e0d19918061dc266e6ecf80c598e4c2 | a4f7a811dbb3cf5bbd298430d335a66421993ce9 | /2_test_hw/test_api_brewery_db.py | b058c16823f85c783b833cea70fcbb1099bd1566 | [] | no_license | bochanikc/auto-qa-course | 5b41a3f56f84f98d34d3008b04e7e328fddc3f28 | b6d3c65314debea2b2ca02a37116b1ab092c960f | refs/heads/master | 2022-12-12T03:08:29.933386 | 2022-10-10T18:57:32 | 2022-10-10T18:57:32 | 222,482,608 | 0 | 0 | null | 2021-06-02T00:44:57 | 2019-11-18T15:33:56 | Python | UTF-8 | Python | false | false | 1,258 | py | import random
import pytest
import pprint
@pytest.mark.parametrize('brewery_type, brewery_type_in_response', [('micro', 'micro'), ('brewpub', 'brewpub')])
def test_api_by_brewery_request(api_brewery, brewery_type, brewery_type_in_response):
res = api_brewery.get(
path="/breweries",
params={'by_typ... | [
"nikitafrolovbnc@gmail.com"
] | nikitafrolovbnc@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.