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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5231c2006fbd7226bb916b5e1e665f2e845ea768 | 3622bb07a758b387c97ffc799a4280f167801f17 | /python-file/untitled57.py | 3df99c90907853e70a83a5759c486f9e9b5f9d21 | [] | no_license | Ashishkumarpanda/Corna-Tweet-sentiment-analysis | 951bb38d66c4ab216125c48c9bad405d7e7a42d4 | 7c00d8126305ee040095dd8143de423853d654de | refs/heads/master | 2023-02-06T15:11:51.453734 | 2020-12-26T19:57:50 | 2020-12-26T19:57:50 | 297,995,404 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | # -*- coding: utf-8 -*-
"""Untitled57.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1jKp4EBQhMfhLBDpRJbptWB51v-QQ54Fi
"""
import pandas as pd
import numpy as np
import seaborn as sns
from sklearn.preprocessing import LabelEncoder
import nltk
im... | [
"noreply@github.com"
] | noreply@github.com |
9d0fe469abf15b6131c6115ff4652375929dfaf5 | 8628b0fb307fcd157b3477b419fc3707eaaa4d4d | /setup.py | b7848068cadad6a6e58e23fffcb268eb52a88be1 | [
"MIT"
] | permissive | baessler/pmul | 3fe8cb95cd6321e6c2b397b6f4123e3485fe4da4 | c7a14097a54704230d87876e5911c17a8e212d0e | refs/heads/master | 2021-05-16T04:35:34.092631 | 2017-10-17T18:59:34 | 2017-10-17T18:59:34 | 106,121,036 | 5 | 3 | null | 2017-10-10T19:18:37 | 2017-10-07T18:29:42 | Python | UTF-8 | Python | false | false | 579 | py | from distutils.core import setup
setup(
name = 'pmul',
packages = ['pmul'], # this must be the same as the name above
version = '0.8',
description = 'An implementation of the P_MUL protocol in python',
author = 'Andreas Baessler',
author_email = 'a_baessler@web.de',
url = 'https://github.com/baessler/pmul... | [
"a_baessler@web.de"
] | a_baessler@web.de |
158affbd0c69bdb708234a227040c705d8a0b2f4 | 88853b9b6c3ae0c12cbd5bf83be3d48f2fe0159e | /document/eggs_package/gflux_egg/gflux/gflux/apps/station/management/commands/obselete/deal_with_shihua_none_fuel_data.py | e12cd0c2aed3e9ab1d6084886feb5e89e19b5a76 | [] | no_license | laoyin/nyf | 9151da3368c2e636501bcf1ad52f895fe446c04b | a2b12f54827b6088548f060881b6dafa2d791a3a | refs/heads/master | 2021-01-17T17:11:14.174968 | 2015-09-28T01:12:28 | 2015-09-28T01:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | # coding=utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from django.core.management.base import BaseCommand
from dash.core.backends.sql.models import get_dash_session_maker
from gflux.apps.common.models import SiteDayBatch
from datetime import datetime
from optparse import make_option
import sys,pdb,re
f... | [
"niyoufa@tmlsystem.com"
] | niyoufa@tmlsystem.com |
750f7dc4dd2fde55b9a95f226d01528f5ed87575 | 70d929497cbd70bb40ed939f3aa0ce56c3f7d816 | /matplotlib/axes/_base.pyi | 38538630fa8c01b97d75e7e9a1f5f3c177392dff | [
"MIT"
] | permissive | matangover/python-type-stubs | abd4bc46f9841d0a2c44e1597055019d21f9ee70 | 15285c6b88dc684d9de9bfdaf8b72d4eb7c3e257 | refs/heads/main | 2023-07-13T04:19:03.481222 | 2021-08-05T20:26:18 | 2021-08-05T20:26:18 | 399,435,272 | 0 | 0 | MIT | 2021-08-24T11:11:57 | 2021-08-24T11:11:56 | null | UTF-8 | Python | false | false | 160 | pyi | from typing import Any
class _AxesBase:
def __getattr__(self, name: str) -> Any: ... # incomplete
def __getattr__(name: str) -> Any: ... # incomplete
| [
"noreply@github.com"
] | noreply@github.com |
789092fccfac9376d56c0cc11e86cd9424babcda | ca2b5fafdcefd43c18f4c76e469162615684bb7d | /2018_12_模拟门锁系统/src/other/嵌入式-计算生成密钥文件.py | ab083d7c8143db818ec941758829f99b26f1faca | [] | no_license | randoruf/gange666-projects | 1e823335806b680d4c9a07ae4a3c94d071c28d6a | ebbb2658fc42788f51e7047355500fa52934de34 | refs/heads/master | 2022-11-19T10:52:56.847454 | 2020-07-20T12:46:53 | 2020-07-20T12:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | import hashlib
import struct
inputstr = "123456"
salt = "12345678900987654321"
xor_key = 0xAA
file_size = 17
# 计算压码
ym = 0
for i in inputstr:
ym += ord(i)
ym &= 0xFF
inputstr += chr(ym)
saltstr = inputstr + salt
# saltstr = salt + inputstr
print(saltstr)
md5ed = hashlib.md5(saltstr.en... | [
"499602203@qq.com"
] | 499602203@qq.com |
aa5bed021ed0869380df0d789490bbefb742dd3a | 89a62d6ed7411c61dfd7dc85b26527073d8a6e0f | /.envs/scrapy/bin/cftp | 77a0986a2659f11feb2a11be9397060f236400e1 | [] | no_license | aidongsheng/wcc_log | 4671d0e7caf292e75473187b3280c26550c8d5c3 | bc808040d1682d4b24f64d31ba25f313bcac2c0f | refs/heads/master | 2020-03-26T16:33:00.664056 | 2018-08-17T10:55:06 | 2018-08-17T10:55:06 | 145,108,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/Users/wcc/.envs/scrapy/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.conch.scripts.cftp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"coding_ai@wochacha.com"
] | coding_ai@wochacha.com | |
d57ed7dba8cec198cd821430b77da149e39aa034 | a268890c8b90fc5645a08d6ab7ec64cb5936a4b7 | /csvs/forms.py | 560fb8eb4892de8065739700683d77135f819157 | [] | no_license | sudghosh/djangotutedyoda | 6799582175d65a8e595b957c41fbba08e639bf7e | eab63829447f628cb976b50b3db500fa152bddc6 | refs/heads/master | 2022-12-07T10:42:18.447448 | 2020-08-31T05:23:08 | 2020-08-31T05:23:08 | 289,212,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from django import forms
from .models import Csvs
class upload_form(forms.ModelForm):
class Meta:
model = Csvs
fields =('file_name',) | [
"binty.ghosh@gmail.com"
] | binty.ghosh@gmail.com |
3850d5356e9a7dc6843e7d2b5951518af59d0bfb | 1d5510172d0d572909cead3a13d2e7255dc12576 | /servoblaster.py | 264d563a06406480089dc6b1233c84c2e8d94754 | [
"BSD-2-Clause"
] | permissive | Mr-President/brewing | 4320a6d2bdbbc46badd89bd43ed7249f19f96af3 | d2cfd861ca9cb05c8b5850b0ada3cd9fa97011f7 | refs/heads/master | 2021-09-07T05:09:48.607405 | 2018-02-17T21:32:05 | 2018-02-17T21:32:05 | 103,711,157 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#Quick and dirty python implemenation of Servoblaster for the
#Raspberry Pi, written by kols
#Servoblaster uses the BOARD numbering system. This means that if a servo is connected to BCM GPIO_5, Servoblaster is told to use BOARD pin 29
#Quick example showing how to wri... | [
"noreply@github.com"
] | noreply@github.com |
fa68718e9eb9778eb6e85bdd3203aef2bcedea29 | 95f3f0197b495ea40f29d650badf3b80ccc00cfa | /formatter.py | 7901c485f4838d79e3163c27ce439453568c3b9e | [] | no_license | nikkolasg/analyzer | fb2c1bf78374ce2330399c81fb117b4cbec80787 | 6513875fdb045ceec62aa607be35a203db113c38 | refs/heads/master | 2021-03-12T20:35:02.058242 | 2015-02-26T14:17:25 | 2015-02-26T14:17:25 | 29,583,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,711 | py | #!/usr/bin/env python3
##This module format a JSON according to come criterion in a analysis.
##Specifically, it will slice the original data, take #window points for each periods
import logging as log
import pdb
import util
import pdb
def format(json, analysis):
newjson = {}
#util.pretty(json,text = "JSON BEFO... | [
"nikkolasg@gmail.com"
] | nikkolasg@gmail.com |
64a1ccdefdfb303072ecc4b7559f6097713a0fd3 | 8530a4bcb1e0a35c72fc5f8347eeded3411347bb | /PqrUploadModule/contacts_update.py | 9cc9089e0238af2aaf10abe2a7b509031872760c | [
"MIT"
] | permissive | petronije2002/PqrUpload | f912ecb43342167df9845bba4d06f355ece8b3e4 | db22af08dac1243569e5f3dd8cdb4e010b215878 | refs/heads/master | 2023-03-26T20:00:41.274419 | 2019-10-03T16:08:31 | 2019-10-03T16:08:31 | 212,525,430 | 0 | 0 | MIT | 2021-03-29T20:37:43 | 2019-10-03T07:57:56 | Python | UTF-8 | Python | false | false | 3,518 | py | # from . import authorizations
from authorizations import at,at_url,headers_at,encoded_u,encoded_u_td,td_base_url,get_headers
import atws
import time
import json
import requests
def get_autotask_contact_gem_NK():
'''
Returns all contacts from Autotask
'''
query_contacts=atws.Query('Contact')
quer... | [
"Petar.Jovanovic@MacBook-Air-van-Petar-Jovanovic.local"
] | Petar.Jovanovic@MacBook-Air-van-Petar-Jovanovic.local |
e2fa198ad01e2e4f8c25896ecb0eb3e73d4ae6eb | 7133211ed175d2d4420ed3e4f006d66b11c26f05 | /bin/mac_keyboard_special_character | 6cf836072b2933f5c2c9064cdae05ab38857492f | [
"Unlicense"
] | permissive | username4gh/dotfiles | 8f25e66037063c9542269e4a1f82d4a3e7c2ab64 | 278bfeaed670bf8702ddc4e3e5e3a52053efc123 | refs/heads/master | 2022-04-30T03:45:46.929504 | 2022-03-23T16:03:01 | 2022-03-23T16:03:01 | 48,247,765 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | #! /usr/bin/env python3
# coding=utf-8
from __future__ import print_function
import argparse
import sys
normal = [list("`1234567890-="),
list("qwertyuiop[]\\"),
list("asdfghjkl;’"),
list("zxcvbnm,./")
]
shift = [list("~!@#$%^&*()_+"),
list("QWERTYUIOP{}|"),
list("ASDF... | [
"jhon.doe1051@gmail.com"
] | jhon.doe1051@gmail.com | |
7e5da0fbf908161bc4084fef3c8bf28c92b54ad9 | c868d681415d152ba331bd80e0ed542832f20f0e | /week 3/todo_project/todo_project/main/migrations/0005_auto_20200205_2301.py | 819409651f247514434443d5e5acf7e6a3948904 | [] | no_license | Yeldarmt/BFDjango | a297a6b0c00ffb1a269f05c7e6665c5d34a51097 | b8256ff1d5f2125495df66eabf267fc17e667aeb | refs/heads/master | 2022-11-30T12:45:17.356453 | 2020-04-19T16:50:26 | 2020-04-19T16:50:26 | 233,515,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Generated by Django 2.0 on 2020-02-05 17:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20200203_1126'),
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id... | [
"eldarmukhametkazin@gmail.com"
] | eldarmukhametkazin@gmail.com |
d925fe18799581668fd18268206f8ad71d8b2920 | 93c43f774b11d3f44a3c4b83ab94be3600d606df | /Graph-Algorithm/SelectiveSearch(Python with OpenCV or scikit-image)/selective-search-based-on-my-segmentation/segment.py | 7faca5a225d4f16adde11e1f310d2b8db056e3a0 | [
"Apache-2.0"
] | permissive | sadbb/CVCode | 299afeafb5a09d030b42ec00c6cd9c8087bc718f | c7c8b527af786d8f113122231e6296987b242b59 | refs/heads/master | 2020-04-07T04:24:04.040378 | 2018-11-17T14:13:23 | 2018-11-17T14:13:23 | 158,053,757 | 1 | 0 | Apache-2.0 | 2018-11-18T05:41:43 | 2018-11-18T05:41:42 | null | UTF-8 | Python | false | false | 6,264 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2018 VTS, FUDAN UNIVERSITY
# @author Li Wenxi
# Efficient Graph-Based Image Segmentation[J]. International Journal of Computer Vision, 2004, 59(2):167-181.
# Felzenszwalb P F, Huttenlocher D P.
import cv2
import sys
import numpy as np
def _diff(img, x1, y1, x2, y2):
r = n... | [
"liwenxi121@vip.qq.com"
] | liwenxi121@vip.qq.com |
9613a4de271fa3ac08baf25915b276482bc71e80 | 55a1e8f429c92360247e47f672485118eda3988e | /image_segmentation/code.py | ba890a353608c4ab0a49cf042c3a44f241b976ec | [] | no_license | rashiddilkash/image_segmentation | 0e98d8a689bab832894bf3933096be5f88beef15 | 9e88619cfe09b96285a25cf8c50316e786c946de | refs/heads/master | 2021-04-15T08:39:14.401810 | 2018-03-25T19:51:48 | 2018-03-25T19:51:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | import numpy as np
import cv2 as cv
from matplotlib import pyplot as plt
import glob
filename = input("Enter Folder Name in which images are stored in .JPG/.png format : ")
print("Psress any key to move to next image in the folder.")
for image in glob.glob(filename+'/*.*'):
try :
#reading image from the folder
... | [
"rashiddilkash27@gmail.com"
] | rashiddilkash27@gmail.com |
6b7e4607d3d3e72d14e566ad204c916b32cf8c32 | 8ced62180dda5e25f8da1c8f26f8dd49729871fd | /pys/gisfuncs.py | 0e1a760f8c8ba0a87eada1041fc4fd33ce86b89c | [] | no_license | isosky/gamestatus | dce7094256e8fdecd581f7302d3d6e4f273f7bdd | f1961dfc42094f40ecbf2ce1e36f953274346f70 | refs/heads/master | 2021-01-22T18:58:40.974714 | 2019-05-22T17:46:50 | 2019-05-22T17:46:50 | 100,771,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,208 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 10 17:42:33 2016
@author: wtr
"""
import math
"""
第一个参数为一个路的起点和终点组成的list,如下:
sp=[116.291087273989,40.0484742339865]
ep=[116.292488728211,40.0487113818083]
lines=[sp,ep]
第二个参数为前进了多少的百分比
"""
def line_interpolate_point(lines, percent):
p1, p2 = lines
# 如果传进来... | [
"wangtr@asialantao.com"
] | wangtr@asialantao.com |
41405be1d502413f5aca8f2078d14da43b9473d5 | 72918242418d81e3ef2b9030553d3d8cc14f28ad | /data pre-processing/Data sifting.py | e2b33fc602cac295910799ee2b4748e6ee3e0631 | [] | no_license | qq-shu/TextCNN | e03e179454d52fcf00de4c4678d92e277b33cd4d | cdf61e9f72b1c0e7a71cb00b4f91d96b416a0ac3 | refs/heads/main | 2023-08-16T12:59:08.563400 | 2021-09-30T03:30:52 | 2021-09-30T03:30:52 | 411,896,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | #统计每个样本含有的序列长度
file=open('train-ops.txt')
ops=[]
import pandas as pd
for line in file.readlines():
# print(line)
curLine=line.strip().split(" ")
# floatLine=list(map(float,curLine))
ops.append(curLine[:])
print(len(ops))
print(ops[7940])
print(len(ops[7940]))
#删除操作码数为0的样本
blankline = []
def tong1(filen... | [
"noreply@github.com"
] | noreply@github.com |
455de03e8f49274c758ae023bb63a631d4a1a7be | 0b1e404a165c960677d07015bc26aac0569cf84a | /src/combustion/models/efficientdet.py | 9ad75fdd19fa31300cf789c8bae8a09322c9b3c9 | [
"Apache-2.0"
] | permissive | johndpope/combustion | d3ec349cd7be086f55b4e3deebd571c97842e1ed | c3f91e62a10a873cfeeae8c675b0683bc5158818 | refs/heads/master | 2023-03-01T14:34:42.149415 | 2021-02-07T17:55:58 | 2021-02-13T17:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,419 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from copy import deepcopy
from typing import Any, Dict, List, Optional
import torch
import torch.nn as nn
from torch import Tensor
from combustion.nn import BiFPN1d, BiFPN2d, BiFPN3d, MatchShapes, MobileNetBlockConfig
from .efficientnet import _EfficientNet
class _Eff... | [
"tidalpaladin@protonmail.com"
] | tidalpaladin@protonmail.com |
87a32b9ef2e20ba788b58ff171e5f62e1c2949a7 | c697513799a335a0a18aa986b415d57854ece5fe | /neural/train.py | 2c2abfd82cc58a6469ffea7391c64e9440fee13a | [] | no_license | YerayL/IterefinE | bbbe4d156c9e8a3183e0692de50e2d0eb3eb366a | 81e6f1ea24968303a6c426f704228e8618966f6a | refs/heads/master | 2022-11-17T17:40:47.505780 | 2020-06-10T21:26:48 | 2020-06-10T21:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,475 | py | import torch
import torch.nn as nn
from torch.nn.init import xavier_normal
import argparse
from torch.utils.data.dataset import TensorDataset
from torch.utils.data import DataLoader
import torch.nn.functional as F
from torch import optim
from torch.autograd import Variable
from sklearn.metrics import average_precision_... | [
"siddhantarora1806@gmail.com"
] | siddhantarora1806@gmail.com |
4db1eec3c925f10748225f44b11f7e9cdc5a0bc2 | 22a51a6fe3f12df083908f14d31b5ba323a42d6c | /python_files/factorial_iterative.py | db2b8d837a3e7447074809b2453e44f2c6fb8b2e | [] | no_license | manningb/data-structures-complexity-analysis | 0443a6d8fc75563a283f84e15356d9366f0c915d | 0ca325ff152606c748790da6e17eab5f4f9601d7 | refs/heads/main | 2023-05-03T00:15:47.142857 | 2021-05-28T11:16:06 | 2021-05-28T11:16:06 | 371,673,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | def factorial_iterative(n=1000):
"""
Function to calculate the factorial of a positive integer
If the input is not a positive integer, return -1
"""
factorial = 1
for i in range(2, n+1):
factorial *= i
return factorial
factorial_iterative()
| [
"manningbrian98@gmail.com"
] | manningbrian98@gmail.com |
38769bed99e3caf79b45b1c948a5142c38462485 | dee1aa5ce988f59165a8a651b28f471c468fff99 | /tributary/lazy/output/__init__.py | 3d73f9fd9636c043435f23c15dff8fc754280c14 | [
"Apache-2.0"
] | permissive | ceball/tributary | 04f22e57048a3cb0375b57cdb30e62f69cf4a380 | 5e30f90d1a5cc176c0f231f525d9dc5a81353925 | refs/heads/master | 2022-12-05T20:35:33.631468 | 2020-08-28T13:14:24 | 2020-08-28T13:14:24 | 291,319,040 | 0 | 0 | Apache-2.0 | 2020-08-29T17:39:39 | 2020-08-29T17:39:38 | null | UTF-8 | Python | false | false | 3,819 | py | from ..node import Node
def _print(node, cache=None):
if cache is None:
cache = {}
cache[id(node)] = node
ret = {node: []}
if node._dependencies:
for call, deps in node._dependencies.items():
# callable node
if hasattr(call, '_node_wrapper') and \
... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
8aa9838e19c22ed689de283738a4ffa25d568367 | 4229d238f55d33a7b1e5b89ca48c942390ff30d1 | /tapiriik/services/Dailymile/__init__.py | 3eb2d5f7a310a5799c0bbb12a3da9a6460cd6654 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | cmgrote/tapiriik | 685db950b963e13751922a402375eee4d3c0fcbc | 1bc929f8ca1f854136bb0d99ae03d57bb897a49b | refs/heads/master | 2020-05-29T11:53:06.940123 | 2018-01-02T17:17:00 | 2018-01-02T17:17:00 | 28,861,974 | 2 | 0 | null | 2015-01-06T12:14:15 | 2015-01-06T12:14:15 | null | UTF-8 | Python | false | false | 25 | py | from .dailymile import *
| [
"chris@thegrotes.net"
] | chris@thegrotes.net |
ba8170056a15f9e543e0b1c1896cc69283db2efc | f3b452635d3a9d6d0b8d5581066e306b57a6271e | /test.py | 4f6473edff189eb62bec1a1153c56c33149c5812 | [] | no_license | h-munakata/Conv-TasNet | 811114e5604556cdd536605dba71eb55d44b3373 | a4305e9068c1d6cab41fcc8704d95b6797e94fe5 | refs/heads/main | 2023-09-01T16:11:18.509508 | 2021-10-26T08:09:24 | 2021-10-26T08:09:24 | 359,992,277 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,037 | py | from model.network import ConvTasNet
from model.eval_metrics import eval_SI_SDRi
import os
import yaml
from dataloader import wav_dataset
import torch
from tqdm import tqdm
import datetime
import csv
import sys
import pathlib
import argparse
import soundfile as sf
class Separation():
def __init__(self, path_checkpo... | [
"h_munakata@ei.sanken.osaka-u.ac.jp"
] | h_munakata@ei.sanken.osaka-u.ac.jp |
cf7438698dde537198e931d67ba1b9a2c472379b | 948962b38f07cf65e297bb8c0621137715720c47 | /app/views.py | 331e41c4babc0ae38f89529e0d9650d762a429cc | [] | no_license | twhi/shopping-list | 43c1ca9408c97a10a42aca1c9ece44543e6c39b4 | 7c9ddff71ae7aa01bb442927b2c9bd6e4fba8b4e | refs/heads/master | 2023-08-17T04:24:08.576593 | 2021-01-23T22:22:27 | 2021-01-23T22:22:27 | 256,255,184 | 0 | 0 | null | 2021-09-22T19:11:54 | 2020-04-16T15:28:15 | JavaScript | UTF-8 | Python | false | false | 14,588 | py | from django.contrib import messages
from django.contrib.auth import get_user_model, authenticate, login
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.contrib.auth.models import User
from django.contrib.auth.views import LoginView
from django.contrib.humanize.templatetags.hum... | [
"twhitehead.1991@gmail.com"
] | twhitehead.1991@gmail.com |
3467e9fbec6ceb28a2b2a98d25b2a0dbb03e4122 | 78e60a7d8a67ed76244004e8a3ed573fbf396e41 | /samples/sq__unbind_skill.py | 5e488f7e1a0d6a6147070822fc075df323fa31d5 | [
"MIT"
] | permissive | Crivez/apiclient-python | 837a9f7cc0453ccd3121311adc7920b5fe6b3e33 | 860fc054f546152a101e29b1af388c381075ac47 | refs/heads/master | 2023-06-08T13:24:09.249704 | 2021-06-17T12:16:35 | 2021-06-17T12:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from voximplant.apiclient import VoximplantAPI, VoximplantException
if __name__ == "__main__":
voxapi = VoximplantAPI("credentials.json")
# Unbind the skill with id = 1 from the user with id = 1.
APPLICATION_ID = 1
USER_ID = 1
SQ_SKILL_ID = 1
try:
res = voxapi.sq__unbind_skil... | [
"andrey@voximplant.com"
] | andrey@voximplant.com |
251e871b64bc4ee6be5c2ababa55415561adf786 | 22f6731b36083846328d30c4f231a1acfacdcbf5 | /PA_3/median_test.py | 48ad4ba4700e5b1ecb34b31753e55eb44fb665a5 | [] | no_license | howiewanie/JHU_AlgoFoundation_2021Summer | fb3502eb2b06abd16aa31aee17ad1d02231642a6 | c6e0cfb962ba46abc79209858952ec97a1fda87a | refs/heads/main | 2023-07-16T11:32:33.770596 | 2021-08-28T18:16:03 | 2021-08-28T18:16:03 | 387,303,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 20 10:23:39 2021
Average and Worst Case Time Complexity Analysis for Median Quick Sort
@author: howez
"""
from Partition_median_Counter import main
import random
#Average case
P1 = random.sample(range(1,1000000),100)
P2 = random.sample(range(1,1000000),1000)
P3 = rand... | [
"howe.z.wang@gmail.com"
] | howe.z.wang@gmail.com |
91a320683b315b2ec3f1fff36159fbc626d0fef6 | 2ccb6448e4783275350a388f2b71ace5c68a8024 | /mars/dataframe/reduction/custom_reduction.py | c08a1e6da4ecdc13fc077ff6f87e6c0a2c1dcdf8 | [
"BSD-3-Clause",
"OFL-1.1",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | songroger/mars | 3fb286513d039944134c84c3e56f5d23cbe4562a | ae79f70599b5253418a05daed88ae835b8303649 | refs/heads/master | 2021-06-20T17:13:58.186858 | 2021-01-25T02:53:44 | 2021-01-25T02:53:44 | 166,158,684 | 2 | 0 | Apache-2.0 | 2019-01-17T04:12:10 | 2019-01-17T04:12:09 | null | UTF-8 | Python | false | false | 1,730 | py | # Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | noreply@github.com |
7bb8c8abb4847f97a95c9e4d64bde126539b4000 | 1fb2c8ccfee70d141924c9b77cf98e46af2e5112 | /desktop/core/ext-py/celery-4.2.1/t/unit/utils/test_dispatcher.py | 4d3c9db81dad4b9b19de4bbdc5269f487061e512 | [
"BSD-3-Clause",
"CC-BY-SA-4.0",
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-o... | permissive | criteo-forks/hue | bcfa215e654c72eb4bd0a40bfbddcd63b51d30cd | 752b305d2f336974a2e5c2294f146e338fdd3edf | refs/heads/release-4.11.0-criteo | 2023-09-01T11:53:48.372630 | 2023-08-09T14:55:05 | 2023-08-09T14:55:05 | 170,473,946 | 2 | 6 | Apache-2.0 | 2023-09-07T08:32:40 | 2019-02-13T08:54:33 | Python | UTF-8 | Python | false | false | 5,315 | py | from __future__ import absolute_import, unicode_literals
import gc
import sys
import time
from celery.utils.dispatch import Signal
if sys.platform.startswith('java'):
def garbage_collect():
# Some JVM GCs will execute finalizers in a different thread, meaning
# we need to wait for that to comple... | [
"romain@cloudera.com"
] | romain@cloudera.com |
aba0db7cea6ff76ca3115f4d5459ac85d03aca96 | 78fd137206eb67be3383f9987396c97866cb090f | /Driver/balance_data.py | 31195265191e755f2a406c5f3909bccb4dc650cb | [] | no_license | gavargas22/self-driving-car | f67b4f8a7614d47980c104c6be7e2ee3cc2db372 | db1fd70e152b73ba77ea55ae41bc64dca346bfb0 | refs/heads/master | 2021-05-14T18:26:48.303722 | 2018-01-03T01:05:50 | 2018-01-03T01:05:50 | 103,772,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import numpy as np
import pandas as pd
from collections import Counter
from random import shuffle
import cv2
train_data = np.load("training_data.npy")
df = pd.DataFrame(train_data)
print(df.head())
print(Counter(df[1].apply(str)))
#Balance the data
lefts = []
rights = []
forwards = []
shuffle(train_data)
for dat... | [
"gavargas22@gmail.com"
] | gavargas22@gmail.com |
f43f670b4436bb24f44e00b010174292d3ba5880 | 570f473d50377f622dfb47198bcf10f17ea01c9e | /homework06.04/TimerDecorator.py | 36bcecd9d18f3fb47b5ea8a6fc7bd7a3992c68ff | [] | no_license | abelousova/python-diht-2014 | 1df9ed1bdfffcbdb2da66c08bdcb13b19556e1ca | c044b6a0adc7fa12a59ef2bb88d12919cb12db03 | refs/heads/master | 2020-05-18T14:20:13.832787 | 2014-05-09T09:40:47 | 2014-05-09T09:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import time
def timer_decorator(f):
def wrap(*args, **kwargs):
startTime = time.time()
f(*args, **kwargs)
print('Function {0} execution time: {1:.5f}'.format(f.__name__, time.time() - startTime))
return wrap
@timer_decorator
def func():
time.sleep(3)
func() | [
"sashbel@inbox.ru"
] | sashbel@inbox.ru |
21282b4075722ef249ada742b5404b049ef993c0 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/diagnostic/migrations/0014_auto_20180427_1159.py | 32ba48033c717f5b1bc268bb1082d320a0021623 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # Generated by Django 2.0.2 on 2018-04-27 06:29
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('diagnostic', '0013_auto_20180426_1939'),
]
operations = [
migrations.AddField(
model_name='lab',
... | [
"arunchaudhary@policybazaar.com"
] | arunchaudhary@policybazaar.com |
246a5d1805a535d16a7a8bfc150a44a1c64cd9a4 | 56ffebb115ad656356b4a16c5c4e182628707d99 | /products/migrations/0001_initial.py | d6690b342b4031f1902f0158a101260abd442059 | [] | no_license | singhkeshav510/sellit24-Full_Django- | 538b6ad3f87ae2d2b2d98328663724dbb41e12f8 | d74a6237a296f43a073d7e2f4ee44107ba184fb6 | refs/heads/master | 2022-10-06T20:41:36.812954 | 2020-06-08T06:01:24 | 2020-06-08T06:01:24 | 269,899,476 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | # Generated by Django 3.0.6 on 2020-06-06 20:34
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"keshavsingh200100@gmail.com"
] | keshavsingh200100@gmail.com |
74356643a7d0a4baae6086a2a489044635ece462 | 1db405c515de506ad90220835772838653c03ccf | /coding_hw2/environments/farm_grid_world.py | 6a6877dd6ebee6a171f98abad3d44c800d7198bc | [] | no_license | abirhossen786/rl_course | ecd3d36846166f73f933568bca83f985b0b0e195 | 7c8c775b3e62588e12cd1f78e32f72b553ef6675 | refs/heads/main | 2023-09-02T17:52:19.409962 | 2021-09-30T18:46:34 | 2021-09-30T18:46:34 | 405,688,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,877 | py | from environments.environment_abstract import State, Environment
from typing import List, Tuple
import numpy as np
def mask_to_idxs(grid: np.ndarray, mask_int: int) -> List[Tuple[int, int]]:
pos1_np, pos2_np = np.where(grid == mask_int)
pos1: List[int] = [int(x) for x in pos1_np]
pos2: List[int] = [int(x)... | [
"noreply@github.com"
] | noreply@github.com |
eb644135b7b3b2d534ea5a8d8fda9f7e06887bce | 01234137d8f6e29fa056bdadc08f782495f77a31 | /color.py | 80aff5c9daf0da9f68fade4c017590269ab7f11f | [] | no_license | maxwellbb/CoronaTrackerAPI | 6cd07a593d545b532b6b44a781fece5d0de77bbc | 2e4a5eed1e81881313fab3208e06a98b8e3819a3 | refs/heads/master | 2022-11-20T20:02:31.327593 | 2020-07-22T18:10:52 | 2020-07-22T18:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,946 | py | import csv, os
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
import sys
import unidecode
import matplotlib.pyplot as plt
import json
#ARGUMENTS ARE COUNTRY OR COUNTRY REGION
#RETURNS CURRENT STATE OF THE COUNTRY AS VALUE FROM 0 to 1. 1 IS GOOD AND 0 IS BAD
#Reads the csv file ... | [
"ganesh.nanduru@gmail.com"
] | ganesh.nanduru@gmail.com |
ecad813e4fec913b6cf94ddfaebc347872787ba4 | e32be611a4911549571d0f2348f188546b77710c | /subplot.py | c5b118e4404c6082e5b741a60d582d614172d8f8 | [] | no_license | abhi-kuks/OpenCV-Computer-Vision- | c6fb8c637a83a0ce1441fa198fa73cfc73a897ad | e340d2adf5a99799ad28cd29234f337a5c8cf2e4 | refs/heads/master | 2020-04-20T15:21:53.361701 | 2019-02-04T17:03:10 | 2019-02-04T17:03:10 | 168,926,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 3 12:26:54 2019
@author: Abhishek
"""
import matplotlib.pyplot as plt
import cv2
def main():
path="G:\\Computer_Vision\\Images\\"
imgpath1=path + "4.2.01.tiff"
imgpath2=path + "Lena_color_256.tif"
img1=cv2.imread(imgpath1,1)
... | [
"noreply@github.com"
] | noreply@github.com |
12e7344feba7c44010099727a0212a30eaa6c36a | 927e640658666c753d8e37a8503e25524220354d | /test.py | 8d1f43754ddf388d7cf0af707b5a5c015618f042 | [] | no_license | engynee/swap-mobility-location | a4096ac72fded16d3ce59b5157e727fadc86f4e5 | 5543fce5bd0e1c8001646286d5712d5e9abb53c1 | refs/heads/master | 2020-11-25T12:18:54.071548 | 2020-02-19T17:11:06 | 2020-02-19T17:11:06 | 228,655,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,214 | py | import os,collections
import logging
def llegirCoordenades(roots,files):
coordenadesInicials = {}
linees = ()
for i in files:#inicialitzem el diccionari de localitzacions amb els ids i totes les coordenades buides
i = i.split('.') #volem obtindre el nom del fitxer per inicialitzar el diccionari amb... | [
"davidignacio.matos@e-campus.uab.cat"
] | davidignacio.matos@e-campus.uab.cat |
b67fc35fe5c79405bade290886728bb07ee9071a | 27c6e719dad626e290522257d0eab3247725af00 | /kedro/context/context.py | a891bb468577adf208c26cfeec690c28773353d3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ericfourrier/kedro | ec803d727c0ce75cebd5a562c9be5234b8fd821f | 319178165e2d80cf5810df7cc3d227f2f4ac6d6d | refs/heads/develop | 2023-05-25T06:52:47.760601 | 2019-06-24T19:36:36 | 2019-06-24T19:36:36 | 193,586,816 | 0 | 0 | NOASSERTION | 2023-05-10T06:48:25 | 2019-06-24T22:00:29 | Python | UTF-8 | Python | false | false | 2,744 | py | # Copyright 2018-2019 QuantumBlack Visual Analytics Limited
#
# 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
#
# THE SOFTWARE IS PROVIDED "AS IS"... | [
"noreply@github.com"
] | noreply@github.com |
a1bfc714988297027d864cfd06697fc4a856d65a | 4e48ba01e994759bd4fef2282a1e669cd5fd5850 | /eliza.py | f49b4ceecc1c6df98c8aabf6d0af504b6e01af63 | [] | no_license | MichaelAFitzgerald/NLP-Eliza | 5ddcb756ec56eb322d808fac69f5e8013aa81031 | f693425ecc4b092e5638541f4fbd63db500f5897 | refs/heads/master | 2021-03-26T17:01:59.979669 | 2020-03-16T14:31:40 | 2020-03-16T14:31:40 | 247,724,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,303 | py | import re
# function that will take the outputted sentence and concat the eliza string to the beginning
def elizaReply(sentence):
newString = elStr + sentence
print(newString)
# function that will break a sentence into words by whitespace
def parseInput(sentence):
sentence = sentence.lower()
return ... | [
"mfitzgerald@amctechnology.com"
] | mfitzgerald@amctechnology.com |
b77abf8b2fabecae2c8b10d9d4387f9ea4574e8b | 10ab602484277c152254dbff3d5d75e6fe1e5b36 | /pseudoclient.py | 01cf7cd362e7bc27e46dbf1f3b5579fe4cd8edc8 | [] | no_license | wwtbuaa/homework-05 | a40d80257faa75402d31331c5cbcd2be46540314 | 26b794057724e6dd488f14d966647f73e4ecd605 | refs/heads/master | 2021-01-22T02:08:57.012710 | 2013-11-03T16:07:53 | 2013-11-03T16:07:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import urllib
import urllib2
import time
import thread
def postit(no,interval):
for j in range(40):
post_data = urllib.urlencode({'id': str(no), 'num':50.0-0.1*j})
req = urllib2.Request(path,post_data)
response = urllib2.urlopen(req)
print response.read()
path = "http://192.168.1.150:8080/attend"
for i in ran... | [
"462015315@qq.com"
] | 462015315@qq.com |
e6c010616665564e45d568bbfcf54c4bba9d4fe2 | 7116853055b8e22aedfd9019c98eee208200f3f3 | /misc/multiple.py | ebf135625f0233fd043edc9d87f40ed7ff15b601 | [] | no_license | batic/bicike-lj | 0f34d6337baaa1a8cd5eb74a68335b9ea0689d13 | 28ca3dfbb1ba3918ee644caf6d7f6558957dc075 | refs/heads/master | 2021-01-23T13:30:23.720331 | 2013-01-21T16:23:48 | 2013-01-21T16:24:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | from datetime import datetime
import time
from tempodb import Client, DataPoint
from apscheduler.scheduler import Scheduler
from station_details import StationDetails
from collections import defaultdict
data = defaultdict(list)
def get_station():
for i in range(1,6):
s=StationDetails(id=i)
s.get_d... | [
"matej.batic@ijs.si"
] | matej.batic@ijs.si |
1cd0309c5c228b0eb7caf0f64e873134ba1ddfc9 | 0d73b5351ad2eb245ca71becf1e4c720d1370c55 | /JssProject/main/forms.py | 6a14658cd1cad93256e61b963fff122da05deed3 | [] | no_license | yuna0102/Jss_Yuna | b491b350fcf81b46e5c0aab977baa7dd50f3912f | 8bb0a01eab5a43e6cffc41e3f0824d2adbbd1266 | refs/heads/master | 2023-01-09T18:16:02.052489 | 2020-11-18T03:47:09 | 2020-11-18T03:47:09 | 309,380,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | from django import forms
from .models import Jasoseol
class JssForm(forms.ModelForm):
class Meta:
model = Jasoseol
fields = ('title', 'content')
def __init__(self, *args, **kwargs):
#super라는 것은 부모 클래스의 요소를 가져올 수 있는 것임
#지금은 super의 부모요소가 modelform이기 때문에 modelform안... | [
"yuna0102"
] | yuna0102 |
04bd04acd5e7aa633add08bc3d16d2ce6aaab1c1 | b94d30af18ef5cb1b13ce023b0e6be5aac8f454f | /venv/lib/python3.6/encodings/cp1255.py | f029cb39129fde78e455f1fcf51b313418fccd11 | [] | no_license | Gitlittlerubbish/SNS | 18be94122f15875a55b39d6e55fee821a9b89e7e | 84355e38e1f1b072f04b11f55a6cac958c63638d | refs/heads/master | 2020-12-14T14:49:58.041805 | 2020-03-12T15:00:25 | 2020-03-12T15:00:25 | 234,754,962 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | /Users/chenxiao/.pyenv/versions/3.6.6/lib/python3.6/encodings/cp1255.py | [
"1293555247@qq.com"
] | 1293555247@qq.com |
b255bd1e4fb2df23e823fb53929c10a3c852f996 | 98801e91bf1a78c5903449082113ecc154cd020e | /src/dron/notify/ntfy_desktop.py | 369cf3cf6b8d8ba4eea5002b5597032c988ce1d5 | [] | no_license | karlicoss/dron | bcec62e3602fa12134fdb6b86cc54f839086eba5 | 395d8a259b083b86f3128240bfa8f905fa255921 | refs/heads/master | 2023-06-10T07:12:20.799184 | 2023-06-04T23:41:33 | 2023-06-04T23:48:07 | 236,066,875 | 39 | 2 | null | 2023-06-04T23:48:08 | 2020-01-24T19:14:14 | Python | UTF-8 | Python | false | false | 302 | py | #!/usr/bin/env python3
from .common import get_parser, IS_SYSTEMD
from .ntfy_common import run_ntfy
BACKEND = 'linux' if IS_SYSTEMD else 'darwin'
def main() -> None:
p = get_parser()
args = p.parse_args()
run_ntfy(job=args.job, backend=BACKEND)
if __name__ == '__main__':
main()
| [
"karlicoss@gmail.com"
] | karlicoss@gmail.com |
a3afa5a2a3d5d7657e6d618c5fd7fedd42af7d4e | a550aece79bda789826b463280b91abffbf2d372 | /django_projects/chat_app_channels/chatapp/chat/consumers.py | f0aa98c0798399935500a605d8bf556123c8a97f | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 1,288 | py | import json
from channels.generic.websocket import AsyncWebsocketConsumer
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'chat_%s' % self.room_name
# Join room group
await ... | [
"phiratio161@gmail.com"
] | phiratio161@gmail.com |
f28873b825ff65b7a70495537d42ead4b3bb1b91 | 4b65310b3da9e6d7bf3cfb9d187bb670e96c2032 | /ask/ask/settings.py | a66b742c7cbfa92493ff8e56bb6e149555857dc5 | [] | no_license | makdba/stepic-web | 46453168e18c75dbcb6228ab2c73eada4f693b9b | 5715441816bf08794513b34e4fe9e6fb20a802e6 | refs/heads/master | 2021-01-10T07:50:40.690623 | 2016-03-12T18:45:42 | 2016-03-12T18:45:42 | 52,947,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | """
Django settings for ask project.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.6/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import... | [
"mikhkozlov@yandex.ru"
] | mikhkozlov@yandex.ru |
012bd74344d0db9b528d518ffbfc9c05a0241b00 | 36508bd4a1bff169aa6477f165fca1f6d50b073f | /src/robopatrol/helloworld.py | ee973c8cf19174679f74ca20e8fa971202479f0a | [] | no_license | robopatrol/robopatrol | 841b2c651ed58d0141163e61d4247d29ef15aabd | 331ef2f6d1c9809f9b31df87d9f9d8bb53d0327a | refs/heads/master | 2021-01-21T04:50:39.685494 | 2016-05-23T14:01:43 | 2016-05-23T14:01:43 | 52,280,144 | 4 | 2 | null | 2016-05-25T16:54:03 | 2016-02-22T14:45:28 | Python | UTF-8 | Python | false | false | 146 | py | class Greeter:
def __init__(self):
self.message = 'Hello world'
print self.message
def addOne(self, a):
return a+1 | [
"joel.simmler@gmail.com"
] | joel.simmler@gmail.com |
7e7164ed7499e5d32b57bb0c4d026bb037622104 | 56462673c651118d3d87759700062066c2a46831 | /atelier/admin.py | e355a8a09d17c736f6fb404eb4a6b32f5283b73e | [] | no_license | ohbarye/atelier-proto | 776af5482b94067eab1daa32de3acde0b6c715de | c97a86e72a8bdbdab2b6648bfd4b25ed59021029 | refs/heads/master | 2016-09-03T07:30:44.936250 | 2015-06-24T17:14:14 | 2015-06-24T17:14:14 | 36,301,930 | 0 | 1 | null | 2015-06-16T13:51:35 | 2015-05-26T14:37:38 | CSS | UTF-8 | Python | false | false | 236 | py | from django.contrib import admin
from atelier.models import Artist, Album, ArtworkClass, AlbumArtworkClass
admin.site.register(Artist)
admin.site.register(Album)
admin.site.register(ArtworkClass)
admin.site.register(AlbumArtworkClass)
| [
"over.rye@gmail.com"
] | over.rye@gmail.com |
d9006e907da887282f468f880ad3afbb62a2756a | b4275e7009ee3db90856f19f83b01d86e5144421 | /IERG4300 HomeWork1/1b2/relation_reducer2.py | ab0f4444fbcde3f0614574ac566fd77ecb2c0ec3 | [] | no_license | jackchim1998/IERG4300_WebScale_Information_Analytics | 9e07cbdabc1d0046eeeaa4451e5ba1fc3586c057 | deca3a5c23272db47f5f4297373ca37e94f508bc | refs/heads/master | 2022-10-31T13:23:38.135145 | 2020-06-16T10:19:29 | 2020-06-16T10:19:29 | 272,671,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | #!/usr/bin/env python
from operator import itemgetter
import sys
import json
k=3
similar_array=[]
userid2=None
current_userid2=None
current_userid1=None
userid1=None
def sortsecond(val):
return val[1]
# input comes from STDIN
for line in sys.stdin:
# remove leading and trailing whitespace
line = line.stri... | [
"noreply@github.com"
] | noreply@github.com |
6816855d75ba0db011a91ace4523e0df4f9a551a | 86bf5e9eaf03e5b584630d07dbebd0147c6953af | /pnr-enquiry/src/main/py/pnr-enquiry.py | a895dc74e5b0c4cc84aeda6f8834de08277c7814 | [] | no_license | nikhilTembekar/indian-rail-utils | 87110b63dafc9357b4f69f138b08f26376dda143 | cf7f5d3beb42f387c8a0909c4e9d6a6572973138 | refs/heads/master | 2022-12-28T18:35:11.567320 | 2020-09-30T14:12:49 | 2020-09-30T14:12:49 | 299,941,142 | 0 | 0 | null | 2020-09-30T14:11:44 | 2020-09-30T14:11:43 | null | UTF-8 | Python | false | false | 4,524 | py | #!/usr/bin/python
__author__ = 'mayank-io'
from lxml import etree
from random import randint
import argparse
import requests
from tidylib import tidy_document
from lxml import etree
from BeautifulSoup import BeautifulSoup
def strip_tags(html, invalid_tags):
soup = BeautifulSoup(html)
for tag in invalid_tags:... | [
"mayank.kumar@gmail.com"
] | mayank.kumar@gmail.com |
8c0cfcb1de6725c6da10824c5ba94ff827fe5371 | cfa70d7903a224400cc0a7c69df75be21f15bb0b | /Logistic_regression/x_validation.py | cdb09cf48b4a812f225e9263ec7f29ce20996102 | [] | no_license | LEONOB2014/DS-GA1001-Project | c1a1e283407021bed476bc81cd9ef63d3f5f1c93 | 696db0ef814af57403dcca3971d1500dcf4e3cea | refs/heads/master | 2020-12-24T23:10:41.278683 | 2014-12-16T05:27:18 | 2014-12-16T05:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | import sklearn.linear_model
from sklearn.linear_model import *
from sklearn.cross_validation import *
from sklearn.metrics import *
import math
from math import *
import matplotlib.pyplot as pl
import numpy as np
#Cross_Validation Function Return dictionary
def xValLR(train, label, k, cs):
aucs = {}
cv = ... | [
"zhengboyang2014@gmail.com"
] | zhengboyang2014@gmail.com |
b2ecf7bcfaa496830ed2b2e673e27b85573e7690 | dd98ee6fbc4c47e44f29ff01a54cfafa30a0f94c | /doc_parser.py | 5356bed18a544c77a128ab4d63fa0598215183a7 | [] | no_license | meantaek/nlp | 1441cba07f599a485cc695f5c1e22ffc657370d3 | c054317c5e679a4e024f0d865011450f3da4d919 | refs/heads/master | 2021-01-24T03:19:51.830204 | 2019-05-01T03:35:07 | 2019-05-01T03:35:07 | 122,885,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | from nltk.tag import StanfordNERTagger
from nltk.tag import StanfordPOSTagger
from nltk.tokenize import word_tokenize
from entities import Token
import io
import sys
import os
import nltk
# NOTES To The Group
'''
Hi, I did the Tokenization, NER and POS Tagging. I tried to get the Stanford POS to work, but failed. In... | [
"noreply@github.com"
] | noreply@github.com |
a89104cbce19489c9c6ca76138bfffc6ff0fa258 | b312975bb205edbc7cc4174aa15da5ea5c3a87a5 | /scripts/Deconv_Test.py | 6725c1c990ff13295bcb63b87b804d7e94eb6c91 | [
"MIT"
] | permissive | StefReck/Km3-Autoencoder | af546d6b46c9ccac82ea2974efc2994ea3701016 | 2f58c03ff47d5fabd975dc1cffe164f3064dcd5d | refs/heads/master | 2018-09-27T00:01:46.816725 | 2018-09-10T09:15:08 | 2018-09-10T09:15:08 | 108,125,324 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | # -*- coding: utf-8 -*-
from keras import initializers
from keras.models import Sequential, Model
from keras.layers import Dense, Lambda, Input, Activation, Conv3D, Conv2D, Conv2DTranspose, Conv3DTranspose, MaxPooling2D, MaxPooling3D, AveragePooling3D, UpSampling3D, UpSampling2D, Input, Lambda
import numpy as np
impor... | [
"stefan.reck@fau.de"
] | stefan.reck@fau.de |
fb100209b7a348c30840fbf3cd9051f6ae7ae088 | f1549821efd57828ed8643fbdce8cb76bcbd6e43 | /EPCDRec/EPCDRec/utility/batch_test.py | 805ad5fa77b4b353acb19c51f09de8f19c8b958d | [] | no_license | YinJiangyi/HIN_based_cross-domain_recommendation_systems | b7d41292ab1a27d7b0081cbba10bca6d2d22646c | cc804707556ffec9e7aea9f89af207867b3214d9 | refs/heads/master | 2022-08-04T06:55:38.517257 | 2020-05-31T10:55:44 | 2020-05-31T10:55:44 | 268,213,327 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,643 | py | '''
Created on Oct 10, 2018
Tensorflow Implementation of Neural Graph Collaborative Filtering (NGCF) model in:
Wang Xiang et al. Neural Graph Collaborative Filtering. In SIGIR 2019.
@author: Xiang Wang (xiangwang@u.nus.edu)
'''
import utility.metrics as metrics
from utility.parser import parse_args
from utility.load_d... | [
"noreply@github.com"
] | noreply@github.com |
8a11371a78bbb3229be3434960312fe2e65f4824 | fa27b28ceab9a3d3fb194b8b4cd53df86af7b5c7 | /blog/migrations/0001_initial.py | bb12dff1a161f406b4476ab39bfb0b4ff4bb65c2 | [] | no_license | ellasisko/my-first-blog | 31b6ff97880647508bfb1e8dcd6bacf2d586703b | 96354e72fb3e8c38982380ec0866ad6e7cdcb2f2 | refs/heads/master | 2021-07-08T00:46:01.776657 | 2017-10-07T13:29:12 | 2017-10-07T13:29:12 | 106,091,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-07 09:21
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"ellasiskolehman@gmail.com"
] | ellasiskolehman@gmail.com |
2369648f159ff5e4a25678ddcbf7a2218904e5c9 | 5949ea3729ed5eb4c5c172362a31b5802ca50c52 | /evaluate/lsh_joint.py | 8e927c5509307f52ddd28f118daeb443173ab5be | [] | no_license | vec2link2018/vec2link | 6660e98df7591213cd98b8b48f9b3b95378bce53 | d9cda702444ecb05dacf9899a9325e189390aa82 | refs/heads/master | 2021-09-09T22:33:42.696232 | 2018-03-20T02:21:07 | 2018-03-20T02:21:07 | 121,072,554 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | # coding:utf-8
# sa+ta,sb+tb,lsh(sa+ta),lsh(sb+tb),concat
import math
import numpy as np
import utils
from sklearn.metrics import roc_auc_score
fri_vec = '../data/vec_n2v.txt'
user_file = '../data/sorted_nodes1.txt'
traj_vec = '../data/user_vec.txt'
new_vec = '../data/fri_traj_vec.txt' # new representation
# traj_... | [
"wubangyingwu@163.com"
] | wubangyingwu@163.com |
109eb918b1db4bdcbed1449c02ecab1c7265ea50 | 59f18fb82b9651ff032282f09538b1adee166cd7 | /web/app/register_sfc.py | 1fd4d73320234f4c29bc93e0c977e9a2468ed04d | [] | no_license | Youssef-Chawki/NetworkSecurityTutorial | 7a9d0dd6d4700c7290fc19b0364da933f3fe4cae | 0ab162934f8d67a00c8cf6486209b186030771bc | refs/heads/master | 2020-04-21T01:31:34.863285 | 2019-02-05T11:00:23 | 2019-02-05T11:00:23 | 169,226,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,671 | py | #!/usr/bin/python
import argparse
import requests,json
from requests.auth import HTTPBasicAuth
from subprocess import call
import time
import sys
import os
DEFAULT_PORT='8181'
USERNAME='admin'
PASSWORD='admin'
def post(host, port, uri, data, debug=False):
'''Perform a POST rest operation, using the URL and data p... | [
"youssef.chawki@outlook.com"
] | youssef.chawki@outlook.com |
992841352721db8c6e0df37e2e83161879cf21d7 | 435300213dec519ed154a5c99732b015fd259f0c | /apps/employees/migrations/0005_auto_20200822_0105.py | 63dc0c1c6f3c6c610f8190e8413dcbf5241e4df9 | [] | no_license | tommydemarco/EmployeeManagement-Django | 8d3461dae4e6af294fcc64c9005e7c7a0d70ca8a | e674e8b1cd9fd473a59786fee9a9a08a0bb9ead6 | refs/heads/master | 2022-12-04T21:57:20.282773 | 2020-08-24T23:24:23 | 2020-08-24T23:24:23 | 289,129,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 3.1 on 2020-08-22 00:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('employees', '0004_employee_employee_infos'),
]
operations = [
migrations.RenameField(
model_name='employee',
old_name='employe... | [
"tommaso.demarco95@gmail.com"
] | tommaso.demarco95@gmail.com |
94525eea02816ca05056899891f8e6e3cda4869c | b494f1460055d3e04a7d0928395b5551391a21fe | /Lecture4/Practical4/problem14.py | 77d3b792bc40c813ab56c3a9dcc338bf12ee06e5 | [] | no_license | karen15555/Intro-to-Python | 8d5359b802377dbe6cac066dea0a37c817ee0cdc | 5e9064b72442e0250f704f6252fdc4c812f67cfa | refs/heads/master | 2020-07-06T09:23:40.475082 | 2019-10-07T17:51:49 | 2019-10-07T17:51:49 | 202,969,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | list1=['al', 'abc', 'xyz', 'as', 'aba','1221']
a = 0
b = 0
for c in list1:
if len(c)>1:
a+=1
if c[0]==c[-1]:
b+=1
print(a)
print(b) | [
"Karen@Karens-MacBook-Air.local"
] | Karen@Karens-MacBook-Air.local |
438712ab0291b84eb0b0b23fdd4691a37ded2575 | 7876e74090813f6f9cfcc78f46283411584223d1 | /read-stream/main.py | 90418b23871a23821a639265a4fa79942c711485 | [] | no_license | Alonso360RN/bbva-lambda-ecs-example | e374110f629645c9b782cab55590c77e8ef8f8aa | b48cd9c370d5275da69e62f23d4716a88467590d | refs/heads/master | 2023-01-15T21:42:59.727455 | 2020-11-17T02:38:26 | 2020-11-17T02:38:26 | 313,486,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | import boto3
import json
import os
from datetime import datetime
def lambda_handler(event, context):
sqs = boto3.client('sqs')
queue_url = os.environ["QUEUE_URL"]
today = datetime.now()
formatted_today = today.strftime("%d/%m/%Y %H:%M:%S")
records = event["Records"]
for record in records:
... | [
"alonso.reynoso@bbva.com"
] | alonso.reynoso@bbva.com |
2ddf079941f4eeee653c7ce2ed639d720e32d599 | 2e10e4f2d5372a82e63377813ff765b876624c30 | /promenade/builder.py | 394e14f7e4861ddd1e536805ad94025d33734eb2 | [
"Apache-2.0"
] | permissive | chnyda/airship-promenade | 6ecdda3def775810733d41c88a4ce0391eaf7739 | 006f1b790772aa7f08852f2409d4c125e1c9f423 | refs/heads/master | 2020-03-20T01:01:11.409606 | 2018-06-20T07:17:36 | 2018-06-20T07:17:36 | 137,064,477 | 0 | 0 | null | 2018-06-12T11:52:41 | 2018-06-12T11:52:41 | null | UTF-8 | Python | false | false | 4,512 | py | from . import logging, renderer
import io
import itertools
import os
import requests
import stat
import tarfile
__all__ = ['Builder']
LOG = logging.getLogger(__name__)
class Builder:
def __init__(self, config, *, validators=False):
self.config = config
self.validators = validators
self._... | [
"mark.m.burnett@gmail.com"
] | mark.m.burnett@gmail.com |
c530bb5d55663512e43ddb975540c3977bd09821 | 07ee42ade9fa8fca19855762473a196598fd3d12 | /api/gap/urls.py | c8c5ba942d270a933378f248f9cb00fe1ca19f66 | [
"LicenseRef-scancode-warranty-disclaimer",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | rbeatty1/RTPS | c618367257d8558f23ecb71df7d45b82291a4eeb | 2697fa6cc84573654469750e9c0b913d470c50d6 | refs/heads/master | 2021-06-01T11:13:12.651907 | 2020-01-10T21:52:33 | 2020-01-10T21:52:33 | 137,937,132 | 0 | 1 | NOASSERTION | 2021-03-30T21:08:14 | 2018-06-19T19:37:34 | JavaScript | UTF-8 | Python | false | false | 123 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.queryCheck, name='query1')
] | [
"noreply@github.com"
] | noreply@github.com |
01391b13846e5d456e303ab60d88db18be4f57cb | 9759944ab40c4a827a55648089cca8afbfd7bc7a | /venv/bin/pyrsa-keygen | e464fb75a2923c5dc54d36bfb15b6aa28dd1bddb | [
"MIT"
] | permissive | josemfc/translation-projects-management | 035a98c5bcce0970c4be9e0d9768418c7b900409 | 61a501b05074f78387285676712cc23b3e066ca4 | refs/heads/master | 2021-01-10T09:20:10.867453 | 2016-03-02T20:05:07 | 2016-03-02T20:05:07 | 52,992,202 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/jose/Dropbox/mis_cosas/django_deploy/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
| [
"josemaria_f_c@hotmail.com"
] | josemaria_f_c@hotmail.com | |
0c2bc2d88b14d1c4a6cd210e7b0bc9cc233abd44 | 09858c463e96ab8881ac5f9301f24825b6301866 | /XAI/msee-demo-interface/config.py | 19cd4c3095c2cc3ddd0e7cfbb01fbd6b2b641355 | [] | no_license | Zhao-Weng/Projects | 7c72f6f3249d3df99dc28db27c016df5dfba7283 | 948671e51315b6628dc4b2f8573db9bec5458268 | refs/heads/master | 2020-03-12T11:13:58.523885 | 2018-04-22T17:47:11 | 2018-04-22T17:47:11 | 130,591,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | host = '0.0.0.0'
port = 5000
cache_dir = 'cache/'
soc_url_base = 'http://128.97.86.189:8002'
#soc_url_base = 'http://demo.visualturingtest.org/assets'
query_api_url = 'http://128.97.86.189:8001/api/query/'
all_script_prefix = 'all_'
| [
"apple@s-164-67-210-144.resnet.ucla.edu"
] | apple@s-164-67-210-144.resnet.ucla.edu |
e82db99542d005bc664647e07c881bddece05993 | 3bd0bb9b0cad8ccb2654f4cf3c121a14bedd40b6 | /pacotes/pacote1/__init__.py | b25474a6c269bbe9f0b591c319001ef09b1014c3 | [] | no_license | felipeafbruno/curso-python | abe71d630894fbf77abcfb593c551c16bd141245 | 84f5785fc7b9838dc517ffc4ac66fa73803da3e0 | refs/heads/master | 2023-03-13T12:40:56.100247 | 2021-03-03T20:49:08 | 2021-03-03T20:49:08 | 341,656,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # O arquivo __init_.py indica ao Python que a pasta se trata de um Pacote | [
"felipedobru@gmail.com"
] | felipedobru@gmail.com |
4f31bd9eaf4f78e56b3f1c8ab26ecb78f8b5fc36 | b587b4fe677ca09c2bc36b4c5440445f9972c03c | /Game/Nivel1.py | 31583520b79e15cc8f4ce847642f939468a2a211 | [] | no_license | Dannygua/PROYECTO-JUEGO2 | 6ed4cfe95d0961df4c65e07885e7a0f29210939a | 4fdae56ef7a63e8ab58f625e14ac2869fa0cd7bf | refs/heads/master | 2020-04-11T08:40:57.811966 | 2019-01-10T09:34:50 | 2019-01-10T09:34:50 | 161,651,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,055 | py | import pygame
import sys
from pygame.locals import *
ancho = 720
alto = 350
girar = True
vez = True
moverFondo = True
puntaje=0
class Ninja(pygame.sprite.Sprite):
def __init__(self):
pygame.sprite.Sprite.__init__(self)
self.ImagenNinjaA = pygame.image.load('ninja1.png')
... | [
"noreply@github.com"
] | noreply@github.com |
ea0efa24e0422c3537a0cc47dddb4aed254bb64b | 179b882e81715378d9c54801bb921c9d2cc05f0f | /main.py | a5e0aa814422fd3c38781f004c62efa3f6395ce2 | [] | no_license | martinklamrowski/project-blue-jeans | 4dd277cc6deca8083200beb6160d057da05c61d5 | 7c4a07c00b6fd895c65879bbc4f0bdd1332bd7de | refs/heads/master | 2023-04-05T00:18:27.355992 | 2021-04-09T17:19:50 | 2021-04-09T17:19:50 | 331,070,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | import argparse
from pyrobo.boundary import Boundary
from pyrobo.navigation import Navigation
from pyrobo.robo import Robo
from utils.maze import Maze
ap = argparse.ArgumentParser(description="Go Robo go!")
ap.add_argument("-p", "--port", required=True, help="Add a port man.")
ap.add_argument("-d", "--dim", required=... | [
"25801014+martinklamrowski@users.noreply.github.com"
] | 25801014+martinklamrowski@users.noreply.github.com |
cdb2f57bdde18bacb27761e6a7d0913bb9cee5aa | 109ee07a71f1e468d7a11d61c9b59b6d5c3cb8c7 | /Day 4- Class vs. Instance/solution.py | 35e86cbb1f75cc36ef462029e4fba43c3fe64f70 | [] | no_license | SumanKhdka/30-Days-of-Code | 17c9b8bb2640076bcd2ce0ee27bedc825337206d | 548b656b069d53c8e52f7d4ef0afcb30e40c9ff1 | refs/heads/master | 2023-04-26T00:49:56.617674 | 2021-05-16T14:47:34 | 2021-05-16T14:47:34 | 304,068,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | class Person:
def __init__(self,initialAge):
# Add some more code to run some checks on initialAge
if initialAge <0:
self.age= 0
print('Age is not valid, setting age to 0.')
else:
self.age=initialAge
def amIOld(self):
# Do some computations in ... | [
"howdysuman@gmail.com"
] | howdysuman@gmail.com |
63b3c9ac552f2f2584fede378d1d031710cf5292 | 6130cb188af7bfdb8f5814f7074e9f6e18dc5314 | /School Data Structure/python/basic/test000009.py | fb7cec044770f073f60d4fe73f2a71f9d935581c | [] | no_license | snack655/Study_Data_Structures | d0b6c20b910b78cc01a6007b071bab247962b408 | a8348ef2c956ee5947104455dd0131cf3ab4c97b | refs/heads/main | 2023-09-06T05:14:13.157831 | 2021-11-09T01:31:27 | 2021-11-09T01:31:27 | 387,703,067 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | arr = ['b', 'c', 'a', 'f', 't', 'e']
arr.sort(reverse=True) #내림 차순으로 정렬
print(arr)
# 문제 주어진 정수 리스트에서 최고점과 최저점을 출력하시오.
score = [55, 78, 99, 34, 87]
score.sort()
print(score[-1], score[0]) | [
"80940200+snack655@users.noreply.github.com"
] | 80940200+snack655@users.noreply.github.com |
30df387384a195945b78fe44a457618949568134 | 98e761a1702351df3b3db91e4ee832ae25d213d1 | /test/db_predict2.py | 0c33754dac31c6939eb33c91f9c38e337e28bad6 | [] | no_license | jack139/face-test | ed637fdabace49c969dac8abbd12d2e80c589fec | 3907bf1e84c1e346b4429da0e8ca919ca6404098 | refs/heads/master | 2023-01-18T18:33:24.812823 | 2020-11-23T13:32:22 | 2020-11-23T13:32:22 | 315,326,106 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | # -*- coding: utf-8 -*-
# 使用两个算法模型并行识别
import os, sys
import base64
#from datetime import datetime
from models.predict_plus import predict_parallel, predict_thread_db
if __name__ == "__main__":
if len(sys.argv)<4:
print("usage: python3 %s <knn|keras> <group_id> <test dir or file>" % sys.argv[0])
... | [
"jack139@gmail.com"
] | jack139@gmail.com |
28d0f572052e6a3a1f08040ed8fa0e520b19b7e6 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.2/tests/regressiontests/forms/localflavor/__init__.py | dc478b681fdfd63cab664cfadf345bae3969f039 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/forms/localflavor/__init__.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
1fe840d447be91aa91c6f38564722efd734e9821 | afac06b3686b249379212314f82161f576f5aef1 | /mbrl/environments/normalized_vector_env.py | 90cf8b47d633cf522f3a2e84c4ad4c3a4575399e | [] | no_license | SaqibMamoon/RL-ACED | df39df67a575508555d637f1d34f55f0b2d858f3 | a03e0e83ca2639d3404f01fb5e9457d6cfcff9c8 | refs/heads/main | 2023-01-20T20:21:46.918883 | 2020-11-28T12:21:09 | 2020-11-28T12:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | import random
import numpy as np
import gym
from gym.spaces import Box
from gym import Wrapper
from gym.vector import SyncVectorEnv, AsyncVectorEnv
import random
from mbrl.environments.base_env import MbrlEnv
from mbrl.environments.utils import get_make_fns
from mbrl.environments.reward_done_functions import get_reward... | [
"qizhou@miralab.ai"
] | qizhou@miralab.ai |
35aa6cab91208cafb56088fa17b1f0133f1b5469 | b2231778238ee3c9582d42404b5c37edd6404013 | /example_velocity_estimate.py | 914897253337620bd2d47a9d934e499dd158d493 | [] | no_license | achuwilson/pydrake_iiwa | 8cf4b0d70d1a494347665e739f36d8503b6132b6 | 6c14bb53a534b6a563dab94a760547673e22a3ea | refs/heads/main | 2023-06-21T12:14:57.499909 | 2021-07-04T09:07:40 | 2021-07-04T09:07:40 | 328,383,939 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,507 | py | #!/usr/bin/python3
# Control the kuka iiwa end effector position through sliders,
# while printing the end effector velocity
from pydrake.manipulation.simple_ui import JointSliders
from pydrake.systems.framework import (DiagramBuilder,
LeafSystem, BasicVector, PublishEvent, TriggerType)
from pydrake.systems.analy... | [
"achuwilson@gmail.com"
] | achuwilson@gmail.com |
1f5aa39f37c9ff128ada5a469b8c96cd55639ced | 9658ac67a1aa8444161cc6b19b555e0b37a430b8 | /Assignment 4/tellapuram-rajath-extra.py | 23d524c9163f396ac64e0daf5f6ef3a390b44078 | [] | no_license | RajathT/Natural-Language-Processing-CSCI-5832-Programming-Assignments | 5eb7811b1f8a9c980d37019dd8d6ebe3633c289e | dd0fbf546d9769029b6be6e6859cbf9c898e8a44 | refs/heads/master | 2021-05-02T14:26:04.209200 | 2018-02-08T06:44:54 | 2018-02-08T06:44:54 | 120,720,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | import csv
import math
import nltk
from nltk.tokenize import word_tokenize
nltk.download('punkt')
from nltk.tokenize import RegexpTokenizer
tokenizer = RegexpTokenizer(r'\w+')
nltk.download('stopwords')
from nltk.corpus import stopwords
filename="hotelF-train.txt"
with open(filename,encoding="utf8") as file... | [
"rajath.ucb@gmail.com"
] | rajath.ucb@gmail.com |
acd99f69d096e095274ab74784eeb2d609a3a1d9 | 2b6df7c9f1ffbda9d46eda14a62010dac6cfe6da | /app/utils.py | 9802bc03b16c95b262732b9479c811f1203dca51 | [] | no_license | its-arpit/tranageapp | 355e03a362fe14f2cd992b4fa3021806bc4cc4e9 | 657859135f492cb0f58b532671ee799060aa5afa | refs/heads/master | 2023-06-04T12:54:53.956808 | 2021-06-11T16:10:23 | 2021-06-11T16:10:23 | 376,124,298 | 0 | 0 | null | 2021-06-11T19:41:13 | 2021-06-11T19:30:24 | null | UTF-8 | Python | false | false | 583 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.core.mail import send_mail
import math, random
def generateOTP() :
digits = "0123456789"
OTP = ""
for i in range(4) :
OTP += digits[math.floor(random.random() * 10)]
return OTP
def send_email_otp(request)... | [
"vkvineet66@gmail.com"
] | vkvineet66@gmail.com |
f99d9eb488f96ead2b6615f8f842d81f126d62a7 | 1c21fa248091e31c362b95afafc5021211e85e63 | /invensis_pmc/customer/migrations/0011_remove_customer_services_required.py | f754435ba5eeda7264f3ca535292b5a98b54cd81 | [] | no_license | anudeepnaidu95/dev5 | 3d3252a51fccbb794e78a91681708e1b3c1ce0d4 | 7351244b79be242aa2cad36dbe1adca22a744edc | refs/heads/master | 2021-01-20T12:28:07.286078 | 2017-05-05T11:08:37 | 2017-05-05T11:08:37 | 90,365,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 14:19
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('customer', '0010_auto_20160714_1930'),
]
operations = [
migrations.RemoveField(
... | [
"anudeepnaidu95@gmail.com"
] | anudeepnaidu95@gmail.com |
bda6d6a7700179b80540c855f072bcf215e08c75 | 73e6f4bcb7f534f0c6f348f9f736534cd704f7fb | /uniirc.py | 319440f413846b165e18e63e3fcdac58d82e9607 | [
"MIT"
] | permissive | iamtonysoft/irc-to-discord | b2d11c3482b66af8adcfbf9cbcbc8ad596257713 | ade7dcef622713762b97ad4737ca7122d00d93ca | refs/heads/master | 2021-05-06T02:08:37.281888 | 2017-12-17T07:48:27 | 2017-12-17T07:48:27 | 114,500,799 | 0 | 0 | null | 2017-12-17T01:10:11 | 2017-12-17T01:10:10 | null | UTF-8 | Python | false | false | 3,240 | py | import socket
from datetime import datetime
import asyncio
import discord
import re
import _thread
import uniformatter
class IRCClient:
def __init__(self, chan_pairs, config, discord_client):
self.chan_pairs = chan_pairs
self.discord_client = discord_client
self.s, self.server, self.nick = self.irc_connect(**... | [
"catts16@gmail.com"
] | catts16@gmail.com |
681d91cef8af005ef2529196c8d13b4eddf0314d | dc39ccc50b7d34e5de84f3cc132c5cc096a32656 | /Sanic/4-NamedURLRedirect/main.py | 035aee847b4d83b28db14dd020c1e8de99eb6971 | [] | no_license | Shukladas1115/Python | 0947aefd62a9ce4c3140360cb7259b031368709c | feb32bc2e2e7df377fc2d92330bfdacb83f31a55 | refs/heads/master | 2022-02-20T04:15:56.036495 | 2019-08-26T16:36:52 | 2019-08-26T16:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from sanic import Sanic
from sanic import response
app = Sanic(__name__)
@app.route('/')
async def index(request):
# generate a URL for the endpoint `post_handler`
url = app.url_for('post_handler', post_id=5)
# the URL is `/posts/5`, redirect to it
return response.redirect(url)
@app.route('/posts/<... | [
"minhhien90@gmail.com"
] | minhhien90@gmail.com |
338f3bd91af3146d8082995e35ea9d132e88ed6a | 8e6d5338987d43015d1b82d15ac899a0f3e1ab27 | /tests/test_elastic.py | 98d12147c5be0d649303d3816c873ea04ba303e5 | [
"Apache-2.0"
] | permissive | ShaneHarvey/elastic-doc-manager | e6f50e4a8b4abc84ee4b3f315137b5f5587aeedf | 0eff539fc8dba10273703393235855ed75efcbc7 | refs/heads/master | 2020-12-29T03:19:10.756435 | 2016-10-10T22:41:09 | 2016-10-10T22:41:09 | 68,248,449 | 0 | 0 | null | 2016-09-14T22:28:20 | 2016-09-14T22:28:19 | null | UTF-8 | Python | false | false | 9,914 | py | # Copyright 2013-2016 MongoDB, 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 agreed to in writin... | [
"anna.herlihy@10gen.com"
] | anna.herlihy@10gen.com |
f4acc1b6983de406da0a4d2d27544abda966e6da | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/learnbgame_hops/operators/misc/triangulate_ngons.py | 392d2147834108f25c1e15670053e2c33eba33e5 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import bpy
class HOPS_OT_TriangulateNgons(bpy.types.Operator):
bl_idname = "hops.triangulate_ngons"
bl_label = "triangulate ngons"
bl_description = "triangulate ngons"
bl_options = {"REGISTER"}
@classmethod
def poll(cls, context):
return True
def execute(self, contex... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
3dc139e1a0a62d53bbc8e2faf3f2ef26bd478b8a | 0175ded07e14e487cfd9af0b3e51cee02bd246bd | /PyModernUI/UiImageButton.py | 9c27ad4ed787578a8c3f99c705574f043c2d59c0 | [] | no_license | coolboied/sandbox | c1d659f6504427994c6e74f7c61bed4d1a31fde6 | bdf30b858c7b830740b03706fd7979ebfb5aabbb | refs/heads/master | 2020-06-01T09:28:20.846308 | 2015-06-24T11:44:22 | 2015-06-24T11:44:22 | 37,971,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import pygame
from UiMouseArea import *
from UiImage import *
class UiImageButton(UiMouseArea,UiImage):
def __init__(self, x=0,y=0,height=0,weight=0):
UiMouseArea.__init__(self,x,y,height,weight)
UiImage.__init__(self,x,y,height,weight)
| [
"coolboy@.(none)"
] | coolboy@.(none) |
adc601b4a03aca6b8a9d5a95a1a05d4785860bd4 | d0ebf305a5d4fb1ef34372f5c5e40e68a346e745 | /error.py | 93a99590e92218c5f3a341550264f81054c0b9f9 | [] | no_license | ahmtcn777/MovieProject | 088931f4df0d60c599becfa891ce3a831b29008f | fb529d730e9d03be7b7ddd7192d2050ad2b20f13 | refs/heads/master | 2020-11-24T22:51:02.170371 | 2019-12-16T11:28:26 | 2019-12-16T11:28:26 | 228,371,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from app import printError as error
def printError(content):
error(content)
| [
"ahmtcn777@gmail.com"
] | ahmtcn777@gmail.com |
7bef6f134d1455c72ccfd1aa347f4cb5050692d1 | 42d92daa0d5e71a9ed62e9eb21a5cfbf7191477e | /提高班/1-4/1.从递推到动归(一)/3.练习题2:墙壁涂色/solve.py | 99876aaa5ba9cd9070d55a3b3a6fad74a6742c4f | [] | no_license | luqian2017/haizei-2 | 7223529b697acb2e3a20031965c67905ef795347 | 51b1fe57127f48b1109af0198305f2deaefd549b | refs/heads/master | 2021-10-22T07:09:37.157276 | 2019-03-09T02:07:15 | 2019-03-09T02:07:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | # coding=utf-8
n, k = (int(x) for x in raw_input().split())
ans = [k, k * (k - 1), k * (k - 1) * (k - 2)]
for i in xrange(3, n):
ans[i % 3] = (k - 2) * ans[(i - 1) % 3] + (k - 1) * ans[(i - 2) % 3]
print ans[(n - 1) % 3]
| [
"1397443527@qq.com"
] | 1397443527@qq.com |
7268d0c07beaad31ffac8380589d76e7a363f83b | a2a772b2026c907a46da986d4a074255c79fc40c | /ModelOutputLib/NONE/__init__.py | b0381fb3e88e7951b32dd293342d0615306b21fe | [
"MIT"
] | permissive | mcwimm/pyMANGA | 537663dc24b91a5555e1c379917aa19229a9ed1f | b17cff097114bc444a3e5bb3d11f756e0c09fb59 | refs/heads/master | 2023-08-09T14:06:40.721064 | 2023-08-04T10:32:37 | 2023-08-04T10:32:37 | 223,939,358 | 0 | 0 | MIT | 2019-11-25T12:05:53 | 2019-11-25T12:05:52 | null | UTF-8 | Python | false | false | 70 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from .NONE import NONE
| [
"jasper.bathmann@ufz.de"
] | jasper.bathmann@ufz.de |
5eb622c5b3eaff0f74ce53fdd77bee89a0e6b030 | 90548741ef41b3a674fd676ef74a96a2f919d4c9 | /env/Scripts/django-admin.py | 2317e37e45aebdad80ae633cadc812a300850efc | [] | no_license | Aashi-Rastogi/finalrep | e11b4e171e6e90726f256ae5a5862e7586eaea71 | e70a4c7a003b13fbf41806c049bab5d4601940fe | refs/heads/master | 2022-12-23T21:07:09.736271 | 2016-12-11T10:09:22 | 2016-12-11T10:09:22 | 76,166,242 | 0 | 1 | null | 2022-12-12T05:51:42 | 2016-12-11T09:56:09 | CSS | UTF-8 | Python | false | false | 179 | py | #!c:\users\skrastogi68\desktop\registrationandall\env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"Aashi Rastogi"
] | Aashi Rastogi |
7928f5bbbf3818715d6f03913366ed3686a0fa99 | 960ae91f28ccecc50ac5027a1a84e5a10d5b994a | /myvenv/bin/django-admin | 68fbf19760be2f409218a6e797e78de548ae2398 | [] | no_license | jolshausen/my-first-blog | bb06a31f325767f0d696349144d8670a06bdbfd5 | aff3d6df53d4b6e32b51894ee86a878d81f19203 | refs/heads/master | 2021-01-22T22:50:03.099308 | 2017-06-04T01:49:36 | 2017-06-04T01:49:36 | 92,791,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | #!/Users/joeyolshausen/djanjogirls/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"@jolshausen1@gmail.com"
] | @jolshausen1@gmail.com | |
44bf816c4529eb915b23180005874bc81989903a | 8486bfdf11981521202b2e14ab3895be94f7fe0b | /src/frontend_program/main.py | fb382daa5b67e000486b4bcbfec2dd748ce1c99a | [
"MIT"
] | permissive | calebrjc/XYPlotter | 66eafd7a160d2c1c14d44e8185fb5f96dd021316 | f9a096d2b9062a492429709a07b7e01cc61100a6 | refs/heads/main | 2023-02-01T09:10:21.693820 | 2020-12-17T20:21:52 | 2020-12-17T20:21:52 | 305,889,116 | 0 | 1 | MIT | 2020-10-28T01:31:27 | 2020-10-21T02:42:16 | C++ | UTF-8 | Python | false | false | 115 | py | from modules import console as Console
def main():
Console.begin()
if (__name__ == "__main__"):
main()
| [
"c.johnsoncantrell@gmail.com"
] | c.johnsoncantrell@gmail.com |
ffc7728cbd751075d81d58e5c5e81ad7acadd28d | e74097a9e5cb88f8aca7e26884ae8071a724f086 | /carpenpi/updates/imports.py | 7cb578c1c8561a67de3fa4566b7d5501cd6a9730 | [
"MIT"
] | permissive | thoughtsynapse/web-free-data-science | dc08647c7b20bb3356fe6720a30a1118c7c6516b | 184fd9f1b3a2a5506244553941a1f6f2397d92ef | refs/heads/main | 2023-08-15T11:17:51.160226 | 2021-10-06T19:29:35 | 2021-10-06T19:29:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,576 | py | #imports
import subprocess
import linecache
import re
from datetime import datetime
import os
#URLS of pages
urlwin = "https://cran.r-project.org/bin/windows/base"
urlmac = "https://cran.r-project.org/bin/macosx/"
path = "./"
subprocess.run(["wget", "-nc", "-P", path, urlwin])
subprocess.run(["wget", "-nc", "-P", pat... | [
"noreply@github.com"
] | noreply@github.com |
9372134b8ef60cf3460b91c57a52de73b41cccff | 1228dd45e4c088793d618fd59b5ece2b9229da05 | /Projects/p2/p22_art_show.py | 571f6d9b5b7d5fe35fdd6ca15df363f120beb8c1 | [] | no_license | HenziKou/CIS-210 | d41bfd89f2501eb5f0172bdee1ec8facb5468361 | ac76f7f8d28b6b66e3a65568b7e91ca722f641b2 | refs/heads/master | 2021-01-08T10:28:34.711462 | 2020-02-21T20:25:41 | 2020-02-21T20:25:41 | 242,003,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | '''
CIS 210
Art Show
Author: Henzi Kou
Credits: N/A
Using Python program, Turtle to create a design or drawing.
'''
from turtle import *
def art_show():
'''
Running the program will call on the functions using the program Turtle
to draw an image of a rainbow behind a... | [
"henzikou@gmail.com"
] | henzikou@gmail.com |
ac1656bbca7da62c8535b9918d8ccc2dbb916bea | e09dafa40ecc27a3c8d1a0b2abf063653c516d5b | /manage.py | d5844f2658beed64e2d4225343a6f5ff0fb71ced | [] | no_license | olif565/project2 | db9fe65bc7830d7fc96415de07a489c6c409acac | cb410e99faf1910153ffffcf88488888b6ce4923 | refs/heads/master | 2022-10-16T01:02:08.615100 | 2020-06-30T01:08:11 | 2020-06-30T01:08:11 | 247,644,996 | 0 | 1 | null | 2022-06-22T02:23:49 | 2020-03-16T08:08:50 | Python | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ProjectSkripsi.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise... | [
"kholifatul.viiie14@gmail.com"
] | kholifatul.viiie14@gmail.com |
5cfc1607592709b42d894cbf9c3f3fe3659dbf79 | 7caba366124d980a84296747d3aa99ec88b00aaa | /my_example.py | 65f5354d58f6b5004fe26cb3f350aa79c884e918 | [
"MIT"
] | permissive | GandalftheGUI/InstaPy | bdccef6f384b81d93190cb5b6c3153d5204257fa | 58064def6414a20b3bea14359bb719fcd367ccd8 | refs/heads/master | 2021-09-17T02:45:25.202014 | 2018-02-28T03:09:26 | 2018-02-28T03:09:26 | 109,881,266 | 0 | 0 | null | 2017-11-07T19:30:29 | 2017-11-07T19:30:28 | null | UTF-8 | Python | false | false | 1,474 | py | from instapy import InstaPy
import random
import sys, os
import getpass
try:
print("Please enter your Instagram credentials")
username_input = raw_input("Username: ")
passowrd_input = getpass.getpass('Password: ')
session = InstaPy(username=username_input, password=passowrd_input)
session.login()
#image... | [
"Doom-Mac@Ians-iMac.local"
] | Doom-Mac@Ians-iMac.local |
83bfbc05875be79a8ad8d067968f83413673ecff | f422be83dbee1a799b06d8b49003364290a77c4c | /examples/test_ensemble.py | 91c4d81b9b682e09db0c16c62412ae96bd563507 | [
"MIT"
] | permissive | shuxjweb/MMT-plus | 2235302b031345119b535b8087539e94238c9074 | 9b1934afa6ab34b1bb82af54547448914fc3ca7d | refs/heads/master | 2022-12-23T05:11:43.145864 | 2020-09-30T04:42:28 | 2020-09-30T04:42:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,373 | py | from __future__ import print_function, absolute_import
import argparse
import os.path as osp
import random
import numpy as np
import sys
import copy
import collections
from itertools import combinations
import torch
from torch import nn
from torch.backends import cudnn
from torch.utils.data import DataLoader
from vis... | [
"geyixiao831@gmail.com"
] | geyixiao831@gmail.com |
b8675dfa9050caa470a9515bab9d17a15400a838 | f0f87734cca001be4fb18e400e3a0d41554b1a3f | /test1.py | 2bcb233b60e00960c4c85304693c5488876b6cf0 | [] | no_license | innuo/etch | aad0626cd79c190a523ee57fc2dd100658d1fd1a | 7404537b64b3b797554bb24cd2f349bef48c355e | refs/heads/main | 2023-04-15T05:34:05.402988 | 2021-04-25T20:31:36 | 2021-04-25T20:31:36 | 361,483,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | import sys
import time
import RPi.GPIO as GPIO
# Use BCM GPIO references
# instead of physical pin numbers
GPIO.setmode(GPIO.BCM)
# Define GPIO signals to use
# Physical pins 11,15,16,18
# GPIO17,GPIO22,GPIO23,GPIO24
StepPins = [17,27,22,23]
# Set all pins as output
for pin in StepPins:
GPIO.setup(pin,GPIO.OUT)
... | [
"hveera@gmail.com"
] | hveera@gmail.com |
07cde02db4967803b942d8b688c42a2d75a4dfd1 | d8ff8d809fcff5f8370e317d837485648cc6ac9b | /repr_test.py | 7a91cc106da55a3a694d406c14e6e30f848cef3e | [] | no_license | xiabofei/python_details | c9b1ebfdc9574201b8ac21ebd8aa5e0e8442d3de | 1d6950d0fc32997e6f6e6cb269cd1ef4bb233c2f | refs/heads/master | 2020-04-02T06:35:05.659746 | 2019-04-05T06:11:58 | 2019-04-05T06:11:58 | 60,343,232 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | #encoding=utf8
"""
werkzeug/routing/
Rule
__repr__方法
直接print某个对象时 打印出的信息
"""
class Test(object):
def __repr__(self):
return "<%s, called>" % (self.__class__.__name__)
t = Test()
print t
| [
"xbf9xbf@qq.com"
] | xbf9xbf@qq.com |
d0a38a4a39f28f452078b3aa41c205d864352881 | 3842a34d694c48f5239e4ecd14751fefc6d3b3d0 | /app.py | 7754a3be2dc6e2722740e7153c1b924921289129 | [] | no_license | anushika99/Find_Route | b0f0a58dd9d2b9bec8dd0e826e37d4e477be2d9a | 4efa58e0d80c21e5fa14a2537c5a72c1ebe3ae05 | refs/heads/master | 2020-05-09T10:13:51.492788 | 2019-04-12T16:02:32 | 2019-04-12T16:02:32 | 181,033,477 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,148 | py | from flask import Flask, render_template, request
app = Flask(__name__)
# constants used
no_of_stops = 3602
no_of_routes = 550
no_of_stop_seq = 100
# opening all input files
rt_fd = open("routes.txt", "r")
st_fd = open("stop_times.txt", "r")
s_fd = open("stops.txt", "r")
tr_fd = open("trips.txt", "r")
... | [
"noreply@github.com"
] | noreply@github.com |
c32e5d5363d7054846de638b50cd85c35e6fbb5f | a0adfa65bc05622a72c344c7725964c60ec5f561 | /seq2seq_attention_model.py | bbb3242eecb6c0698fc17a119c004dc85f09fbb5 | [] | no_license | lfzCarlosC/textsumFinal | 6b0fd4e36834eec162e3870aff2a705b5e21680f | 6beaf9f58bda6b63e53fe513fc2bbc31e4b42dc5 | refs/heads/master | 2023-01-28T09:15:27.440867 | 2020-12-03T11:02:43 | 2020-12-03T11:02:43 | 106,009,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,554 | py | # Copyright 2016 The TensorFlow 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 applica... | [
"st119585@stud.uni-stuttgart.de"
] | st119585@stud.uni-stuttgart.de |
68f3fb9a96aa5c00e2fb8dedab67d2f23725c127 | edb88981aa1420af7e074068ed7818b9d904a3dd | /trunk/minds/test/test_app_httpserver.py | 91a8c2880f3ee0c0508f61d743a9000402944147 | [] | no_license | BackupTheBerlios/mindretrieve-svn | 101c0f1dfc25d20d5f828b6fd0d43301b773af4e | 463745fcf1c1d5b1f6c201c30bcc339c99b437ed | refs/heads/master | 2021-01-22T13:57:31.225772 | 2006-04-28T04:24:43 | 2006-04-28T04:24:43 | 40,801,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,765 | py | """
"""
import StringIO
import unittest
from minds.safe_config import cfg as testcfg
from minds import app_httpserver
class AppHTTPRequestHandlerFixture(app_httpserver.AppHTTPRequestHandler):
def __init__(self):
pass
class TestAppHTTPRequestHandler(unittest.TestCase):
def _test_lookup(self, url, ... | [
"tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990"
] | tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990 |
eba64739ca3b533daf0385f15703402d54676850 | 4b6d7bf4c49d6ff0137d3cbe5f51e91d201f79c3 | /ex3/ex3.py | 95b6bb3861471c6d23c2a0e9d0a8d67511991166 | [] | no_license | geniayuan/MachineLearningCoursera | 24db9570fe6767c95af29c403086b7afde380b01 | 2929cd635367be8eb264980c08007e6f28b293c7 | refs/heads/master | 2021-05-10T11:08:43.781604 | 2018-03-13T01:03:18 | 2018-03-13T01:03:18 | 118,402,930 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,381 | py | ## Machine Learning Online Class - Exercise 3 | Part 1: One-vs-all
# Instructions
# ------------
#
# This file contains code that helps you get started on the
# linear exercise. You will need to complete the following functions
# in this exericse:
#
# lrCostFunction.m (logistic regression cost function)
# ... | [
"cocoguoyuan@gmail.com"
] | cocoguoyuan@gmail.com |
5a7c1fe7ce5663916fe48e08b1c9a759329dca0c | 9bdd421f0bd5cb30a0429e11b23bd85ed34b006a | /account/views.py | 019f9c68589e98f18cf1df20bd508d7642623be2 | [] | no_license | MrAch26/yugioh_django_proj | 8f0f0fbf0cb6e4ec4fac8757a7236fbb08099689 | 9cd363a3ab9019c92973454dab5eb812894c4c37 | refs/heads/main | 2023-03-27T21:53:45.240113 | 2020-10-25T07:39:22 | 2020-10-25T07:39:22 | 305,049,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.urls import reverse, reverse_lazy
from django.views.generic import CreateView, UpdateView, DetailView
from account.forms import UserSignupForm, ProfileViewForm
from ... | [
"MrAch26@users.noreply.github.com"
] | MrAch26@users.noreply.github.com |
b647dca51b0f14515ee5a941f4a27367f4890127 | 674d70c54d6bbc3a81df9dfdece1421d1b1c0820 | /test.py | 3f61af07b250f167ee662871366a6801c65ac13d | [] | no_license | 1574944154/Q_bank | c93fa846b25d715a4dcf92a53cfea0fd5cb27764 | dc93cb4c5f6f8367a6291a1ccb0b8d6e86699f4e | refs/heads/master | 2020-04-06T08:51:42.838514 | 2018-11-14T12:29:56 | 2018-11-14T12:29:56 | 157,319,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import requests
import hashlib
from DB.mysql_db import Mysql_db
def download_pic():
db = Mysql_db()
results = db.query("select ans_img from `1` group by qs_id;")
print(results)
for i,result in enumerate(results):
url = result[0]
print(url)
with open("R:/q1_img_list/{}".format(s... | [
"a1574944154@gmail.com"
] | a1574944154@gmail.com |
f3fb97d5272aeef64b7af5a596e959f50da954c7 | f0457dee035d58ac89200a484eb144e8053cb1ed | /Python-If_Else/If-else.py | 4a9c420d531509c378dc56d7348b007adaed8521 | [] | no_license | ChennakeshavaNT/Python-Programming | 77db5fe3aaaf81d664d6bf65e4abfc782aa20f1c | 9b3a4370e58a9930993fe566bacd2f21b6bd2daf | refs/heads/master | 2021-04-09T23:12:48.575174 | 2021-01-06T15:53:43 | 2021-01-06T15:53:43 | 248,891,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | #!/bin/python
import math
import os
import random
import re
import sys
if __name__ == '__main__':
n = int(raw_input().strip())
if (n%2!=0):
print('Weird')
elif ((n>=2) and (n<=5)):
print("Not Weird")
elif(n>=6 and n<=20):
print("Weird")
elif n>20:
... | [
"noreply@github.com"
] | noreply@github.com |
79b8b0c9a316af73e437321932c33b22ab2c30d5 | 1a2b72f867bcd9b6ab84c223e70f1cd386415c93 | /calvalus-wps-impl/src/main/resources/wps-client-esthub/dhussearch | 4355071212d9a942bc47caab3169a4bf6b08e8ff | [] | no_license | bcdev/calvalus2 | 728f7026c64c019dabc346254c7f59c488c32b9f | a53845e49617a8eaa10434e1441f7a507cabce2b | refs/heads/master | 2023-06-07T11:52:17.767392 | 2023-06-02T06:20:25 | 2023-06-02T06:20:25 | 542,927 | 11 | 19 | null | 2022-10-26T15:36:30 | 2010-03-02T14:22:33 | Java | UTF-8 | Python | false | false | 6,451 | #!/usr/bin/env python
#!/home/hadoop/opt/miniconda2/bin/python -u
#!/usr/bin/python -u
# -*- coding: utf-8 -*-
from __future__ import print_function
"""Tool to search for products in a DHuS server"""
__author__ = "Martin Boettcher and Thomas Storm, Brockmann Consult GmbH"
__copyright__ = "Copyright 2017, Brockmann C... | [
"martin.boettcher@brockmann-consult.de"
] | martin.boettcher@brockmann-consult.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.