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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f0475f552f3189f8e821832b8f4615014a10222b | df77c7431f2576b1810938e750fe3b77110b73ed | /resize-images.py | 4781696671357959ea47968d113ec616c72a95df | [] | no_license | Korbisch/image-resize | 3bac2df68b34ce47297ee54de5306fe4185aa956 | f9fc8289d3bdfdf567914b145d6494242c6a3777 | refs/heads/master | 2023-01-30T15:26:54.602064 | 2020-12-14T18:46:35 | 2020-12-14T18:46:35 | 321,437,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # python script to resize images
# overwrites all the images in the same
from PIL import Image
import os
import sys
# set path to directory here
directory = "Path"
for file_name in os.listdir(directory):
print("Processing %s" % file_name)
try:
image = Image.open(os.path.join(directory, file_name))
... | [
"korbinian.schleifer@gmail.com"
] | korbinian.schleifer@gmail.com |
68c51d1866bc0265a7be5a7a8f911c0c0a1e7eda | a636f4eb15d85e7bb5c3a1ac431b0d107f8b49eb | /code/01_Daten_Merge.py | a99495600ade908e7207f51bf4a395b2ed4ebaa8 | [] | no_license | DS1-ATeam/covid-19 | 5056603fcf11c0fc8d19e7949176a21926fb87c6 | 52efde5c84756a6786b4dc8e00de5c27dbce705a | refs/heads/master | 2022-11-10T05:46:16.632421 | 2020-06-26T14:24:54 | 2020-06-26T14:24:54 | 273,921,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,107 | py | # -*- coding: utf-8 -*-
"""
@author: ATeam
"""
################
# Daten mergen #
################
############################
# Bibliotheken importieren #
############################
import pandas as pd
import sqlalchemy as db
##################
# Daten einlesen #
##################
kreise_sterberate = pd.read_cs... | [
"stefanklug95@web.de"
] | stefanklug95@web.de |
547e79d647115309955394e12606923465f9ea83 | 59b7d7000c21dfb4f55cffde2e53249627c9e028 | /11_ContainerWithMostWater/container_with_most_water.py | 2536ce2ad28b7718b5111d981d1c1217ff573d5d | [
"MIT"
] | permissive | xiaowei1118/leetcode-python | 5d95bca7367456c0ec99ece294ea9086295cd2dc | 24d4ccbbf9643100dd2de91afd5d30dca9b7ffe1 | refs/heads/master | 2022-02-18T18:41:59.896822 | 2019-09-10T02:45:54 | 2019-09-10T02:45:54 | 106,224,695 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | # coding: utf-8
# 给定 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。
# 在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。
# 找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。
#
# 来源:力扣(LeetCode)
# 链接:https://leetcode-cn.com/problems/container-with-most-water
class Solution(object):
# 递归做法
def maxArea1(self, height):
"""
... | [
"zhengzhihao@thundersdata.com"
] | zhengzhihao@thundersdata.com |
60478f86d50f53b1d361c8a21deef2a43bb1ef65 | 6c33e4baeda15398a910382ed64f646825591dd0 | /run_project/02_Pima_Indian.py | 893c61f5e55315aec58778663dd56e783fb4b587 | [] | no_license | ss820938ss/pythonProject_deeplearning | 0ad26797299df1eb5b549bd2a5309502d58a495c | baa55f492f07da955b45573ac52d7f61f2d0ee0d | refs/heads/master | 2023-07-09T15:50:37.319896 | 2021-08-10T05:15:46 | 2021-08-10T05:15:46 | 391,771,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | # pandas 라이브러리를 불러옵니다.
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# 피마 인디언 당뇨병 데이터셋을 불러옵니다. 불러올 때 각 컬럼에 해당하는 이름을 지정합니다.
df = pd.read_csv('../dataset/pima-indians-diabetes.csv',
names=["pregnant", "plasma", "pressure", "thickness", "insulin", "BMI", "pedigree", "age", "cl... | [
"ss820938ss@gmail.com"
] | ss820938ss@gmail.com |
841788cb2b9f1b192dd965780e12d2fb0f4b6501 | de7e12d132900a7d1e45ece28c804a68d68f452e | /author/thinkstats2.py | fb28823a5bd0225f50a2be7cb4f2648732e67e37 | [] | no_license | Kira1108/ThinkStats_impl | 7c40d811b9127a00d7e295eef5ec4b1a9b19919b | c1b34cfb651ce5302a1364f68516269af3fba05c | refs/heads/main | 2023-01-23T23:20:04.700260 | 2020-12-08T08:18:55 | 2020-12-08T08:18:55 | 319,367,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,821 | py | """This file contains code for use with "Think Stats" and
"Think Bayes", both by Allen B. Downey, available from greenteapress.com
Copyright 2014 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
"""This file contains class definitions for:
H... | [
"327485253@163.com"
] | 327485253@163.com |
07997779e8cb092d9e00990c2bf7bdcbb19f1282 | 0a48cf58d634c61edc28650588cced7957d5f552 | /main.py | 30619cdaaf2000ad21899ffac95a481022ba17c6 | [] | no_license | LakshyAAAgrawal/Polyplotter | 19a8318db0069d8d5ac18ac1f229543c8398fa59 | 5f7da7a6cacc67bc62e515c9eb3e6b1277606cd1 | refs/heads/master | 2020-04-30T18:06:32.399874 | 2019-03-21T18:31:41 | 2019-03-21T18:31:41 | 177,000,384 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,377 | py | # Author : Lakshya A Agrawal
'''
This is a wrapper program for the Polygon class, which initiates a Polygon object, and gives an interace to visualize the transformations by issuing commands.
Usage:
after running the program, type the type of object to be created
polygon
fo... | [
"lakshya.aagrawal@gmail.com"
] | lakshya.aagrawal@gmail.com |
319656fe921f03e471c8106c0cb1e344301332fc | 2e17f6cc87dbc13bd76b4ab16f0d51d17c5066ef | /mridc/collections/segmentation/models/idslr_unet.py | 3013e73a6bd13e992f78d5b824dcbe5e6ef3fffa | [
"Apache-2.0"
] | permissive | wdika/mridc | f91756778472f3313f2aedb962ecab19cee9832f | 6d15dd55ca5ed6fc9fbfd31d8488ee7bab453066 | refs/heads/main | 2023-08-17T16:57:30.676993 | 2022-12-16T17:09:53 | 2023-01-23T09:43:32 | 433,172,120 | 40 | 14 | Apache-2.0 | 2023-08-31T18:01:35 | 2021-11-29T19:32:33 | Python | UTF-8 | Python | false | false | 10,171 | py | # coding=utf-8
__author__ = "Dimitrios Karkalousos"
from abc import ABC
from typing import List, Tuple, Union
import torch
from omegaconf import DictConfig, OmegaConf
from pytorch_lightning import Trainer
import mridc.collections.common.parts.fft as fft
import mridc.collections.common.parts.utils as utils
import mri... | [
"noreply@github.com"
] | wdika.noreply@github.com |
9402a28531a151b5fd11fcfe2386ccbbfc1caea8 | affdede1070ccabed6390f9e0f17af65044bc8fa | /Douyu/settings.py | d0bf4225b2d05dc45ad6a0b0fe63e110f9a4b222 | [] | no_license | nenyah/Douyu | fb253af7ebfcb5fb89e02642bf9ce865af28f0dd | 9dc0a93aa141620d7f957c15d41e558a54c8812c | refs/heads/master | 2020-03-07T08:57:18.862040 | 2018-03-30T07:16:16 | 2018-03-30T07:16:16 | 127,393,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | # -*- coding: utf-8 -*-
# Scrapy settings for Douyu 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.readthedocs.org/en/latest/t... | [
"steven@nenyah.com"
] | steven@nenyah.com |
85f2ca2dc3e54d1d6bd9647dad7d3cbe14a37fcb | 3f7d5999bb7e5a75454c8df2c5a8adcd1a8341ff | /tests/unit/mock/procenv.py | a97081a52d2332cb01f5d0017c20c9c3ff26917c | [] | no_license | ansible-collection-migration/ansible.fortios | f7b1a7a0d4b69c832403bee9eb00d99f3be65e74 | edad6448f7ff4da05a6c856b0e7e3becd0460f31 | refs/heads/master | 2020-12-18T13:08:46.739473 | 2020-02-03T22:10:49 | 2020-02-03T22:10:49 | 235,393,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | # (c) 2016, Matt Davis <mdavis@ansible.com>
# (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of ... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
84d9955c742dab4d794893ed7783d6440bd8ce9c | 8e79d715f44068226048d6957a6fd5f3d587977c | /_1327/documents/templatetags/num_revisions.py | c0bbb8ad569f63e74a82cecc1cf4cf2708d5a2d5 | [
"MIT"
] | permissive | PFischbeck/1327 | 73990e77a98ac4487b7e709fc83fecbb7530c607 | 96ba119390e5166fa722a63259cb245d3d791c5a | refs/heads/master | 2021-01-18T01:24:24.113677 | 2017-01-04T15:35:38 | 2017-01-04T15:35:38 | 33,887,428 | 0 | 0 | null | 2015-04-13T18:54:53 | 2015-04-13T18:54:53 | null | UTF-8 | Python | false | false | 208 | py | from django import template
from reversion import revisions
register = template.Library()
@register.filter
def num_revisions(document):
versions = revisions.get_for_object(document)
return len(versions)
| [
"christian.bartz@student.hpi.uni-potsdam.de"
] | christian.bartz@student.hpi.uni-potsdam.de |
98d4948b986f60c3d4fb60f286e763e24192f924 | 71b11008ab0455dd9fd2c47107f8a27e08febb27 | /09、UI自动化测试及黑马头条项目实战/day08/03代码/等待操作.py | 2c49f02ff15dd038da5d5fa6df7401ffbae20dc0 | [] | no_license | zmh19941223/heimatest2021 | 49ce328f8ce763df0dd67ed1d26eb553fd9e7da4 | 3d2e9e3551a199bda9945df2b957a9bc70d78f64 | refs/heads/main | 2023-08-25T17:03:31.519976 | 2021-10-18T05:07:03 | 2021-10-18T05:07:03 | 418,348,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import time
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.webdriver.common.by import By
from utils import get_element, input_text
des_cap = {
"platformName" : "android" , #表示的是android 或者ios
"platformVersion" : "5.1.1", #表示的是平台系统的版本号
"deviceName" : "****"... | [
"1780858508@qq.com"
] | 1780858508@qq.com |
77ceb0223c09fd8f4e1e20c731296bf4051c99b9 | f4fce41f2b3cba606d2a36075de356434602d1c0 | /xwing_rulebook/rules/migrations/0005_auto_20170114_1838.py | dacc057a40679a2cab8dc474b609d6614fdb0e31 | [] | no_license | lvisintini/xwing-rulebook | 24a392c12a2b13027e7cf65b9cc41e8a21585e3c | 6dc7ac58f962a4928843364dcfc077638384dc16 | refs/heads/master | 2021-01-22T19:41:32.960048 | 2018-07-25T10:53:35 | 2018-07-25T10:53:35 | 85,224,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-01-14 18:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rules', '0004_auto_20170114_0010'),
]
operations = [
migrations.AlterField(... | [
"lvisintini@gmail.com"
] | lvisintini@gmail.com |
7d538662625104748e0d8ce3db20225b2e8cb6a1 | 30ec40dd6a81dbee73e7f14c144e20495960e565 | /kubernetes/test/test_v1_persistent_volume.py | 3f2fe9cff5949e5488c0fb3e07e8efbe740227a8 | [
"Apache-2.0"
] | permissive | jonathan-kosgei/client-python | ae5a46968bcee19a3c62e1cefe227131ac9e7200 | 4729e6865d810824cafa312b4d06dfdb2d4cdb54 | refs/heads/master | 2021-01-20T14:59:10.435626 | 2017-05-08T16:55:51 | 2017-05-08T16:55:51 | 90,700,132 | 1 | 0 | null | 2017-05-09T03:50:42 | 2017-05-09T03:50:42 | null | UTF-8 | Python | false | false | 883 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.6.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
ceca97e44c6e4f36718d127abad5c6a5009920ff | 95a11241714d3827987a0129f99b9330c867144b | /app_risco.py | 9ddaee5a34046ad108eef3884a4cc134b53bc037 | [] | no_license | demetriusengdados/CienciadeDadosRaizNotebooks | 9c120133a6dffe7e9ee0b2cf030d6f325596d4a5 | 2246513edbc77e0e0136e82ce05368cd9c6efd6a | refs/heads/main | 2023-03-26T17:50:07.547937 | 2021-03-26T15:05:29 | 2021-03-26T15:05:29 | 348,371,668 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,521 | py | import pandas as pd
import streamlit as st
import plotly.express as px
# função para carregar o dataset
@st.cache
def get_data():
return pd.read_csv("risco.csv")
# função para treinar o modelo
def train_model():
data = get_data()
data = data.drop(columns='id_cliente')
#Separando o... | [
"noreply@github.com"
] | demetriusengdados.noreply@github.com |
c83f7444ebca5692c7791e84d42cf962c4f62073 | a0ea3ba271a1a668314c5b66ad6c5c7eb1ecac50 | /WebPractice/NetworkProgramming/urlopen_retrieve.py | 2bb6bedd2fcb9976ba7c7980c92435f77234a041 | [] | no_license | jihaibo/workspace | b99f4cf2305ef57073d764b4ada7f78eb21a895c | 7377238b71d7e757f9b5c7f8f3ae8ddc0e97c073 | refs/heads/master | 2020-12-13T19:13:57.440147 | 2018-08-02T10:44:51 | 2018-08-02T10:44:51 | 90,354,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | # -*- coding:utf-8 -*-
author = 'haibo'
time = '2018-7-28'
"""
获取远程文件
"""
import urllib
urllib.urlretrieve('http://www.itzcn.com','D:\\workspace\\WebPractice\\NetworkProgramming\\python_webpage.html') | [
"1038726264@qq.com"
] | 1038726264@qq.com |
6effd0d2562d816e58d889808b24eb4eba7e3903 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project2/Project2/.history/blog/models_20211114171729.py | abf6466b64bc0655018e82ba7b33ac84f8f2a026 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 378 | py | from django.db import models
# Create your models here.
class Blog(models.Model):
title = models.CharField(max_length=250, blank=True)
slug = models.SlugField(max_length=250, blank=True)
author = models.ForeignKey(User, on_delete=models.CASCADE)
description = models.TextField()
date = models.Date... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
01291b9539d87fe62322d381ccc05afde2868cde | ce631cf6b27273ca54359b09f6cb5677bc6a6846 | /final_project.py | 3d993c078d1b451c41cda46ad1986cfd8a604d93 | [] | no_license | lyzlisa/ud088-restaurant-webapp | 13449fa146c465d8b310582a1cce2072cf999858 | 8c53c123a401dcd693a8e316e444154e70f17c0f | refs/heads/master | 2023-03-12T17:48:30.261669 | 2021-03-04T01:40:21 | 2021-03-04T01:40:21 | 334,025,482 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,980 | py | import os
from flask import Flask, render_template, request, redirect, url_for, flash
from db import DBSession
from models import Restaurant, MenuItem
from api import api
app = Flask(__name__)
app.url_map.strict_slashes = False
app.register_blueprint(api)
@app.before_request
def clear_trailing():
rp = request.... | [
"lisa.y.zhu@gmail.com"
] | lisa.y.zhu@gmail.com |
0908c1c55776df89765d3329e0a557520ade0b93 | d0528ac86cfbb323e3e0e2a667ac3fb29396b3b2 | /robosumo-tf1.1/model.py | 52d685916f89d597f5a3e542ee9d334f2002192d | [] | no_license | debajit15kgp/multiagent-competitive | 32223ec2d74d53556120b992c1a2b8e898957df7 | b54a4e1628909638f1110a94657dde2a4bd9ead9 | refs/heads/main | 2023-04-14T23:12:21.883586 | 2021-04-27T13:37:42 | 2021-04-27T13:37:42 | 362,123,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,104 | py | import tensorflow as tf
import joblib
import os
from baselines.common.tf_util import get_session
from baselines.common.tf_util import initialize
class Model(object):
"""
We use this object to :
__init__:
- Creates the step_model
- Creates the train_model
train():
- Make the training part ... | [
"c.debajit15@gmail.com"
] | c.debajit15@gmail.com |
715184433e0880b06cffd93aafcb0ed70d537c8d | 930822ded3de346524648244a6f8edc3e7a2a038 | /leetcode/maxProfit.py | 876984ef35022d6239ba77600de1160b2c0cb8db | [] | no_license | xy2333/Leetcode | 4ad317fa21d3b3c37859e76b25a87993c22ca1b2 | 5915e039868527d624ee4f0ad431d23c6ed2d8bd | refs/heads/master | 2020-06-19T13:30:14.755534 | 2019-08-12T02:12:03 | 2019-08-12T02:12:03 | 196,726,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | class Solution:
def maxProfit(self, prices):
if len(prices) <= 1:
return 0
maxprofit = 0
minrise = prices[0]
for i in range(1,len(prices)):
if prices[i] < minrise:
minrise = prices[i]
else:
maxprofit = max(maxprofit,prices[i]-minrise)
return maxprofit | [
"2531188679@qq.com"
] | 2531188679@qq.com |
06d17a35cbc21975766a435d689cf485b870cecd | e8f7fdf81ed393bda363873b15bfdb835a944237 | /src/contest/problem_298.py | bae71ff6caa7d25b798ab2237437e7e539b02eea | [] | no_license | pantonioletti/python_hacking | 29393b6e30d629c5ffb671a4f569908414864c47 | ebd0a66d73fab605579a98378ae1d1abf220316e | refs/heads/master | 2021-01-11T02:28:47.604685 | 2016-10-14T20:51:24 | 2016-10-14T20:51:24 | 70,937,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | '''
Created on Jul 22, 2010
@author: pantonio
'''
from sys import argv
from random import seed
from random import randint
from math import fabs
from threading import Thread
from time import sleep
import threading
class Multi_th_counter:
def __init__(self, val, lock):
self.counter=int(val)
... | [
"pablo.antonioletti@gmail.com"
] | pablo.antonioletti@gmail.com |
292922df67460ad972dc699f4fa57e221a7864d9 | 219abeecea273a9bff3110e16e90ef42d066f43b | /src/das/kapre/__init__.py | 1a27b16700500f81dcb923212b19b57f1fe98748 | [
"MIT"
] | permissive | janclemenslab/das | 255d68b90346c80200e50a9a26611fd5ed5ff82f | 77414b3ab685f080e187196164249f00aaa4a382 | refs/heads/master | 2023-09-04T23:34:50.999891 | 2023-08-28T09:47:28 | 2023-08-28T09:47:28 | 211,163,695 | 23 | 6 | null | 2023-01-04T11:58:53 | 2019-09-26T19:11:24 | Python | UTF-8 | Python | false | false | 237 | py | from __future__ import absolute_import
__version__ = "0.1.4"
VERSION = __version__
from . import time_frequency
from . import backend
from . import backend_keras
from . import augmentation
from . import filterbank
from . import utils
| [
"clemensjan@googlemail.com"
] | clemensjan@googlemail.com |
0315c96e5abc1d9431a14f6e69cc73e0f1086007 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/client/script/ui/station/lobby.py | 23ab9fb309b4ecb67c73b5253ea850ec54d24f23 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,461 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\station\lobby.py
import blue
from carbon.common.script.util.format import FmtAmt, CaseFoldCompare
from carbonui.control.basicDynamicScroll import BasicDynamicScroll
from carbonui.control.scrollentries import SE_Base... | [
"le02005@163.com"
] | le02005@163.com |
77e29b57c17461c94d1d533825481c6e5bcde110 | 7e1b095e5b16987e2e9871f7b48e492aacc4d14a | /python/days/day_08.py | 8525628c30ec8edbcfbf39d5ef7acfb351f57ae1 | [] | no_license | dfinninger/advent-of-code-2018 | 10315e85d6d18020518b9f0725fd1d182d80f2fb | ccdf9e57de55b9e728d2c3eb4037249997e4d503 | refs/heads/master | 2020-04-08T22:18:22.089953 | 2018-12-14T01:03:39 | 2018-12-14T01:03:39 | 159,781,421 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | #!/usr/bin/env python3
"""Advent of Code, Day 08"""
class Node:
def __init__(self):
self.children = []
self.metadata = []
def _get_data():
with open("../data/d08p1.txt", "r") as f:
data = f.read().split()
return [int(x) for x in data]
def _to_tree(data):
num_children = dat... | [
"dfinninger@tesla.com"
] | dfinninger@tesla.com |
2ecea5979db6133aff502b578a67fbd1acff5827 | 753a71b1c61f941e9b5c689beb5c9af0f69cbee1 | /setup.py | 8d843b025215c66e8dde44fb0c9bd0fe9a3e420b | [
"MIT"
] | permissive | ChadiHelwe/PyArabicNLP | 65ab0c50ff6c177fa996166c6553ccfd693b394c | 10e6450d322261e173cde4e6111d117656f9607c | refs/heads/master | 2023-02-13T04:04:28.035580 | 2021-01-01T20:33:46 | 2021-01-01T20:33:46 | 109,909,430 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | from setuptools import find_packages, setup
def read_requirements():
"""parses requirements from requirements.txt"""
install_reqs = open("requirements.txt", "r").readlines()
reqs = [str(ir).strip() for ir in install_reqs]
print(reqs)
return reqs
with open("README.md", "r") as fh:
long_descri... | [
"chadi.helwe@gmail.com"
] | chadi.helwe@gmail.com |
29d01b80c275af77e63f5fcd122ffecdf2cc0a5c | e4839f9c32cb57a2b907f2b3eb05f87b7cdcd9e5 | /templates/login/kamran.py | d2b1b5983fde4557ae6b6f00fd9127123f826e74 | [] | no_license | kalantarlikamran2/ali | 4fe900cfa67f40b3db1e2b850383871505e5249f | 413ece9ed5c3c45281dfbf3d5ce17af1da787e4a | refs/heads/main | 2023-01-03T15:51:35.826027 | 2020-11-04T20:46:29 | 2020-11-04T20:46:29 | 308,950,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | `
class ilkUygulama(App):
def build(self):
return Label(text='Merhaba Dünya!')
ilkUygulama().run() | [
"you@example.com"
] | you@example.com |
f9425ef439778a58fc21d6e63b234d775c01c852 | 30fd1c0d6fbf9729b7cfcce83304271917b83f13 | /bloch_dressed_states.py | f95f222e9ba80de2c40ae9e1d50612e7f8a363e0 | [] | no_license | GautierLKB/Cavities_state_prediction | 14f39f665ab90509a3b594b572acb9883e77d189 | ec3864353ed499d722fcdc7f16056f58c40f63b3 | refs/heads/master | 2020-03-22T21:23:45.947779 | 2018-07-12T10:36:01 | 2018-07-12T10:36:01 | 140,683,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 29 15:04:12 2018
@author: valentin.metillon
"""
from numpy import*
import qutip as qt
import matplotlib.pylab as plt
from qutip.solver import Options
#NH = 3
#psi_e = qt.basis(2,0)
#vac = qt.fock(NH,0)
#
#psi0 = qt.tensor(psi_e,vac)
#Form of th... | [
"noreply@github.com"
] | GautierLKB.noreply@github.com |
f9d70260ccb5d6e5df08bf64912526f78e6915f3 | 9693bf86a08fff02617273ed12371cf144edd045 | /n1_baseTensorNN.py | 7870c5eb5dac4daa22b51ea6479995158a4194e9 | [
"MIT"
] | permissive | Leticia-Han/PythonMachineLearningExamples | 07d3749f97a864aeba36393d0fd0f5ce6db47a05 | 1ebc7f59ae01897d3cb516e87d308a4ef0022299 | refs/heads/master | 2021-10-10T21:44:23.816963 | 2019-01-17T17:57:15 | 2019-01-17T17:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,149 | py | import tensorflow as tf
import numpy as np
from collections import namedtuple
import datetime
import ocr_utils
'''
# To see the results in Chrome,
# Run the following in terminal to activate server.
# tensorboard --logdir '/tmp/ds_logs/'
# See results on localhost:6006
'''
c... | [
"richard.r.lyman@gmail.com"
] | richard.r.lyman@gmail.com |
8f8b2ff559b6f1e0ee2e881dea34b83106c2a870 | f8436949ae6fb4eb42bf1badfaf3cb63dbdba61c | /pnt.py | b82ebf2a38f70af148b2e902fede58acc3867119 | [] | no_license | reulan/google_foobar | 6e4e3175fd7f7ebf09e4f636e77041c64f699c64 | 14e64252e709c1707c7ffd309e4b7d1c25e6ea85 | refs/heads/master | 2021-06-05T09:36:47.516030 | 2016-09-29T22:41:11 | 2016-09-29T22:41:11 | 69,091,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | class Point(object):
"""Creates a point class matching a coordinate and including prisoner_id."""
def __init__(self):
"""Default constructor if point is given no values."""
self.x = 0
self.y = 0
self.pid = 0
def __init__(self, x, y):
"""Default constructor if point ... | [
"os@mpmsimo.com"
] | os@mpmsimo.com |
fc6f4873dd90721d5e4783320ce22debaab6d6c1 | 70670a7fecbc053c323f4368d8cda8383bf4cae7 | /dl/utils/pp.py | 07bdc2ea90df210c20120c72f9815c2066adb32a | [] | no_license | YujunLiao/CV202009 | a23d9cb973869eee062ccc0b3551521e5a4a543e | a4b5cc20aa9790e58810e89125547ccbeebbc8ec | refs/heads/master | 2023-01-20T12:05:06.210596 | 2020-11-27T02:31:51 | 2020-11-27T02:31:51 | 298,990,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | import torch
def pretty_print(data):
print('----------------------------------------------')
if isinstance(data, str):
print(data)
if isinstance(data, list):
data = [str(_) for _ in data]
print(' '.join(data))
if isinstance(data, dict):
for _ in data.items():
... | [
"18916108830@163.com"
] | 18916108830@163.com |
4fe953b347177ae6fed8e7472e954e208a94074c | 4984a934467631ffe35dd277594184671284d5f6 | /Python: Create a Grid/Create a Grid 05/graphics_environment.py | 9a989e310b7cb8d3e4ba4501dd2d8cd2254679c0 | [
"MIT"
] | permissive | poly451/Tutorials | 8ce2a9d1166f7d63b1ce1e92bded2da16a7d29ef | 27ca5dc09bc69d2bced44cddbe4e7fd201c0e66f | refs/heads/master | 2022-05-17T06:42:16.833986 | 2022-05-10T02:24:54 | 2022-05-10T02:24:54 | 183,793,357 | 16 | 24 | null | null | null | null | UTF-8 | Python | false | false | 56,529 | py | import sys, os
import pygame
import constants
import utils
# -----------------------------------------------------------
# class Event
# -----------------------------------------------------------
class Event:
def __init__(self, mydict):
# print("mydict: {}".format(mydict))
sel... | [
"noreply@github.com"
] | poly451.noreply@github.com |
e46bcceeb1e79b9edce031b21c399f957deb42c3 | 1843fd5ccb4377240e664acd21ba5a9369eca2ab | /bluebottle/cms/migrations/0052_auto_20171027_1419.py | f9984292ed4b5065b5abffe1a367865208d217c1 | [
"BSD-2-Clause"
] | permissive | raux/bluebottle | ba2e576cebcb6835065004c410b22bd8a6b9ee29 | 49d92b5deb289c1539f99122abc20f845577b879 | refs/heads/master | 2020-03-27T03:20:11.465491 | 2018-08-23T13:09:25 | 2018-08-23T13:09:25 | 145,854,614 | 0 | 0 | null | 2018-08-23T13:05:00 | 2018-08-23T13:04:59 | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-10-27 12:19
from __future__ import unicode_literals
from django.db import migrations, connection
from django.core.management import call_command
def migrate_homepage(apps, schema_editor):
call_command('migrate_homepage', tenant=connection.tenant.schema... | [
"ernst@onepercentclub.com"
] | ernst@onepercentclub.com |
0e2b44f859aca64bd367487dd794d1647916cfd0 | 732379c72dba2c2156a2c7e83e7169862831106d | /wtfforms/wtfforms/__init__.py | cdaaeb69eeefd17ea164c862fdc6ccea078ac2ad | [] | no_license | ktamas8/flask | ed096c529ccf6036da54d1e402221dd314264659 | dd57d2463c33a00b35013a9518831a76b5626489 | refs/heads/master | 2021-06-24T08:20:30.334354 | 2020-08-05T21:28:59 | 2020-08-05T21:28:59 | 213,634,974 | 0 | 0 | null | 2021-03-20T04:57:57 | 2019-10-08T12:23:09 | Python | UTF-8 | Python | false | false | 314 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__, instance_relative_config=False)
app.config['SECRET_KEY'] = 'you-will-never-guess'
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////home/nisz/flask/wtfforms/wtfforms/site.db'
db = SQLAlchemy(app)
from wtfforms import routes
| [
"KapolnasiT@kopdat.local"
] | KapolnasiT@kopdat.local |
d285852497f8dd653f851867560b85abbab342a3 | 7d51eafd48d7af25ffb32f7f082e8ebad7d66dd7 | /dags/notebook_dags.py | b98c47ff8f9787ec838cad37310d34551bf86069 | [
"MIT"
] | permissive | glomero-maker/dromic-covid19-sitreps | e0abba3ad9145f7836579a40738c0466bfe5f62c | 6acff95d78ced8e6498d2fd263ec6c0994562de9 | refs/heads/master | 2022-04-24T16:49:33.517907 | 2020-04-29T02:56:58 | 2020-04-29T02:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,022 | py | import airflow
import boto3
import json
import logging
from airflow import DAG
from datetime import timedelta
from airflow.contrib.hooks.snowflake_hook import SnowflakeHook
from airflow.utils.dates import days_ago
from airflow.operators.python_operator import PythonOperator
from airflow.contrib.operators.snowflake_ope... | [
"111378+altcoder@users.noreply.github.com"
] | 111378+altcoder@users.noreply.github.com |
d4bf4a1ce5dd148cbf4958b5c7e17972349dca8f | c3ba17469ae8ac091a86bf43a8e6d7a90d55c891 | /card/opt_p.py | ca124f9fe2ca248f7eda8cfe8701f2a979059145 | [
"Apache-2.0"
] | permissive | joakimzhang/qa_study | 05f0ce2954654e51c3af5182334b906fbb467929 | ff8930e674d45c49bea4e130d14d73d17b090e48 | refs/heads/master | 2020-05-21T17:55:07.845016 | 2017-03-28T02:54:06 | 2017-03-28T02:54:06 | 64,127,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # coding:utf8
import optparse
import sys
parser = optparse.OptionParser()
parser.add_option('-a', action="store_true", default=False, help="the a option")
parser.add_option('-b', action="store", dest="b", help="the b option")
parser.add_option('-c', action="store", dest="c", type="int", help="the c option")
parser2 =... | [
"joakimzhang@163.com"
] | joakimzhang@163.com |
eab63fbe82bca57625621d55524aca8e205a8fe3 | 3be1558230788f86a2ae3d9b7225e8b122673fcc | /forum1/asgi.py | 397397e94b670787304eae1ad0e95d0d4f7ec2db | [] | no_license | IlhomDavletov/hackaton1 | f68a8b1a9470ef1aa3af354ed0f1ab8457a1ebe7 | 66f4592fadc73067daf5e95a45d933e5bd3dbd8f | refs/heads/master | 2023-04-06T23:24:01.164776 | 2021-04-08T08:53:19 | 2021-04-08T08:53:19 | 355,830,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for forum1 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"ilhomdavletov1994@gmail.com"
] | ilhomdavletov1994@gmail.com |
34658482aa9d8626eb276359c525914171603812 | 9f96edc222fbd016e3664803fb8932bbc2158b86 | /MCNPtools/to_temperature.py | b9ae94bb9cc52423574a73b4372768f9defd629a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | mpinilla/MCNPtools | 65e6194827939c74d1dc033d3b190ffe82e7764b | 5192111910328bc2220d8fa421d5928d93305ced | refs/heads/master | 2021-09-24T08:11:37.826781 | 2018-10-05T12:41:57 | 2018-10-05T12:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | def to_temperature(E_in):
### assumes MeV, gives kelvin
import numpy
return numpy.multiply(11604.50520 , 1.0e6*E_in) | [
"ryan.bergmann@psi.ch"
] | ryan.bergmann@psi.ch |
6d3dadff4855df7f95cecccfdac26225156b7255 | ef0ac2b1ab46e28cb2fa81162f9404caf700f7fa | /Lesson3_2.py | b668cb388e194f8bd2ef35577c7b539646d62a59 | [] | no_license | Krugger1982/practica | 00166553993ac9fd58a40aeb4943d478f82b6a25 | 07d0e647ca1460f439757f68201504e74d399e2d | refs/heads/master | 2023-01-22T17:14:09.000523 | 2020-11-19T21:37:31 | 2020-11-19T21:37:31 | 260,732,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import random
summ = 0
for i in range(2):
x = str(random.randint(1, 10)) + '.txt'
print(x)
with open(x, 'tr') as a:
try:
s = a.readline()
while s!= '':
summ += int(s.rstrip())
s = a.readline()
except TypeError:
print ('В фай... | [
"noreply@github.com"
] | Krugger1982.noreply@github.com |
061769634cf5b55cc3c09ac9f10dae2a954ef737 | edc6868a6066eddad37ca46a8716b3916c5036e0 | /MapLib/Tests/ParseJsonTest.py | 0cd01c957a95c74cdccc9a63aad63abb0dbaaeb5 | [] | no_license | Gawainus/CSAir | ba1adcf819895c5d5e873dde613fc9abf4f7b426 | 512f5942a28676b1deac494f487f32f8d3e87d5f | refs/heads/master | 2021-01-10T17:24:22.124255 | 2015-11-10T18:23:36 | 2015-11-10T18:23:36 | 45,931,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | __author__ = 'yumentsao'
import unittest
from MapLib import ParseJson
class TestParseFunction(unittest.TestCase):
networkDict = ParseJson.parse("../Data/Input.JSON")
def setUp(self):
print("Setting up")
def tearDown(self):
print("All Tests Run")
def testKeyType(self):
self.... | [
"yumentsao@Yumens-MacBook-Pro.local"
] | yumentsao@Yumens-MacBook-Pro.local |
3fbbc5c0f26e5caddce1e220e7e5e9422ca33c8c | 6b8366581101e183592ff5d65ba6c228223ef30d | /mp/tokenizer.py | 086a0397d2c952e98301d843c4d9d4c387465260 | [
"MIT"
] | permissive | BPI-STEAM/mpfshell-lite | a3af795502d20f990d2a084a106f3964beb94392 | e603c2abb942bf45c18519883e1b72760c4db04f | refs/heads/master | 2020-07-22T13:11:57.651653 | 2019-08-27T03:58:41 | 2019-08-27T03:58:41 | 207,213,197 | 3 | 1 | MIT | 2019-09-09T03:06:46 | 2019-09-09T03:06:46 | null | UTF-8 | Python | false | false | 2,163 | py | ##
# The MIT License (MIT)
#
# Copyright (c) 2016 Stefan Wendler
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy,... | [
"junhuanchen@qq.com"
] | junhuanchen@qq.com |
28a7e0db120d3e16175e66ba2ffce1d63cb186b4 | 1051634f6475f8c2d919299f2222b289f2637167 | /Website/src/Blog/admin.py | e703a32602e5249ec37cedf51c5e597a5bdae528 | [] | no_license | taobupt/books-management | 823e7a9fffa19e7e576c7247be28d5b79ad93282 | cc2d2cc9419ed3e779e2535117cd5474de953930 | refs/heads/master | 2021-01-22T07:10:31.544499 | 2015-09-22T17:29:13 | 2015-09-22T17:29:13 | 42,905,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from django.contrib import admin
from Blog.models import*
# Register your models here.
admin.site.register(MyUser)
admin.site.register(Book)
admin.site.register(Img) | [
"wangtaoo665@gmail.com"
] | wangtaoo665@gmail.com |
aee4e79f290b3fd40d4a7b48ee183e9474ecd328 | 83d3b73ed8e2eb75e1b8500b778c1a95bb0eab24 | /test/hard.py | 79eeec6f12b0e5b78e3e7ded7d20ff462e5885c8 | [
"MIT"
] | permissive | eaybek/hard | 46a6448124500304bfdaabe57f0887c74d4cdd30 | 35bddfbd24e0ab5c6d50d0d6bf6cb1d44b82f05b | refs/heads/master | 2020-08-13T21:34:37.343743 | 2019-10-14T13:39:02 | 2019-10-14T13:39:02 | 215,041,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | import unittest
class HardTest(unittest.TestCase):
pass
if __name__ == "__main__":
unittest.main()
| [
"eaybek@gmail.com"
] | eaybek@gmail.com |
7d952b7e8998224a2f02a2747b5562bfa08b3c73 | 670b4549020aa2eb674c533d1778c50cec65771d | /pos_speed_up/models/change_detector.py | c3a24493bab79d712594b7ef73d58450ca4d1e23 | [] | no_license | sm2x/Smay | 819691d2208a461e214e429575ad158cc6d7744b | ae40e4ef570cc7638842ce14810a4d69666db380 | refs/heads/master | 2022-01-10T21:50:15.330496 | 2019-04-27T16:00:47 | 2019-04-27T16:00:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models
class ChangeDetector(models.TransientModel):
_name = 'change_detector'
def broadcast(self, message):
self.env['bus.bus'].sendone((self._cr.dbname, 'change_detector'), message)
class Product(models.Model):
_inherit = 'product.index'
... | [
"gerardo.reyes.preciado@hotmail.com"
] | gerardo.reyes.preciado@hotmail.com |
9c8d47dea52c56f1f7c05c852e7faee0eb03d3ab | b9644ad6ba64622fe006cd28c3af4304d5a979cb | /catalog/admin.py | f2f1eed213a396c5947b4c8de887c0d0cb44abae | [] | no_license | kaustubhkk47/apis | c43df252fc6c070d38181480da66041726608cc2 | eba15d49b6959c00c65f34587661cec17c69b2d0 | refs/heads/master | 2021-03-30T17:35:49.981391 | 2017-03-31T07:53:20 | 2017-03-31T07:53:20 | 56,096,306 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from django.contrib import admin
from .models.product import *
from .models.productLot import *
from .models.productData import *
from .models.category import *
admin.site.register(Category, CategoryAdmin)
admin.site.register(Product, ProductAdmin)
admin.site.register(ProductLot)
admin.site.register(Product... | [
"kausthegreat@gmail.com"
] | kausthegreat@gmail.com |
857012b87df7c8b0cfaf1ee3ee2ab6abf975f424 | 2e5235a37f273de1c9853ee23ea62544ffd34d7b | /src/test/resources/expressions/slice/slice_list.py | 014b220a923c4037942aab68056c8711fc2c58bc | [
"Apache-2.0"
] | permissive | oxisto/reticulated-python | 535c939d28cd605c3a53443549cff4a0e19033e5 | a38c8bd9c842be4f4c8ddc73c61c70aeceb07248 | refs/heads/master | 2022-05-31T00:13:42.170678 | 2021-03-12T14:45:31 | 2021-03-12T14:45:31 | 223,569,455 | 4 | 3 | Apache-2.0 | 2022-03-07T13:35:09 | 2019-11-23T10:17:12 | Kotlin | UTF-8 | Python | false | false | 74 | py | import numpy
a = numpy.array([ numpy.array([ 1, 2, ]) ])
print(a[:, ::,])
| [
"noreply@github.com"
] | oxisto.noreply@github.com |
f1add283acde54d4ea54d2a3738a0fea719817d2 | 7c087701201c61e56f0b8537f63aaf5a65152df9 | /23kk.py | 0fce76c8c4e0ef97fff8fb2a787bed4462841c84 | [] | no_license | kaush4l/Euler | d42ca5d9c410feaeed91e3fabbe294e0535288b0 | 8f614d5b76956e531076ebd5f0368014a62fdacb | refs/heads/master | 2022-08-13T08:18:31.572629 | 2020-05-24T22:16:39 | 2020-05-24T22:16:39 | 261,652,384 | 0 | 0 | null | 2020-05-10T22:36:51 | 2020-05-06T04:34:01 | Java | UTF-8 | Python | false | false | 248 | py | def fib(n):
a = 0
b = 1
index = 1 # starting with 1 as we are checking for b which is 1 extra
while True:
a, b = b, a + b
index += 1
if len(str(b)) == n:
return index
print(fib(1000))
| [
"kaushal.beyblader@gmail.com"
] | kaushal.beyblader@gmail.com |
e1df0d13cf768984ca538d33767ed366c6c4e5bb | 9990119b6538b6b79241af6163203f0aba5c6231 | /code/dlgo/networks/small.py | e26931d9164adb7930c0df605c266bba60c5e9d2 | [
"MIT"
] | permissive | hirasaki1985/hirasar_go | 04dc32c55b80dd5af8e3c5a99089d57868dff9c7 | 35231e7e829ee4521dada1ca5ff5400a1b805376 | refs/heads/master | 2020-06-01T23:30:44.864936 | 2019-07-21T07:00:46 | 2019-07-21T07:00:46 | 190,965,695 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
# tag::small_network[]
from keras.layers.core import Dense, Activation, Flatten
from keras.layers.convolutional import Conv2D, ZeroPadding2D
def layers(input_shape):
return [
# ゼロパディングして入力画像を拡大する
ZeroPadding2D(padding=3, input_shape=... | [
"hirasaki1985@gmail.com"
] | hirasaki1985@gmail.com |
5a09b3f85242bf0316d4ff9527728d2eccc6fbce | f6dd6e7dbb57fce70a56983f0dc50550c1b5c3bf | /2/2_13.py | 90513884aa347ba71e787aee77311033e447c707 | [] | no_license | hiyuricu/NLTK | 42dec3a6e0b09e5489e8f843fb6904cb038b4acf | e96958d82017ac33484db7e52198e9009e64379a | refs/heads/master | 2021-01-10T21:00:37.129510 | 2014-07-10T08:05:07 | 2014-07-10T08:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import string
import nltk
from nltk.corpus import wordnet as wn
total, count = 0, 0
for syn in wn.all_synsets('n'):
if syn.hyponyms() == []:
count += 1
total += 1
print '%d/%d' % (count, total) | [
"tachibanaryuichi@tachibanaryuuichi-no-MacBook-Air.local"
] | tachibanaryuichi@tachibanaryuuichi-no-MacBook-Air.local |
37d6d32fcd278ad2b712650d14763c502eaffa31 | 0b454f8c1e6165507fca78b691a2137a249f5820 | /24_swap_nodes_in_pairs.py | 0dedcf02704f7a78918a97d06da3ffda4b6901e4 | [] | no_license | freephenix/LeetCodeAnswers | cf97416f2323e25fc1fe3a698ba3a9d15393565e | 9ffd0974dc325cec0fcf210943e9873069e64fe6 | refs/heads/master | 2020-04-15T09:36:24.092307 | 2019-11-26T02:50:43 | 2019-11-26T02:50:43 | 164,557,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def swapPairs(self, head: ListNode) -> ListNode:
if not head or not head.next:
return head
pHead=head
pHeadNext=head.next
pHead.n... | [
"zhangyi04@baijiahulian.com"
] | zhangyi04@baijiahulian.com |
36c89e82ed8b20baea5b08b67397103fe99e9772 | 48694c4312c6be6a5ef6b0152dc13b489b55252a | /code/measurement/absolute/mean_absolute_error.py | 90c62e8adfba298c135a373db7dd372afca64c56 | [] | no_license | maximshcherbakov/Framework-for-machine-learning-based-researches | 15befe930f0352cd8d102a121f68e0d2e9a0cb9f | 66756b9dacccf6b763c6a64b8a2291be38c3a22c | refs/heads/master | 2021-01-12T11:32:48.843684 | 2016-11-05T19:19:05 | 2016-11-05T19:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | from code.measurement.base import base_measurement as bm
class mean_absolute_error(bm.base_measurement):
def calculate(self, actual_set, forecasted_set):
measure = 0
for actual, forecasted in zip(actual_set, forecasted_set):
measure += abs(actual - forecasted)
return measur... | [
"konstantin.zadiran@gmail.com"
] | konstantin.zadiran@gmail.com |
ecfe31db402831bcdcc7b0c56e691aeca1488d68 | cc3da133ce2fd30501de7d705ac43c8851d96f26 | /travello/models.py | 7079682d0a579e1b719869667ee0dc50cdd98c24 | [] | no_license | RSRajendra/django_mongo | 90bcb562b15be17ac732349a75d463864d459396 | c75ae7ef1a57836e157b2388507e89c07574c36b | refs/heads/master | 2022-11-27T09:39:25.676756 | 2020-07-26T03:23:52 | 2020-07-26T03:23:52 | 282,456,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | from django.db import models
# Create your models here.
class Destination(models.Model):
name = models.CharField(max_length=100, null=False, blank=False)
description = models.TextField(null=False, blank=False)
price = models.FloatField(null=False)
image = models.ImageField(upload_to='pic')
offer ... | [
"rajendrasinghrana79@gmail.com"
] | rajendrasinghrana79@gmail.com |
01d8f69feee44111de91dbbc538d70ceb10bf5d5 | b4b19a444fb008fa1c37578c6381bd89abf2305d | /metnum-tp2-1C2021/tp2-alu/tp2/tp2/bin/jupyter-labextension | 0d5dd0b790b7072aa16f3c0f4fa5226889522ba8 | [] | no_license | ddrenteria/MNtp2 | 1192915a724580eb18d319c10774506bcb6f4022 | 66eb7fa9d700a9680348137510991fcf6167fefb | refs/heads/main | 2023-05-04T08:06:58.437115 | 2021-05-30T15:44:57 | 2021-05-30T15:44:57 | 365,571,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | #!/home/dago/Desktop/Facultad/MN/MNtp2/metnum-tp2-1C2021/tp2-alu/tp2/tp2/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from jupyterlab.labextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dago.derenteria@wearepsh.com"
] | dago.derenteria@wearepsh.com | |
2eaff4c0a947d923f02ef3bdabca7291afd10e81 | f518506fb620fd29a2db876c05de813508eda519 | /Project19/manage.py | e4a8f6d8ec98276420722e54947fecad37d976b3 | [] | no_license | Niharika3128/Django5-6 | 07435ae9088659e2d192cda60542aee5214e0637 | be3055ca91da45c37f9ec1adb626eea335477746 | refs/heads/master | 2020-06-02T04:28:37.016405 | 2019-06-09T17:28:33 | 2019-06-09T17:28:33 | 191,035,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Project19.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"niharika5475@gmail.com"
] | niharika5475@gmail.com |
ea8ec56d5cc9a488d617fbdf6dc2d3066ff0f0db | cd5f0ec9e3d738c9270aae8b368b0cb9ab8ebd6f | /neo4j/documentation/source_code/task3.py | 71cc1de0ecb4f586e69cdd1a5ea844de70885466 | [] | no_license | jakubowiczish/database-systems | 8f1d8ba47b30ce104d4646db0216af4b922ede7e | 3af1402115650851141c6a2b00d8c6adf485e558 | refs/heads/master | 2022-12-20T16:08:00.967244 | 2020-02-23T00:45:26 | 2020-02-23T00:45:26 | 214,160,363 | 0 | 0 | null | 2022-12-11T21:44:02 | 2019-10-10T11:05:06 | Java | UTF-8 | Python | false | false | 383 | py | def execute_task3(tx):
title = "Cloud Atlas"
print(f"\nDirectors of \"{title}\":")
for record in tx.run("MATCH (person)-[:DIRECTED]-(movie) WHERE movie.title = $title "
"RETURN person.name", title=title, ):
print(f"- {record['person.name']}")
# Result
# Directors of "Clou... | [
"jakub77plotnikowski@gmail.com"
] | jakub77plotnikowski@gmail.com |
58a1f2a8ab8f8a387b06c04d0d4b21363890c0ac | 5c55cfb335e21647dc7946a470ca28729c91d427 | /python_crpto/TurningGrill.py | e12e787a8863639ccba1ea686f4a2d5e1178d3af | [] | no_license | famedinap/Cripto-App | d1c7e56c9050ff7ac292d2c87fa1b112f125cafb | 25aaf3be89b163b9845a748256c5c0936c248b59 | refs/heads/master | 2023-06-17T10:52:40.221579 | 2021-07-07T20:31:00 | 2021-07-07T20:31:00 | 383,915,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | def genmatriz(tamano):
matriz = [[0 for x in range(tamano)]for y in range(tamano)]
for i in range(tamano):
for j in range(tamano):
matriz[i][j]=i+j+1+(i*(tamano-1))
return matriz
def posicion(p1,matriz,tamano):
a,b=0,0
for i in range(tamano):
for j in ran... | [
"famedinap@unal.edu.co"
] | famedinap@unal.edu.co |
6dfa0629704030039c0bb51faacc94cde5fa2a2a | f1330ad06f86455a6b7ae61f5617f78a4647cb18 | /dailyfresh/user_module/urls.py | 68ba6f3ce64a2dd82c6b36b56b098fb6cef2dcca | [] | no_license | pythonchuang/dailyfresh | 0d37c2a4db53527b9e2e2b7988be1bc8427440d7 | 64720733c14d845a89624169c263e4e8902df68b | refs/heads/dev | 2021-07-03T13:34:53.967419 | 2017-09-24T10:14:39 | 2017-09-24T10:14:39 | 104,314,992 | 0 | 1 | null | 2017-09-24T10:14:40 | 2017-09-21T07:20:43 | HTML | UTF-8 | Python | false | false | 649 | py | from django.conf.urls import url
from .views import *
urlpatterns = [
url(r'^register/$', register),
url(r'^register_handler/$', register_handler),
url(r'^check_name/$', check_name),
url(r'^login/$', login),
url(r'^checkloginstatus/$', check_login_status),
url(r'^login_handler/$', login_handler)... | [
"786355997@qq.com"
] | 786355997@qq.com |
3b4b6347e2535618b4e084f8032df2acc602fed0 | e2de3f6fe4373f1d98b67af61dd558a813250d54 | /Algorithm/baekjoon/11726_2xn타일링.py | b6bc38b1ab6cf1a8f42e411b2e97006abbff0e4d | [] | no_license | Hansung-Lee/TIL | 3fd6d48427a8b24f7889116297143855d493535b | c24ebab8b631f5c1b835fdc8bd036acbebc8d187 | refs/heads/master | 2020-04-14T11:18:54.035863 | 2019-04-05T07:26:55 | 2019-04-05T07:26:55 | 163,810,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | N = int(input())
li = [0,1,2,3]
for n in range(N-3):
li.append(li[-1] + li[-2])
print(li[N]%10007) | [
"ajtwlsgkst@naver.com"
] | ajtwlsgkst@naver.com |
3de9fa6c8d1864b50c9021330adba2eff465ccbc | 82c5cf483ca568c79afd131353c57c3113481759 | /vast/cli.py | c81a9d0d9976a529c838086103cd16251ba8baed | [] | no_license | rckoepke/vast-python | 72fecd5b4ffdb0cd12bae615bb1f8c71bf96f430 | fa50ead8c60d9db4d3fd2b73c99014acf05de6c3 | refs/heads/master | 2020-12-02T07:39:07.882095 | 2020-01-01T02:40:10 | 2020-01-01T02:45:13 | 230,936,892 | 0 | 0 | null | 2019-12-30T15:18:38 | 2019-12-30T15:18:37 | null | UTF-8 | Python | false | false | 896 | py | # from argh import ArghParser
#
# from .api import VastAPI
#
#
# def vast():
# vast = VastAPI()
#
# functionality = [
# vast.change_bid,
# vast.create_instance,
# vast.destroy_instance,
# vast.label_instance,
# vast.list_machine,
# vast.remove_defjob,
# va... | [
"koepke@gmail.com"
] | koepke@gmail.com |
1fced1f8cce087c0bbfdd61d98a7820b2eeef5ec | 419637376e445ec9faf04c877d5fb6c09d15903f | /steam/user/order/userCancelOrderActivityTest.py | 76c1e3a715c556e511a7af0fd3bc03f9bc9ddcd7 | [] | no_license | litaojun/steamOmTest | e4203df30acafaa5e282631d77429c0e4483fb88 | 86f84dbd802d947198823e02c2f1ba2695418a76 | refs/heads/master | 2020-04-02T21:48:55.115389 | 2019-07-11T06:08:27 | 2019-07-11T06:08:27 | 154,812,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: v1.0
@author: Lieb
@license: Apache Licence
@contact: 2750416737@qq.com
@site: http://blog.csdn.net/hqzxsc2006
@software: PyCharm
@file: userCancelOrderActivityTest.py
@time: 2018/7/11 10:09
"""
from steam.util.steamLog import SteamTestCase
from opg.b... | [
"li.taojun@opg.cn"
] | li.taojun@opg.cn |
aefe209940bc4b34c6bc1de86f72876bf4394890 | 4838552992476399d0452a92d0a38aa9b8b29c63 | /books/serializers.py | 9bcac01e22850c80eaea8102c4e89f7fa859d736 | [] | no_license | sannycand/books | 16cee4d0f8c1a1a4a52108fd0403c258620e146a | 593d77ccd1f4b68be0a5ed44adb495c034bea2a1 | refs/heads/develop | 2020-04-05T13:31:09.296128 | 2017-06-20T01:59:53 | 2017-06-20T01:59:53 | 94,852,739 | 0 | 0 | null | 2017-06-20T05:23:40 | 2017-06-20T05:23:40 | null | UTF-8 | Python | false | false | 412 | py | from rest_framework import serializers
from .models import Book, Review
class BookSerializer(serializers.ModelSerializer):
""" book serializer
"""
reviews = serializers.SerializerMethodField()
class Meta:
model = Book
fields = ('__all__')
def get_reviews(self, instance):
... | [
"earvin.gemenez@gmail.com"
] | earvin.gemenez@gmail.com |
a6d78ff474fd1580df292d9f8a1c8a5d5115120e | 9cd4ffc8b5f0bb4238444805e9f02e585885babc | /python-wot/things/mock_MovementSensor.py | 7c59b8af782a23a578978433b254acc9dbab94eb | [
"MIT"
] | permissive | marbirg/secure-iot-dashboard-prototype | 2a86304b34f34fe95fd362a1198c9cf603766c3c | 03c8410539c41a427bdb208257a18929bae8fb85 | refs/heads/main | 2023-09-03T06:14:54.856150 | 2021-11-05T16:22:25 | 2021-11-05T16:22:25 | 401,725,302 | 0 | 0 | null | 2021-11-05T16:22:25 | 2021-08-31T14:04:27 | Python | UTF-8 | Python | false | false | 2,082 | py | from webthing import (Action, Event, Property, MultipleThings, Thing, Value,
WebThingServer)
class FakeMovementSensor(Thing):
"""A sensor that detects movment."""
_instance_number = 0
_MIN_VALUE = -20
_MAX_VALUE = 50
def __init__(self, classification='private'):
... | [
"marcus.s.birgersson@gmail.com"
] | marcus.s.birgersson@gmail.com |
7f38490afde55aa9951bbab0fc7f49dd987bf4a1 | 28bcd4456f6d8bee84a9083702c97f66e25c6a66 | /milestone2/milestone2/codebase/fusetest.py | 9f5df9a88531c13504319281ba4fd1f9766db2e3 | [] | no_license | alexmoncion/COMP4000 | 0f743f5fda22ee14bd950f377a79903bd4b7a761 | b6bcf45cf8ff8871268657cc6aab359280af68a5 | refs/heads/main | 2023-04-11T00:06:43.843717 | 2021-04-25T00:25:09 | 2021-04-25T00:25:09 | 361,294,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from __future__ import print_function
import passthrough
p = passthrough.Passthrough("/home/student/Documents/test/")
print(p._full_path('/admin/'))
| [
"noreply@github.com"
] | alexmoncion.noreply@github.com |
409426e32e50759aa74d316fd98e9be4b5f8b9e9 | 49701b6719f8d6663dd63aa83a71ec23a6c6a4e1 | /Leetcode/index.py | 69c57d3081d01411e7e338158e0520c36fa21c1c | [] | no_license | ashwini-cm-au9/DS-and-Algo-with-Python | 6bb9c729f4e9e6900e41f2e9a85595c85aff0a79 | 2a55b63cb755c7ab25e76107b5031ce51e384abd | refs/heads/master | 2022-12-29T02:23:50.727684 | 2020-10-13T17:06:14 | 2020-10-13T17:06:14 | 289,513,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | class Solution:
def searchInsert(self, nums, target):
if target in nums:
return nums.index(target)
else:
nums.append(target)
nums.sort()
return nums.index(target)
if __name__ == "__main__":
s=Solution()
arr=[1,3,5,6]
target=2
print(s.se... | [
"ashwinichuri93@gmail.com"
] | ashwinichuri93@gmail.com |
a1ab7c61c5cea072957a5232d94838417434c5da | 499011740f23638198fa3550ae3b1903166e5323 | /Chapter6/frozenlake_q_learning.py | 972a0fb720520c7320bea728483e33e482498642 | [] | no_license | yudhiesh/Deep-Reinforcement-Learning-Hands-On | f11e8915cf7c8b202bbd1c4bed0d5c80799ff4a5 | 0e4a8a6b98c0e405a1fa6ea87ef9a3b0f5ea6662 | refs/heads/main | 2023-02-10T10:10:13.741075 | 2021-01-09T05:50:31 | 2021-01-09T05:50:31 | 325,590,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import gym
import collections
from tensorboardX import SummaryWriter
ENV_NAME = "FrozenLake-v0"
GAMMA = 0.9
ALPHA = 0.2
TEST_EPISODES = 20
class Agent:
def __init__(self):
self.env = gym.make(ENV_NAME)
self.state = self.env.reset()
self.values = collections.defaultdict(float)
def sam... | [
"yudhiesh1997@gmail.com"
] | yudhiesh1997@gmail.com |
0577c97f73a4e81d8f5fac967b35ececb87081d4 | c692ac4a34e8a1f44f6c4b9891a058188a647018 | /artificial_intelligence.py | 16dae3a4aa9bd025cb63024d45a421634e71ea07 | [] | no_license | maedwards3/RPSLS | e8d35d9ad37a489f447100be2c0783605a817e0f | f42a72e288b0c98e5214554097d5855b8839108f | refs/heads/main | 2023-05-01T16:08:51.242753 | 2021-05-20T13:38:42 | 2021-05-20T13:38:42 | 368,248,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | import random
import time
from player import Player
class AI(Player):
def __init__(self):
super().__init__()
def gesture_selection(self):
time.sleep(2)
self.chosen_gesture = random.choice(self.list_of_gestures)
| [
"michael.edwards.4108@gmail.com"
] | michael.edwards.4108@gmail.com |
114635dbdd614a124e3ed8f049bf0f44250abed7 | 38258a7dd9acbfb7adf72983015de68a948a4826 | /B_6000~/B_6749.py | 679d26eb42d51d74c4f4a7e4ff51b701aad91d01 | [] | no_license | kangsm0903/Algorithm | 13a7fe5729039a1d0ce91a574c4755a8a92fb02b | 7d713d1c9e2e4dc30141d4f409ac1430a357065b | refs/heads/master | 2022-10-04T00:33:49.247977 | 2022-09-26T12:51:16 | 2022-09-26T12:51:16 | 219,265,010 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | X = int(input())
Y = int(input())
print(2*Y-X) | [
"kangsm0903@naver.com"
] | kangsm0903@naver.com |
663d72eb1bc9a2eb0d869cc982a772be8d1d7e39 | 7d4db2a1f6dc20e2772a23a67befea7d5ee83555 | /Blog/django_project/django_project/urls.py | c0f8de4e4e6ffc5b0472751091b7ba843f30e0cc | [] | no_license | Dip-Baidya/Django_Blog_Project | d6ceaf699a66772f4d5c98a4424999d46f73e054 | 8ab82bf667b34d13cfee5151b9570a7cd402b1dd | refs/heads/master | 2020-08-04T01:22:30.947707 | 2019-12-19T20:26:09 | 2019-12-19T20:26:09 | 211,952,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,230 | py | """django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Clas... | [
"noreply@github.com"
] | Dip-Baidya.noreply@github.com |
7a4946bf049ebf1ed6ee4360fa21fb2fa3271c02 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/coghq/MoleFieldBase.py | 508ffbac0ff0495f22fc1b06a212904c3fadf747 | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | # 2013.08.22 22:19:18 Pacific Daylight Time
# Embedded file name: toontown.coghq.MoleFieldBase
import random
HILL_MOLE = 0
HILL_BOMB = 1
HILL_WHACKED = 2
HILL_COGWHACKED = 3
class MoleFieldBase():
__module__ = __name__
WHACKED = 1
MoveUpTimeMax = 1
MoveUpTimeMultiplier = 0.95
MoveUpTimeMin = 0.5
... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
d92958e24ff62b6981e69327f0d73818051e91d6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3035.py | cf3cfe0ebd3b61e847863f968039e9fe32db8586 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #! /usr/bin/env python
T = int(raw_input())
t = 1
while t <= T:
a = int(raw_input())
i = 0
while i < a-1:
raw_input()
i += 1
r1 = set(raw_input().split(" "))
while i < 3:
raw_input()
i += 1
a = int(raw_input())
i = 0
while i < a-1:
raw_input()
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d60c457b885b32b00ceac856cfe9b8c0ec25fde8 | bc367592d99721a8d9d1c1440ebfaaefac273d8c | /src/menu_constants.py | 0591935a8e7dd9e3c7b7b183e619a046891ce724 | [] | no_license | Amerikranian/Finger-Panic-Python-Version | fdc457413a8e8db944151a243ecb8d2f54c6615c | be38ba695d40b81049d0557929ec6921a4074e56 | refs/heads/master | 2022-10-12T05:03:26.634738 | 2020-06-15T21:35:30 | 2020-06-15T21:35:30 | 270,489,419 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | """Contains constants specific to the menu
Will be imported as men_c
"""
MENU_ITEM_TTS = 0
MENU_ITEM_SOUND = 1 | [
"olegjpittman@gmail.com"
] | olegjpittman@gmail.com |
451ab1594b11d8928c1109f60c4d88a1d49bd455 | 1ba591c4305076f13c9e858eb0505ce1ce5aa45d | /app/database/crud/podcast.py | 47eeb6e0892edec975e6688d19ef5274879623a7 | [] | no_license | shrikantnarayankar15/FastApi-Audio-Rest-api | 99adfd29c270a782c244d1fa9602500ceccc6e28 | b23cbe009ea8936fceddae3f8ddbf84050c759c2 | refs/heads/master | 2023-04-21T10:57:11.542229 | 2021-05-16T09:04:18 | 2021-05-16T09:04:18 | 367,822,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,310 | py | from sqlalchemy.orm.session import Session
from .. import models
from fastapi import HTTPException, status
from sqlalchemy.exc import IntegrityError, SQLAlchemyError
class Podcast:
def __init__(self, db: Session):
self.db = db
def create(self, request):
try:
result = request.di... | [
"k1nnn18@gmail.com"
] | k1nnn18@gmail.com |
7a74b09d2af23b609529ac816704e8a2d47f99c9 | efae79bc4b6771191c612b121a420f898356ae77 | /tests/_support/py_conf/fabfile.py | 502c718f919618cab02d64fcbad3831bad9e585f | [
"BSD-2-Clause"
] | permissive | WinstonN/fabric | bd0d7c432d22501022495663a1ee3a385c9b045a | 34edfe4a1cc9e3d72c3cc41490673db29afe7bbb | refs/heads/2.0 | 2020-12-22T17:03:27.644562 | 2020-01-10T21:20:58 | 2020-01-10T21:20:58 | 236,866,877 | 0 | 0 | BSD-2-Clause | 2020-01-30T05:06:49 | 2020-01-28T23:40:23 | null | UTF-8 | Python | true | false | 92 | py | from invoke import task
@task
def expect_conf_value(c):
assert c.it_came_from == "py"
| [
"jeff@bitprophet.org"
] | jeff@bitprophet.org |
23fe4055ae49646cdc77cdb973d2a2088cc3dcf6 | f85ba7bcd9fc709a2ebfd2fc55e6cd9972fb13b3 | /src/c2/ct-to-g.py | f0098af6e9747e99bc0a5cf5447af1c0ee5c401d | [] | no_license | taibon38/python_sample | 8dc5a84bc80d10af307bc946a0af5a374813741a | 520142da8f9d7657c57633c14c77a0da5b14ba2c | refs/heads/master | 2022-12-20T14:33:56.289124 | 2020-10-16T14:38:13 | 2020-10-16T14:38:13 | 301,029,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # カラットからグラムに変換する
# 変換の元になる値
per_ct = 0.2
# ユーザーから入力を得る
user = input("何カラットですか?")
# 浮動小数点数に変換する
ct = float(user)
# 計算する
g = ct * per_ct
# 結果を表示
desc = "{0}カラット = {1}グラム".format(ct, g)
print(desc)
p | [
"tai.sato@IT020A13039.local"
] | tai.sato@IT020A13039.local |
d69163d53f2a278126dae740f78392f90e009ba1 | 17713d586f680821759b0bba8e25046c2fa6a90b | /build/turtlebot3/turtlebot3_example/cmake/turtlebot3_example-genmsg-context.py | 1b3c982621275c8b2af4189ce01332d11ee1790b | [] | no_license | Saipriyavk/Delivery-Robot | fb899a8330815b02de118275dc6d7a1fad70bc8e | 9255791e683b32573227a1877b5fb92f000dfca2 | refs/heads/master | 2023-06-14T16:32:25.444170 | 2021-07-19T21:43:13 | 2021-07-19T21:43:13 | 387,573,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,339 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/saipriya/projects_ai_cse/devel/share/turtlebot3_example/msg/Turtlebot3Action.msg;/home/saipriya/projects_ai_cse/devel/share/turtlebot3_example/msg/Turtlebot3ActionGoal.msg;/home/saipriya/projects_ai_cse/devel/share/turtlebot3_example/msg/Turtleb... | [
"saipriya.vk31@gmail.com"
] | saipriya.vk31@gmail.com |
a55fe4dd1f941d86ce5e6712ea9c1f329a4cebd9 | 8eda0790660c19daac0b533f9005a851f34d4413 | /fuel_plugin/ostf_adapter/storage/storage_utils.py | 62ff41c417a2e67b6d024aea79c3fde1c8487571 | [] | no_license | DmitryIakunchikov/fuel-ostf-tests | 6c07e1580ab38d6ae4bc20fe9e3cfa9f93b3c606 | a941581af3a92678d02d70ed2edc19d8f2c40929 | refs/heads/master | 2021-01-16T12:16:22.856403 | 2013-10-22T10:41:14 | 2013-10-22T10:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # Copyright 2013 Mirantis, 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 ... | [
"tleontovich@mirantis.com"
] | tleontovich@mirantis.com |
d4d403b01e00e44d6866bca55752f5509a8b15f8 | 748b8c66d8d9f77e047033e07142328ea6939138 | /utils/create-captions.py | 3a8f8271fec5c0ed4ec02b5ca917f56240ba6ce5 | [
"Apache-2.0"
] | permissive | nakamura196/neural-neighbors | 68f073511f10fb2df4c9efb2e504d2f9fb3b8455 | 277cb6e6a2102ad9d850c4397ca454ecb347dd1b | refs/heads/master | 2022-01-24T15:16:49.170431 | 2019-08-11T14:37:23 | 2019-08-11T14:37:23 | 201,567,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import glob, random, os, json
files = glob.glob(
"assets/images/thumbs/*.jpg")
captions = {}
for file in files:
filename = file.split("/")[-1].split(".")[0]
captions[filename] = filename
fw = open("data/full-captions.json", 'w')
json.dump(captions, fw, ensure_ascii=False, indent=4,
sort_keys=True,... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
73b721e113d7cf0c9ae2c983f9167a0f7dee2a74 | 5e0318e40d2ecb1af07f2abf36d26979a0848255 | /temperature.py | 2675d212f2b4554212e82cdaac9967a9d3c65161 | [] | no_license | harshvs99/iotMW | 2bf312d84cb23cb14e891216154fee80f8c96022 | 13adebc78a23ae33c4e49cbbf9f73bb11b951637 | refs/heads/main | 2023-06-11T11:41:01.088146 | 2021-07-04T21:04:39 | 2021-07-04T21:04:39 | 382,889,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,471 | py | import spi as spi
import configuration as config
import time
SPI=spi.SPI()
class TemperatureSensor():
def configure():
pass
def getRawTemperature():
pass
def updateAdress():
pass
def stop():
pass
class TSEV0108L39(TemperatureSensor):
def __init__(self):
self.isSPIconfigure = False
self.temp={"sens... | [
"noreply@github.com"
] | harshvs99.noreply@github.com |
2ae90b6dffc7987765ffacf37be52a03f335f474 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_MovingMedian_Seasonal_WeekOfYear_SVR.py | 87afffb284e8c95e2d354f9e473c99b687fc4781 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 162 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Fisher'] , ['MovingMedian'] , ['Seasonal_WeekOfYear'] , ['SVR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
b56943194cc8eb8873c0f54ac94792638de5afe0 | 7391d18f36c691823ddc3f989f32cef5d979771b | /clock-main/helpers.py | fada5c40cc9626314fe64482f12a932f6cc68a04 | [
"MIT"
] | permissive | shakor29/covid-tracker | 14c88486570bb0bc0243bbf2860e7cc3a77ec0bc | bd6032e6191cb3feedd7d4f1b454662bae11a496 | refs/heads/main | 2023-05-07T04:12:22.450565 | 2021-05-21T00:35:38 | 2021-05-21T00:35:38 | 369,372,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | from config import (
engine, covid_api,
weather_api_key,
news_api_key
)
import requests, time
#text-to-speech
def makeAnnouncement(message):
try:
print(f"Making an announcement for {message}")
engine.say(message)
engine.runAndWait()
except Exception as e:
print(e)
... | [
"noreply@github.com"
] | shakor29.noreply@github.com |
fc7015ef5ce271e4d0aa090d7a4ab554dc4c3a1d | f266bafc8ca1fb81b2d1d0df8e418e2dd23dc8f1 | /src/data_loader.py | 7ed592b74ae935ae0235a27052aefdd0e49222bf | [] | no_license | jayantrane/Crowd-Count-Alert-System | 12c6b4ea18114b89b2b7f272d478e1bbb7ac53ed | 33083ae1d3dd50372fba2713add024cd5a0d2bb8 | refs/heads/master | 2022-12-04T15:56:51.505700 | 2018-10-23T04:50:06 | 2018-10-23T04:50:06 | 150,745,679 | 3 | 0 | null | 2022-12-02T14:37:43 | 2018-09-28T13:35:37 | JavaScript | UTF-8 | Python | false | false | 5,036 | py | import numpy as np
import cv2
import os
import random
import pandas as pd
import sys
class ImageDataLoader():
def __init__(self, data_path, shuffle=False, gt_downsample=False, pre_load=False, num_classes=10):
#pre_load: if true, all training and validation images are loaded into CPU RAM for faster processi... | [
"jayantrane811@gmail.com"
] | jayantrane811@gmail.com |
a01fac3aa0ec2d33e854eac1c3973308a9e2b23e | 8c0b804f1cc8cbf2f8788727df22a2cc149f7b5c | /gala/integrate/core.py | d7150e9b565f316c3bb7011aa15040378aa0d4e6 | [
"MIT"
] | permissive | adrn/gala | 579cc5a4ecb22df118e1c8a2322a46e935825054 | f62e1a6ae7a8466a4db5c8407471b524cf085637 | refs/heads/main | 2023-09-04T11:42:07.278388 | 2023-08-18T18:04:35 | 2023-08-18T18:04:35 | 17,577,779 | 115 | 89 | MIT | 2023-09-05T11:40:10 | 2014-03-10T00:56:18 | Python | UTF-8 | Python | false | false | 4,338 | py | """ Base class for integrators. """
# Third-party
import numpy as np
# This project
from gala.units import UnitSystem, DimensionlessUnitSystem
__all__ = ["Integrator"]
class Integrator(object):
def __init__(
self,
func,
func_args=(),
func_units=None,
progress=False,
... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
e9a75695d2bf750a8c813010462c6b37b028318b | b3ed5638b6065e17b6f7ca8092527a909d4a49af | /train_predict_script.py | f56c8bb7604140933915c0b81a69e59ceae7e7de | [] | no_license | gurinvlad/electricity_forecast | 7fd77eeb44754b435244013952858e7aba743be6 | b3f7879be76ed392b3e376d92817de3988cdb936 | refs/heads/master | 2023-05-26T10:48:16.646168 | 2019-04-09T13:48:47 | 2019-04-09T13:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,062 | py | from nn_architecture import NeuralNetworks
from extract_features import ExtractFeatures
from nearest_neighbors_reg import NeighborsRegression
from sklearn.preprocessing import StandardScaler, MinMaxScaler
from sklearn.preprocessing import OneHotEncoder
from statsmodels.tsa.stattools import ccf, acf
from statsmodels.tsa... | [
"noreply@github.com"
] | gurinvlad.noreply@github.com |
a9315221e8abc26a56807af8e4c00f8aadfd0519 | 6c9a3d3ff71adb17b5be62e694a91718c1bc09c3 | /atcoder/contests/abs/tasks/practice_1/main.py | 4631c22d60b6679f86afb159117dd3d220dd2186 | [] | no_license | aksh-t/programing-contest | 0085a484c824229b1e5a41cca29b13af39bfe65b | e4ac894e3228e659fdf2502c447dc3c75b9583e5 | refs/heads/master | 2021-03-26T15:09:48.306068 | 2020-05-17T17:22:26 | 2020-05-17T17:22:26 | 247,715,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | # PracticeA - Welcome to AtCoder
# https://atcoder.jp/contests/abs/tasks/practice_1
a = int(input())
b, c = map(int, input().split())
s = input()
print(str(a + b + c) + " " + s)
| [
"tanno.ao@gmail.com"
] | tanno.ao@gmail.com |
6a4b0552b744dec84088346b499869e5c6e2f442 | 284b88b3ff07430e17c04503f646db50677f627b | /Algorithm_w_Python/breakingRecords/breakin.py | bcea1259a3ac5551c57727e3d6f685001859b3ce | [] | no_license | ybgirgin3/hackerrank-solutions | ae61c27173c24c920f6e002a12a1acd20928cf59 | 58c4f62585d115eff3e1a43595d6a8375f185696 | refs/heads/master | 2023-05-27T11:32:06.099639 | 2021-06-13T18:12:22 | 2021-06-13T18:12:22 | 280,741,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | #!/usr/bin/python3
### çalışmıyor aq
import math
import os
import random
import re
import sys
import numpy as np
np.set_printoptions(suppress=True)
# Complete the breakingRecords function below.
def breakingRecords(scores):
# n tane sayı girilecek
# girilen sayıların max ve min terimlerinin
# hangi inde... | [
"ybgirgin3@gmail.com"
] | ybgirgin3@gmail.com |
894b824b511a8ca9cab36eb83afdfb6b3296cfa7 | 24ec64f9578f0bd57d5a98d682c36e8d3863c325 | /news/migrations/0009_auto_20160908_1724.py | d824c286260203d4bf4542686c9273701d4d8069 | [] | no_license | Darlyyuhui/Python-minicms | d62e09c3e3e48d369dcd3e8e00a686112583d864 | 06667afcb5cb031544fc187fb3f2ed2975362fbf | refs/heads/master | 2020-04-17T17:20:21.015640 | 2016-09-12T08:11:58 | 2016-09-12T08:11:58 | 67,675,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2016-09-08 09:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('news', '0008_auto_20160907_1705'),
]
operations = [
migrations.AlterModelOpt... | [
"darlyyuhui@hotmail.com"
] | darlyyuhui@hotmail.com |
496876d9c91aed228cefe6c33bfacb7f2d5652b0 | c1af5176737a9670ff502614e4a671dd0f9580a4 | /backend/models.py | 18a1b56b9b0b84f7b0d435e6be398e9b75ddeae5 | [] | no_license | chrisshino/shopify-de-internship | bf84d4f2f3c3c6276e91c07882a3501fa7fd18ed | 4f458cc157a3875d8d8680180139aa7123735518 | refs/heads/main | 2023-08-07T01:41:15.339605 | 2021-10-01T02:45:35 | 2021-10-01T02:45:35 | 406,147,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | from ext import db
"""
class User:
id:integer
username:string
email:string
password:string
"""
class User(db.Model):
id=db.Column(db.Integer, primary_key=True)
username=db.Column(db.String(25), nullable=False, unique=True)
email=db.Column(db.String(80), nullable=False, unique=False)
password=db.Column... | [
"chris.shino@hotmail.com"
] | chris.shino@hotmail.com |
d0d1dd77e2058064b00faa8dc46a145766a237d0 | 02033c12858f58c7408d852874a5b6655b7ab6ed | /q2_3_for_loops.py | 742e9643601dd15bf6f6933fb59db4ce47e417f7 | [] | no_license | manu-s-s/Challenges | a75b6532d6e02c631de23809bfb9918f234d9950 | 4fc03510570a438d0322939f0fba4b4e08bd5668 | refs/heads/main | 2023-08-10T15:58:35.391924 | 2021-09-24T06:06:18 | 2021-09-24T06:06:18 | 409,851,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | def process(paragraph):
paragraph=paragraph.split('.')
para=[]
for sentence in paragraph:
sentence=sentence.split()
sentence.reverse()
sent=[]
for word in sentence:
if '#' in word:
i=0
while i<len(word):
if word[... | [
"manussnova@gmail.com"
] | manussnova@gmail.com |
8d86da40269921bffa1c814385522d20c36cf4da | 28b0928057e96da28b268cbe1fe64ede3a2a20c5 | /addons/edi_product/models/edi_product_record.py | eeff16a7b54cf541e2c862d2bf6087f2e3be2e98 | [] | no_license | sasakuma/odoo-edi | 370061221e09f7ade1a7753ff237ebec24b55694 | 31a0ff761be3984adc5d6ceaabe781801715ad14 | refs/heads/master | 2020-03-29T18:24:55.576689 | 2018-10-29T04:50:51 | 2018-10-29T04:50:51 | 150,211,179 | 0 | 0 | null | 2018-10-29T04:50:52 | 2018-09-25T05:14:48 | Python | UTF-8 | Python | false | false | 2,829 | py | """EDI product records"""
from odoo import api, fields, models
class EdiDocument(models.Model):
"""Extend ``edi.document`` to include EDI product records"""
_inherit = 'edi.document'
product_ids = fields.One2many('edi.product.record', 'doc_id',
string="Products")
i... | [
"mbrown@fensystems.co.uk"
] | mbrown@fensystems.co.uk |
df8ba9bef4772f8a7f370c8dd7dd08a0986824c6 | a9ed9cc41f2c40a8ccf47b6d4889d11d3aaee710 | /UNM/CS527/Project0/addition.py | 79efd878ce8ce99cfcdd7d07626f146e720abf3e | [] | no_license | Letthemknow/school | 5e7198756a9293bab2fac3e3641350f619857290 | 77022746d23837f91c67b2e47a427907e6eafac3 | refs/heads/master | 2023-01-19T12:53:06.224385 | 2020-12-02T01:24:30 | 2020-12-02T01:24:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # addition.py
# -----------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
# ... | [
"wgalczak@gmail.com"
] | wgalczak@gmail.com |
6b71f866ea703c3ab8779cd1aa9032a704e63284 | 83c89ea578f8542c348c50f60d5953605ee3f117 | /main.py | ad320a4e0f3825335bfc4d4e36c5642ec7fcf4dc | [] | no_license | AlexDharmaratne/CSC-part-2 | 083ccb5ad5d52c5d8b8353ac59eac4c2cd559030 | 4a585d7bbaed779f3ae7baaf021cdbd75898836b | refs/heads/master | 2023-04-19T08:40:10.776559 | 2021-05-18T00:20:55 | 2021-05-18T00:20:55 | 368,355,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,457 | py |
from tkinter import *
import random
global questions_answers
names_list = []
asked =[]
score =0
question_answers = {
1: ["What must you do when you see blue and red flashing light behind you?",'Speed up to get out the way','Slow down and drive carefully','Slow down and stop','Drive on as usual','Slow down and ... | [
""
] | |
72a6a65ffdd3d53ac67077c757391b96952730ee | 1885c1cfdc131c4af427aef572e997b29e4cd5b4 | /venv/Scripts/easy_install-script.py | a071983052458059b7e9bbd4f01e34930cbc2197 | [] | no_license | EduardoIxen/Basilisk | fda444710a70ce35ef7a45b874ae1452f4243a03 | b61630aa5746ed5402f455a8eb6969dd9d6ad732 | refs/heads/master | 2023-04-22T16:24:54.110227 | 2021-01-19T18:45:15 | 2021-01-19T18:45:15 | 306,260,806 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!C:\Users\Dell\Documents\Python\Basilisk\venv\Scripts\python.exe
# 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?|\... | [
"tomas-1539@hotmail.com"
] | tomas-1539@hotmail.com |
473dd640c4ad60d5129b85f12606783c492705c0 | 6ddc3e66c5ddd51b7774c9b3258d3d968e6e382f | /mysite/settings.py | d93c55635a65d28794573fe9ec6e27e871fa8cf2 | [] | no_license | KitsuneNoctus/Django_Tutorial_BEW_1_2 | 6c17d495c36651dbcf3a2972d029acbab63fdffe | aa09a07d8f06de3cfee6ecf04c4a55054268d85f | refs/heads/master | 2022-05-06T05:40:39.506813 | 2020-03-05T12:35:16 | 2020-03-05T12:35:16 | 235,900,722 | 0 | 0 | null | 2022-04-22T23:05:16 | 2020-01-23T22:38:34 | Python | UTF-8 | Python | false | false | 3,360 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"theceintiant@gmail.com"
] | theceintiant@gmail.com |
9517f4bdae0e34e689aa4aa014ca48cd9ff1ebf2 | efe722c505c42c9a9d28939719e22a5870b5d152 | /very old/TheorieInfo/Huffman/htrees.py | ecc2a2a292abd19306a223604471e832fe524f9c | [] | no_license | TwilCynder/univ-documents | fd29b9ac27dc0daad804aae59884820eda3b90c8 | 3ea0eb8ead644b6231d5d3ee19ec0a1080463292 | refs/heads/master | 2023-04-03T12:49:34.425891 | 2023-03-20T18:09:30 | 2023-03-20T18:09:30 | 212,378,366 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | # The class of Huffman trees, with subclasses Leaf and Node
class Htree:
def __init__(self, val):
self.val = val
# constructor Leaf(val, code)
class Leaf(Htree):
def __init__(self, val, code):
self.val = val
self.code = code
# constructor Node(val, low, high)
class Node(Htree):
de... | [
"twilcynder@gmail.com"
] | twilcynder@gmail.com |
999f8590c96bd9f5cf4f156a8dda91530bc9703c | dc878af34f6b1d77f5dfa757d3644cc96e929127 | /sad_vk_2 (1).py | d650896e6d62404cc19222529b08a160ba7239e2 | [] | no_license | Sihionok/- | 8bc111f113819e6148e7ffc8dd80d2687c305c0c | 9415ff8535cdf5ffd71f9dd0fca13ff4078062b4 | refs/heads/main | 2023-01-24T13:33:34.118692 | 2020-12-02T15:01:49 | 2020-12-02T15:01:49 | 313,967,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | functions = []
def obertka(func):
...
def new_func(message = None):
if message is None:
message = input()
result = func(message)
if result:
print(result)
return result
...
print("в конце оборачивания")
functions.append(new_func)
return new_func
@obertka
def author_name(mes... | [
"noreply@github.com"
] | Sihionok.noreply@github.com |
4dea48ded089036df51b57008a85c8c9e308c501 | c760024f0d2d994415b02a0f25cf433b97b6b03c | /adv_board/migrations/0016_auto_20190326_0119.py | 60170b4e6f125d9832c1a79d38c3a2c296e49996 | [] | no_license | StasOverflow/adv_platform | 24da6045ba8ddc43a1f6888e502b2dc729a0593c | 26d363e8978b718ad8789e44cc6d59f03994c600 | refs/heads/master | 2022-12-15T08:47:01.168769 | 2019-03-27T21:46:54 | 2019-03-27T21:46:54 | 177,461,546 | 0 | 0 | null | 2022-12-08T04:54:33 | 2019-03-24T19:49:59 | Python | UTF-8 | Python | false | false | 389 | py | # Generated by Django 2.1.7 on 2019-03-26 01:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('adv_board', '0015_auto_20190326_0117'),
]
operations = [
migrations.AlterField(
model_name='imagepath',
name='path',... | [
"vladimir.alexeevich.morrowind@gmail.com"
] | vladimir.alexeevich.morrowind@gmail.com |
1c8f288a62c147192e4b384da86f76d8be65f9fc | 1d2b8f52298198dd2727a4a41fa7e6c1d931abc4 | /galavant/urls.py | 77dc78842d46ec6def9f77953e1d75d7d70724b5 | [] | no_license | nollybear/galavant | 8621129ec7403ac066064684b5327699e0c74078 | 1f98e7dcd08a936efdc17fcee2f5b16408441dbb | refs/heads/master | 2021-01-12T07:59:50.925785 | 2016-12-22T18:52:28 | 2016-12-22T18:52:28 | 77,082,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py | """galavant URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"nlindeke@gmail.com"
] | nlindeke@gmail.com |
00c78f679af941374fae9dcd67056e5b899fed30 | 4f34c3407476c531987d313964af1fae76b9e36f | /c2dh_nerd/ner/mapping.py | 6200f72392d3f9ed6f083ae61f2231d500c6e325 | [
"MIT"
] | permissive | C2DH/c2dh_nerd | e644cd655c46306e2f0606cb2bedf2dada6771c0 | b0ff7649aa3d1e98c217c518d8f9a3d75870f6c0 | refs/heads/master | 2021-06-23T05:39:22.846591 | 2019-12-19T14:03:02 | 2019-12-19T14:03:02 | 195,787,034 | 0 | 0 | MIT | 2021-02-26T02:31:03 | 2019-07-08T10:09:23 | Python | UTF-8 | Python | false | false | 1,604 | py | # Mapping to three standard wikidata classes: ORG, PER, LOC
# https://github.com/explosion/spaCy/blob/719a15f23d76f219fd303e94a8384c50c9fd61e2/spacy/glossary.py#L282-L309
ONTONOTES_TO_WIKIPEDIA_LABEL_MAPPING = {
"PERSON": "PER", # "People, including fictional",
"NORP": "ORG", # "Nationalities or religious or politi... | [
"theorm@gmail.com"
] | theorm@gmail.com |
8edfb3b6b4e1905f4abbf7699f990b3d6fe9d6c4 | 2662ec80bc48697b3041fdf00a3afcb55c531b7b | /networks/backbones/imagenet64x64_mobilenetv2.py | f5de4c359a8320f1cb457988820c5b77038bc1b2 | [] | no_license | TonyPod/Two-CILs | b3ae7b3298688d714fdb7378864b33a37f993313 | 0bcd19e52dddafc8fb1b4043db8a799a258c60d9 | refs/heads/main | 2023-06-01T04:49:40.146258 | 2021-06-23T08:35:33 | 2021-06-23T08:35:33 | 357,801,755 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,454 | py | # -*- coding:utf-8 -*-
"""
@time: 3/3/21 10:05 PM
@author: Chen He
@site:
@file: imagenet64x64_mobilenetv2.py
@description:
"""
from tensorflow.python.keras import backend, Model, layers, regularizers
def _make_divisible(v, divisor, min_value=None):
if min_value is None:
min_value = divisor
... | [
"843678719@qq.com"
] | 843678719@qq.com |
107d6599aa53e636b1012c931785822d483c5a95 | 7e3777d0250afff8080e44e78c2cc74ed40ba8ae | /read_google_v1.py | 85a82bf68dcd8694c32d2832fabb8268972aa9a9 | [] | no_license | mannurulz/Machine_Learning | de7e76b5f61d869f614debc033be4f7d0929a652 | 9641a4f5ca83d69d99b64292b31377177ba1497a | refs/heads/master | 2021-01-11T15:09:20.079303 | 2021-01-01T10:50:25 | 2021-01-01T10:50:25 | 80,301,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | import pandas as pd
import quandl
df = quandl.get('WIKI/GOOGL')
print(df.head())
| [
"mannurulz@gmail.com"
] | mannurulz@gmail.com |
ed93f6359fc8c624ea8f4a3efb3595b551de4a00 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyinst/pyinst-000/postinst.py | fe27556ee5b15caee330210d5f7103f3ac5dc6f8 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/env python
import os, sys, getopt, signal, select, time
import subprocess
verbose = False
# ------------------------------------------------------------------------
def exec_program2(fname, arg1, arg2, arg3):
global verbose
try:
if verbose:
print "Started", fname
... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
947defdb896634c0a1852c38552c4cbaf09b800f | 8d860113a1f9de5ac887f8777f97cc267f2f2177 | /爬虫1/toutiao/toutiao/items.py | 33e19af49374ea477084794565dd9f2e7e4df2db | [] | no_license | shuhangshen/Crawler | 68cdac7a584dcb51202950d5ecd8c0234caedc9d | 60f499a7eacdc472fb90e200bc409d19819a178e | refs/heads/master | 2020-07-16T14:03:22.935046 | 2019-09-12T02:46:55 | 2019-09-12T02:46:55 | 205,802,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class ToutiaoItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = scrapy.Field()
field = scrap... | [
"xingrenxiaoshu@gmail.com"
] | xingrenxiaoshu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.