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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25fa020e4125bd003f249e28f46273ee24735c42 | 59db1b21ccf1399b87e6a85f4c9e1122f1358d5f | /config.py | 4a9d832a9a4fa7f59b008e31944a1f17b488cea4 | [
"MIT"
] | permissive | nicholas-oduor/Pitches | bff97bdc470443be1520e0e8ce9145c2739bee89 | c85d02274085b0cff8a631e7328ba76a6f6060d1 | refs/heads/master | 2023-03-19T16:34:20.264716 | 2021-03-02T06:52:53 | 2021-03-02T06:52:53 | 342,582,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | import os
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://moringaaccessaccess:Access@localhost/pitches'
SQLALCHEMY_TRACK_MODIFICATIONS = False
UPLOADED_PHOTOS_DEST ='app/static/photos'
# email configurations
MAIL_SERVER = 'smtp.googlema... | [
"oduor5742@gmail.com"
] | oduor5742@gmail.com |
fc4ee268dd12250989e2ef7da583d9b11063e8d7 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano3249.py | 502f170e217ed9f5f27e6f70e1ca274e34def381 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
60e2b53b3aadeba4f702b9b196dfc641f99ac80e | 390e4ed75f9c1311541a027f2e4f665a92a6497b | /main.py | e9e0be9acc48b5d5c0bbc46a911991708c06859c | [
"MIT"
] | permissive | AlmirPaulo/songTabs_bot | f2fafd91aac1215e80307d4f73f7b14c992d9840 | 7edb743e5e420d7f1eb03cd88a4716cd9629ae96 | refs/heads/main | 2023-03-11T03:52:19.971403 | 2021-02-27T21:25:57 | 2021-02-27T21:25:57 | 331,465,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | # Software: songTabs_bot
# Description: A Telegram bot that give guitar tabs to songs.
# Info Page: https://github.com/AlmirPaulo/songTabs_bot
# Author: Almir Paulo
# Github: https://github.com/AlmirPaulo/
# Website: https://almirpaulo.github.io/
# Email: ap.freelas@gmail.com
from telegram.ext import (CallbackContex... | [
"ap.freelas@gmail.com"
] | ap.freelas@gmail.com |
6f03172d6c29f39f9818691edaf721fb8837e220 | 4feaa1623cab4383e539442690ff68859452480d | /venv/lib/python3.6/locale.py | 544823210631e1db36a85335522be0659ce0618f | [] | no_license | brenda151295/pattern_recognition | 0cc49176e7a1493e12e7b18c8da1d1e77e82899c | e90690312e66704655dcd9c787757a3387ee4e79 | refs/heads/master | 2020-08-11T06:54:45.204755 | 2020-02-21T18:21:01 | 2020-02-21T18:21:01 | 214,512,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | /home/ademir/condaVenv/lib/python3.6/locale.py | [
"brenda151295@gmail.com"
] | brenda151295@gmail.com |
862acd6512fcd275ad31407a805f4042dc0f7f1a | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_3055.py | d3ddd7faf2f926afa7c10c6d1e6b93350df9ca44 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,838 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
702760dacc77f2e65aaed171a0998dfd7602a7b9 | 3cf21d46cc8213614f5edfe4ebb09df112e5bf44 | /tools/asset_aggregator/name_check.py | 788a6e9eadc9bae3dc73c59a19e06448f19fd6e7 | [
"BSD-3-Clause"
] | permissive | toro09/rotki | abbf06c63bf0191b8a381bad05534bf8541cf212 | 014e7e11521b81c89b5cd2b4082d197da26684ee | refs/heads/master | 2022-12-01T19:09:08.409018 | 2020-08-11T19:34:54 | 2020-08-11T19:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,883 | py | import sys
from typing import Any, Dict
from asset_aggregator.utils import choose_multiple
# For assets we support but no API has names for. We manually input the names then.
MANUALLY_CHECKED_NAMES = {
'ADADOWN': 'Binance leveraged token ADADOWN',
'ADAUP': 'Binance leveraged token ADAUP',
'BTCDOWN': 'Bina... | [
"lefteris@refu.co"
] | lefteris@refu.co |
a48a57e6ab08c5febbe9e00f996361d8d49911ae | 8543967dee7ba159ada7c1a4ab85281113421029 | /venv/Scripts/autopep8-script.py | 03359bb881ecdf5a4bda3fc8bf9a0497303bfd5d | [] | no_license | dcarpent19/dummy | 5929ece6698f03212116ab73f4aae0540b994a56 | 5e72cf65c2aee328bf271f8f9a13184dd3841eb7 | refs/heads/master | 2022-12-08T01:54:39.630886 | 2020-08-24T18:46:22 | 2020-08-24T18:46:22 | 284,261,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | #!c:\Users\dxc004\Projects\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.5.4','console_scripts','autopep8'
__requires__ = 'autopep8==1.5.4'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"dcarpent@amfam.com"
] | dcarpent@amfam.com |
12a1f22f173ead5bc87c8c5dd9e34617c3d8c272 | 4ec311ae2a7d809c7eeaaaa67f8eec152a92b542 | /ManufactureDeepLearning/over-fitting/Dropout/about_dropout.py | d544bbef1d22e9330cd6b48bf80da49480b9a677 | [] | no_license | TakanoriHasebe/DeepLearning | 71baf7465f31a7539ad0ea9b313146c891cd8376 | 682006e77b9b90f034b41b65724e52266e7bc193 | refs/heads/master | 2021-01-20T00:20:07.853541 | 2017-03-30T05:10:24 | 2017-03-30T05:10:24 | 78,616,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 15 11:39:16 2017
@author: Takanori
"""
"""
dropoutについてのプログラム
"""
import numpy as np
# Dropoutについてのプログラム
class Dropout:
def __init__(self, dropout_ratio=0.5):
self.dropout_ratio = dropout_ratio
self.mask = None
... | [
"jimmyflyingstrat@gmail.com"
] | jimmyflyingstrat@gmail.com |
0b7d6236b66a636e6778572bde8454fb0fa408ca | 242086b8c6a39cbc7af3bd7f2fd9b78a66567024 | /python/PP4E-Examples-1.4/Examples/PP4E/Dstruct/Classics/permcomb.py | f6e244e89732645613fef830391f1e2f9dd60db6 | [] | no_license | chuzui/algorithm | 7537d0aa051ac4cbe9f6a7ca9a3037204803a650 | c3006b24c4896c1242d3ceab43ace995c94f10c8 | refs/heads/master | 2021-01-10T13:05:30.902020 | 2015-09-27T14:39:02 | 2015-09-27T14:39:02 | 8,404,397 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | "permutation-type operations for sequences"
def permute(list):
if not list: # shuffle any sequence
return [list] # empty sequence
else:
res = []
for i in range(len(list)):
rest = list[:i] + list[i+1:] ... | [
"zui"
] | zui |
4a2e7fe3a9ce7aac84565ff460a6d8136cc67b11 | 01419d9a41dcf6c7cd02963615f1612fe170ebd9 | /chapter_9/single_layer_chain.py | 8e5948be424c8d30f96a72ddab92176c6b7d8038 | [] | no_license | Graham-CO/ai_ml_python | 0daa42270e34fd6b597d4ce20bbfcc7bbd08fa3f | c75b8e471107919872b16c86758928f51538aebe | refs/heads/master | 2023-07-14T00:26:36.106803 | 2021-08-28T18:36:57 | 2021-08-28T18:36:57 | 377,682,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import numpy as np
# Passed-in gradient from the next layer
# for the purpose of this example we're going to use
# a vector of 1s
dvalues = np.array([[1., 1., 1.]])
# We have 3 sets of weights - one for each neuron
# we have 4 inputs, thus 4 weights
# recall that we keep weights transposed
weights = np.array([[0.2, 0... | [
"grwi2594@colorado.edu"
] | grwi2594@colorado.edu |
6c4de933b6029c46a47a278129e86bb8f2ddafcd | 0d1c57fd55660829b83ab0f280dfb687046765ec | /BowlingGame.py | e72ab8bf5d173088cdd2202de3f9e607704f3004 | [] | no_license | remimarenco/bowling_tdd | dea8310d8592096708fc48f3f02f3f6c0d112631 | 2f6f540f090fbda06c0c163ea92a17da1aaafd9b | refs/heads/master | 2021-03-12T19:22:56.491643 | 2014-11-29T09:24:39 | 2014-11-29T09:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | class BowlingGame():
"""docstring for BowlingGame"""
_score = 0
_pending_strikes = 0
first_roll = True
score_first_roll = 0
def roll(self, pins):
if pins == 10:
self._pending_strikes += 1
self.first_roll = True
elif self.first_roll is False:
... | [
"remi.marenco@gmail.com"
] | remi.marenco@gmail.com |
6b09f9aba1293dfc55ba24eb95056373cfd7cfb5 | f4d98cc3fa4959d5ab12362629e64e5db5363345 | /image/read.py | a2d5cedb99f75aa34d8d58bcb0366c2fc2fbe74b | [] | no_license | dongfengjue/python | 675ed34398f56521f3b1612e20c9e8ab3729ba19 | c73511bb81388f9a61847b97d2dd7e6f1f1a6b5b | refs/heads/master | 2021-06-12T20:12:29.697376 | 2019-10-14T09:49:27 | 2019-10-14T09:49:27 | 115,174,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | from PIL import Image
import pytesseract
# brew install tesseract
# 如中文需下载chi_sim.traineddata,将下载好的语言包放到/usr/local/Cellar/tesseract/3.05.01/share/tessdata/路径下。
# https://pan.baidu.com/s/1J0HNoVhX8WexS_5r0k2jDw 密码: ywc3 语言包
picPath = '/Users/chenbing/Documents/file/word.jpg'
Image = Image.open(picPath) # 打开图片
text =... | [
"1009529808@qq.com"
] | 1009529808@qq.com |
90e384af21bd08a3b265c6e8e265ecec84c75f85 | 63619a0a59b5c4f47978519a4ef22484e62e69cc | /project-euler/problem66.py | aec3313fd84809da7d2e1b7a32a131457fa013db | [] | no_license | nidi3/project-euler | dad3998b0ac90714e7c06452bf90c4ebf59531f4 | bf87c6f75f30dc59405a239a8c5e9ef4d9a0dc24 | refs/heads/master | 2021-01-18T14:19:42.407815 | 2015-03-08T22:26:43 | 2015-03-08T22:26:43 | 30,136,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | from cont_frac import cont_frac_of_root, eval_cont_frac, coeff_from_periodic
q = set()
for x in xrange(1, 100000): q.add(x * x)
def min_solution(d):
r = cont_frac_of_root(d)
n = 0
while True:
p = eval_cont_frac(n, coeff_from_periodic(r))
if p[0] * p[0] - d * p[1] * p[1] == 1:
... | [
"ghuder5@gmx.ch"
] | ghuder5@gmx.ch |
0b082fb7f73882c9ca7854907e24acb96d4303f5 | 4bac91673b47c485a0104e8556cc2098c4cfe238 | /web_dynamic/100-hbnb.py | 6500c6cc895f22ebc0352156f4500ad5518b4e6c | [
"LicenseRef-scancode-public-domain"
] | permissive | huggins9000211/AirBnB_clone_v4 | 08f5cee1e07a8310a03c062fb80c314a7c62ad22 | b77f0e9548eba3b84efc2be9f8f853c578282524 | refs/heads/master | 2022-07-15T09:27:23.562937 | 2020-05-19T02:43:18 | 2020-05-19T02:43:18 | 264,271,959 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | #!/usr/bin/python3
""" Starts a Flash Web Application """
from models import storage
import uuid
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.place import Place
from os import environ
from flask import Flask, render_template
app = Flask(__name__)
# app.jinja... | [
"ezra.nobrega@outlook.com"
] | ezra.nobrega@outlook.com |
39695f540bade7e05ff8fa960c71d068109b1dda | 2dd0bf6e8542b560c2e3567f8793b561cb0678b0 | /code/src/main/python/misconceptions/syntactics/grammar/R.py | 4c300cb4f55146b42613854ab34bcb255fe58cbf | [
"Unlicense"
] | permissive | Eduardo95/COSAL | 021f01cfa86e656c3fe320159c8d25ca5b6f311d | 4eb95d286288aa25a1a90db40cb1998dad048e1b | refs/heads/master | 2023-06-17T08:19:37.925879 | 2021-07-12T16:24:06 | 2021-07-12T16:24:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py | import sys
import os
sys.path.append(os.path.abspath("."))
sys.dont_write_bytecode = True
__author__ = "COSAL"
from lark import Lark
R_GRAMMAR = """
start: value (ASSIGNMENT_OPERATOR value)?
// expr: value ( indexer | value | attribute)+
binary_expr: value BINARY_OPERATOR value
unary_expr: UNARY_OPERATOR va... | [
"george.meg91@gmail.com"
] | george.meg91@gmail.com |
eb36e1c51d25f8e46e38f1c101348621540c6ba2 | cb58aa97d748b196e20fdec00e1c50afa0bbdbe0 | /skAffinityPropagation.py | d5a487fd730ae29e10162c1b320e444209be92a0 | [] | no_license | FASLADODO/SKClustering | 06219c18f9b9eca7545293d03d1cd2d650352b0d | 89e629b528250c34c4a146f33fc84690b6e4c4bf | refs/heads/master | 2022-04-10T12:56:09.788650 | 2020-02-18T09:59:23 | 2020-02-18T09:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | from EvalClus import evaluate
import pandas as pd
import csv
'''
This file runs different configurations of AffinityPropagation
Each parameter different values are defined as paramerter name and “_r” at the end
All results are written to csv file defined in the code , csv_file = "./output/AffinityPropagation_eval_ou... | [
"abdelrhman.d@aucegypt.edu"
] | abdelrhman.d@aucegypt.edu |
ac5004c1099a74ceeec349847c63c54c17d4bbbb | ec0c7ca71135e9004ab3cdc76b703a2284863a1b | /fabfile/python/__init__.py | def88f12d553fc31866957d66c58f429ccc26b11 | [
"MIT"
] | permissive | stepan-perlov/jrs | 4fcf5921a4301f9d6d748fc40193a678bf143008 | c4db322f433dd5da35d5a13f6cc18483e1df8fc9 | refs/heads/master | 2021-01-17T07:45:22.735113 | 2016-07-07T11:17:02 | 2016-07-07T13:41:56 | 41,475,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | from fabric.api import task
from fabric.api import local, lcd
@task
def pip():
with lcd("python"):
local("rm -rf dist jrs.egg-info")
local("./setup.py sdist")
local("twine upload dist/{}".format(local("ls dist", capture=True).strip()))
| [
"stepanperlov@gmail.com"
] | stepanperlov@gmail.com |
e1fbce2504b9a37a750d423f2a7e28595b4e259b | 4099ae3d8e367c8b47e284245b3aa2bd8621e95e | /nssf_project/urls.py | c9ca15e76ef0d6581605a147b7b6ea02d6638ba3 | [] | no_license | kenedyakn/ns-project | b1f64f6c05e30a66575dfa4a68aae7b729cb80f9 | a904a4eee40f05793b925cb7198514a4a4e3278d | refs/heads/master | 2020-03-20T23:37:38.250807 | 2018-06-19T08:29:41 | 2018-06-19T08:29:41 | 137,855,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | """nssf_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-... | [
"kenedyakenaivan@gmail.com"
] | kenedyakenaivan@gmail.com |
2718c3441138bf66c7e26a309ed95597a6632432 | 19375a18719e44eee7c596e72ef8915d3fcbff92 | /day07_spider/06_qq.py | e29058c5d79b1d50650db9c34bab04e364ccb3bd | [] | no_license | J-shan0903/AID1912 | 6c617fa26751c31ff05a63050a320122e3ca044e | 0797f3d8ef0e96b8eb6908dffbec8193c9614973 | refs/heads/master | 2021-03-23T12:21:32.480026 | 2020-05-23T08:36:21 | 2020-05-23T08:36:21 | 247,452,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from selenium import webdriver
driver = webdriver.Chrome()
driver.get(url='https://mail.qq.com/')
driver.switch_to.frame('login_frame')
driver.find_element_by_id('u').send_keys('369618935@qq.com')
driver.find_element_by_id('p').send_keys('353597jss')
driver.find_elements_by_class_name('btn').click() | [
"369618935@qq.com"
] | 369618935@qq.com |
d11c09fad7adf4123d50761f6e834de4193b6c99 | 8956535434a4b7496f3b311df82892b719dce114 | /source/python/neuropod/backends/python/utils.py | 63092172d06e72647119f299c7e8ae97668ab940 | [
"Apache-2.0"
] | permissive | uber/neuropod | 5b5d4fc95b09f74c7d29f8e3a5246af6c7d0cc90 | fde79d98f975124a21c6221a79377f0b3a034c5f | refs/heads/master | 2023-09-04T04:35:35.765879 | 2022-07-15T19:49:18 | 2022-07-15T19:49:18 | 167,240,425 | 924 | 80 | Apache-2.0 | 2023-06-24T15:15:55 | 2019-01-23T19:22:22 | C++ | UTF-8 | Python | false | false | 2,385 | py | # Copyright (c) 2022 The Neuropod Authors
#
# 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... | [
"viv.panyam@gmail.com"
] | viv.panyam@gmail.com |
81e485b35660f099130b86190a84cb18a680c9ee | 17f0c21cd18937f6b3558bde770c4100a3596a13 | /WeBlog/app/email.py | 036504485a977c9f572c856feb851c5505bb51ec | [
"MIT"
] | permissive | yinzhe1989/web | 5a6843dd10149b613f5ebe9532b123bbd666d46b | 3af7fbd82af8b4d2737672779d5742825b94a6fe | refs/heads/master | 2022-12-17T09:04:06.363085 | 2019-06-13T07:29:26 | 2019-06-13T07:29:26 | 191,696,492 | 0 | 0 | MIT | 2022-12-08T03:02:49 | 2019-06-13T05:29:47 | Python | UTF-8 | Python | false | false | 669 | py | from threading import Thread
from flask import current_app, render_template
from flask_mail import Message
from . import mail
def send_async_email(app, msg):
with app.app_context():
mail.send(msg)
def send_email(to, subject, template, **kwargs):
app = current_app._get_current_object()
msg = Mess... | [
"shihaojie1219@gmail.com"
] | shihaojie1219@gmail.com |
1807d83edbe77891c745b4e78518146dd97465bb | 77ced9c9a954abe4cdaf8c29f5ce2b087ce9fff1 | /pymicroconnectors/config.py | 081c938059cd0cb55726d38ca9fdda3564ff37ae | [
"MIT"
] | permissive | ddelizia/pymicroconnectors | 4c074bd50224605971ff609b6279abd655e16e44 | e41e3c928d47f069a9b0d342e8033ee7b9e3a0a5 | refs/heads/master | 2021-07-16T06:54:44.884332 | 2018-09-24T19:53:19 | 2018-09-24T19:53:19 | 150,156,933 | 0 | 0 | MIT | 2020-05-20T17:01:03 | 2018-09-24T19:27:08 | Python | UTF-8 | Python | false | false | 1,121 | py | """
Created by ddelizia
Config utility to provide easy access to the app configuration
"""
import logging
import os
from functools import lru_cache
from figgypy import Config as Figgypy
def _configure_logger():
logger_config = get_config().get('logger')
if logger_config is not None:
for key in logg... | [
"danilo.delizia@thinkwrap.com"
] | danilo.delizia@thinkwrap.com |
e9fefb58e4632df56be027a71c291cf45956e7d8 | 6fa463d51cee7109bddb51723f1b7997ba61bc9f | /User_API/settings.py | 7a07464e962545cb97f4d5a781d6b85c51be7766 | [] | no_license | Priya5686/Intern_Update | 565bd601bfb2580450ac46a6970d1bb324f3a94f | 613c79eeb5d012362c6ebf7b935fec3c0dbf34a1 | refs/heads/master | 2021-01-13T22:15:30.388151 | 2020-02-18T17:01:37 | 2020-02-18T17:01:37 | 242,512,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | """
Django settings for User_API project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"priyaj5686@gmail.com"
] | priyaj5686@gmail.com |
5c4ac087fbb113c430411670b9f46dfde0b46102 | 41c57af19f3f2267cee27589c92e360172c463ca | /wmpl/Utils/Plotting.py | 62e126c8536304d91d4deeb9d65b12842f42f909 | [
"MIT"
] | permissive | wmpg/WesternMeteorPyLib | 278f6b005902bb94c38ba9cb0ef50290c51e9164 | fe511f264c4354a84b4a1c60f257883473e3855d | refs/heads/master | 2023-09-01T18:18:38.638990 | 2023-08-30T18:13:51 | 2023-08-30T18:13:51 | 178,280,764 | 29 | 13 | MIT | 2023-07-26T17:53:13 | 2019-03-28T20:53:45 | Python | UTF-8 | Python | false | false | 4,063 | py | """ Functions for plotting purposes. """
from __future__ import absolute_import, print_function, division
import os
import numpy as np
from matplotlib.patches import FancyArrowPatch
from mpl_toolkits.mplot3d import proj3d
from wmpl.Config import config
from wmpl.Utils.OSTools import mkdirP
def saveImage(file_pa... | [
"denis.vida@gmail.com"
] | denis.vida@gmail.com |
283b168ab1f7c8cdb131ec1007e511759db810e2 | 953a1f7de146f1eb085d6d8ebf4296d143b023c2 | /check_pred.py | c98e307e826512144f1b65b7bd833f76e7fe53ac | [] | no_license | tomergill/DL_ass3 | 7d760794f378046359b12f4b9f967cd79f708d1f | df2dea464335ebd36ffbcb155adcd919c7acee66 | refs/heads/master | 2021-05-06T05:43:34.874514 | 2017-12-31T19:23:57 | 2017-12-31T19:23:57 | 115,134,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | import re
def check(good_pattern, words_and_tags):
good = 0.0
wrong = []
for i, (word, tag) in enumerate(words_and_tags):
real_tag = "good" if re.match(good_pattern, word) is not None else "bad"
if real_tag == tag:
good += 1
else:
wrong.append((i, word, tag)... | [
"coolran103@gmail.com"
] | coolran103@gmail.com |
92534bd9869286a16f3bd69ad7549c0a897bb059 | ba7f977669f8fbfe0ad1b7e3d5d9a778753ef267 | /socialbus-portuguese-classifier/sdb.py | d77d69de9ee66d30ce81dbde567c18cf70f9e4fc | [
"MIT"
] | permissive | LIAAD/socialbus | b3c5f52527fec6365ca93d306f9250a6cc2deffd | 942de3195f40732e8aa985c01f3733f9bc7eb39d | refs/heads/master | 2021-08-14T22:27:04.861181 | 2019-10-21T09:51:48 | 2019-10-21T09:51:48 | 11,526,450 | 4 | 1 | MIT | 2021-08-09T20:49:37 | 2013-07-19T11:25:15 | CSS | UTF-8 | Python | false | false | 1,139 | py | from pymongo import Connection
server = "192.168.102.195"
database = "socialecho_v05"
connection = Connection(server)
db = connection[database]
def get_user_info(user_id):
"Get all information about the user."
return db["twitter"].find_one({"user.id": user_id})["user"]
def get_user_tweets(user_id, limit):
"Ge... | [
"me@arianpasquali.com"
] | me@arianpasquali.com |
cb3d416ffdf505c74b755e6ba646936f2cf5c105 | 83e2041d75416c3ff1f3480c9236ee6ac080b744 | /__init__.py | 5624871ade4ea6c6385ca560312d8a9b21ac50cd | [] | no_license | tilipatov/pyFtext | aec6cc4c47de49ebd4362d93cab092f40e1f3dbd | b2d9bcfab087906007f75094f37d6e06f07de87d | refs/heads/master | 2021-08-31T21:59:36.132841 | 2017-12-23T02:59:03 | 2017-12-23T02:59:03 | 115,164,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | #!/usr/bin/ python
# coding:utf8
| [
"noreply@github.com"
] | tilipatov.noreply@github.com |
38d2bcac5c41dd566830ab131ec56cc759cf07c8 | fe0d9ce17e4c73cba10e3a300822e246ec63a186 | /deepsight/service/common/fasterRCNN/utils/view_bndbox.py | b1e999824b08d1f03930fca8d5763bf5f0d25dc7 | [
"MIT"
] | permissive | vitomuzi/deepsight2.0-ai | b1738f76cdbefc38a3c432e0c09d8b4d35259599 | 1aaee04eeecf5610b7e1ef5b9239e68a4ba5e31b | refs/heads/master | 2021-05-24T17:05:36.923173 | 2020-04-07T02:47:24 | 2020-04-07T02:47:24 | 253,669,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,183 | py | import numpy as np
import os
import PIL
from PIL import ImageDraw
import xml.etree.ElementTree as ET
import general as ut
# view bounding box in test images.
def view_bndboxes_2d(img_path, ant_path, out_path):
img = PIL.Image.open(img_path)
boxes = _load_annt_file(ant_path)
if boxes is None:
img.save(out_path)
... | [
"lisenlin@deepsight.top"
] | lisenlin@deepsight.top |
111e4e3b3e118be47d757ed5f872a5057ef0e42c | 4a307849ed4dded5ce84b0ceb6d2cf56c2e64b89 | /common/servicechain/firewall/verify.py | b43cb7d94e9c935986e1e607a161918f1394dedd | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | lmadhusudhanan/contrail-test | a6316b41dcb836315d25503f1dee511943d7f976 | bd39ff19da06a20bd79af8c25e3cde07375577cf | refs/heads/master | 2022-05-04T20:01:58.960911 | 2018-06-27T17:56:47 | 2018-06-27T17:56:47 | 138,913,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,312 | py | import os
import re
from common.servicechain.verify import VerifySvcChain
from tcutils.util import get_random_cidr
from tcutils.util import get_random_name
from tcutils.util import retry
SVC_TYPE_PROPS = {
'firewall': {'in-network-nat': 'tiny_nat_fw',
'in-network': 'tiny_in_net',
... | [
"lmadhusudhan@juniper.net"
] | lmadhusudhan@juniper.net |
b519ea50dec2f5d1b9ea40a4211cf6fc172aafde | 30aa7375dd22c230fd7f92fe0d0098f1015d910c | /tellers/migrations/0002_customer.py | 9fc41832cc1609e9bc611108991d581b68976f5e | [] | no_license | malep2007/bank_app | 4e413f058f44706eab6b42218c36fc609c5542f9 | f7192359e4daecbcce18b4f33cb096d28e446c0f | refs/heads/master | 2021-08-08T14:21:34.735130 | 2017-11-08T13:57:32 | 2017-11-08T13:57:32 | 109,974,307 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-11-08 12:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tellers', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"malep2007@gmail.com"
] | malep2007@gmail.com |
b87d32e346233f7326e9bb0779f343b06a259219 | 7af87d9750223eb6a04ba0c5cb7e894a1e5bec12 | /example/movies/types.py | 292ef8353764b5352c90d712957035ef063a6e28 | [] | no_license | BonifacioJZ/react-django-graphql | 3fb9cf1376b755102c1453a51e6119981bdc8f54 | d6a91ec4ff2faed85096ec4f16518ff877f7e1ca | refs/heads/master | 2020-07-25T04:26:00.739408 | 2019-09-13T10:47:19 | 2019-09-13T10:47:19 | 208,164,226 | 1 | 0 | null | 2019-12-05T00:22:12 | 2019-09-12T23:39:21 | Python | UTF-8 | Python | false | false | 1,300 | py | #En este archivo van todos los esquemas para GraphQL
import graphene
from graphene_django.types import DjangoObjectType, ObjectType
from .models import Actor, Movie
#Creando un type GraphQl para el modelo actor
class ActorType(DjangoObjectType):
class Meta:
model = Actor
#Creando a GraphQl para el modelo M... | [
"revanjz@gmail.com"
] | revanjz@gmail.com |
0ecd301b4accbd446c44c0bb520f9f5d1f605c38 | 70acf2f67472bab2392a9e288477f2bdfb57c234 | /covidscraper.py | d2c1a3088d982d25de82229345b00cb790628eed | [] | no_license | jesp9/CIT-SP21-Senior-Design-Project | 3312c925bbf39339a63aaf4cd62a61aa1d9180a6 | 89bfe6a9851c6334042c9d1e47b92c8188ad5449 | refs/heads/main | 2023-05-01T08:56:31.306898 | 2021-05-20T18:32:31 | 2021-05-20T18:32:31 | 342,712,946 | 2 | 1 | null | 2021-04-24T08:36:54 | 2021-02-26T22:06:25 | HTML | UTF-8 | Python | false | false | 1,123 | py | import requests
import datetime
from bs4 import BeautifulSoup
def scrapeGlobalCase ():
try:
url = "https://news.google.com/covid19/map?hl=en-US&mid=%2Fm%2F09c7w0&state=7&gl=US&ceid=US%3Aen"
r = requests.get(url)
soup = BeautifulSoup(r.text, 'html.parser')
data = soup.find_all("div",... | [
"rafael.evangelista.53@my.csun.edu"
] | rafael.evangelista.53@my.csun.edu |
e4166169a6ab9bc75fed65d851305632f8c8250e | 41f5d5f602e3e743b2fd8a07712340aec4511089 | /main.py | 90aa444df92de279570ed4c59f4146bcfff46bc4 | [] | no_license | matv3ys/flask-sqlalchemy2-git | 64ae919330303c81fc3a358eb1dac8e7fd084788 | c7f113635df4538ee404934becfe50122538557b | refs/heads/master | 2021-05-20T00:53:14.821873 | 2020-04-01T20:29:50 | 2020-04-01T20:29:50 | 252,115,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,790 | py | from flask import Flask, render_template, redirect
from flask import request, make_response, abort
import datetime
from data import db_session
from data.users import User
from data.jobs import Jobs
from data.departments import Department
from data.news import News
from data.categories import CategoryJob
# импорт нужных... | [
"matv3ys1337@gmail.com"
] | matv3ys1337@gmail.com |
513d6023431a7391dd8d55abbb5fa2999bac7467 | 0be02fc1ba339cfc895e79ac4f51b9e5c685ac79 | /newPrg.py | b1a15c0c87bd4917703a57b983fd1782fb259d4c | [] | no_license | ezzatisawesome/python-practice | 53afc04d7871d6f11e721b41d0bce72d64c9497b | 1255ac842998f3aac21a8273d2a71ab6d0fd2671 | refs/heads/master | 2023-04-09T21:01:53.932381 | 2016-06-18T19:04:46 | 2016-06-18T19:04:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | print("Hello Mr. Man")
input()
| [
"weirdo weirdness"
] | weirdo weirdness |
4222c6f5434e9fda336a3eba3df8cd8a6e4b1bd2 | d8d66a501f0b9b85dc3b070dfa66dc9207a4d56b | /job51/job51/citydata.py | 3a4e15e423ceb96704f1f89f51609bd211f5fe6b | [] | no_license | LinQiH/pachong | 98580f84a6897dae5f67419e1dfa46c5363d4918 | 2c15ea946aa35c23f86a3502ef09fa06c7a2a4a7 | refs/heads/master | 2021-08-06T10:34:02.498747 | 2017-11-05T08:33:22 | 2017-11-05T08:47:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from lxml import etree
def citydata():
with open('city.html','r') as f:
html = etree.HTML(f.read())
data = html.xpath('//em[@data-value]/@data-value')
return data | [
"linqi1024@sina.com"
] | linqi1024@sina.com |
7bbf18b0a122b3cabd88909f27cdac6c4038c0b6 | 8682916e6a7f00c834e8db22379240809d8d433c | /migrations/versions/a55716df6973_.py | 65ef1d87b7fcea7c409857a1d21368e17070401c | [] | no_license | pepereco/investalent | da3b87070674d8b632a16450d57b4558187ab747 | 5ab7cb6f9b1d638542405de57cc47502b5567896 | refs/heads/master | 2023-01-02T16:51:47.992154 | 2020-10-30T15:31:40 | 2020-10-30T15:31:40 | 290,481,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | """empty message
Revision ID: a55716df6973
Revises: bea3268003d6
Create Date: 2020-08-04 23:19:36.311630
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a55716df6973'
down_revision = 'bea3268003d6'
branch_labels = None
depends_on = None
def upgrade():
pa... | [
"peperecolons0@gmail.com"
] | peperecolons0@gmail.com |
341738770f90b5c7c5648b654fb6badb2ff52930 | 8ae89fbbc850a7e3a5594107d35dda3e324c7076 | /exercise/break.py | 19313a424de98ae9f05374220a2f08588347f535 | [] | no_license | talaatmagdyx/Udacity-CS101 | 54a3f2556791997a474d69997d878e86b7f3e823 | 4e423f15af4a500b0177913bc4e57c0b7683b282 | refs/heads/master | 2022-01-02T11:09:13.571794 | 2017-07-06T13:00:31 | 2017-07-06T13:00:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py |
i=1
while True :
if i>10:
break
print(i)
i=i+1
| [
"talaatmagdy75@gmail.com"
] | talaatmagdy75@gmail.com |
0b3ce647889db5ce8bc43acdb3f0730ff2349fb3 | 70811da75f0f38719703e02c9f99e2ce09e21d2a | /LSTM_FCN/distal_phalanx_tw_model.py | cd18a4f46cd55d512c9381b2a58a3c9a060069cf | [] | no_license | HongminWu/time_series_anomaly_detection_classification_clustering | 9d5e555c9bf37ee72770e127588f61f15139bd4e | 548b3799389ec7a96fc56c51360a6de89e0502a1 | refs/heads/master | 2020-03-11T04:44:00.113684 | 2018-08-16T06:38:57 | 2018-08-16T06:38:57 | 129,783,614 | 15 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,711 | py | from keras.models import Model
from keras.layers import Input, PReLU, Dense, Dropout, LSTM, Bidirectional, multiply, concatenate
from keras.layers import Conv1D, BatchNormalization, GlobalAveragePooling1D, Permute, Activation
from utils.constants import MAX_SEQUENCE_LENGTH_LIST, NB_CLASSES_LIST
from utils.keras_utils ... | [
"hongminwu0120@gmail.com"
] | hongminwu0120@gmail.com |
962cfc65a1cca1f1c7efcaec822fad9a5784631d | 834134cce099d80d8564164696cdffcf0112aa9a | /scraper.py | 1125ecdfa37d5536e42f93716e09f4ca594a0cf9 | [] | no_license | mpulgaron17/EarlyProjects | e531c51daa060499645e43d79e82318b1b987de9 | 38b7ff489bc6498dcb631b9e8070a6a4584b9078 | refs/heads/main | 2023-06-06T18:57:33.822515 | 2021-07-15T03:35:21 | 2021-07-15T03:35:21 | 386,149,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | import urllib.request
from bs4 import BeautifulSoup
class Scraper:
def __init__(self, site):
self.site = site
def scrape(self):
r = urllib.request.urlopen(self.site)
html = r.read()
parser = "html.parser"
sp = BeautifulSoup(html, parser)
for tag in... | [
"noreply@github.com"
] | mpulgaron17.noreply@github.com |
ef01adb41fcf1f474f98c2f88f09443ee34ec339 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/servicebus/azure-servicebus/tests/async_tests/mgmt_tests/test_mgmt_namespaces_async.py | 77e82602f3a50ce880403bd482c0dcba7293d2b3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 1,489 | py | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
import pytes... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
eb792de05309618dbd6f13ad548b23cddd4fcacd | 54731f795964175953b56cb0aa0299aba7cb603e | /myProject/app.py | 2d98ff7b463505f046bdfb279d81cb85a9066dd2 | [] | no_license | cha-n/homework | 8cf25575107b39e80b06672d6eda1b74bc246569 | 4f7387a302b2c12c7ac1c725d38a2bc8d52465c1 | refs/heads/master | 2023-01-29T12:31:25.011072 | 2020-12-14T12:43:29 | 2020-12-14T12:43:29 | 306,026,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | from flask import Flask, render_template, jsonify, request
from pymongo import MongoClient
app = Flask(__name__)
client = MongoClient('localhost', 27017)
db = client.dbsparta
# method 명시되어 있지 않으면 GET, POST 모두 가능
@app.route('/')
def home():
return render_template('index.html')
@app.route('/write', methods=['GE... | [
"chan01115@naver.com"
] | chan01115@naver.com |
8d06eb9fd29257e1d48b88ff15d60e2b89203bb8 | 539c37c420df5ad243b26c63f48b7d3a478a4227 | /Incubator/urls.py | e5450e2839a15065850500444984202ad89e9ff4 | [] | no_license | ManasAgarwal02/Incubator | a91bafc8c8d50df1fe4e46f8a0dc433382af6280 | 5af76857b24a58292a446b81b458d6d73691b650 | refs/heads/master | 2023-03-15T16:33:40.354127 | 2021-02-28T07:51:59 | 2021-02-28T07:51:59 | 315,052,730 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.urls import path, include
from . import views
urlpatterns = [
path('', views.home, name="home"),
path('about/', views.about, name="about"),
path('analyze/', views.analyze, name="analyze"),
path('network/', views.network_request, name="net_req")
]
| [
"manas.99ag@gmail.com"
] | manas.99ag@gmail.com |
376eedeb09e809b68e21efaed738bb75f8bc1003 | 188251f29b721f93e336193dfc630d2d3f7722c6 | /api/images/views.py | 1b47f89b2de1c063b952b4bfbb35886c1496235c | [
"MIT"
] | permissive | erik-sn/mako | eeb9a1e55ce4303bbbeb1a2d78aa1bf54a4c7de2 | f64644dacb132b0063805ccafc3f485bdb62595b | refs/heads/master | 2022-12-15T19:59:48.640267 | 2018-11-23T01:06:12 | 2018-11-23T01:06:12 | 137,537,123 | 0 | 2 | MIT | 2022-12-08T20:55:49 | 2018-06-15T22:32:36 | TypeScript | UTF-8 | Python | false | false | 7,433 | py | import logging
from django.core.files.uploadedfile import InMemoryUploadedFile
from django import forms
from django.db.utils import IntegrityError
from django.http import HttpResponse
from django.shortcuts import get_object_or_404
from rest_framework.response import Response
from rest_framework.decorators import list_r... | [
"nieh.erik@gmail.com"
] | nieh.erik@gmail.com |
4799dfae66b08654ba541db4e36bfdab1b6ecd9b | 6382e12a32c3b62ec059ca45c1fee6941e51e260 | /Part_5__Control_Flow/Chap_14__Iterables_Iterators_and_Generators/ex_14_12__aritprog_gen.py | b705450eca5df149e40a62b8325732285db256f8 | [] | no_license | CavalcanteLucas/python-fluent | e352a79e1da87ae4ee320a09196e119235a904a8 | a4e22ab88235c5045eca52745b5e1558586dc166 | refs/heads/master | 2023-07-11T20:13:35.793456 | 2023-06-19T13:37:54 | 2023-06-19T13:37:54 | 224,661,365 | 1 | 0 | null | 2023-02-11T01:30:09 | 2019-11-28T13:39:03 | Jupyter Notebook | UTF-8 | Python | false | false | 233 | py | def aritprog_gen(begin, step, end=None):
result = type(begin + step)(begin)
forever = end is None
index = 0
while forever or result < end:
yield result
index += 1
result = begin + step * index
| [
"lucascpcavalcante@gmail.com"
] | lucascpcavalcante@gmail.com |
fbb863a05f6df5149149d97b5578a426b774993a | cf1a7f07221766edfece71d63cb93886aa30c476 | /tests/test_quotient_metric.py | a05a1572eb0f28022501b6525cd8f36016edb650 | [
"MIT"
] | permissive | tristancabel/geomstats | 950c3f5d9e42e2bbfa4a4abd1b0e17b9b8c8b22f | eeba7b7a652d45fc0053e35219c03627f2e8406f | refs/heads/master | 2023-04-22T05:40:09.584435 | 2021-03-08T04:53:22 | 2021-03-08T04:53:22 | 345,702,762 | 0 | 0 | MIT | 2021-04-30T07:38:41 | 2021-03-08T15:29:37 | null | UTF-8 | Python | false | false | 6,431 | py | """Unit tests for the quotient space."""
import geomstats.backend as gs
import geomstats.tests
from geomstats.geometry.fiber_bundle import FiberBundle
from geomstats.geometry.general_linear import GeneralLinear
from geomstats.geometry.matrices import MatricesMetric
from geomstats.geometry.quotient_metric import Quotie... | [
"nicolas.guigui@inria.fr"
] | nicolas.guigui@inria.fr |
fbcce6a43ad58373cd35ab45d604f4c91582da33 | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/python/LC_935.py | 58a9a16ae88d9c6f9538e65cc80e22da6dfcaf47 | [] | 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,630 | py |
"""
https://www.youtube.com/watch?v=HTnIFivp0aw
这是一道简单但是比较有趣的题目。DP的方法还是比较容易想到的。令dp[k]表示当前拨号数字为k的方案数,显然它取决于在按k之前的那个数字的拨号方案数之和。
举个例子,第i次拨号时的dp[4]就等于第i-1次拨号时的dp[0]+dp[3]+dp[9],这是因为在盘面上骑士只能从0,3,9这三个位置跳跃到4.
"""
class SolutionTD:
def knightDialer(self, n):
table = {1: [6, 8], 2: [7, 9], 3: [4, 8], 4: [0, 3, ... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
9896f2f98fe117cec6e33099ec5018b9842f1ac9 | f38b9a6cd3f25160073d41ed6acf13b653a2ff74 | /rocs_teleop/scripts/rocs_teleop_keyboard.py | d8125b997ee2714f6ecd92dcf958a234d233927b | [] | no_license | uobirlab/dora-control | e9cab88fdbc7c9da66cea7a40f916e4420d61821 | 8f15c9a6033e2ce3506874c15ecac577e54d05aa | refs/heads/master | 2021-01-13T02:32:41.475079 | 2013-10-25T11:47:05 | 2013-10-25T11:47:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,043 | py | #!/usr/bin/env python
# Copyright (c) 2011, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# noti... | [
"a.pronobis@gmail.com"
] | a.pronobis@gmail.com |
95104df4640b4babf14d129503b2955198323497 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/11104121.py | e842e5077a8ce26042b14a549459d60c120ea087 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/11104121.py generated: Wed, 25 Jan 2017 15:25:16
#
# Event Type: 11104121
#
# ASCII decay Descriptor: [B0 -> pi+ pi- (KS0 -> pi+ pi-)]cc
#
from Configurables import Generation
Generation().EventType = 11104121
Generation().SampleGenerationTool = "Signa... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
1ade39bff263007813db93d12d91966da695744a | e3eee8900296e91601a2f6fea027c7956433e072 | /chap10/dirList.py | c2a90cfdb43d8848cbea15e53bebe83fc3d469b8 | [] | no_license | chc1129/introducing-python3 | 70ff14bbf24f7030a8cc20dba7db753e64b46865 | 43a6de586862380ac221669f11f1fbbac9105bb5 | refs/heads/master | 2020-04-12T21:53:32.031918 | 2019-09-23T12:55:59 | 2019-09-23T12:55:59 | 162,775,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | import os
print(os.listdir('.'))
print(os.listdir('..'))
| [
"chc1129@gmail.com"
] | chc1129@gmail.com |
dd75a4912a4cbb4431c9f3a9493f1d8671208472 | 412ddb81b217ced05f77381a625a6ee26a3b2ea7 | /lib/Stats.py | 11ef31512bc7bf0d2ac2616db64d5d2797753a9e | [] | no_license | AndreasHeger/adda | d26fcb7ba3f32ced351d34b8dac7f802e63219c5 | ddae18476747ef51cc8a2d924b723d5ae81a2da7 | refs/heads/master | 2016-09-10T22:58:51.797341 | 2014-06-26T19:44:39 | 2014-06-26T19:44:39 | 16,487,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,894 | py | ################################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id$
#
# Copyright (C) 2009 Andreas Heger
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as publish... | [
"andreas.heger@gmail.com"
] | andreas.heger@gmail.com |
f058d7fdba152cf6a99585bac8ef1dbb8de8d21c | 70e2f5dadd8bd57ba0952a0fd86b86b54b44e438 | /preprocessing/preprocess.py | b037838beeec7ef3f7089d15394f81bfd0b73889 | [
"MIT"
] | permissive | egirgin/cmpe493-term-project | 76b8a3d4b01b01387f3fb0defffe57ef329ed345 | 8af20fe33bf3b18d1b8bd66159da7559fe3387a3 | refs/heads/main | 2023-03-01T23:14:29.472601 | 2021-02-15T06:00:40 | 2021-02-15T06:00:40 | 319,282,348 | 0 | 0 | MIT | 2021-02-15T05:55:58 | 2020-12-07T10:24:28 | Python | UTF-8 | Python | false | false | 5,452 | py | import os
import string
import json
import requests
from tqdm import tqdm
import os.path
from os import path
import pickle
import argparse
import pandas as pd
import numpy as np
import nltk
nltk.download('punkt')
nltk.download('stopwords')
nltk.download('wordnet')
from nltk.tokenize import word_tokenize
from nltk.cor... | [
"emregirgin171@gmail.com"
] | emregirgin171@gmail.com |
062c9768ec6208be50fcac993a5ed4c2c65b3752 | 4b661b5cf68cce2e187b159fadd31daecbccaf12 | /devel/lib/python2.7/dist-packages/image_geometry/__init__.py | 4e913b70721e0a6fbe199bde8f54c400424a9a2b | [] | no_license | david-crumley/zed-ros-testing | 3ebf67b15e54ec16d40786788b11f75df38fe1fa | 756610c937f194af69b94f9059f835af6e3b7c65 | refs/heads/master | 2022-07-17T01:48:00.873099 | 2020-05-17T20:02:49 | 2020-05-17T20:02:49 | 264,744,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from pkgutil import extend_path
from sys import path as sys_path
__extended_path = '/home/nvidia/zed-ros/src/zed-ros-testing/vision_... | [
"david_crumley@knights.ucf.edu"
] | david_crumley@knights.ucf.edu |
4f40417e1b3d5e7727b23349015224819e159c34 | d0efa2026b7ed22ff4f9aa76c27ae2474c30f26d | /test/test_payment_method_payment_schedules_request.py | 452cc8ec29e8473df8ec6a5a8e0ae80b14d7d5f7 | [] | no_license | begum-akbay/Python | 2075650e0ddbf1c51823ebd749742646bf221603 | fe8b47e29aae609b7510af2d21e53b8a575857d8 | refs/heads/master | 2023-03-28T00:11:00.997194 | 2021-03-25T16:38:17 | 2021-03-25T16:38:17 | 351,499,957 | 0 | 0 | null | 2021-03-25T16:38:17 | 2021-03-25T16:15:16 | Python | UTF-8 | Python | false | false | 1,270 | py | # coding: utf-8
"""
Payment Gateway API Specification.
The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501
The ve... | [
"emargules@bluepay.com"
] | emargules@bluepay.com |
b4c6ebfb759f409bfa7ea91fb4c83aa0a5b7ec10 | dd5fc012431687233abbdfee9afcf7a2feefe45b | /LeetCode_024/024_Swap Nodes in Pairs_1.py | fd02bb7b9b99c61fae6b4c05437cec61901a6ab8 | [] | no_license | daodaoawaker/LeetCode | 42a95b49f56c50e06ffbc03ea2fe9b11c5b18e16 | 0a0b76d19460e92f6763337deb0517109169cf98 | refs/heads/master | 2023-04-26T09:57:56.807223 | 2021-05-15T15:55:05 | 2021-05-15T15:55:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | #!usr/bin/env python
#_*_ coding:utf-8 _*_
'''
class ListNode():
def __init__(self, x):
self.val = x
self.next = None
'''
class Solution():
def swapPairs(self, head):
firstHead = ListNode(0)
firstHead.next = head
pre, cur = (firstHead, head)
while(cur and cur.n... | [
"471229015@qq.com"
] | 471229015@qq.com |
4509cb6755312965760e5aee3e06d33dde821f8a | 8dc40fcf3de568f8d1ba8f4e2fc4a53258bf45a6 | /duration.py | f79b0640d8e5db43d3d84f6c553631b87ea093aa | [] | no_license | hugoatease/lastfmerge | 981db1915bb19b7fb981be3c5e2a4ab6b6bd4813 | dbdad3171f5d6ce81ea57f4540d9c88118e02744 | refs/heads/master | 2020-04-06T04:56:44.332382 | 2012-02-24T20:50:27 | 2012-02-24T20:50:27 | 3,347,771 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | import config, common
import json
def url(mbid = None, artist = None, name = None):
if mbid != None:
return 'http://ws.audioscrobbler.com/2.0/?method=album.getinfo&format=json&api_key=' + config.lastfm['Key'] + '&mbid=' + mbid
elif artist != None and name != None:
return 'http://ws.audioscrobbl... | [
"hugo@caille.tk"
] | hugo@caille.tk |
ee0b6d5c25cb2588f5ec6b542d364e388572b055 | 8e7aca30c00f569573a7121bb90e551c9166210c | /tk1.py | 0b124f2362ebd9b43ef308dd01eff7d228511858 | [] | no_license | Ntsikelelo-L/functions | c7deaefbbceac3cc7e09b0480ec7da0482af2a7b | d1aeacc9f123dbc1d124ae7e1d6bbfb1fc986fc9 | refs/heads/master | 2022-12-23T21:43:03.859502 | 2020-10-08T07:22:52 | 2020-10-08T07:22:52 | 302,262,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | #sudo apt-get install python3-tk
sudo a
| [
"landeuts3@gmail.com"
] | landeuts3@gmail.com |
77f189259e457de48cd00bed8652a12d95f0a37d | 2de81ff580f7f3f6be21295b073319e51e78c187 | /ver3/Web/login/models.py | 4d0e5461178d175c87509bbdbcdaa7e656a7f7ce | [] | no_license | HungSoma/hello | 2f3c8ac7b3acebec41f0d9636c33b3b0ac8d1e9a | a1d0f04af9cc3d219ec959ba4c5665530219b08a | refs/heads/master | 2021-10-07T23:06:47.056813 | 2021-10-01T10:09:03 | 2021-10-01T10:09:03 | 96,621,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | from django.db import models
from django.db.models.signals import post_save
from django.contrib.auth.models import User
# Create your models here.
class UserProfile(models.Model):
user = models.OneToOneField(User, related_name="user")
Gender_choices = (
('M', 'Male'),
('F', 'Female'),
)
... | [
"hung.keima@gmail.com"
] | hung.keima@gmail.com |
dbeacd1bc8650becfac55bd687f13832bebe48a7 | 089f5c32679e62047f92a1cba3b92d64937fb73d | /News_Scraping/Demo/Demo/spiders/topeka/items.py | def7c3244c0e068cac1649524c024d291b7b4503 | [] | no_license | narendra1711/Machine_learning | 25fc60a2aa81d610433029b5a0971717aa98b062 | 2029a565e5d5e817a164e5e8941bcaa5f3e4f3d3 | refs/heads/master | 2022-10-27T21:38:16.674151 | 2018-07-13T16:05:09 | 2018-07-13T16:05:09 | 129,414,266 | 0 | 1 | null | 2022-10-11T00:07:30 | 2018-04-13T14:34:56 | Python | UTF-8 | Python | false | false | 337 | py | # Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class TopekaItem(Item):
initial_url = Field()
url =Field()
publish_date = Field()
scanned_date = Field()
headline_name = Field()
body = Field()
date... | [
"33336096+narendra1711@users.noreply.github.com"
] | 33336096+narendra1711@users.noreply.github.com |
1721ee747927e7f8df3cac98ab5795c94416b761 | 7ef29c21c939aa7462befa7e5a8979a3a862a19d | /mininet/topologies/topo.py | 419f7cd0797b6a63d6021e8e010f44eac525f2b4 | [] | no_license | geddings/TARN | 743476889a42372e15970477e5a64c60b2260a96 | 6fe1301c1df4aa9b38c0c83e6d4d6109e4e98bac | refs/heads/master | 2022-04-29T04:15:17.270695 | 2018-02-16T15:08:07 | 2018-02-16T15:08:07 | 96,136,521 | 1 | 3 | null | 2022-04-22T07:23:04 | 2017-07-03T17:49:55 | Java | UTF-8 | Python | false | false | 1,874 | py | # import os
#
# import sys
# from mininext.cli import CLI
#
# sys.path.insert(0, os.path.abspath('..'))
# from mininext.topo import Topo as BaseTopo
# from nodes import Floodlight
# from net import MiniNExT
# import mininet.log as log
#
#
# class Topo(BaseTopo):
# """Extended topology to support BGP and session mai... | [
"cbarrin@g.clemson.edu"
] | cbarrin@g.clemson.edu |
8147523bcb0f515c279cdd116378042b0911fd7c | 56e469a1bfd29004fa258a54668dfbbc4459663d | /python3-nltk-tutorial/src/lesson2.py | eea468d14140f4c269abb2552dfb9c86ded6c8b6 | [] | no_license | wind86/learning | bfce4a6795b58b27d0148b878299cacfe96aa26f | 4449ba0eed0a8f803a2bb9fbd663faf43148f03a | refs/heads/master | 2020-04-05T23:28:40.082439 | 2017-11-04T11:36:40 | 2017-11-04T11:36:40 | 83,236,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | '''
Created on Apr 09, 2017
Stop words with NLTK
https://www.youtube.com/watch?v=w36-U-ccajM&index=2&list=PLQVvvaa0QuDf2JswnfiGkliBInZnIC4HL
@author: ubuntu
'''
from nltk.corpus import stopwords
from nltk.tokenize import word_tokenize
example_sent = "This is a sample sentence, showing off the stop words filtration."... | [
"wind86@meta.ua"
] | wind86@meta.ua |
b14af7cffc6ef7e61fd07f241da400470e0d2847 | 672fef1cd92f24cc13dbb651f60d7b1081468bed | /catkin_ws/build/kit_agv_teleop/catkin_generated/pkg.installspace.context.pc.py | b82d54ca750a09c83c061b72924977e025a63ceb | [] | no_license | Forrest-Z/DevelopAgv | 49eca36e0a4a714fb232100b6216f4801409aa56 | e7d0ac39f3964557d7f67f074ddba73e5c6f0d3a | refs/heads/master | 2022-12-14T12:41:30.309513 | 2020-09-07T14:21:16 | 2020-09-07T14:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | 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 = "kit_agv_teleop"
PROJECT_SPACE_DIR = "... | [
"nhamtung125@gmail.com"
] | nhamtung125@gmail.com |
cbcd1ca478b37e9ed80a3369621ea0e28027db98 | eab3f48a302bd07c7052f2e53625284264d0541d | /projectapp/views.py | a8501ea6330fe9f4328a9ed4bb770af7434d214b | [] | no_license | zeyytas/githubAPI-project | 08cadaddc8fc54cadf68179b21451690dec8e402 | 1bd1f0b3a9382b7e14a074b68629ab1235ca8e5c | refs/heads/master | 2020-09-12T20:07:40.814367 | 2019-11-19T10:25:36 | 2019-11-19T10:25:36 | 222,537,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,499 | py |
from django.shortcuts import render
import requests
from projectapp.models import Repositories, Language
def search(request):
query = []
languages = list(map(lambda x: x[0], Language.objects.all().values_list('repo_language')))
for language in languages:
query.append(Repositories.objects.filte... | [
"zeyneptas@Zeynep-MacBook-Pro.local"
] | zeyneptas@Zeynep-MacBook-Pro.local |
ed0a7a587fa699bb3e21e4116d874fda8a2c2d5c | 3337e9150a743e0df2898528dd1e4dfac9730b25 | /artemis/fileman/persistent_print.py | 13b30ccc07235563122878b4675f41b117e62124 | [] | no_license | ml-lab/artemis | f3353cb462b06d64e1007010db94667b4703c90e | b4f5f627f1798aff90b845d70fd582142a9f76c8 | refs/heads/master | 2021-01-22T06:49:41.346341 | 2017-09-01T15:31:13 | 2017-09-01T15:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,171 | py | import sys
from artemis.fileman.local_dir import get_artemis_data_path
from artemis.general.display import CaptureStdOut
__author__ = 'peter'
"""
Save Print statements:
Useful in ipython notebooks where you lose output when printing to the browser.
On advice from:
http://stackoverflow.com/questions/4675728/redirect... | [
"peter.ed.oconnor@gmail.com"
] | peter.ed.oconnor@gmail.com |
fc8f44aeaeeedfd091f2438d3dc903bf2f377586 | 6c6fd5c91a92fa9cb82e2682ff61f4fb2013d82e | /test_YY.py | 9c4bcd4d38749386f2b12a02c05304935b13dac9 | [] | no_license | carstimon/pymaniclust | c2c472b9b18c604babb4528cd989721c4528cd1b | c055757c483b23edf5f0f8a64ed116d7115799bb | refs/heads/master | 2021-01-23T13:29:09.529636 | 2017-09-06T22:47:48 | 2017-09-06T22:47:48 | 102,664,575 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,205 | py | import pymanopt as mo
from pymanopt.manifolds import Stiefel
from pymanopt.solvers import SteepestDescent
from sklearn.cluster import KMeans
import numpy as np
import numpy.linalg as la
import numpy.random as nrand
import scipy.linalg as sla
import scipy.sparse.linalg as spla
import autograd.numpy as anp
import Y_... | [
"carstimon@gmail.com"
] | carstimon@gmail.com |
23bd2d54fbfbf65b24fbb8aa996758ebdc57fc2a | 0447ad0db48e5fe23105e2704fdc6cebe343b2ce | /authapp/views.py | 0cfc95dbda9db1ca541bf29594ec914563a6a157 | [] | no_license | Telwen/vk_authapp | 8dd33ce2b00430a0563677d37d8657dc9ce9459e | 2eaf8cb9c63e9b1c1ec69b11948801c2cd990e40 | refs/heads/master | 2020-03-23T04:02:22.179254 | 2018-07-15T22:17:26 | 2018-07-15T22:17:26 | 141,062,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'authapp/index.html')
def login(request):
pass
| [
"noreply@github.com"
] | Telwen.noreply@github.com |
1ee17c4b8cf0971fdfc7594364d884769edb8db1 | 8805fadcd91cbd2242cc6af21dd0d5cabaf42625 | /tests/test_common.py | a3640ab72f728c72b8a8f5c43e5cff12c92a00c7 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | weiplanet/refactor | c54605d0e980e199c90215c5cb8238617c622274 | 1178e9faee21227b5f73f8815724cf9bae048200 | refs/heads/master | 2023-07-03T00:49:12.905498 | 2021-08-14T20:22:54 | 2021-08-14T20:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | import ast
import textwrap
import pytest
from refactor.common import (
Singleton,
apply_condition,
find_closest,
find_indent,
has_positions,
is_contextful,
is_truthy,
negate,
pascal_to_snake,
position_for,
)
def test_negate():
source = ast.parse("foo")
source.body[0].... | [
"batuhan@python.org"
] | batuhan@python.org |
3e5fbe86c5d9342c5ec97bf0d05e8f07a6a02bd9 | cf37f7632c4e93dd3061353d8af422002868725a | /vagrant/puppy/puppies.py | 43ad9c0cb06cb68ebaeebcc2a95edc6dfe04b837 | [] | no_license | tomca32/fullstack-nanodegree-vm | eef6b8bb9f1d089160e333521c1d2ca25a1d4135 | 7aeea854b4ae2763725b2db5e3400b014d8863ed | refs/heads/master | 2020-04-08T21:29:34.708980 | 2016-01-12T23:13:27 | 2016-01-12T23:13:27 | 41,940,649 | 0 | 0 | null | 2015-09-04T22:35:32 | 2015-09-04T22:35:30 | null | UTF-8 | Python | false | false | 996 | py | import sys
from sqlalchemy import Column, ForeignKey, Integer, String, Date, Float
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship
from sqlalchemy import create_engine
Base = declarative_base()
class Shelter(Base):
__tablename__ = 'shelters'
id = Column(Integer, prima... | [
"tomca32@gmail.com"
] | tomca32@gmail.com |
cd1a4eb1bfcb7c51d5622395150e22b21b9c8eb4 | 785a8702e8be6baa0d34ec812c7b92b281fcc78b | /data.py | 3baa51ca7fea185cc1df80678c2d541b3e02f460 | [] | no_license | kotov-nu/tours | 12e7155a4236bb957167d772f4316f2d50926c4e | 3144a1dcbbe628f2514206b6845e6aa2efbd3941 | refs/heads/master | 2021-07-07T14:14:05.668248 | 2020-01-08T15:34:45 | 2020-01-08T15:34:45 | 230,787,845 | 0 | 1 | null | 2021-03-20T02:31:08 | 2019-12-29T18:25:19 | Python | UTF-8 | Python | false | false | 15,183 | py | title = "Stepik Travel"
subtitle = "Для тех, кого отвлекают дома"
description = "Лучшие направления, где никто не будет вам мешать сидеть на берегу и изучать программирование, дизайн, разработку игр и управление продуктами"
departures = {"msk":"Из Москвы","spb":"Из Петербурга","nsk":"Из Новосибирска","ekb":"Из Екатерин... | [
"80386.sl@gmail.com"
] | 80386.sl@gmail.com |
30bc24f4f2b7cd631dbf2c677a8e0f0d88c6e9f6 | ccda4776cb55607536eef473e31b1999df4e639c | /culinaryblog/posts/views.py | c2c9b31e8b90856b5d2abd1a088cd5325a8a7e74 | [] | no_license | EwaGrela/culinaryblog | 8168b9edc37a223db3d96a25241fe6ed1433c4ff | e772c7f5e15a9bc71222efad4700924186cb2f5b | refs/heads/master | 2021-04-27T00:17:53.779039 | 2018-03-08T13:41:50 | 2018-03-08T13:41:50 | 123,787,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,463 | py | from django.shortcuts import render, redirect
from django.views.generic import (TemplateView, ListView, CreateView, DetailView, UpdateView, DeleteView)
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth.decorators import login_required
from django.core... | [
"kwiaciarnia_maciejka@wp.pl"
] | kwiaciarnia_maciejka@wp.pl |
b1291a2686c426c466bc9b5706b49b5bf3099ec5 | 64657f30d5f77e2fa646de71f8396943cb97a98f | /sampletracking/wsgi.py | d159fcd2108938e74f0635ea20d002dc2b0a3e22 | [] | no_license | zerongtonywang/sampletracking | d5be52fe630ea8461734f25e0e5e1f7bda3d53c7 | a3f96aaa5d1bbfe27d8b4972495363d27ba10acd | refs/heads/master | 2021-05-30T17:17:03.244179 | 2016-03-05T07:44:30 | 2016-03-05T07:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for sampletracking project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"ztony_wang@hotmail.com"
] | ztony_wang@hotmail.com |
62ca712948af9224c0b7caac28ce87a4da87fb0b | 3adec884f06eabfe50d4ab3456123e04d02b02ff | /70. Climbing Stairs.py | 681c6ec4c4dcb65967c9ac71727df86efc4e0c13 | [] | no_license | windmzx/pyleetcode | c57ecb855c8e560dd32cf7cf14616be2f91ba50e | d0a1cb895e1604fcf70a73ea1c4b1e6b283e3400 | refs/heads/master | 2022-10-05T17:51:08.394112 | 2020-06-09T09:24:28 | 2020-06-09T09:24:28 | 250,222,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | class Solution:
def climbStairs(self, n: int) -> int:
if n==1:
return 1
if n==2:
return 2
dp=[0]*n
dp[0]=1
dp[1]=2
for i in range(2,n):
dp[i]=dp[i-1]+dp[i-2]
return dp[-1] | [
"windmzx@github.com"
] | windmzx@github.com |
287986c00609f089101ca3c4da78af3306ee86ae | f77c13d738d1ce80b6017cea41796458f2648bfb | /restfulAPITestUtility.py | 751b1a3aab8d85c188c5af3ce2c7c399677677b9 | [] | no_license | KenshinQ/RestfulAPITestUtility | e579737c0fb5c83af9134ac681efa978442a9da5 | adbf30fe512dfab9f71244f9e49b45c608d4b369 | refs/heads/master | 2020-06-03T04:57:39.757169 | 2014-05-12T05:43:56 | 2014-05-12T05:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | __author__ = 'apple'
import tornado.httpclient
import tornado.ioloop
import json
#remote_url = raw_input("please input request url:")
#request_method = raw_input("set the request method:")
#request_parameters = dict
base_url = "http://192.168.3.144/"
tornado.httpclient.AsyncHTTPClient.configure("tornado.curl_httpclien... | [
"apple@appledeiMac.local"
] | apple@appledeiMac.local |
4a2680d2bc85510fddc11a16eb0970f2b8164a62 | 80ea526fb7c64b9177440580dd1909d8a3e51860 | /Networks/cloneClass.py | 7eb82be05f03c054507a34a6387c14f45d393055 | [] | no_license | wrbbz/RNNCodeClones | 7ec475ff0bd303bb2542ea2b81762d2241edfdab | 1d3aa2cb8738c59b189f8b47401d8427a956ae90 | refs/heads/master | 2021-09-13T15:47:13.357955 | 2018-05-01T19:41:57 | 2018-05-01T19:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | class CloneClass:
def __init__(self, base_class):
self.base_class = base_class
self.clones = []
def append(self, clone):
self.clones.append(clone)
| [
"zorinarseny@yandex.ru"
] | zorinarseny@yandex.ru |
90bb085da65f84288dce7b20345cef23b48bc827 | e4b3c95379b99e8e818e65685bd1cbcb80f7f08c | /data/news/fetch_articles.py | 50ab71414975c3904e310f55057e0b2e39682029 | [] | no_license | mohammedFurqan/Exchange-Rate-Forecast-through-News-Articles | 150c93c3331b0f74b4284b5ff489eb87a5fcf4e8 | 72a89df915b75536ee41c9683157ae8b847c129a | refs/heads/master | 2022-05-19T05:23:59.279793 | 2020-04-22T07:02:55 | 2020-04-22T07:02:55 | 248,609,648 | 1 | 2 | null | 2020-04-22T07:02:56 | 2020-03-19T21:34:58 | Python | UTF-8 | Python | false | false | 3,431 | py | # Author: Mohammed Furqan Rahamath
# Last updated: 21 March 2020
#
# Purpose: Fetch the articles content for corresponding meta-data
import multiprocessing as mp
import requests
from bs4 import BeautifulSoup
import pandas as pd
import csv
import time
from tqdm import tqdm
import os
import os.path
# Total range of ye... | [
"mohammed@moonraft.com"
] | mohammed@moonraft.com |
c367f874817b32c6f63cee71858c33cc30dede45 | 5d0fe4a9e026234fe15e6c4380355061bb4dac64 | /tests/functional/pages/profile/individual_enter_your_personal_details.py | 53c55f143ecca632274757bbfec1c6127897fa4a | [
"MIT"
] | permissive | uktrade/directory-tests | 37e243862da8ac594cf1ea06ade714db5e1aba03 | 39ec6c26203580238e65566a472cbd80916e6726 | refs/heads/master | 2022-08-09T16:58:56.248982 | 2022-08-01T12:25:10 | 2022-08-01T12:25:10 | 71,367,747 | 4 | 3 | MIT | 2022-08-01T12:26:09 | 2016-10-19T14:48:57 | Python | UTF-8 | Python | false | false | 1,572 | py | # -*- coding: utf-8 -*-
"""Profile - Enter your personal details"""
from requests import Response, Session
from directory_tests_shared import PageType, Service, URLs
from tests.functional.utils.context_utils import Actor
from tests.functional.utils.request import (
Method,
check_response,
check_url,
m... | [
"kowalczykjanusz@gmail.com"
] | kowalczykjanusz@gmail.com |
398f7c107b2af8f1aac79c33a0579535b47aa915 | 64723d47ce3651e4bbb85344a284371e61d31ffa | /ProgramFlow/sectionchallenge.py | 973cf72679b18664f2aa426eedbbd21d9fc0afa2 | [
"MIT"
] | permissive | BrandonP321/Python-masterclass | 659674cede81a3d0b4681481cbba8f3dfdd3d996 | fac81fe4f8acfa37076820405d96132f9f23b311 | refs/heads/master | 2022-12-12T13:59:37.828859 | 2020-09-05T02:29:40 | 2020-09-05T02:29:40 | 266,238,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | options = ["Learn Python", "Learn Java", "Go Swimming", "Have Dinner", "Go to Bed"]
menu = "1. Learn Python\n" \
"2. Learn Java\n" \
"3. Go Swimming\n" \
"4. Have Dinner\n" \
"5. Go to Bed\n" \
"0. Exit"
print("Please choose an option from the list below:")
print(menu)
... | [
"brandon.phillips976@gmail.com"
] | brandon.phillips976@gmail.com |
6334affbab5fed3ac2c4e47e4f118063cd80e199 | dd234e43eb2e3e17421c0284e11fdebf6a6e657c | /profile/tflow/_max.py | 0b2fb75b11be48deecdeead02e06768d243f5477 | [] | no_license | vlamprinidis/nn-estimation | 4133532a2063e80e4320b4d206ce0ded2ce0fe03 | 832cdc250c6be595a240fc8670636b45710ffe56 | refs/heads/master | 2023-01-10T09:47:21.699453 | 2020-11-17T15:53:40 | 2020-11-17T15:53:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import tensorflow as tf
strategy = tf.distribute.experimental.MultiWorkerMirroredStrategy()
from tensorflow.keras.models import Sequential
from tensorflow.keras import layers
from tensorflow.keras.layers import Dense, Flatten
import argparse
from tf_data import give, ds_size
import lib_tflow
from lib_tflow import di... | [
"vlassis.ld@gmail.com"
] | vlassis.ld@gmail.com |
8c9b50a1fb059ec85baff0eef6b35238e58a497e | b4cce226536a96f543798d87e79e3fda5cb3af8a | /calculatorCheckTable.py | c550fd0a5d0a8f5e06f97c7a1067f1116b55d804 | [] | no_license | phanben110/Smart-Lab | 3fb10e637dac83a35396dcbfffd02de3562ae8fa | 1a6cdc27e06575be3f2d326ac754e3b2eee329b9 | refs/heads/master | 2023-02-04T00:35:24.876257 | 2020-12-13T06:31:05 | 2020-12-13T06:31:05 | 279,117,104 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,980 | py | import define as de
import math as ma
def distanceFromCtoAB(TABLE,C):
xa = TABLE[0][0]
ya = TABLE[0][1]
xb = TABLE[1][0]
yb = TABLE[1][1]
xc = C[0]
yc = C[1]
a = abs((ya-yb)*xc+(xb-xa)*yc-xa*(ya-yb)-ya*(xb-xa))/ ma.sqrt(xc*xc + yc*yc)
# print("CH")
# print(a)
return abs((ya-yb)*xc+(xb-xa)*yc-xa*... | [
"noreply@github.com"
] | phanben110.noreply@github.com |
2340b6eb8def046972b6d1941ebf2b84f327599d | f4316751a2bc5d7de2874d4726286257d3beebe7 | /model.py | 35de2fad41fb3b2060ce525003204693b12af0ed | [
"MIT"
] | permissive | poom-cyber/SpeakVrification | 7f58bc475ee749fd2b961eba96db81e87f310788 | 4a6c582aabcbd52841ca3b24ad9e7f7ff3bdbf1a | refs/heads/master | 2023-09-05T18:33:04.862619 | 2021-11-11T11:07:59 | 2021-11-11T11:07:59 | 426,970,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,421 | py | import tensorflow as tf
import numpy as np
import os
import time
from utils import random_batch, normalize, similarity, loss_cal, optim
from configuration import get_config
from tensorflow.contrib import rnn
config = get_config()
def train(path):
tf.reset_default_graph() # reset graph
# dra... | [
"noreply@github.com"
] | poom-cyber.noreply@github.com |
6e3f7646454551de97bff7229a6e4a0d163b2856 | ca231a325e8f4c18d50d89ffa7eec993d4cc68c3 | /codility/minimal_interger_not_ocurrs.py | 4f9b4ac785566637a02e89df334015135a5bb335 | [] | no_license | HugoPorto/PythonCodes | 8e1597999ccd34ffa86df5ae7e91111d77dc7a22 | 539ad6891cbd49a2c011349f843ab710aad2993a | refs/heads/master | 2022-02-13T05:48:24.633750 | 2017-09-12T15:44:06 | 2017-09-12T15:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # -*- coding:utf-8 -*-
def solution(A):
''' Solve it with Pigeonhole principle.
There are N integers in the input. So for the
first N+1 positive integers, at least one of
them must be missing.
'''
# We only care about the first N+1 positive integers.
# occurrence[i] is for the i... | [
"gpzim98@gmail.com"
] | gpzim98@gmail.com |
4bb1dcbfb6124c53a97f603aad7a0a35ec8a77ef | 11c3a8812210b73f489ae2268104eb3c8176a707 | /dictionary.py | 48e4d29739869c435bc0857c40e6aff22aa40f07 | [] | no_license | Dragues/love_bot | 297a3832c4f157d0fa9560b76a30e783889ddf5d | 958b1284e9e19d53bd6ca0cd9fd53ecd2626ceaa | refs/heads/master | 2021-01-20T06:05:38.731402 | 2017-08-26T11:59:36 | 2017-08-26T11:59:36 | 101,482,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | already_exist = 'Ты уже любишь кого-то'
help_msg = 'Ничего полезного я не сделаю'
config = 'chat_config'
search_start = ['Поиск любви активирован!', 'От меня не спрячешься!']
search_midlle = ['Да у Вас тут любовь', 'Проанализируем вас']
search_end = ['Ого, вы токо гляньте!', 'Так, кто же у нас любит больше всех?', 'ВОТ... | [
"chist-34dml@mail.ru"
] | chist-34dml@mail.ru |
12ccbb6a49dc123cca42202409efb9bb333f2c8c | a135e6aebb4b525d090272c107d9986ed50ec919 | /grip/__init__.py | 263bab0ee2649d40658a1dc3023c1a3e0b27c6d5 | [
"MIT"
] | permissive | wemersondev/grip | 2a6740d32e045cfa6639936d6640555ea81d3b53 | 8a9d7caf2f8a7cf07d8b31e030600404b4c498c7 | refs/heads/master | 2021-01-24T03:26:40.071776 | 2018-02-25T19:58:13 | 2018-02-25T19:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | """\
Grip
----
Render local readme files before sending off to GitHub.
:copyright: (c) 2014-2016 by Joe Esposito.
:license: MIT, see LICENSE for more details.
"""
__version__ = '4.4.0'
import sys
# Patch for Flask 11.0+ on Python 3 (pypy3)
if not hasattr(sys, 'exc_clear'):
sys.exc_clear = lambda: None
from .a... | [
"joe@joeyespo.com"
] | joe@joeyespo.com |
35fcdd02ed0a020911e0359cb8dad25a77a25018 | ba0bdc9fe595e0e77a78c534e8a40136a1a3bf3c | /users/forms.py | 0a415f83bbcd83d8f0053d431c911b9935f31b7d | [] | no_license | santoshdhulgand/BlogProject | 1031bfebbc8b02943a1d6175c78ae084233cc93f | ead8a7342e62be3391e7bb310fb53697c7cb1c0b | refs/heads/master | 2023-05-27T12:13:14.289634 | 2021-06-14T11:12:34 | 2021-06-14T11:12:34 | 375,331,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py |
from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.forms import fields
from django.contrib.auth.models import User
from users.models import Profile
class UserRegistrationForm(UserCreationForm):
class Meta:
model = User
fields = ['username... | [
"santoshdhulgand81195@gmail.com"
] | santoshdhulgand81195@gmail.com |
994f92f1e53aa2fed33734fdbcd961e6dd651f3b | f137fb92afb7265b6d9fcace33ba72ea8e38a837 | /starter_code/backend/src/auth/auth.py | ebb19ac7279d1819924d8e38b14f5a138f210038 | [] | no_license | naimishparikh/coffee-shop | b355c9df71ff414f8683fcdbd54acbabeecc255f | 8b69e54bb89d75a66681ae7d213d195c0a6fa7b2 | refs/heads/master | 2023-07-31T09:06:36.751453 | 2021-09-18T12:00:26 | 2021-09-18T12:00:26 | 406,225,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,499 | py | import json
from flask import request, _request_ctx_stack, abort
from functools import wraps
from jose import jwt
from urllib.request import urlopen
AUTH0_DOMAIN = 'dev-9a27t4db.us.auth0.com'
ALGORITHMS = ['RS256']
API_AUDIENCE = 'drinks'
## AuthError Exception
'''
AuthError Exception
A standardized way to communica... | [
"naimish.parikh@gmail.com"
] | naimish.parikh@gmail.com |
e6923ea0892f3397caa1a86538ff202290001c3e | d085cc74e7598bdf9744c2adbbee5c463ae7d54f | /bgt/bgt/wsgi.py | 4fb2a95733c9835f0f12e93cd1a8a04b11f5583a | [] | no_license | connor-richards/britgolfdad.com | 4e71b51faa0abf48956086f184e80e9393112884 | 4aa5a2319b8dd957175461cc4523d666b06daa50 | refs/heads/main | 2023-06-19T12:49:58.935316 | 2021-07-13T19:49:09 | 2021-07-13T19:49:09 | 385,718,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for bgt 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"connor.richards899@gmail.com"
] | connor.richards899@gmail.com |
18df10d8b1c09bf6663d3185bce769d2c532a8f7 | 8c6816435093cb8e9e45593d3ffdd67028a011b6 | /tests/test_is_palindrome_permutation.py | 8afe1e3ee3486b7078ef4211c354a84d7504048b | [] | no_license | Keeady/daily-coding-challenge | 6ee74a5fe639a1f5b4753dd4848d0696bef15c28 | 31eebbf4c1d0eb88a00f71bd5741adf5e07d0e94 | refs/heads/master | 2020-03-27T07:58:05.713290 | 2019-03-08T15:03:05 | 2019-03-08T15:03:05 | 146,210,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from String import is_palindrome_permutation
def test_is_palindrome_permutation():
str = 'Tact Coa'
assert True == is_palindrome_permutation.is_palindrome_permutation(str)
str = 'Tact oCoa'
assert True == is_palindrome_permutation.is_palindrome_permutation(str)
str = 'Tact Ca'
assert True ... | [
"cbevavy@datto.com"
] | cbevavy@datto.com |
1e6091a1a4a76c441f86675983dbc6b2e6409305 | 61f8250b3c0567a460bc7cfd8720e910170bcc4f | /naiveBayseModel/Calculator/calc/generateInputDataBase.py | 2402ede0a33446bb364439e69a9e4e5d2588126b | [] | no_license | Lucas-Armand/murphy-machine-learning-chapter-3-number-game | 85adad4cf88d994efc22939c83ee2185987a02a7 | a6da9e160097c1ab1d31a6b96be36e01fc191b17 | refs/heads/master | 2022-01-23T20:21:16.583021 | 2019-07-31T05:18:27 | 2019-07-31T05:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,838 | py | import math
import numpy as np
# Criando inputs:
powers_of_2 = [ index**2 for index in range(1,101) if index**2<100 and index**2>0]
powers_of_3 = [ index**3 for index in range(1,101) if index**3<100 and index**3>0]
powers_of_4 = [ index**4 for index in range(1,101) if index**4<100 and index**4>0]
powers_o... | [
"noreply@github.com"
] | Lucas-Armand.noreply@github.com |
0d8d94a7e0d4531e4f23418512049d17661a3fa8 | 746b445f70568d9560392d32f74db76efb5a5a19 | /botcommands/pi.py | 4b7fed8c377c1928220f8ccea49e16251d2d23f6 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | JokerQyou/bot | 6cbfb5ccea1f38c398c7311e4a7ecc04ef7ee188 | 1d0140c7b7fa7921b37da306f772d1b19654b46d | refs/heads/master | 2020-12-24T06:35:43.738445 | 2015-08-21T14:05:28 | 2015-08-21T14:05:28 | 39,199,031 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | # coding: utf-8
from config import pi_command
@pi_command
def pi(msg=None, debug=False):
pass
| [
"Joker.Qyou@gmail.com"
] | Joker.Qyou@gmail.com |
f940567509d57c12c3c53e8a941436c2f4034e03 | ef5bafe7e740da575e8207684dff492d6b04b6e8 | /python/broadlinkweb/broadlinkweb/__init__.py | 6461fc3a05977c86c39da3862a15979ef7616b30 | [] | no_license | janstenpickle/broadlink-web | 402f591f58b0384aa578d6cefa184e6450779eab | 6bd7c0534069aef4bbcb160cc2cf2d8b664857c9 | refs/heads/master | 2021-01-20T22:11:39.102614 | 2018-01-22T20:18:17 | 2018-01-22T20:53:19 | 101,804,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | import os
import broadlink
import yaml
from flask import Flask, g
from flask_cors import CORS
app = Flask(__name__)
CORS(app)
app.config.from_object('broadlinkweb.default_settings')
app.config.from_envvar('BROADLINKWEB_SETTINGS')
if not app.debug:
import logging
from logging.handlers import TimedRotatingFile... | [
"jansen.chris@gmail.com"
] | jansen.chris@gmail.com |
da72ad4262e7f932b872b51eb8316e48381f5d2d | 528bd6c511b07472b1c6cc00a9ff91f6faa9dbcc | /libvirt/depl2/nginx/apps/lotylda_mng/modules/users_mod.py | 573c249949f941e5ce5ee15944f54c36a7cb4b9d | [] | no_license | tbots/docs | 15448fdfdcb10b50a958de262e2c5f9396d9bb76 | 8443141926cf4bd3949d94eae20f70963802ab5b | refs/heads/master | 2020-08-17T03:16:14.686338 | 2019-10-12T16:34:18 | 2019-10-12T16:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | # -*- coding: utf-8 -*-
from gluon import current
import mng
import copy
def getUserItems(project_id, user_id):
'''Return dic of user's dasbhboards, reports, measures by user_id'''
items_dic = {'dasbhboards':[],
'reports':[],
'measures':[]
}
items_di... | [
"oleg.sergiyuk@gmail.com"
] | oleg.sergiyuk@gmail.com |
d6974c5cab337554aae9ea6e6488efef275a738b | 075f4add816176981ae5744ee806e5fb3d99952d | /wisdompets/adoptions/templatetags/adoptionsfilters.py | 2826c39c696098e93cda5e6dfc271cec4049729f | [] | no_license | myanryers/lil-django | 90d6f885e33d0d0e3ab23f53517e541f5c473c67 | 0cf9dcddecb3316c41a08742791b205763ed812a | refs/heads/main | 2023-06-26T16:47:36.066076 | 2021-07-28T16:30:36 | 2021-07-28T16:30:36 | 386,709,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django import template
register = template.Library()
@register.filter
def get_attr(obj, attr):
"""Gets `attr` on the given class object `obj`."""
return getattr(obj, attr, None)
@register.filter
def split(value, delim=" "):
"""Split the `value` string on `delim`."""
return value.split(delim)
... | [
"myersry@us.ibm.com"
] | myersry@us.ibm.com |
bf220ec9e1b3b975f52a72cf90820138d48076d9 | 6e046530f2b1af0427eb62ea5dfbaa22d5237d13 | /gammaDIME.py | 5f729d7f9fd14c83201d4aa9df356454336a8101 | [] | no_license | tonellolab/capacity-approaching-autoencoders | 6280ed3e2e1cd4f84849560b5cacb62c6ef81b0e | 8cbee1c3ef397e43c31e92d1c4daff6223a950a8 | refs/heads/master | 2023-07-14T16:17:03.702755 | 2021-08-16T15:06:40 | 2021-08-16T15:06:40 | 358,267,025 | 4 | 3 | null | 2021-08-16T15:06:40 | 2021-04-15T13:21:37 | Python | UTF-8 | Python | false | false | 256 | py | from keras import backend as K
# gamma-DIME loss
def gamma_dime_loss(args):
# define the parameter gamma
gamma = 1
t_xy = args[0]
t_xy_bar = args[1]
loss = -(gamma*K.mean(K.log(t_xy)) - K.mean(K.pow(t_xy_bar, gamma))+1)
return loss | [
"noreply@github.com"
] | tonellolab.noreply@github.com |
5d298ff21e6afdadc21bc2fbe07ae4710da9daab | 38c56fc953fe0357c37583adccb4e0f4a2527889 | /tutorial/snippets/serializers.py | 2cf614b0e3a3ad79b43a3922455a17e34f9bb093 | [] | no_license | GritTsai/Quanto | 8ff8c6c8e37eb5f63a153ec81cd8e28a1477b843 | 37c5f2769d1da406d9a901faa4e364027fdf9d69 | refs/heads/master | 2021-01-23T02:00:24.335310 | 2018-02-05T16:11:01 | 2018-02-05T16:11:01 | 85,957,943 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | from rest_framework import serializers
from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
from django.contrib.auth.models import User
class SnippetSerializer(serializers.ModelSerializer):
class Meta:
model = Snippet
fields = ('id', 'title', 'code', 'linenos', 'language', 'style')
... | [
"role0523@gmail.com"
] | role0523@gmail.com |
34169bde45dda89682996308a8ccec44842e2387 | 3d6faaf3df00343d43a595ec30ecae9d7f4e7d79 | /lib/assertions.py | 19357c98cf43c355ed20596d2161249df9cf0e36 | [] | no_license | softester-git/LearnQA_PythonAPI | 5b87847f2d8083206b2df5699ce7863eb07c64c8 | 9797d724f6f352a1a33253accc71347c476f7690 | refs/heads/master | 2023-08-11T07:30:12.123582 | 2021-10-09T04:37:26 | 2021-10-09T04:37:26 | 406,547,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,288 | py | from requests import Response
import json
class Assertions:
@staticmethod
def assert_json_value_by_name(response: Response, name, expected_value, error_message):
try:
response_as_dict = response.json()
except json.JSONDecodeError:
assert False, f"Response is not in JSO... | [
"softester@yandex.ru"
] | softester@yandex.ru |
924ae65f20072b085f7fdd454b10903b4ecfb6c2 | 73b7eb7d35080dc651c5a175dc93c9a963dd72d7 | /funciones_lambda/lambda_uno.py | f4e162a7b228673d1bf8b8bc56e8e5fa1a91aa0f | [] | no_license | jegiraldp/python | 90e0eea855f7fe30e11e91eb1fd735c33f1eeb48 | 440348356c86a957bd65c9f6ad632c557c2dbc3e | refs/heads/master | 2023-09-03T17:54:35.423108 | 2023-08-13T23:32:08 | 2023-08-13T23:32:08 | 159,452,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def cuadrados(num):
return num ** 2
print(cuadrados(3))
cuadrado= lambda x: x**2
print(cuadrado(2))
lambdaUno = lambda x: True if(x**2) >=10 else False
print(lambdaUno(5)) | [
"jegiraldp@gmail.com"
] | jegiraldp@gmail.com |
448999205226670ad837088b271340afbbc8ca80 | dc03f8304a56ec41b57086bf1412e36224048b5c | /run_visualizations_novelty.py | c379dfe427edd4612823b2ef0181d0c346c3b507 | [] | no_license | raulsenaferreira/PRDC_2021_Evaluation_module | 715001948ff72a5e9443004429919a83f78074f8 | 896125b7bfccb5ecf5482a1216bcc657764590ab | refs/heads/main | 2023-08-27T11:57:00.132854 | 2021-10-18T19:24:17 | 2021-10-18T19:24:17 | 301,345,580 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,273 | py | import os
import argparse
from config import plot_pos_neg_comparison
from config import eval_sm_performance
from config import eval_sm_impact_on_the_system
from tensorflow.keras.datasets import cifar10, mnist
from src import plot_functions as pf
from src import util
import neptune_config as npte
import numpy ... | [
"raulsenaferreira@gmail.com"
] | raulsenaferreira@gmail.com |
1556be169d22189943f753594145fa1744b6e4c6 | de0341aef4a487d1be271fc2bc3b3b60258ef6b0 | /programmers/Level 3/길 찾기 게임/solve 복사본.py | 1e15158ddbf3d18c418d9dfaebc5cb5c21cbdcb6 | [] | no_license | aver1001/github-practice | 485d8695cd4b9aa374c6b069832b3c0999fc4b6c | 62ab6de80e8246b627b880a7aff5d668b0fea889 | refs/heads/main | 2023-08-24T09:49:35.498578 | 2021-10-13T23:57:18 | 2021-10-13T23:57:18 | 379,813,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | preorders = []
postorders = []
class Node :
def __init__ (self,data,left = None, right = None):
self.data = data
self.left = left
self.right = right
def preorder(node):
if node == None:
return
preorders.append(node.data[0])
preorder(node.left)
preorder(node.right)
d... | [
"69618305+aver1001@users.noreply.github.com"
] | 69618305+aver1001@users.noreply.github.com |
afb152b826001990479508de7d7e34cea0e4f637 | 50b886e9565468e74a64a5563ef1d9f65f393fb1 | /problem_5.py | e6250dabb8a7b1d8ffd3404dc87ca4f9f24d817e | [] | no_license | ben-hunter-hansen/ProjectEuler | 8f4a3131a09b95118b0d9336230202e704646e90 | 5a307a71bf12b0f41fb9738334b8a9b446d51859 | refs/heads/master | 2021-01-17T09:01:35.451297 | 2016-03-30T02:09:12 | 2016-03-30T02:09:12 | 37,669,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 794 | py | # Project Euler Problem #5
# -----------------------------------------
# 2520 is the smallest number that can be divided by each of the numbers
# from 1 to 10 without any remainder.
#
# What is the smallest positive number that is
# evenly divisible by all of the numbers from 1 to 20?
from functools import reduce
def... | [
"ben.hunter.hansen@gmail.com"
] | ben.hunter.hansen@gmail.com |
5f7a882ac493f5606e6abb240272852b980809e0 | bd053d2bf5444ab8f0b8b0ff56772fa75281e38d | /pennylane/ops/qubit/parametric_ops.py | 555e4e926946ab402e54ca0a390ea633b1db97ed | [
"Apache-2.0"
] | permissive | johannesjmeyer/pennylane | bcb762583e95537b04a9b38756369571f957d2e5 | 8f602312baea107d5248267fb3dc1593722810e0 | refs/heads/master | 2023-07-11T18:21:31.086858 | 2021-08-14T19:21:42 | 2021-08-14T19:21:42 | 341,190,636 | 3 | 1 | Apache-2.0 | 2021-06-16T09:01:58 | 2021-02-22T12:19:10 | Python | UTF-8 | Python | false | false | 40,493 | py | # Copyright 2018-2021 Xanadu Quantum Technologies Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or... | [
"noreply@github.com"
] | johannesjmeyer.noreply@github.com |
279a76e53340519e4979dbc06d547c8df054147d | 93399b691ad3d1eb26940f31cbe3bfe298c43dfc | /venv/bin/easy_install | e8dd1c4c23d58bd1b1df9b082d4c647b477271a6 | [] | no_license | Rom1-J/projet-transverse | 38d635f38c501874813e5f64131085e2d3c937ab | 4a9ae0914d45a8f14d8cb7bc473a583e432cc50a | refs/heads/master | 2022-04-12T00:55:39.856232 | 2020-02-14T15:07:59 | 2020-02-14T15:07:59 | 239,025,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | #!/home/romain/Documents/efrei/L1/S2/projet-transverse/shooter/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"romain.ordi@gmail.com"
] | romain.ordi@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.