blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
85d04338d64d7d444e83215d37536e20f9f2f2fb | b3b6f9edbcf7361d45b1b53853c05a281ad46a67 | /Companies Question/27 Excel Sheet Part - 1.py | d2e9b47b3e8832421527c85d6b8dc351aaa96128 | [] | no_license | nishantchauhan00/GeeksForGeeks | 7006e1fc19ca6e8f3b18c8abd3634ae9c78423ce | a0971e8e97b979f6843b433354a3e851559239dd | refs/heads/master | 2022-12-16T13:15:15.761935 | 2020-09-21T23:51:21 | 2020-09-21T23:51:21 | 297,486,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | def solver(n):
out = ""
while n > 0:
x = n % 26
if x is not 0:
out += chr(x + 64)
n = int(n/26)
else: # if x is 0:
out += 'Z'
n = int(n/26) - 1
return out[::-1]
T = int(input())
for _ in range(T):
N = int(input())
print(solve... | [
"nishantchauhanbvcoe@gmail.com"
] | nishantchauhanbvcoe@gmail.com |
faf8c8fe8ef760c255a1876d743f8888cd3c3979 | 700b632791b4a9edb66b11de899b2d2c9ce0849c | /src/incidencias/api.py | 92883cd3f70f344b3ac00969b08aa188853d7c0b | [] | no_license | pablomt/Ejercicio-Backend-Incidencias | 4c78249a53a8d1b72be818201c59c9b8ea0bd2d0 | 4a19df90877c38005106806616cda174fba31e1c | refs/heads/master | 2021-07-08T02:07:53.181664 | 2017-10-02T15:02:50 | 2017-10-02T15:02:50 | 105,333,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,145 | py | # coding=utf-8
# Librerías extras de Django requeridas para la manipulación de la información.
from django.db.models import QuerySet
from django.views.generic.list import ListView
from django.http.response import HttpResponse
from django.db.models import Q
from django.db.models.aggregates import Sum, Count
from dateti... | [
"pmoretepi@gmail.com"
] | pmoretepi@gmail.com |
f9bd3ed65fdfbde836edc6b63ca43bbde1280abe | 0ec65a65935e877dec4fe97ff9b9422eee1b0d74 | /更新excel数据_泡菜数据腌制.spec | 17e73a00b9af586783bf0e00a5d973ceab2b4999 | [] | no_license | kuifye/-python- | 48f438a9a5bac340175212810e2e8a7c89b6e5ec | 26c2d2793901c611c498fe475d0e7af67e71de46 | refs/heads/master | 2022-11-02T21:45:19.345657 | 2022-10-18T12:30:00 | 2022-10-18T12:30:00 | 266,112,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['更新excel数据_泡菜数据腌制.py'],
pathex=['D:\\资料\\程序\\python\\heathstone\\hearthstone'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
... | [
"noreply@github.com"
] | noreply@github.com |
1c93b3cc18e5fdea86e84540ef2d5a8c8add5445 | 2307605c5c23581069b0ac919924adc16dba3bd2 | /mathCalc/printN_fibanocci_Number.py | 3fc5f383a390ea3d55baf49d973d7a14e3ea237e | [] | no_license | kshitijyadav1/Python_Programming_Stuff | c2bf0c81e09065452c8a7af658303c0abe751563 | 15b476a498e1a1cb3fb4dfa9c651d053a0f2a90f | refs/heads/master | 2020-08-04T08:36:35.409140 | 2019-10-21T03:28:02 | 2019-10-21T03:28:02 | 212,075,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #! python3
# find fibanocci number from the series init and to where the series end.
import sys
from_ = 0
to_ = 0
try:
to_ = sys.argv[2]
except:
to_ = int(input("Enter the fibanocci series range: "))
def n_Fibanocci_series(end):
numberA = 0
numberB = 1
fib = 0
for val in range(end):
if val == ... | [
"kshitijyadav147258@gmail.com"
] | kshitijyadav147258@gmail.com |
9ad82cda5743375f3dcf03cb7bb97819ab9ff685 | 0e4fe0e4ac4cc49e60b1aee752f7aabf17f905f0 | /producer/api_caller.py | d9224e9a88dff9f74581362f3679a843c8bcb186 | [
"MIT"
] | permissive | igorgorbenko/aviasales_kinesis | 2c77afa0a47d6a580a00a571d0ab88c45a502036 | 46c099e0f8a96e85244954a6dca1aab81405b91f | refs/heads/master | 2021-03-23T03:46:55.265449 | 2020-04-27T07:40:01 | 2020-04-27T07:40:01 | 247,420,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | #!/usr/bin/python3
"""Example Code of API calling to receive the prices of the tickets."""
import sys
import time
import logging
import csv
import asyncio
from aiohttp import ClientSession, FormData
from urllib.error import HTTPError
import json
import uuid
TARGET_FILE = time.strftime(r'/var/log/airline_tickets/%Y%m%... | [
"igor_gorbenko@list.ru"
] | igor_gorbenko@list.ru |
1583d364dfcf8b3a6940cd3fdd51c257ddb2337f | 6ab2fc04b77315072d202d31fa39357c2a8dbffd | /neuralpanda/analyser/aEvokedPotential.py | 6903c1327b9475dad38b3de3ae2b2cd0b3dfe36c | [] | no_license | kupo9/neuralpanda | b1e84dba826dbc8895ff7389a9af1e5ffa8820fd | 8814703925016e3c10d1ebed65763eb02ff4950b | refs/heads/master | 2020-03-26T16:38:06.094784 | 2018-08-17T11:51:16 | 2018-08-17T11:51:16 | 145,112,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,387 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 17 14:19:31 2015
@author: Pomesh
EvokedPotential methods for analysis. For now, the matplotlib code is here.
It'll need to be moved later.
Adding write to excel and txt file, use self.currPlot to get the index to the
current plot. Rename this in the code, A1, C1 are ma... | [
"kupo9.tmp@gmail.com"
] | kupo9.tmp@gmail.com |
b4199952fdd0dccb29de5104b84e01be8057babf | d7aaacce581943b22c36943e6e487a5641bf4f03 | /src/friendlypins/thumbnail.py | 14898ef0301c6c1b400e6aadcecda0643ed514ed | [
"Apache-2.0"
] | permissive | TheFriendlyCoder/friendlypins | a8bac31f941fbb96dd5422d873acece59e6944ae | 5f7f4a70c1681f1177a14d4aa7669797e2f5bdcd | refs/heads/master | 2021-11-08T00:28:23.054020 | 2021-03-07T00:32:05 | 2021-03-07T00:32:05 | 127,459,545 | 5 | 0 | Apache-2.0 | 2021-10-21T18:43:19 | 2018-03-30T18:19:37 | Python | UTF-8 | Python | false | false | 1,121 | py | """Primitives for operating on Pinterest pins"""
import logging
import json
class Thumbnail(object):
"""Abstraction around a Pin's thumbnail"""
def __init__(self, data):
"""
Args:
data (dict): Raw Pinterest API data describing a thumbnail
"""
self._log = logging.ge... | [
"thefriendlycoder@gmail.com"
] | thefriendlycoder@gmail.com |
096aa9fd40cf41cf3019872c32497b5338e2fef0 | f696cf7d4eacb113b399c26796a254aa9e4e8635 | /services/suspicious/scripts/wsgi.py | ea891341d41bb52c3898ed4f3b81327fcd40d28d | [] | no_license | VladyslavKurmaz/spot-monitor | 6eb10533c5ff7dcb3811d0bd9ee4387e87a3f8e6 | 2c49f7fc9dda780715102538edc4094daac68c36 | refs/heads/master | 2021-04-30T05:19:31.711215 | 2018-04-02T14:20:06 | 2018-04-02T14:20:06 | 121,412,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from logging.config import fileConfig
fileConfig("./logging.conf")
from app import app
if __name__ == "__main__":
app.run(host='0.0.0.0', port=8001, threaded=True) | [
"oleksandr.popovych@globallogic.com"
] | oleksandr.popovych@globallogic.com |
c9ceee3b6bd55136e70ee6e21bb059a28b3d963b | 27305b08ae1378fd9b84b6f48a79e5896fc38e9b | /jogos/routes.py | b57c2c18d563239686ff9b5518fd453f60f97d71 | [] | no_license | carloshdurante/tabela_brasileirao | 404d3d112236db078d49a73b411c0a26de181863 | 318497ba9ea8195a64ede95d6727289eb7f519a4 | refs/heads/master | 2023-05-10T09:58:52.146492 | 2021-06-07T07:43:31 | 2021-06-07T07:43:31 | 374,576,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | from flask import render_template, redirect, url_for, flash, request
from flask_login import login_required
from jogos import bp
from jogos.forms import NovoJogoForm
from models import Jogo, Time
from brasileirao import db
from sqlalchemy.exc import IntegrityError
@bp.route('/')
@login_required
def index():
jogos... | [
"carlos.durante@outlook.com"
] | carlos.durante@outlook.com |
6ff66a5e7100cbdd1877f359622be88b41e19b2c | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/keras_applications/inception_v3.py | 1b825c0ce4aea562e468b337a5843f63810f57d5 | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6bdeecc0c5e0341451f5d87e17d12c89a210b6161e1b066aca6e02bc425b2abf
size 14598
| [
"github@cuba12345"
] | github@cuba12345 |
a2db034c1d50da2e34891134fde2e681c236bfe9 | 8c97bb5c1086ba74530d22f9c50819397978a974 | /users/models.py | c3b92318a1becc6ff1ca1bf09ce162088cb82cfb | [] | no_license | AKTANBEK/github_lecture | 57b9f3ba608ff74d6f8869a3a65ad40048a381c4 | 4a451d7637ed30e25e5d0f30b6ecfbabe18f57ff | refs/heads/master | 2023-05-01T23:50:44.522990 | 2021-05-28T11:53:50 | 2021-05-28T11:53:50 | 363,147,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from django.db import models
from django.contrib.auth.models import User
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
def __str__(self):
return self.user.username
| [
"uaqwe1147@gmail.com"
] | uaqwe1147@gmail.com |
2e4a78b6ce6826ea057191500296c3f66e2baed0 | d55b7c1896cfa69f9972a111c5cc33e5721587a2 | /Trees/convertSortedArrayToBST.py | db6c176d2ae558121c9bbe05da6c9dd2be3aa542 | [] | no_license | SumaDodo/Programming-concepts | 6777f530d70cc8167ffa599e675bfd059260c0d0 | bdb453dbcec5da65f5c99b0b91c1e230faa68178 | refs/heads/master | 2020-03-26T22:26:28.081618 | 2019-10-26T07:11:54 | 2019-10-26T07:11:54 | 145,458,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
... | [
"noreply@github.com"
] | noreply@github.com |
568aa59ae896f8dcad1d6c4c19a117a22a0ff63c | c4d05bf624ce277b35d83ba8ba9636f26043280e | /project/urls.py | d6e90307036ceed43e1f6355ce2dc672ebb0e233 | [
"Apache-2.0"
] | permissive | DrMartiner/kaptilo_back | 2366b3a2b5c9bd9dc57c9091ff5fd0025963668d | df7f716030edbb1a70388fcbb808b0985dabefbf | refs/heads/main | 2023-04-09T03:12:52.274388 | 2021-03-22T09:48:39 | 2021-03-22T09:48:39 | 349,943,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import path, include
from apps.link.views import OriginalLinkRedirectView
admin.site.site_header = "Kaptilo"
admin.site.site... | [
"DrMartiner@GMail.Com"
] | DrMartiner@GMail.Com |
61089b5be8aca25aef1be234390e37e45c3041ed | 0107625e299239a0b4231445b4c2618b9af1922e | /lib/kernel/test/kernel_bench.spec | 8de60dae31702c317c6e39c02d9ca728d6fdac99 | [
"Apache-2.0"
] | permissive | couchbasedeps/erlang | 2e06918303e2aa065d77624efb4d17a3116a854a | abd486acf586207ee2c3e8dd3589e817527887c0 | refs/heads/couchbase-madhatter | 2023-07-09T08:02:53.966922 | 2022-12-19T23:38:56 | 2022-12-19T23:38:56 | 30,359,045 | 2 | 8 | Apache-2.0 | 2023-03-29T16:19:50 | 2015-02-05T14:20:04 | Erlang | UTF-8 | Python | false | false | 46 | spec | {groups,"../kernel_test",zlib_SUITE,[bench]}.
| [
"john@erlang.org"
] | john@erlang.org |
8d6b7100e1ca9bc1aa8edd46c91935f9aebbd87e | 3a1be455fc5e117bd8792ed46c59793f8b29a01f | /python/paddle/distributed/sharding/group_sharded.py | 6fd4caa7b4a5c41e73fcf95ac50d0253bb3e7c79 | [
"Apache-2.0"
] | permissive | liyancas/Paddle | 42d5e7c71c37b4e63bf54e6e31e82e40aef044ce | 98303291d27cb831b19111d82793159cbe9a85ca | refs/heads/develop | 2022-05-21T03:27:16.497238 | 2022-04-01T00:52:17 | 2022-04-01T00:52:17 | 72,499,865 | 0 | 0 | Apache-2.0 | 2022-02-11T08:16:37 | 2016-11-01T03:17:41 | Python | UTF-8 | Python | false | false | 9,839 | py | # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | [
"noreply@github.com"
] | noreply@github.com |
cb40eb72702412c39e279e92f220c505c9ded27a | 47d380ce6ab4c1110921702e996e34a91b50e7e3 | /code/createAdjacencyMatrix.py | 6c335e6970d3933a6e6f0e33a74af6618e9faeca | [] | no_license | stamakro/revival-ppi | 7af4299cef3103f66c7dea79bb50ca7b5fee4e9c | b7102abba7584fe0583abc6c1315adf52cb7c450 | refs/heads/master | 2022-12-18T09:51:02.338318 | 2020-09-17T12:26:09 | 2020-09-17T12:26:09 | 239,557,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | import numpy as np
import pickle
from scipy.sparse import csr_matrix, save_npz
import sys
species = sys.argv[1]
try:
prefix = sys.argv[2]
except IndexError:
prefix = 'P_'
try:
excludeUnannotated = bool(int(sys.argv[3]))
except IndexError:
excludeUnannotated = True
path = '../data/' + species + '/... | [
"stavrosmakrodi@login3.hpc.tudelft.nl"
] | stavrosmakrodi@login3.hpc.tudelft.nl |
8065d754386fc0b3762e05f4fc04a7f53121086e | 9da6c375dbf1af87622a2ba0fb773e8f513d8021 | /cli/bak.20200512-local/abcombo.py | a267f8c6d9d445c64cdd848a3d93c27eb4e147ce | [] | no_license | wri/tree_canopy_fcn | a80a9971403f6ca2548d44146ed08aa22d7d559e | 78f742e4e26e34008417468f73413643edde801e | refs/heads/master | 2022-10-11T03:25:41.503263 | 2020-06-16T12:39:21 | 2020-06-16T12:39:21 | 236,492,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,895 | py | import os,sys
PROJECT_DIR='/home/ericp/tree_canopy_fcn/repo'
sys.path.append(PROJECT_DIR)
from pprint import pprint
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
from torch_kit.loss import MaskedLoss
import torch_kit.functional as F
from torch_kit.optimizers.radam import RAdam
import pytorch... | [
"bguzder-williams@wri.org"
] | bguzder-williams@wri.org |
b82aecdb000493caac1d2ceb3d8395e7b3d8dfee | 665f790f21cd557b0fea2bc95485279c170bf022 | /1029.py | c8b0b6848ee17587c213521a23484c69ab27ed97 | [] | no_license | GustavoFelici/URI | 6340216052391bb1e907390d25cfa45a77cd7123 | 3d725c59a875e38a2efc392b8ac6a90e8cbc15e9 | refs/heads/master | 2022-11-18T07:34:54.409603 | 2020-07-21T17:16:08 | 2020-07-21T17:16:08 | 279,670,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | def fibonacci(n):
global cont
cont += 1
if n <= 1:
return n
else:
return fibonacci(n - 1) + fibonacci(n - 2)
n = int(input())
for i in range(n):
x = int(input())
cont = 0
resu = fibonacci(x)
print('fib({}) = {} calls = {}'.format(x, cont-1, resu))
#Ti... | [
"noreply@github.com"
] | noreply@github.com |
53dde5e6a5ba9a3e8b6c98645afbdb2cc20b2cc3 | c98bfa980a5a9ada52702aca21538bdca9141815 | /course_14/modularization.py | f7e8b09e97a145c96c0a4d805d2271d617320e4f | [] | no_license | Borye/CSVT_Python | e8c1020f0127c6cc93a6e18a542ee2970eb394f7 | ffd7db7686c679e707a4e406fd330863fa3cb338 | refs/heads/master | 2020-05-30T02:37:41.162318 | 2015-02-06T08:47:14 | 2015-02-06T08:47:14 | 30,402,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | #coding:utf8
'''
模块是python组织代码的基本方式
python的脚本都是.py文件
一个脚本可以单独运行,也可以导入另一个脚本运行
当脚本被导入运行时,我们称其为模块
模块名就是脚本的文件名
item.py ------- import item
包
创建一个包的步骤:
1 建立一个名字为包名字的文件夹
2 在该文件夹创建一个__init__.py文件
3 根据需要在该文件夹下存放脚本文件,已编扩展及子包
import pack.m1, pack.m2, pack.m3
起文件名的时候不要跟以有模块重复
导模块会先从当前目录导,如果当前没有,就去c://python27/lib 里面找
.py 脚本文件... | [
"boli.89123@gmail.com"
] | boli.89123@gmail.com |
668963624d3086f1b1dd35cf080200af75bf8736 | 191a7f83d964f74a2b3c7faeb4fc47d9c63d521f | /.history/main_20210523152045.py | 6d7861a88a7d86a28f1d8d675b4416ba674fb3c2 | [] | no_license | AndreLiu1225/Kinder-Values-Survey | 2a317feee8d5b17c27da2b2116742656e35d8ab9 | 090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3 | refs/heads/master | 2023-05-03T00:26:00.481423 | 2021-06-04T03:24:19 | 2021-06-04T03:24:19 | 371,989,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | from flask import Flask, render_template, redirect, url_for
from flask_wtf import FlaskForm
from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField
from wtforms.validators import DataRequired, Email, EqualTo, Length, ValidationError
app = Flask(__name__)
app.config['SECRET_KEY'] ... | [
"andreliu2004@gmail.com"
] | andreliu2004@gmail.com |
885525dbf6209648cb4d8a7b6a68e3877d3f3342 | 58c0869520ceeb261f722976b37d2b11a4be01b0 | /source/arcade_nuke/utility.py | a17240b1e9c19d233275dce6cbe45a6fcb9f4905 | [] | no_license | buddly27/arcade-nuke | 640622af4c5b329bc43b0a4b44e6999c103aaff5 | 5478ce1b9b9932d349f45b17c87b7f2eb35ed554 | refs/heads/master | 2022-10-05T09:27:46.507448 | 2020-05-28T04:16:05 | 2020-05-28T04:16:05 | 262,652,347 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,846 | py | # :coding: utf-8
import arcade_nuke.node
def draw_game_over(x, y):
"""Draw 'Game Over.' using dots.
:param x: Position of the left corner of the pattern.
:param y: Position of the top corner of the pattern.
"""
words = [
[
[
(1, 0), (2, 0), (3, 0), (4, 0), (... | [
"jeremy.retailleau@gmail.com"
] | jeremy.retailleau@gmail.com |
2a6384ac94d1bb426a45a2625e3cd634028475aa | 7664a19fee5eb35f53495a8b4907a8e792606d5b | /LdaFea.py | 69cde28d31c6dc5ed1de890f38fd3408b8291ec4 | [] | no_license | starovo123/ELMoCNN | a2b5ba20318c548f55fe5f936d62d20d87f82b34 | 716d0c55455c7e8bb66343ab83240d43e189c63c | refs/heads/master | 2023-03-10T21:50:12.275197 | 2021-02-24T04:25:26 | 2021-02-24T04:25:26 | 341,778,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,104 | py | import os
import numpy as np
from gensim import corpora, models, similarities
import time
import scipy.io as scio
# import logging
# logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
def load_stopword():
'''
加载停用词表
:return: 返回停用词的列表
'''
f_stop = open('E:/D... | [
"799187444@qq.com"
] | 799187444@qq.com |
968853ef76eb93ba0488bd086ea3d7f43dfc93a3 | 4abc1688699b5301df091ac3bf2605e154906cb6 | /gtnlplib/hmm.py | 317b1a53ea1cdb453b23acffcf5179a9036a3e87 | [] | no_license | fengweijp/Sequence-Labeling | b0f6f0bd5d14ebb608837c29edc59236900f5331 | 9351b43b69dc8508437971c579919e08cdda7824 | refs/heads/master | 2023-03-18T03:36:05.685216 | 2018-10-08T16:36:33 | 2018-10-08T16:36:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,961 | py | from gtnlplib.preproc import conll_seq_generator
from gtnlplib.constants import START_TAG, END_TAG, OFFSET, UNK
from gtnlplib import naive_bayes, most_common
import numpy as np
from collections import defaultdict
import torch
import torch.nn
from torch.autograd import Variable
def compute_transition_weights(trans_co... | [
"neilbarooah@Neils-MacBook-Pro-2.local"
] | neilbarooah@Neils-MacBook-Pro-2.local |
e6295ff4215ade162c48627668c49a52c02d301e | ba96b32c20ef78588f348c55c8e0dd2b1a8c9805 | /scripts/ModelAssemble/CalculateSigma.py | 44a018ce52df4000a85c3e297ef8875fade94a09 | [] | no_license | fengw/ABFanalysis | aa63ce70f20188c2876702072dc775b4585f7c92 | b00c61dc5f5a4055e5fce1b23dce3821257d845d | refs/heads/master | 2021-01-09T21:47:35.667108 | 2017-09-06T01:40:38 | 2017-09-06T01:40:38 | 47,899,500 | 0 | 0 | null | 2016-09-27T16:00:51 | 2015-12-13T00:00:36 | Shell | UTF-8 | Python | false | false | 16,115 | py | #!/usr/bin/env python
import os, sys
import optparse
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
import time
from pyABF import *
from pynga import *
from my_util.numer import interp
tic = time.time()
# Check if we need to do the interpolation (maybe just save the uninterpolat... | [
"fengo.win@gmail.com"
] | fengo.win@gmail.com |
dd1953d6927d29066068ea81328364dee75a86e6 | bbf1ae079309eca11270422d3f0d259d1515d430 | /numerical-tours/python/todo/solutions/wavelet_2_haar2d.py | 7ec8c89d23ba2108e274a13521844d6ad479f593 | [
"BSD-2-Clause"
] | permissive | ZichaoDi/Di_MATLABTool | 5e6a67b613c4bcf4d904ddc47c2744b4bcea4885 | c071291c63685c236f507b2cb893c0316ab6415c | refs/heads/master | 2021-08-11T07:28:34.286526 | 2021-08-04T18:26:46 | 2021-08-04T18:26:46 | 149,222,333 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,522 | py | def exo1():
"""
Implement a full wavelet transform that extract iteratively wavelet
coefficients, by repeating these steps. Take care of choosing the
correct number of steps.
"""
Jmin = 0
fw = f
for j in J: -1: Jmin:
fw(1: 2^(j + 1), 1: 2^(j + 1)) = haar(fw(1: 2^(j + 1), 1: 2^(j ... | [
"wendydi@compute001.mcs.anl.gov"
] | wendydi@compute001.mcs.anl.gov |
49598af4f83adbd580e591b0ad4dfa516b153a77 | 9a7d296bf9350e7ce437b87673753ebbeaee0078 | /server/mors_seo/adapters.py | fb127dc4dd0cb3897b1b1e50cc9e69b1b57fb743 | [] | no_license | wahello/mors | 52e0a2c31db9636066dfb0a6af5cc38712d68c96 | bf0c45364b21e8832c475d464364de3d20ada6a4 | refs/heads/master | 2020-04-28T16:20:37.653870 | 2019-02-02T12:29:00 | 2019-02-02T12:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from allauth.account.adapter import DefaultAccountAdapter
from allauth.account.utils import user_email, user_username, user_field
class UserAdapter(DefaultAccountAdapter):
def save_user(self, request, user, form, commit=True):
"""Saves a new `User` instance using information provided in the signup form.""... | [
"wos.mateusz16@gmail.com"
] | wos.mateusz16@gmail.com |
f8184270f36e3f165d97bbb247f6f0b508fc5810 | ba7d84b4b85be8c3221468527757e264e64616b9 | /tests/hammytest.py | b5f03afc22f1e60ade3aca0eb505d0bf88fd3fe8 | [] | no_license | gomesr/timetracker | c18eb4b6f33e08eadd72971216b16560ef085aa1 | ce57a0791727a3b06e4b167fbeb3cb3e558ff2f1 | refs/heads/master | 2021-01-22T23:58:20.247393 | 2010-12-12T01:16:54 | 2010-12-12T01:16:54 | 1,130,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py |
import unittest
from trackers.hammy import HamsterTracker
from hamster import client
class HammyTest(unittest.TestCase):
def setUp(self):
self.tracker = HamsterTracker()
def test_create_100_activites(self):
tags = []
ids = []
try:
for i in range(1,100):
... | [
"rodneygomes@gmail.com"
] | rodneygomes@gmail.com |
46589e8d5188e4fd04f3a679ec039f8a771d07c1 | e39c2b92e3ed9c614b9b91a641c0053edb1eb2ee | /Turner6.py | a256a6e2a6c54531be4d7b0ab35231a008b5a790 | [] | no_license | EMajec/Election-Counter | c1c04a07153a9b807d6c53c59bdd16b5cdb2da75 | 4a6220bdf5e4274520531f2233b41dd95b176670 | refs/heads/master | 2021-01-12T09:17:19.250341 | 2016-12-19T00:28:34 | 2016-12-19T00:28:34 | 76,814,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,998 | py | #Ethan Turner
#November 30 2016
#Proposed Points: 14/15 because all pieces of the project are complete except for multiplier (However it is commented in for review just incase)
#This function reads data in the
#data in the poll file and puts it into a 2D list
#which it then returns.
#The parameter is the na... | [
"noreply@github.com"
] | noreply@github.com |
05c5693d3b24a5c3fd147316f1f2cfeaba19014b | 5c39f5ac529e9f292ba0e4965fd684d4c6eefe8a | /migrations/0001_initial.py | 8570a25dfd79013e6c9c3202871e7bdc877c28d4 | [] | no_license | joshianshul2/csv_db | 6d24dec8bdcd8f00115a8729d5036beb47994d0e | e7215002c0a2fb8cadd0d4087b8651b1ec9e30ea | refs/heads/master | 2023-04-21T19:46:56.941399 | 2021-05-11T17:29:38 | 2021-05-11T17:29:38 | 356,846,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,962 | py | # Generated by Django 3.2 on 2021-04-07 05:30
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='AvgMaster',
fields=[
('id', models.AutoField(... | [
"joshi.anshul2@gmail.com"
] | joshi.anshul2@gmail.com |
74c0ab18df35dff67f6a923901b4a3934b4750a1 | d369c19c36ebef0d9ce77b5bf70e09af32ec27be | /python/LearnPythonTheHardWay/067_ex17_hydrangea.py | 409685d43138439627b1013438869b75c6e205d6 | [] | no_license | sds-coders/codepractice | 9dcf012d1523527015b03b28cc58e936998a47e0 | 7642b2f74e387e8e311c8034e313fae0f68e967d | refs/heads/master | 2020-04-16T10:12:54.505056 | 2019-03-24T13:50:10 | 2019-03-24T13:50:10 | 165,495,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # -*- coding: utf-8 -*-
from sys import argv
from os.path import exists
script, from_file, to_file = argv
print "%s에서 %s로 복사합니다." % (from_file, to_file)
# 이 두 줄은 한 줄로도 쓸 수 있습니다. 어떻게 할까요?
in_file = open(from_file)
indata = in_file.read()
print "입력 파일은 %d 바이트입니다." % len(indata)
print "출력 파일이 존재하나요? %r" % exists(to_... | [
"shjun4541@hotmail.com"
] | shjun4541@hotmail.com |
0ba3f4e3ea6946c44b606566dfbf9e684624bdcc | 304511ae7300e1e246c86980cfcdbd52b9d5180e | /main.py | f5f5713b9b166aab4bbcde412f6ffd3452dfd2e7 | [] | no_license | ryanbalog/project5 | 0dea169409cb7d538b609fb1974c6184e9b2f122 | 071a507d21906d9fde22d157d22f5868e792b6a3 | refs/heads/master | 2022-12-06T21:15:37.763781 | 2020-08-29T16:42:52 | 2020-08-29T16:42:52 | 291,309,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | '''
Ryan Balog
CS2420
Project 5
'''
from binarysearchtree import BinarySearchTree
VALUES = [21, 26, 30, 9, 4, 14, 28, 18, 15, 10, 2, 3, 7]
REMOVABLES = [21, 9, 4, 18, 15, 7]
def main():
'''Driver for program'''
tree = BinarySearchTree()
for val in VALUES:
tree.add(val)
for item in tree.preo... | [
"ryanbalog3@gmail.com"
] | ryanbalog3@gmail.com |
13efb73b8dd5b05d0a8276930b8f422fc28fab20 | f4db22a9946e270ceb464e8fe80de1cf3130e30c | /chairbot/src/neato_robot/neato_node/nodes/halloween.py | 90ab480f0edd39736c44196be290478393f89387 | [
"MIT"
] | permissive | charisma-lab/chairbot | 6f81d8f6e0943138333b7be2fbeea72675ca4147 | 7fbdd047afd2cda43d27935d905a443d0d820244 | refs/heads/master | 2020-03-29T10:30:44.724934 | 2018-11-24T01:03:01 | 2018-11-24T01:03:01 | 149,808,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,509 | py | #!/usr/bin/env python
import roslib; roslib.load_manifest("neato_node")
import rospy
from math import sin,cos
from geometry_msgs.msg import Twist
import time
from std_msgs.msg import UInt16
from sensor_msgs.msg import Joy
from std_msgs.msg import Int8
from neato_driver.neato_driver import Botvac
class NeatoNode:
... | [
"charisma@engr.oregonstate.edu"
] | charisma@engr.oregonstate.edu |
286cc8c250f2c2b4030ffc5e75d7d1213b47a934 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_yens.py | f7c90d82f8fc7ae9864e4492c2449f9c31d5b2f4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py |
from xai.brain.wordbase.nouns._yen import _YEN
#calss header
class _YENS(_YEN, ):
def __init__(self,):
_YEN.__init__(self)
self.name = "YENS"
self.specie = 'nouns'
self.basic = "yen"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a31d0693760097d9ec0bfc62e4a5c4d7383c09ab | 378b200007c5d3633572b61eb3dd2180748086b7 | /chefsBackEnd/chefsBackEnd/asgi.py | d077d3550da2054b45a48c64401ec50a84113e40 | [] | no_license | jgartsu12/chefs-table-backend | 4163c2c9a2bb586d4432c332238682bf282ef967 | 71611cf17aa457f8bc9a7ec7d853c570062d22fb | refs/heads/master | 2022-12-16T04:22:30.954831 | 2020-07-08T19:24:37 | 2020-07-08T19:24:37 | 251,097,796 | 1 | 0 | null | 2022-12-08T10:13:44 | 2020-03-29T17:59:15 | Python | UTF-8 | Python | false | false | 401 | py | """
ASGI config for chefsBackEnd project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"jgartsu12@gmail.com"
] | jgartsu12@gmail.com |
1ce439080e353228f843746415b1a67a0d6b4687 | 4b73dc6b31bd2e25957c70677dc6fd0135a1a43b | /03_Avanzado/Unidad_06/model/model_db.py | 9474f3ed766ea4db9d09dd0d7f51460ac86ac069 | [] | no_license | stick2yourmind/Python | 557aae4b8422104ec244dcd45123b1c0b4ed2d7a | 9629add21493bea0173fa6ed548bedb18e73fa32 | refs/heads/master | 2022-11-17T10:00:53.622658 | 2020-07-13T01:21:49 | 2020-07-13T01:21:49 | 272,263,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,503 | py | import mysql.connector
from peewee import *
import datetime
# global variables connection to db
my_sql_db = "catalogueDB"
my_sql_host = "localhost"
my_sql_port = 3306
my_sql_user = "root"
my_sql_pass = ""
my_sql_table = "RegItem"
my_sql_struct = "CREATE TABLE IF NOT EXISTS producto( id int(11) NOT NULL PRIMARY KEY \
A... | [
"saravia.jonathan.m@gmail.com"
] | saravia.jonathan.m@gmail.com |
764c228e5a8b115f7ca60c1480fdff36b20ab047 | 8a3726abfc9cb72d8ccf7d32b18edabf8d16b630 | /18/a.py | 32847a4eb7fdc71ad694396872b27a628860cf2a | [] | no_license | alex-stephens/aoc2015 | 48a46efc1a888ea2d451a5938fc404d26e96e1a0 | ccc1c85f8da7a0585003b2e4f99f3f1def35ec0b | refs/heads/master | 2023-02-05T23:02:19.148138 | 2020-12-27T19:16:47 | 2020-12-27T19:16:47 | 324,579,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | grid = [list(line.strip()) for line in open('input.txt').readlines()]
rows, cols = len(grid), len(grid[0])
def count_neighbours(i, j):
rmin, rmax = max(i-1, 0), min(i+1, rows-1)
cmin, cmax = max(j-1, 0), min(j+1, cols-1)
ans = 0
for r in range(rmin, rmax+1):
for c in range(cmin, cmax+1):
... | [
"alexstephens9@gmail.com"
] | alexstephens9@gmail.com |
902a07d53dec1a6b87a8c1e0e0457c6e4508b338 | 11a1d7c276cee26c7351a7d5b2049d3fd36dfa9f | /venv/Lib/site-packages/google_play_scraper/features/app.py | 74838cc49db0d4d37b7f0f3ea41625bbb6235bcd | [] | no_license | Hussain-py/apiprojec | 5a09a9a3ab576f72a0d42cf0897352a0f4748343 | efab41268de6c1daf7029eb41e28b3526b298a46 | refs/heads/main | 2023-02-24T23:32:24.332619 | 2021-01-25T09:42:41 | 2021-01-25T09:42:41 | 332,697,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | import json
from google_play_scraper.constants.element import ElementSpecs
from google_play_scraper.constants.regex import Regex
from google_play_scraper.constants.request import Formats
from google_play_scraper.utils.request import get
def app(app_id, lang="en", country="us"):
# type: (str, str, str) -... | [
"57086628+MrArif-5@users.noreply.github.com"
] | 57086628+MrArif-5@users.noreply.github.com |
7c8f45f5a09a6881f6fe5b227cde0ad599b55eb3 | f0395a509853c866c5193398ff445b11e7892536 | /tools/xmp16-routegen.py | 98a6110eb30e42f48b26bd0bd58196ab05749201 | [
"LicenseRef-scancode-other-permissive"
] | permissive | stevekerrison/tool_swallow_manycore | a9932f74c88327dfd2eb183b1aac0a29988ebbb2 | 64c5732cf732038c61fcf5ff635b363b1d7124b5 | refs/heads/master | 2021-01-10T03:28:54.711808 | 2015-11-26T12:37:48 | 2015-11-26T12:37:48 | 46,926,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,942 | py | #!/usr/bin/python
# Copyright (C) 2012 Steve Kerrison <github@stevekerrison.com>
#
# This software is freely distributable under a derivative of the
# University of Illinois/NCSA Open Source License posted in
# LICENSE.txt and at <http://github.xcore.com/>
header = \
"""xmp16-routegen.py
A script for generating rout... | [
"steve@stevekerrison.com"
] | steve@stevekerrison.com |
dadb8fb69ef2bdb6c0a196c367f65a32f893e669 | c2f7af7a77c3d2a57f4b6b1d27e1cd907889e3b4 | /CheckForRecipie.py | 785164c0be5a5e595bb5c7cd98fc6f985f8f557f | [] | no_license | Ngoc7-psu/ABIST440WLUKE | b87d779615619b408d660dca653f75937f6f4b54 | d0d63f55dfa5ba1152d4db9ced292132682853bd | refs/heads/master | 2022-04-20T17:49:52.972134 | 2020-04-21T02:39:26 | 2020-04-21T02:39:26 | 257,392,875 | 0 | 0 | null | 2020-04-20T20:13:17 | 2020-04-20T20:13:16 | null | UTF-8 | Python | false | false | 2,193 | py | # Team Ferment - James Bee, Virginia Hoffman, Michaela Fox, and Samantha Scheer
# IST 440 - Luke Kasper
import requests
import json
import time
def CheckForRecipies():
# Set the request parameters
url = 'https://emplkasperpsu1.service-now.com/api/now/table/x_snc_beer_brewing_mother_brewv2?sysparm_query=sys_cr... | [
"noreply@github.com"
] | noreply@github.com |
1f973cbc76659678d2b81c007e9a29458338f41e | d6670f0b4a039cb95216d59918c71a185e18f492 | /plugins/download_stickers.py | b72422017bd735fb60c6830c677004dbc6305e21 | [] | no_license | dlance87/lance7bot | 7dcf10fd8f3d15e4d9d3678a5d23b169ef08e408 | dc7b5887f6e9a004cb397501d24d7398a5a1c6ef | refs/heads/master | 2021-05-17T01:19:23.169150 | 2020-03-27T14:32:56 | 2020-03-27T14:32:56 | 250,553,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,764 | py |
import logging
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
import os
import time
# the secret configuration specific things
if bool(os.environ.get("WEBHOOK", False)):
from sample_config import Con... | [
"noreply@github.com"
] | noreply@github.com |
9645c10049da11712293d7d3e8fd4238034dfe51 | b0779d29c84bedc5e89fc491abb0dbc5513b2793 | /knnreg.py | 0cf0ff877386ee8703e145edee38cfcb9ebe1e96 | [] | no_license | kalyaicasia/KNN-Regression | f80f5b1727b81a6d55c15842e1e66dc1053e9864 | 8308fe5bfd8ae79bc1d35c391e5bbe6723e5fb8b | refs/heads/main | 2023-06-21T23:02:19.234475 | 2021-07-22T08:18:21 | 2021-07-22T08:18:21 | 388,041,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,706 | py | import numpy as np
class knnreg ():
def __init__(self, distfcn = "euclidean", normfcn = "on") :
if distfcn.lower() == "euclidean": self.q = 2
else: self.q = 1
self.normfn = normfcn.lower()
def colcheck(self,ma): #fix the data input if the in... | [
"noreply@github.com"
] | noreply@github.com |
280cab33335daf580bca95b971a5c093b1896c52 | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-4.10.0/bin/weewx/drivers/cc3000.py | 22f01d1c3bb42aab59083b7c30094abe338751ce | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 64,470 | py | #!/usr/bin/env python
#
# Copyright 2014 Matthew Wall
# See the file LICENSE.txt for your rights.
"""Driver for CC3000 data logger
http://www.rainwise.com/products/attachments/6832/20110518125531.pdf
There are a few variants:
CC-3000_ - __
| |
| 41 = 418 MHz
| 42 = 433 MHz
| __ =... | [
"tom@tom.org"
] | tom@tom.org |
68d1843dab90410740fd85f5d830ddfa869461ce | 5a9ec9ed961f2eb050704f6e9e54dcecddeb6f1b | /all_eyes_on_you.py | 8baf8f12e628038627489b918e7a1d8430e36b29 | [] | no_license | jristow/startingPythonWork | 51a1553a18e75b5df827c0ca21208c2e66e9a4fb | dfe5ccca0dd493c1758f047cd1b9f853e46aaecc | refs/heads/master | 2021-01-24T03:29:56.573757 | 2018-05-12T03:05:57 | 2018-05-12T03:05:57 | 122,891,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,275 | py | ''' Step 1: Create a graphwin object, draw 5 eyes into it
-Create an eye class that will easily enable drawing an 'eye' into a window
Step 2: Get a mouseclick from the user
Step 3: Move the pupils to 'look' at where the mouse clicked
'''
from graphics import *
class Eyeball:
def __init__(self, win... | [
"noreply@github.com"
] | noreply@github.com |
6f99e6b311c7eecce9e8f157f5fb900757946d82 | 5d67ef491e8b09b5fc15dcc85df593c212552fe0 | /.eggs/pluggy-0.6.0-py3.6.egg/pluggy/__init__.py | 2d7a84dfe1ed8a0b22315c9b58c1b9918bb296e1 | [
"MIT"
] | permissive | dyspop/responsysrest | 5a90827553010c4d3e860dddc9117cb731503864 | 7b8e9edab1808f753be6383c7925529775a4fa89 | refs/heads/master | 2021-03-22T04:18:39.478652 | 2019-05-01T19:26:49 | 2019-05-01T19:26:49 | 110,168,191 | 1 | 1 | MIT | 2018-07-19T14:07:56 | 2017-11-09T21:28:46 | Python | UTF-8 | Python | false | false | 26,219 | py | import inspect
import warnings
from .callers import _multicall, HookCallError, _Result, _legacymulticall
__version__ = "0.6.0"
__all__ = [
"PluginManager",
"PluginValidationError",
"HookCallError",
"HookspecMarker",
"HookimplMarker",
]
class PluginValidationError(Exception):
""" plugin faile... | [
"dyspop@gmail.com"
] | dyspop@gmail.com |
58dda2f670c81b11dcb9b32b1a8eecf07da6dd98 | ddad20f9a5a43ff0b0f4970bc5fad7cd17731c5a | /shoppingmall/shoppingmall/wsgi.py | 0dee8197d435b55d9ceabcf2c7fec241ecbeee1b | [] | no_license | kimmyphua/coldStorageDjango | 6378a078f9333d419bd4f0fe4dbd9161c7cfd2fb | 67edcd9f7472eabc64e913860bbfe589cdfdba7a | refs/heads/master | 2023-06-26T06:08:43.193614 | 2021-07-02T04:28:08 | 2021-07-02T04:28:08 | 382,230,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for shoppingmall project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"kimberlyphuaweyhan@gmail.com"
] | kimberlyphuaweyhan@gmail.com |
7df222a3096911a226c3f83992df6226f8d6e79b | 1392d3ad3b04f321831c37d7e8441da8796691aa | /testpy/testsamples.py | a8f124737029fa48143c31476bd49f9ca71384db | [
"MIT"
] | permissive | cosmic-chichu/rules | 0ca82adc8d70fa9e4afbba92283ffa6c8f6e6cbe | f7de1c32a1e836888f54a2aecf9a51f29a7387b3 | refs/heads/master | 2021-09-17T11:26:13.352429 | 2018-07-01T16:14:04 | 2018-07-01T16:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,582 | py | from durable.lang import *
import threading
import datetime
with statechart('expense'):
with state('input'):
@to('denied')
@when_all((m.subject == 'approve') & (m.amount > 1000))
def denied(c):
print ('expense denied')
@to('pending')
@when_all((m.su... | [
"jr3791@live.com"
] | jr3791@live.com |
2ba794c5fbdf6b165029c3b20b7d4ae08486b115 | 4fd77ce692e10e962483c7e3e6e76c44887e9f52 | /geatpy/templates/soeas/GA/studGA/soea_psy_studGA_templet.py | 7cb191a9338b905bc256f6ecb2c43a2de4b72a72 | [
"MIT"
] | permissive | Passion-long/geatpy | d1aaf1622058473649840a9e2e26f9d0b0844bce | 8e2ab8730babaae640272bd4c77106519bdd120c | refs/heads/master | 2020-07-09T13:40:36.217907 | 2019-08-23T03:36:12 | 2019-08-23T03:36:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,750 | py | # -*- coding: utf-8 -*-
import numpy as np
import geatpy as ea # 导入geatpy库
from sys import path as paths
from os import path
paths.append(path.split(path.split(path.realpath(__file__))[0])[0])
class soea_psy_studGA_templet(ea.SoeaAlgorithm):
"""
soea_psy_studGA_templet.py - Polysomy Stud GA templet(多染色体种马遗传算法... | [
"jazzbin@geatpy.com"
] | jazzbin@geatpy.com |
07e725cccf87298783a7e6d7e42e718a7298fd4a | 65ed194a0b1f7eed060a669fe58cd216ac0eb2f1 | /q2.py | 56bac1056893723ac54742e54a570196be02c753 | [] | no_license | julia-zhao/for-synqrinus | b501e84d4a8102df185fa2b7b6b128fd04491a58 | fd278391c2b8d69302b2514821d5229f45ba8375 | refs/heads/master | 2021-01-01T07:22:39.749516 | 2020-02-17T15:56:33 | 2020-02-17T15:56:33 | 239,168,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,871 | py | class Node:
def __init__ (self, data):
self.data = data
self.children = [] #dict of Nodes
def insert(self, parent, data):
if (self.data == parent):
self.children.append(Node(data))
else:
#insert a child node into the last child
self.children[-1... | [
"zhj.julia@gmail.com"
] | zhj.julia@gmail.com |
545aac01abbebdbef94ce6fc238f142f7cc74f19 | c27c51f5c33e0431dbe7db6e18c21b249d476cfa | /OpenSource_Python_Code/nova-2013.2/nova/tests/keymgr/fake.py | 85e62e3dcf9076b4adb4dd85da8723f0fe4f1411 | [
"Apache-2.0"
] | permissive | bopopescu/Python_Stuff | 9bef74e0db17bb5e3ba2d908ced01ee744820d80 | 9aa94a0fa5e4e802090c7b29ec88b840e304d9e5 | refs/heads/master | 2022-11-20T06:54:36.581623 | 2017-12-04T18:56:02 | 2017-12-04T18:56:02 | 282,171,169 | 0 | 0 | null | 2020-07-24T08:54:37 | 2020-07-24T08:54:36 | null | UTF-8 | Python | false | false | 854 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 Justin Santa Barbara
# Copyright 2012 OpenStack LLC
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License ... | [
"thelma1944@gmail.com"
] | thelma1944@gmail.com |
84c1b24826b45edc4f25012eca81cc7fc385ed02 | 36fce47d77e6a66ec68b1c93451ff25f46b6b356 | /luogu/SequentialStructure/P5709.py | 869d51d850389b5e776ab9db1e7422b747afe6cd | [] | no_license | Brvc3/algorithms | b474962f44d8bf4b3b1281247c2ffc81b91cdbe7 | 554acfb512f1fe7c9aae27e9b044786ea69e861c | refs/heads/main | 2023-07-20T20:42:04.500192 | 2021-09-01T08:32:54 | 2021-09-01T08:32:54 | 401,984,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | m,t,s = list(map(float,input().rstrip().split()))
if t==0:
print(0)
exit(0)
left = int(m - s/t)
print(max(0,left)) | [
"brvc3@jnsec.org"
] | brvc3@jnsec.org |
670bf7861c66ba3262b153253670f01ea97f1060 | c50e267978e01b54afdba75f6a98ad114aaa1c80 | /reedima/articles/migrations/0003_auto_20191226_1203.py | 90bdabe9ecb48629c53afde6f4da3ce1d6da2c48 | [] | no_license | Dilshan1997/reedima-1 | f89309d384419b64249e7b0bb6b314eb7e09f695 | 02fd67a07427693ca0f8770c0bbc18b997810adc | refs/heads/master | 2022-06-20T00:18:06.954607 | 2020-05-11T14:58:19 | 2020-05-11T14:58:19 | 263,064,023 | 1 | 0 | null | 2020-05-11T14:20:03 | 2020-05-11T14:20:02 | null | UTF-8 | Python | false | false | 439 | py | # Generated by Django 3.0.1 on 2019-12-26 06:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0002_auto_20191226_1138'),
]
operations = [
migrations.AlterField(
model_name='post',
name='id',
... | [
"shane.thiwanka@gmail.com"
] | shane.thiwanka@gmail.com |
9c1df693b065f41ae2067d039224caed2c72d384 | cd26498ce1a963fc12607e3c2e5f26d738a6d52c | /queryTaolun/urls.py | e261a7e4b3ff349d53f68eaece80d5c6a49541f6 | [] | no_license | DaneWang9513/Wx_miniprogram_server | de2bea44d94e35065102be736b59e654484ba4a4 | e15747ea567cdd7cc11b2777672fd388237ab2f7 | refs/heads/master | 2021-02-27T10:13:07.640295 | 2020-03-07T09:49:58 | 2020-03-07T09:49:58 | 245,598,532 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | from django.conf.urls import url,include
from . import views
urlpatterns = [
url(r'getTaolun',views.getTaolun),
url(r'Taolun_detail',views.Taolun_detail)
] | [
"danewang9513@gmail.com"
] | danewang9513@gmail.com |
848356b8842293f30d58db6ccfc7eb592c6638f8 | 7ba131dadd14574d0dc463eac483b48e505d9a67 | /itchatmp/controllers/mpapi/mp/messages.py | 23161a6eb430de2c24c5073f8d647048adbe49da | [
"MIT"
] | permissive | sysuzyq/itchatmp | a40e615016c43c12c989a0a0257069ead042464c | be235d023b6a55123706d56cd0d149e4271b2c0c | refs/heads/master | 2021-01-19T23:59:34.792413 | 2017-03-15T06:54:52 | 2017-03-15T06:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,458 | py | ''' This package is for mass texting in wechat mp
1. What can we send?
- IMAGE, VOICE, VIDEO, TEXT, NEWS, CARD
2. How to send them?
- we use send_some / send_all method
`send_some(targetIdList, msgType, mediaId, additionalDict)`
- for msg like text and card, just pass content as msgId
... | [
"i7meavnktqegm1b@qq.com"
] | i7meavnktqegm1b@qq.com |
397af60380ffa4194bd09f7aacf8e1e1681c1190 | 34346885d1f3de258f5f38188f9abe82845a0776 | /countWords.py | d6f72a5de2d0b09d1ed7837479457625929364dd | [] | no_license | cscamman/CS-203-Final-Project | 5c031862d259685653187029e1bd108ec5cb69b1 | 338d4451cf5c5f89359da2bbcebf1858e7bf4b31 | refs/heads/master | 2021-01-01T06:03:04.954698 | 2017-07-15T21:18:24 | 2017-07-15T21:18:24 | 97,342,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py | """
Count Word Frequency
CSCI 203 project
Spring 2017
Student name(s): Corey Scamman
Justin LaCapra
"""
import operator
from collections import OrderedDict
from operator import itemgetter
def plotData(sorted_dic, string):
import matplotlib.pyplot as plt; plt.rcdefaults()
impor... | [
"noreply@github.com"
] | noreply@github.com |
ff7186b3ff427a7fdc001b27a0f1c83b3e5daf0a | 9d904e52e49df52739c3287454469d5831b01ab0 | /week2/convert_hex/main.py | ee8babace7a2e57761721c749118e7aa8bfec787 | [] | no_license | joeyabouharb/term2-challenges | dab54da02e9182d5633ec275667e07792934445b | 6b10296dcb187024df75d7620b01a1d848313c95 | refs/heads/master | 2023-01-25T05:10:09.106671 | 2019-10-22T23:56:53 | 2019-10-22T23:56:53 | 203,889,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | #! /usr/bin/env python3
"""
Joseph Abouharb
decodes a secret message from hex value to text string
MIT
"""
from codecs import decode
x = 5
def main(hex_data):
print(
decode(hex_data, "hex").decode('utf-8')
)
if __name__ == '__main__':
main(
"49276d20616c7265616479205472616365"
)
... | [
"joey.abouharb@gmail.com"
] | joey.abouharb@gmail.com |
419c8a91a20a69ff1f0924b178d71876b2f3d74b | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1035975/snippet.py | 5f3993a8803fe9637f988459e7009fb87ae47a03 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 13,415 | py | import ast
from cStringIO import StringIO
import sys
INFSTR = '1e308'
def interleave(inter, f, seq):
seq = iter(seq)
try:
f(next(seq))
except StopIteration:
pass
else:
for x in seq:
inter()
f(x)
class PythonToPhp:
def __init__(self, source, indent = 0):
tree = ast.parse(source)
... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
ce9503d82749c331998242ffc827e8f6aa81c3bb | 1a8583a07b710a2b8d3344bddb3aa5dd2abc9547 | /fpn/symbols/resnet_v1_101_fpn_rcnn_sod_l0_focal_v4.py | d103e0f2366990e847198ebfde760930a3092875 | [
"MIT"
] | permissive | qilei123/sod_v1_demo | 9fec1377609acaa2c04ced0008208ecabce3f53e | a38f76e5a3af13f8f16d32aa40369f1a4f4fd839 | refs/heads/master | 2020-05-04T18:27:50.655652 | 2019-07-02T01:39:58 | 2019-07-02T01:39:58 | 179,354,251 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92,739 | py | # --------------------------------------------------------
# Deformable Convolutional Networks
# Copyright (c) 2017 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Haozhi Qi
# --------------------------------------------------------
import cPickle
import mxnet as mx
from utils.symbol ... | [
"qileimail123@gmail.com"
] | qileimail123@gmail.com |
2b8a1f223adcae70c85c50da499d85bbc1247f9b | bf509536050c01245e27c3e04e366b5b5f426315 | /test/test_graph_wu.py | bb8a4c04514d4d6c3f2dbdbeaf0e093c66c89d51 | [] | no_license | syntronicbraph/Braph-2.0-Python | ad419b70661cd89448f3db500c92df63c7556733 | a58fd0c6ce232eb63930de3d1cb3987747aafca4 | refs/heads/master | 2021-01-16T02:03:08.344897 | 2020-02-25T07:09:08 | 2020-02-25T07:09:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,782 | py | import unittest
from braphy.graph_measures import MeasureParser
from braphy.graph import *
import numpy as np
class TestGraphWU(unittest.TestCase):
def test_binary(self):
measure_list = MeasureParser.list_measures()
A = np.array([[0, 1, 1, 0], [1, 0, 0, 0], [1, 0, 0, 0], [0, 0, 0, 0]])
grap... | [
"lisjxa@syntronic.com"
] | lisjxa@syntronic.com |
9938592537dabb5771d1f0da8bdbc1a334c441e1 | ee34ec4a6db48437d598496205330b768859a9b7 | /pytorch-scripts/Augmentation.py | 5bc9453ac332ece31b5a4a34589dea7d28b4d42e | [] | no_license | lochana1/kaggle_ConvNet_tinyImagenet | a75f4ad5cc747c3127310103249ca48bdb8ec5fd | 00574dd8519619dd24c3ebcd5ddf788dabf6c877 | refs/heads/master | 2021-01-24T00:04:39.700504 | 2018-02-27T15:23:09 | 2018-02-27T15:23:09 | 122,753,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py |
from torchvision import transforms
class Augmentation:
def __init__(self,strategy):
print ("Data Augmentation Initialized with strategy %s"%(strategy));
self.strategy = strategy;
def applyTransforms(self):
if self.strategy == "H_FLIP": # horizontal flip with a pr... | [
"lochana@tcd.ie"
] | lochana@tcd.ie |
babd152532ef2d5653ea052353810305b7f6f33d | 5580fa2eac9877d54a5bfa17694e8fb310c10cfb | /suffixArray/buildMemoryTable.py | ab381aa813b42f26d86d630bf895c8595ab35250 | [] | no_license | jlabeit/wavelet-suffix-fm-index | c16b37ccad959e647a9f388b0520c98472f11fca | deaa57e92bbfd1596423f4a66c5f138aff43bdb7 | refs/heads/master | 2021-01-20T10:56:28.140141 | 2017-03-31T10:24:07 | 2017-03-31T10:24:07 | 34,020,459 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,326 | py | import csv
sizes = {'abab': 104857600, 'kernel': 257961544, 'dblp.xml.0001.1': 104857600, 'influenza': 154808555, 'dblp.xml.0001.2': 104857600, 'sources.001.2': 104857600, 'proteins.001.1': 104857600, 'sources': 210866603, 'einstein.de.txt': 92758441, 'english.001.2': 104857600, 'dna': 403927746, 'Escherichia_Coli': 1... | [
"julianlabeit@gmail.com"
] | julianlabeit@gmail.com |
b0eeedff566b8429408cf2f365015b174ba8e781 | 685f1edc5763cdfa63310f43a5ce9c07c8c406fc | /script/variant_call.py | 4062a05513627c74fb677da51e8294b620728cda | [
"MIT"
] | permissive | yunfengwang0317/2-kupl | 3b02f7fb1095cfc0a9cb84d76d663a62c80a2e44 | 0b525a147edaacd2a3aebc8b18f59e0f1882ffaf | refs/heads/master | 2023-05-30T19:47:58.174724 | 2021-06-23T11:35:57 | 2021-06-23T11:35:57 | 300,064,708 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 29,987 | py | import os,sys,time,subprocess,re,gzip,platform
from math import ceil
from tqdm import *
import pandas as pd
import numpy as np
from tempfile import *
import scipy.stats as stats
from Bio import pairwise2
from Bio.pairwise2 import format_alignment
from difflib import SequenceMatcher
from pydna.assembly import Assembly
f... | [
"noreply@github.com"
] | noreply@github.com |
159e62cf42f265a5d96156ae23363dbeced3b8c0 | 1e53216c58f3c7843031721305590b83dbaed3f2 | /week_four/db_demo/db_app/migrations/0003_message_post_user_who_liked.py | 59fc1606c04688bdf72a3cafe91a74cffc27e608 | [] | no_license | MTaylorfullStack/python_july_20 | 991852ba12d6f06d6b93b8efc60b66ee311b5cb3 | bdfb0d9a74300f2d6743ac2d108571692ca43ad9 | refs/heads/master | 2022-12-12T18:03:00.886048 | 2020-08-27T23:53:31 | 2020-08-27T23:53:31 | 277,956,745 | 2 | 2 | null | 2023-06-30T20:06:11 | 2020-07-08T01:09:34 | Python | UTF-8 | Python | false | false | 425 | py | # Generated by Django 2.2 on 2020-07-29 00:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('db_app', '0002_message_post'),
]
operations = [
migrations.AddField(
model_name='message_post',
name='user_who_liked',... | [
"mtaylor@codingdojo.com"
] | mtaylor@codingdojo.com |
dd6d4db1190524c0a26a2fdc412d00bdd2e2dcf3 | 5e5e74ee44a90d2103b312fb75f47b62dcaebc2e | /code/segmentation/test_linemod_rgbd.py | cd26cc1bdb166319278c9af5facfd840dfa0a7be | [] | no_license | cmitash/multi-instance-pose-estimation | df98835f60208a5055cef035d6a998e332adc377 | 3fa26634d0c34419e93c52b91e121d4d410d64d1 | refs/heads/master | 2021-07-04T00:38:04.170108 | 2021-02-22T01:30:05 | 2021-02-22T01:30:05 | 217,936,365 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | import os
from options.test_options import TestOptions
from data import CreateDataLoader
from models import create_model
from util.visualizer import save_images
from util import html
import numpy as np
import torchvision.transforms as transforms
from PIL import Image
import torch
import cv2
object_classes = {0: 'backg... | [
"cmitash@Chaitanyas-MacBook-Pro.local"
] | cmitash@Chaitanyas-MacBook-Pro.local |
7ccba16fed70bdaf5f8693bbb478d49e5edd403b | f86e92e4287fd26d04f642b12269b893aa9c1c47 | /Indexer/Indexer/indexerVersion2NLTK.py | b2ad82f7a576c1434da1b6124a03dec57497641f | [] | no_license | mishraMe/InformationRetrival | b22ceea5f9c345616a20fb8fb792c78ecd59c652 | ba6f573ff6dac16a3aa97df92686d2ec7b41dc23 | refs/heads/master | 2021-01-11T14:56:41.911516 | 2017-03-15T07:01:03 | 2017-03-15T07:01:03 | 80,258,170 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py |
# This program creates an inverted index for an
#input corups
from nltk import word_tokenize
from nltk.util import ngrams
import os
import operator
from collections import OrderedDict
corpus_dir = "cleaned_content_dir/"
default_corpus = os.listdir(corpus_dir)
doc_token_count_dic = {}
def create_index(corpus, n_gram_... | [
"mishraMe@husky.neu.edu"
] | mishraMe@husky.neu.edu |
c2725df0039eb171eae7a52b370b9bd27307605c | 888bad8f10370836d804ef0d7867872c8752149e | /collect_data.py | 308bf29ee6837d0ba4e92ac89da720120f98a39e | [] | no_license | wanyanxie/twitter_analysis | 9f8226201ef47aec3476788a4b9874369c30435c | 48aec5ad2f464722236203c09b40a41bb98ff727 | refs/heads/master | 2021-01-10T01:37:08.352370 | 2015-10-18T23:05:54 | 2015-10-18T23:05:54 | 44,427,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,396 | py | __author__ = 'wanyanxie'
from tweepy.streaming import StreamListener
from tweepy import OAuthHandler
from tweepy import Stream
import re
import sys
import json
import dateutil.parser
from pytz import timezone
import pytz
import tweepy
import time
import urllib3
import random
import csv
import os
#Listener Class Over... | [
"wanyanxie@gmail.com"
] | wanyanxie@gmail.com |
d6745bc1f0243c9c44de5992f1fda4a08325c905 | 17579f0f218f97e44b3dc279bc8db65e7ed841a2 | /venv/Scripts/sample-script.py | 7763e8147b45fb9979aa6d85da5a3301e6d50b02 | [] | no_license | sebidelamata/trumpVolatility | 680a821b7ddab054d5705a993bca04ca995984e1 | d405a626f0410751efae1f18d2da0dd16d96e2a5 | refs/heads/master | 2023-02-27T11:36:49.970811 | 2021-02-06T20:36:50 | 2021-02-06T20:36:50 | 296,694,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #!c:\users\sebid\trumpvolatility\venv\scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'yfinance==0.1.55','console_scripts','sample'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'yfinance==0.1.55'
try:
from importlib.metadata import distribution
except ImportError:
try:
... | [
"delamatas@appstate.edu"
] | delamatas@appstate.edu |
b0f2fc3373b95a324d62f27a91b3d3751849e3f5 | 1d8cb12741d6b91fcb0a504bd4c3ec64a2bbe1f3 | /venv/bin/easy_install-3.7 | efbef1cc02bb85af667b3efaf94a99dd99838909 | [] | no_license | yvkschaefer/python_noteapp | fc2fdfded9214d4fec802f9e16590a7e0c3cec51 | 764a67ff249358353de38ade59d6fb6b527731d3 | refs/heads/master | 2020-03-24T12:13:55.464306 | 2018-07-29T23:01:17 | 2018-07-29T23:01:17 | 142,708,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | 7 | #!/Users/kschaefer/Documents/code/python/noteapp/venv/bin/python3
# -*- 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())
| [
"yvkschaefer@gmail.com"
] | yvkschaefer@gmail.com |
8091533695375b2f5eb6cba07fab911661f8d013 | 1cb515d0742759441cfeed931d0a106a7387a447 | /migrations/0002_auto_20141209_1820.py | a947da605f470f19a9aae24d2d63d4e292db9b24 | [] | no_license | oscfr657/shortener | dbe2e26682c4ff9f008cdd57f8edbe8598a02bcb | 4b8ad2d41b39aac885eff20ea8c0115cc6ac3b97 | refs/heads/master | 2021-01-19T13:01:19.054791 | 2014-12-29T18:32:44 | 2014-12-29T18:32:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('urlshortener', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='shorturl',
name=... | [
"oscfr657@gmail.com"
] | oscfr657@gmail.com |
92d98e90faf1053ca2441ede6fdf9f7c3f4bf716 | d3d4cf92a5fc67a2e2e334896621217cb9015452 | /monai/networks/blocks/aspp.py | 5fbe6a89064d25f86fc743223e996b47b598cac0 | [
"Apache-2.0"
] | permissive | yaritzabg/MONAI | fe6271a274c2906e8cc5573ab00821dd4a30b330 | 18c33981e600d5704b1f8d208186c254e30dd3df | refs/heads/master | 2022-11-10T23:45:38.038630 | 2020-07-02T17:52:14 | 2020-07-02T17:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | # Copyright 2020 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | noreply@github.com |
df977b7393b24ca1ad477917ec83da57172a7542 | 2e395913f297389e8afdc99738b5ee7f6af20bb7 | /django project/New folder/myproj/myapp/migrations/0003_auto_20200620_1052.py | 06c507915d2fccd0d061928827ae0dcafb3133d7 | [] | no_license | Jagdar/demo_napp | 4089bcfabd27689e6463eebbc40def6cf257599e | c1c42d7c3fa68a67c4e84cf622a3892f9bbed711 | refs/heads/master | 2022-11-16T16:03:41.591506 | 2020-07-16T04:36:54 | 2020-07-16T04:36:54 | 266,512,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # Generated by Django 3.0.7 on 2020-06-20 17:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myapp', '0002_qaa'),
]
operations = [
migrations.RenameField(
model_name='qaa',
old_name='questions',
ne... | [
"65850358+Jagdar@users.noreply.github.com"
] | 65850358+Jagdar@users.noreply.github.com |
46c35a9237b2d46b850eca504e33651a556162ee | b7e7f7fd6150b5bb9237929bacb0ead18fac46bc | /Mechanics/PagesManager.py | f652e39fd3582e82882b6d7ede84424b5bb4c27f | [] | no_license | babochkin-prod/FindCall | 18e9d02a5039335132e71d56489409d189536ec6 | beaae5fe5aa12f360dde744d78edc9d4599eebbd | refs/heads/main | 2023-03-31T02:30:52.532327 | 2021-04-05T18:22:21 | 2021-04-05T18:22:21 | 352,095,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | import json
import os
from DATABASE import sqlighter
from Settings import *
#Импорт страниц
'''
Разметка клавиатуры
{'inline': [[], []], 'keyboard': [[{'text': 'text', 'color': 'negative'},], []]}
'''
pages = {}
def Pages_Connect(path, delimiter = '\\'):
for file_name in os.listdir(path):
str_import_from = pa... | [
"68076247+babochkin-prod@users.noreply.github.com"
] | 68076247+babochkin-prod@users.noreply.github.com |
d42bf811b38b3d684e023ba06091ebcf353addd5 | 9751db1d14ef58a58c54f97721d67431a5b067a8 | /DLFCV/perceptron_or.py | 58b5c29478685e455f8130062daab80cba5f1fbe | [] | no_license | ken2190/ProgramPractice | fad67aff7874239d88e64129cbfb23e42892d6e7 | 31a7e8ddbbc81bb7712cbc1e9dd17da3c278db84 | refs/heads/master | 2023-03-23T02:14:59.775412 | 2019-08-28T06:27:48 | 2019-08-28T06:27:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | #
# Fit Perceptron model to the bitwise OR dataset
# a: zhonghy
# date: 2018-7-19
#
# import the necessary packages
from pyimagesearch.nn.perceptron import Perceptron
import numpy as np
# construct the OR dataset
X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
y = np.array([[0], [1], [1], [1]])
# define our perceptro... | [
"530634028@qq.com"
] | 530634028@qq.com |
8640a9beee2db350e17734b1c6aea157fd54d3dc | a91053e849189be233e774b3d410a0fc85b570f3 | /project/urls.py | d019359613cb7fe73fa6c5b98e4e447df685f431 | [] | no_license | AnthonyDeniau/biller | 3496a90050cf05ca5e43b483a314bd136bc7c913 | 8d471df5b23f839bb0ea37396f4586463643424f | refs/heads/master | 2020-04-01T16:50:25.771063 | 2018-10-18T06:10:29 | 2018-10-18T06:10:29 | 153,400,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | """biller URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"anthony.deniau@gmail.com"
] | anthony.deniau@gmail.com |
12df0fae41407a4524a513b2dbd44b58de10142c | 00593fc129ee9443e9456a4c6dd194bd53474ed6 | /few-shot/models.py | e75b217c91fec649939280ad83602375701e85e8 | [
"MIT"
] | permissive | cititude/Media-and-Cognition-Homework | 3b7217f9c0fe4c45309ac25baa7aec1e17e90234 | dabaaef6d8ec115171e7115731c5f76b518d9bde | refs/heads/master | 2022-11-20T10:34:51.120231 | 2020-06-27T13:54:36 | 2020-06-27T13:54:36 | 252,416,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | import torch
from torch import nn
from torch.autograd import Variable
from sedense import *
class Reptile(nn.Module):
def __init__(self):
nn.Module.__init__(self)
def point_grad_to(self, target):
'''
Set .grad attribute of each parameter to be proportional
to the difference be... | [
"3223781449@qq.com"
] | 3223781449@qq.com |
83be0eb13d11e962804f49073a705f18cebb52b5 | e242ccd5bab549776d15a94f94603f605039afac | /myEvent/urls.py | e0ff65aa84705c24c27b8a91fb84ae99e3c54144 | [] | no_license | jose-carrasco/django_weeding_template | 85e8e57fc051d6c84cc9ca4c2ef50d74a0d784a6 | 32f8a1c3e08919860216a8a79fa28678256e6c0f | refs/heads/master | 2023-03-03T12:59:08.373100 | 2015-04-16T17:55:47 | 2015-04-16T17:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from myEvent import views
urlpatterns = patterns('',
url(r'^$', views.index, name='index'),
url(r'^hoteles', views.hotels, name='hotels'),
url(r'^mesa_de_regalos', views.giftstable, name='giftstable'),
url(r'^confirmacion', views.conf... | [
"jcarrasco@digitalartsnetwork.com.mx"
] | jcarrasco@digitalartsnetwork.com.mx |
ff7332969d1eb61a67b9706650a536ba16ef14a4 | 14198fd6549fe8d9d420bcd4d0730535c3dfbe7e | /prac_08/taxi_simulator.py | 545faa6c7f5c2086966830b124059dc47f85cfbc | [] | no_license | IoAdhitama/CP1404 | b8336df5f9633dc5d09125817577210d23172a0b | afe1d62b5f8cb1da68387796449fa62bc2f55783 | refs/heads/master | 2020-04-07T11:20:38.134203 | 2018-12-29T03:20:16 | 2018-12-29T03:20:16 | 158,322,158 | 0 | 0 | null | 2018-12-11T03:41:17 | 2018-11-20T02:54:36 | Python | UTF-8 | Python | false | false | 1,404 | py | from prac_08.taxi import Taxi
from prac_08.silver_service_taxi import SilverServiceTaxi
MENU = """q)uit, c)hoose taxi, d)rive
>>> """
def main():
user_input = ""
taxi_used = 0
current_bill = 0
taxis = [Taxi("Prius", 100), SilverServiceTaxi("Limo", 100, 2),
SilverServiceTaxi("Hummer", 20... | [
"spicyicedtea@gmail.com"
] | spicyicedtea@gmail.com |
69c0bb652daa62eea8c9a6a5378fd562629cf26a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03095/s108733747.py | 8493da82e83df4f2a53a5e799e1313b9f63c0471 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | import sys
import math
from collections import Counter
N = int(input())
S = input()
MOD = 1000000007
# baba
# a(2), b(2), ab(1), ba(3)
# baab
# a(2), b(2), ab(2), ba(2)
# 1文字の時は分かる、それは単に数えるだけ
# 2文字の時は?
# 'ab' 'a'どれ選ぶ? → その後ろにある'b'は…
# 全部やるなら2^100000、ムリー
# dpいけるか?
# dpを設計しよう
# dp[n] : n文字目まで見た時の答え
# dp[n] = dp[n... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1b8cebda853f471998deaecde0f755376fac2db7 | bb0a9ad70e17dc7b2f623f82b74030c1d73a8a82 | /hello/urls.py | 965cc5efa92fb2ccfef64da01659c5a3479b74cd | [] | no_license | 28kayak/django_tutorial_app | 00d6f8321376163bc2591dff114cafe8d9b6e2b4 | 28f5cf5c2dbaae4928f6cce948b8fe8e886b7999 | refs/heads/master | 2020-03-22T07:19:00.906056 | 2018-07-08T10:44:20 | 2018-07-08T10:44:20 | 139,692,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | from django.urls import path
from . import views
urlpatterns = [
#path("", views.index, name="index"),
#path('<int:id>/<nickname>/',views.index, name='index'),
path('', views.index, name='index'), #path used by index.html in templates
path('next', views.next, name='next'),
path('form', views.form, na... | [
"kaya.ota@gmail.com"
] | kaya.ota@gmail.com |
47bf2f00c6730182259d81aeab1bf82ce408ef5d | c7115a0a1470310792b81cd097e0aa47ed095195 | /django_thoughtapi/manage.py | 5045eb05410e0449491ad1e7a92edec2a1f3c746 | [
"MIT"
] | permissive | qwergram/thoughts_api | 80818424b3755f671cfb65fcddff5c0769fa9e27 | 47e9a76cc15e30c36232b253eb0e44bb5f401482 | refs/heads/master | 2020-12-24T22:29:12.401158 | 2016-04-30T22:45:20 | 2016-04-30T22:45:20 | 57,338,528 | 0 | 0 | null | 2016-04-29T23:40:38 | 2016-04-28T22:46:59 | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_thoughtapi.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"npengra317@gmail.com"
] | npengra317@gmail.com |
16d15c7c403e947cd7224a3ad6d98ea06966c65b | 3ccb61cf50e5d4c3263ae7e29d89ca4d2e761a5c | /command/refresh.py | 8167b6dc02f737f6b370e2e0745d1f08970b0ece | [] | no_license | K2Da/fgbuff | 6f29380276e90ddee35ed2734561cd53e05deb19 | d31e8423eebc763d2095d01e05b9adb1bef04c35 | refs/heads/master | 2021-01-11T03:20:08.170758 | 2017-03-04T12:31:29 | 2017-03-04T12:31:29 | 71,048,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | import challonge
import config
from command.smash import SmashLoader
from database.common import Table
challonge.set_credentials(config.challonge_id, config.challonge_api_key)
ft = Table('fg_tournament')
for row in ft.select('refresh = %s', (True, )):
if row['source'] == 'smash':
l = SmashLoader... | [
"id.k2da@gmail.com"
] | id.k2da@gmail.com |
d0e4986d309250758c538a7565a37d494c0409a0 | e2df45a8594c5eb61aeda00cef07bb07b3bbec77 | /Gaussian_Naive_Bayes/read_data.py | 4e1faf755ae286f3a4acfbb98cf94fcfe1fe607a | [] | no_license | rathodx/Machine-Learning-from-Scratch | 8ccd67eb62320f5e235ba51e5d3e2c37e7465733 | 1f92d18fe7d73e8c95a3322dddbb5c6782ea1cf6 | refs/heads/master | 2021-01-01T14:21:41.452199 | 2019-05-21T06:44:07 | 2019-05-21T06:44:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | import numpy as np
import h5py
def read_data(path):
f=h5py.File(path)
X=f['X']
Y=f['Y']
X = np.array(X, dtype='float64')/np.max(X)
Y = np.array(Y)
return X,Y
| [
"noreply@github.com"
] | noreply@github.com |
b674a0c5eebdf78362e1b76edcf44e210e286358 | a114b9b82ba5550d6c2b662d2c2594ee2772b6a8 | /train.py | 0487403b3b1055d5603c5c573dd008594360acf4 | [] | no_license | letter5j/wounds-image-classification | 78db45fbdd158f4e4ffa71d785a77e941f98205f | 4230b0ba3e6108a60f9e2a0a9842680deb828f29 | refs/heads/master | 2020-04-01T13:31:44.823423 | 2018-10-16T09:08:57 | 2018-10-16T09:08:57 | 153,256,220 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,984 | py | import torch
import torch.nn as nn
import torch.optim as optim
from torch.optim import lr_scheduler
from torch.autograd import Variable
import visdom
from get_data import get_data_loaders
import numpy as np
import time
import copy
import os
def train_model(model, criterion, optimizer, scheduler, num_epochs, dataloa... | [
"seanletter5j@Gmail.com"
] | seanletter5j@Gmail.com |
005852383cf1e3ae176206e5dd95e2754cd001ce | 006341ca12525aa0979d6101600e78c4bd9532ab | /CMS/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/container/browser/find.py | ee744f8239d12401177ed371c83a4a3a56c523fe | [
"ZPL-2.1",
"Python-2.0",
"ICU",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0"
] | permissive | germanfriday/code-examples-sandbox | d0f29e20a3eed1f8430d06441ac2d33bac5e4253 | 4c538584703754c956ca66392fdcecf0a0ca2314 | refs/heads/main | 2023-05-30T22:21:57.918503 | 2021-06-15T15:06:47 | 2021-06-15T15:06:47 | 377,200,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# T... | [
"chris@thegermanfriday.com"
] | chris@thegermanfriday.com |
970feb65038f3cbb7891e048c6ec4edf3da55f5c | 27cd4886e5d08cca23bf36e24339ff1155b7db10 | /generators/adc_sar/BagModules/adc_sar_templates/TISARADC.py | 3397c883b0f4ee6cc3c04f5671d08c84f7ffb9ab | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | ucb-art/laygo | 8539accac6e9888122e8e0afd160d294ffb56bfc | 8f62ec1971480cb27cb592421fd97f590379cff9 | refs/heads/master | 2021-01-11T08:49:24.306674 | 2020-06-18T15:01:50 | 2020-06-18T15:01:50 | 194,750,788 | 24 | 9 | null | null | null | null | UTF-8 | Python | false | false | 19,542 | py | # -*- coding: utf-8 -*-
########################################################################################################################
#
# Copyright (c) 2014, Regents of the University of California
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are... | [
"richards@eecs.berkeley.edu"
] | richards@eecs.berkeley.edu |
de1807a8bc122d70b558be8cdb65dc46b9c1369c | 5e2473a8b164b0aa8c7f9316cc5371c7dbb4a8d3 | /Code/ephem.py | f146c1d6ea5db2e8b3e5ae1278d2d73dfd4d20eb | [] | no_license | agagnebin/Drift_Rate_Analysis | e108a6d9e315606eaf34feedbf952695a3db00c1 | 917eb7ff3327734dcd8ac0b03e8d0c1c38369117 | refs/heads/main | 2023-07-06T06:23:07.302949 | 2021-08-20T22:08:43 | 2021-08-20T22:08:43 | 393,111,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,248 | py | from astropy import units as u
from astropy.coordinates import Angle, SkyCoord
import numpy as np
#import dateutil
from astropy.convolution import convolve, Gaussian1DKernel
from astropy import constants as Const
from argparse import Namespace
def to_Angle(val, unit='degree'):
if isinstance(val, (u.quantity.Quant... | [
"akgagnebin@csus.edu"
] | akgagnebin@csus.edu |
94e1bcfdf5adabec1171a6844867b600be9ef5e8 | c93b0f008d0977e0b9327ad8b930489f5cccae97 | /platfrom/testdata/RawQosBuffering.py | 3dbfb80b4f23f72c376766ece3d0dc34e83de492 | [] | no_license | ParkPan/ATCasePackage | 15caa664bd94c014ccbd1780353bfc5fcc0caa87 | edad6c1d5a343c740e251821fee0c29336f3d435 | refs/heads/master | 2020-06-16T02:44:06.323352 | 2016-12-01T03:46:44 | 2016-12-01T03:46:44 | 75,251,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | import random
import sys
import os
import datavars
import dataprovider
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/' + '..'))
from commonfunc import get_timestamp_by_time
class RawQosBuffering(dataprovider.Dataprovider):
tablename = 'raw_input_qos_buffering'
@classmethod
def gettablena... | [
"panpan@cloutropy.com"
] | panpan@cloutropy.com |
ec88adb74b40ae3b44f04b1e117c8c881872eb99 | ba2d24fd6c5ce7d490ee57f224fd5435a1132093 | /setup.py | 7b0ac69b67ea99435a867d57e8b00a0787e5f3aa | [
"MIT"
] | permissive | FlowerOda/pytest-auto-parametrize | cb2aff37308bff571b980da88f222f8b88e4e36b | 9db33bb06de13c26f753bfd18e254ce10ae1256c | refs/heads/master | 2022-01-09T16:54:33.796383 | 2018-10-09T08:56:09 | 2018-10-09T08:56:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from setuptools import setup
from setuptools.command.test import test as TestCommand
import sys
__version__ = 'unknown'
# "import" __version__
for line in open('pytest_auto_parametrize.py'):
if line.startswith('__version__'):
exec(line)
break
class PyTest(TestCommand):
"""Enable "python setu... | [
"Matthias.Geier@gmail.com"
] | Matthias.Geier@gmail.com |
e47a19d0e98b34194eaab7401587fb61ac2f78e9 | e1ce0e26628f05c599097aca11a72d1873497333 | /random_tree/root/Root.py | 4916caa15b8d72e8905541511952c2b6c9b9355b | [] | no_license | lbmello/random-tree-generator | 05a1ecd6a594d23aea6d10d45b5e77f38bd5772f | aa6bd07b69a94244f31adf8c7b5e04bc6d741b30 | refs/heads/master | 2021-04-21T13:33:43.642712 | 2020-04-15T23:30:54 | 2020-04-15T23:30:54 | 249,784,345 | 1 | 0 | null | 2021-03-25T23:34:21 | 2020-03-24T18:17:39 | Python | UTF-8 | Python | false | false | 2,037 | py | """Modulo Root."""
from datetime import datetime
from random import randint
import hashlib
import os
from ..queue import FolderQueue
from ..data import YamlReader
class Root(object):
"""Gerencia o diretório onde a árvore será gerada."""
# Configuracoes lidas do arquivo YAML
path = YamlReader.path
le... | [
"lucasbmello96@gmail.com"
] | lucasbmello96@gmail.com |
064b469872ad95e7487c3cf649ca3cfa62170bdd | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/068d64a694460d83bc9a67db9e2e5f1e4e03d3c3urls.py | 068d64a694460d83bc9a67db9e2e5f1e4e03d3c3 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 717 | py | from django.conf.urls import url
from . import views
SITE_SLUG = "(?P<site_slug>[-_\w]+)"
IMAGE_SLUG = "(?P<image_slug>[-_\w]+)"
urlpatterns = [
# Manage
url(r'^$', views.manage_redirect, name='manage_redirect'),
url(r'^manage/$', views.manage, name='manage'),
url(r'^manage/archives$', views.archives,... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
d8c4f91ccf0ba1051ab621f1c22873cfde6e7ce0 | c4f8d4cd1d694ea7d75e180743b59642259f7db2 | /11/test11b.py | 497057e79b87b9b680d8e7f74abb4eaa0129e071 | [] | no_license | tuffing/adventofcode2018 | a5caf9ac1af0c94fac5840ed9db9efd6ef490e65 | ac216dcea5af9476dcd44cf529aa108c925fb27c | refs/heads/master | 2020-04-09T21:35:40.860886 | 2019-03-05T08:14:21 | 2019-03-05T08:14:21 | 160,606,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | #!/usr/bin/python3
import unittest
#replace standard with day name
from sol11b import *
sys.path.append('../')
from scaffolding import common
class SolutionTest(unittest.TestCase):
def test_full_solution(self):
#remember to set the assert to the known examples and place the example test into testInput.txt!
te... | [
"logan.orr@tuffing.co.nz"
] | logan.orr@tuffing.co.nz |
8a76756307d9f3887405c1ec0d882bb33b9bf16b | 2465f683816bd2a58c87a9aea22d1c35a23feb94 | /Part7_project_practice/Section22_text_classification_example/test_classification_example.py | d026235c19bed7e6d39982b3b17fa7160dfe82d8 | [] | no_license | lyx564/machine_learning | 73e1d0cc2aa27c211bfe080082e0bd321df8d630 | dc1214e36f913e783d92400bb81a8f15b74c943f | refs/heads/master | 2022-04-26T23:34:45.748634 | 2020-04-28T09:00:31 | 2020-04-28T09:00:31 | 210,793,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,486 | py | from sklearn.datasets import load_files
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.naive_bayes import ... | [
"905389852@qq.com"
] | 905389852@qq.com |
66b57785e5149d4bf5dac17fb77176cb1ed8d035 | 101099a41b71294f2964b5158637551b68dd731d | /apps/siteinfo/migrations/0003_auto_20180425_1653.py | 89c01b67b084ec6018c5f97a67f9112683b0a794 | [] | no_license | edos21/ironmanedgar | ccb5c2c5cc4c3784f70c17fb496b44cc3642de12 | 98c8584d783043378a92296b892ea6be565f1a17 | refs/heads/master | 2023-07-26T19:59:31.909343 | 2019-06-04T15:16:31 | 2019-06-04T15:16:31 | 117,257,432 | 0 | 0 | null | 2021-09-08T01:17:31 | 2018-01-12T15:31:06 | CSS | UTF-8 | Python | false | false | 599 | py | # Generated by Django 2.0.1 on 2018-04-25 16:53
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('siteinfo', '0002_auto_20180424_2031'),
]
operations = [
migrations.RemoveField(
model_name='siteinfo',
name='section... | [
"edos21@gmail.com"
] | edos21@gmail.com |
d81651484faccd305d861d1627813a8342900501 | 282b31c5f6c2a04b4037a2be13602b19cbc4957e | /Python-labs/-9/Завдання 2 (Лаб 9).py | 1e577124314af69b5ed7ba127f7507c2bc122f78 | [] | no_license | Fabritsi/Python-labs | 72d52a428eb0d3c65d441f585a14ff49072acc4e | 20f0879953c0322a005e52aacd6a0dc00f5783f9 | refs/heads/main | 2023-03-07T08:12:24.337303 | 2021-02-21T10:14:07 | 2021-02-21T10:14:07 | 340,864,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,082 | py | InspectorDict = {"LastName": "", "Name": "", "Surname": "", "BornDate": 0, "TypeOfCrime": "", "Judgment": "" }
arrayOfInspectorDict = []
def serch(choose, criteria):
if choose == 1:
for i in range(len(arrayOfInspectorDict)):
if arrayOfInspectorDict[i]["LastName"] == criteria:
... | [
"noreply@github.com"
] | noreply@github.com |
ea30277fdda4769bc035c83cf910f8660e83b049 | 421f6ce9490876be113e5ed1ac173b1f6d70cb66 | /newYork/new_york_analysis/recursive_top_level/u_craigslist4237915975/craigslist4237915975scraper/craigslist4237915975scraper/items.py | 2ed8d4fb8cf4de54768e328577d307baa7ea0dfc | [] | no_license | EricSchles/humanTraffickingTalk | a1f4770c4380ea0424663baac79686be5b74733a | f399e6e6188601f34eab3fd8e7fc4a3ca30d9b14 | refs/heads/master | 2021-01-01T06:11:24.424134 | 2014-08-14T18:51:23 | 2014-08-14T18:51:23 | 14,879,906 | 17 | 5 | null | 2019-10-15T11:10:13 | 2013-12-03T01:15:11 | Python | UTF-8 | Python | false | false | 134 | py |
from scrapy.item import Item, Field
class craigslist4237915975Item(Item):
title = Field()
link = Field()
desc = Field()
| [
"ericschles@gmail.com"
] | ericschles@gmail.com |
6656fbf5045a123bc70ed91d5be5aa25e2d69c09 | a0b8d47e87d33b5d7518d01278fb3556cfd941a6 | /devel/lib/python2.7/dist-packages/core_msgs/msg/_multiarray.py | 18a82c2e0e3c38e18b75b34654faccd0ea861698 | [] | no_license | dhhan120/capstone_2_Cgroup | 66c22ebb64e7d077a1729e39854897bcff2affc9 | 71382bc36a77c3bb783bc81e151f6c377de9205d | refs/heads/master | 2020-11-25T17:51:29.295490 | 2019-12-19T08:51:53 | 2019-12-19T08:51:53 | 228,779,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,223 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from core_msgs/multiarray.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class multiarray(genpy.Message):
_md5sum = "5f8105e16e9e9d9f45d4acb38630a3... | [
"dhhan218@kaist.ac.kr"
] | dhhan218@kaist.ac.kr |
6e907d99daab017e865c8e55609d42b30531e01b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4069/codes/1578_1331.py | f6e61de10d8ff19b5aa7a45b3dc1f2599615276b | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | x = 50//3
y = 50%3
print(x, y) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
fd95b0d9e5f79057828a0ec3f2924b5321ac21c6 | c7c518ce251ad9b822d775e13e0c7edc86006454 | /git_logger.py | e6b3bdaa1a961d9d376c982c2d29629b25b2d8a8 | [
"MIT"
] | permissive | spirosavlonitis/chapter_7 | 791a5193ae086e24800ff733f3c3c27c0de67c2a | 1baeb90932350afa063e2de4bfec03b8899c63ff | refs/heads/master | 2020-04-14T08:50:08.348316 | 2019-01-07T02:16:01 | 2019-01-07T02:16:01 | 163,744,343 | 0 | 0 | null | 2019-01-05T04:47:36 | 2019-01-01T14:53:41 | Python | UTF-8 | Python | false | false | 2,434 | py | import json
import base64
import sys
import imp
import time
import subprocess
from random import randint
from threading import Thread
from queue import Queue
# dynamic import start
try:
from github3 import login
except Exception as e:
try:
subprocess.check_output("python -m pip install github3.py --us... | [
"spirosa84@hotmail.com"
] | spirosa84@hotmail.com |
0e8aa7538481abe5a5324a61bfe548e6eb342c62 | 7c89cad967988589a1969922adcb9d1d8ef8bbcb | /bpmappers/exceptions.py | 6fd9dbfc270ade0b6281e6570d53de457bd925f5 | [
"MIT"
] | permissive | akiyoko/bpmappers | e8277bdd4d6091ea5bed7e6385ee29baf92b9108 | 02a99adb1c4be6787bea015eeeb5842df540e627 | refs/heads/master | 2020-03-29T15:22:21.069252 | 2018-09-24T05:50:40 | 2018-09-24T06:16:12 | 150,059,972 | 0 | 0 | MIT | 2018-09-24T05:48:01 | 2018-09-24T05:48:01 | null | UTF-8 | Python | false | false | 204 | py | class DataError(Exception):
def __init__(self, message):
self.message = message
def __str__(self):
return repr(self.message)
class InvalidDelegateException(DataError):
pass
| [
"shinya.okano@beproud.jp"
] | shinya.okano@beproud.jp |
f78b8273234e854f8a98033346c056b40540b905 | 8b31087237d86dce4c4105a049b210ffb499a7db | /1014-Consumption.py | c32c0070c3a4eed4a78214c5272a0f51218dfa89 | [
"MIT"
] | permissive | OrianaCadavid/uri-oj | ef538ea080da8b0c713bc20538ce08a9a22916f4 | 256c811007712e85f636ae5b9357a59cf608daa8 | refs/heads/master | 2020-05-21T06:25:29.025347 | 2017-08-02T20:19:08 | 2017-08-02T20:19:08 | 84,588,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | def main():
distance = int(raw_input())
spent_fuel = float(raw_input())
consumption = distance / spent_fuel
print '{:.3f} km/l'.format(consumption)
if __name__ == '__main__':
main()
| [
"ocadavid@utp.edu.co"
] | ocadavid@utp.edu.co |
61d1d1e66cbe61f5828d915f7ac13f0707e35082 | 76340f68f9734734d24a044299316a826c2b98dc | /v2_Tech_Review/terminal-app-from-arduino.py | 24aae4492775d2772084048465fce82c6b4b836c | [
"MIT"
] | permissive | laurengulland/009yellow-beacon | 44d6f96b0d6b03805a7664d35578acd4c98ec079 | 2f9237163d8a104c9ec6e854a0bc2cbbd0e42de3 | refs/heads/master | 2021-08-28T08:34:15.731568 | 2017-12-11T18:43:08 | 2017-12-11T18:43:08 | 106,962,423 | 0 | 1 | null | 2017-12-06T02:59:11 | 2017-10-14T20:58:56 | HTML | UTF-8 | Python | false | false | 6,368 | py | import curses
import serial
import time
import signal
class TimeoutException(Exception): # Custom exception class
pass
def timeout_handler(signum, frame): # Custom signal handler
raise TimeoutException
signal.signal(signal.SIGALRM, timeout_handler)
class ArduinoDisplay(object):
def __init__(self,baud... | [
"lauren.gulland@students.olin.edu"
] | lauren.gulland@students.olin.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.