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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0a963bc33459f41fb3a42b4da94621eb3a08e2a | a81575dfc1114f2b7ea68d1e363d638342ff4d87 | /server_mongo.py | e700a1fcabc708aa24fd4185a7b5473e4b99d9c3 | [] | no_license | oatzhao/web_service | eb653b52e893b50fd48bde7c02b66cca980df44a | 61912301b366e6fe78927c375933527e60ae19c4 | refs/heads/master | 2020-03-07T21:15:33.593863 | 2018-04-02T07:39:15 | 2018-04-02T07:39:15 | 127,721,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | from flask import Flask, jsonify, request, abort, Response
from time import time
from bson.objectid import ObjectId
from bson.json_util import dumps
from pymongo import MongoClient
app = Flask(__name__)
mongo = MongoClient('127.0.0.1', 27017)
db = mongo.todo
class Todo(object):
@classmethod
def create_doc(cl... | [
"zhaoyan20@meituan.com"
] | zhaoyan20@meituan.com |
c7050f5f25178f18d977879c234baea3c726f0ca | d88397be1c6a31985bc2283280e743fd3b988dd1 | /nncf/structures.py | b29eca4968e93b8bf41744073ad75940d2d2a247 | [
"Apache-2.0"
] | permissive | sshyran/openvino-nncf-pytorch | f5e09066a216fa786927937a91a0e6742f347660 | fd02652950cd803a36f5283f5a5df999bb45433b | refs/heads/develop | 2023-04-18T06:58:54.646669 | 2021-03-12T15:41:39 | 2021-03-12T15:41:39 | 347,374,166 | 0 | 0 | Apache-2.0 | 2023-04-03T23:52:21 | 2021-03-13T13:11:32 | null | UTF-8 | Python | false | false | 6,486 | py | """
Copyright (c) 2020 Intel Corporation
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... | [
"noreply@github.com"
] | noreply@github.com |
e56b40623346a39151d0c9c5e12d91cb9ac40dbc | dc45bfd478e16721ccf6082a20b106d847d75e6e | /Chapter 4/queue.py | d4df739fefa1ba1e71470fe3636fd3168dd7f25b | [] | no_license | ivan-sepulveda/daily_coding_problem | 5865761473921f6731712626ccbbdb8371beb350 | f3994a950329a6aeb5e7f7bf780a7d0e03823628 | refs/heads/master | 2021-02-09T05:25:21.841548 | 2020-05-07T02:55:30 | 2020-05-07T02:55:30 | 244,246,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from collections import deque
queue = deque()
queue.append(4) # Traditionally called enqueue
queue.append(5) # Traditionally called enqueue
queue.appendleft(6)
print(queue)
queue.popleft() # 6 # Traditionally called dequeue
queue.pop() # 5
print(queue)
| [
"Physics1738!"
] | Physics1738! |
a8fd9f965c681198ffc060364060665aa44ce329 | e297d64ca2df06ea093808c30d7dc6108c305385 | /database.py | 6c7cdc29f772e3a8750e2f996a88ffb56f302fac | [] | no_license | Theodin28/DBMS | 74fd0ee7f87c3e7d4a8dd5ce412b81fce58c547e | d0d91746e3814b207ee50813143cbdc91a9344ee | refs/heads/master | 2020-09-05T05:14:38.248264 | 2020-05-04T11:47:38 | 2020-05-04T11:47:38 | 219,993,350 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,981 | py | #!/usr/bin/env python3
import psycopg2
#####################################################
## Database Connect
#####################################################
'''
Connects to the database using the connection string
'''
def openConnection():
# connection parameters - ENTER YOUR LOGIN AND PASSWORD HERE
us... | [
"noreply@github.com"
] | noreply@github.com |
d879400bc1785319a099766a0b64d87499f64932 | bc7602ae51ca0827cae7a4d9bb98e97e9e40eb64 | /migrations/versions/13d829758502_users_table.py | 14afd295ae61e7da6e4cfff04376bcfd5b7c4986 | [] | no_license | qasimmohammed/Microblog | 3ea5186af503e37962f3e9fc399416fce317bdef | d44d935ef59f7fb84e91635a2416e4bbce8ec7fe | refs/heads/master | 2023-06-22T00:34:08.732077 | 2021-07-11T15:07:36 | 2021-07-11T15:34:48 | 384,980,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """users table
Revision ID: 13d829758502
Revises:
Create Date: 2021-07-02 20:27:57.395627
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '13d829758502'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto genera... | [
"37535422+qasimmohammed@users.noreply.github.com"
] | 37535422+qasimmohammed@users.noreply.github.com |
07cb99e1a52cc6e587019a5e17a328e0cf94ac78 | f5d17f536bd8617ac3d56c7d5aca4002444b481d | /requests3/toolbelt/auth/http_proxy_digest.py | 38e9013f3884cd95f06fbe355609f4c4d98fa14e | [
"Apache-2.0"
] | permissive | cclauss/requests3 | a2df822642b4ecbbf9147b1df5e804e4b3d7ca35 | 260cd50aec1bd52b58968c3dfd0d5e850d563ac2 | refs/heads/master | 2020-05-15T18:47:10.559821 | 2019-04-20T17:30:15 | 2019-04-20T17:30:15 | 182,370,659 | 0 | 0 | NOASSERTION | 2019-04-20T06:41:56 | 2019-04-20T06:41:55 | null | UTF-8 | Python | false | false | 3,668 | py | # -*- coding: utf-8 -*-
"""The module containing HTTPProxyDigestAuth."""
import re
from requests import cookies, utils
from . import _digest_auth_compat as auth
class HTTPProxyDigestAuth(auth.HTTPDigestAuth):
"""HTTP digest authentication between proxy
:param stale_rejects: The number of rejects indicate t... | [
"me@kennethreitz.org"
] | me@kennethreitz.org |
d1ea48e356bded5737464a3999aae76e2ef6fe2f | af503c2fab49530e2abf8b259272650e5228b2af | /easy/13_romanToInteger/romanToInt.py | 14340492bbfd4a990484790993ec21d643495e6f | [] | no_license | hellomryoo/leetcode | 37ce88fd14cf7d2caefefa2efce4141fed40c982 | d2994d6a262c998b955733f55be8478930dd4898 | refs/heads/master | 2023-06-07T10:57:27.703853 | 2021-07-13T13:37:25 | 2021-07-13T13:37:25 | 385,611,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class romanToInt:
def romanToInt(self, s: str) -> int:
romanMap = {"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000}
previous = 0
result = 0
for x in s[::-1]:
current = romanMap[x]
if previous > current:
result -= current
... | [
"hy2506@columbia.edu"
] | hy2506@columbia.edu |
0b2c77f111eec0624a6c7199eaabea6f4ae5a26c | 59002c2d7c5eb3c473b588c2064443c8796f508d | /Player/urls.py | 5da0e0d5e7e2c5a2cb0318c0f19ab401e244480f | [] | no_license | BeastlyTheos/JustMumeThings | 435019fcb0e13b2c927b3988daa9bd4c549c1b3c | 50366dd31d11cdcbb5b7fc7aaa41e67501b9ff3f | refs/heads/master | 2021-01-20T09:38:25.188687 | 2017-06-22T12:32:24 | 2017-06-23T08:33:55 | 90,274,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | """Banger URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based views
... | [
"TheodoreCooke@trentu.ca"
] | TheodoreCooke@trentu.ca |
ed647418395faf9dccfa897c730ba1f3653c6a37 | 0bd7685c419f54fbcbb36129ee61a1ad5a79c44a | /newsApp/views.py | 951b49cfffc87768fbbc3efae32b9abba849406e | [] | no_license | AS-AmanSinghal/NewsWebsite | d3c3aeeb08248d51ade5ad1c5003e1cca73db535 | 42db57a64cfeb5b810d4ff0da113522540f60b94 | refs/heads/master | 2023-04-30T23:51:46.511751 | 2021-05-22T10:34:51 | 2021-05-22T10:34:51 | 367,278,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,736 | py | from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from LatestNews.models import LatestNews
from category.models import Category
from manageUsers.models import ManageUsers
from subcategory.models import SubCategory
from ... | [
"amansinghal.it1@gmail.com"
] | amansinghal.it1@gmail.com |
862b20b09be678debb5763ce7aed391cdd305028 | 375f29655b966e7dbac2297b3f79aadb5d03b737 | /Image/test6.py | e0c2f30ebc95da86684e30c0aa49fd81708a4285 | [
"MIT"
] | permissive | pection-zz/FindJointwithImageprocessing | 33e0b47ca3629d85e739edcd88dcd1663af88631 | 3dd4563be88dfcf005c32f19ae97d03f9bf715ad | refs/heads/master | 2022-12-23T11:09:04.391591 | 2020-10-05T16:35:21 | 2020-10-05T16:35:21 | 301,473,183 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | import numpy as np
import cv2
# mouse callback function
def draw_circle(event,x,y,flags,param):
global human,tiger,logo
positionX = tiger.shape[1]
positionY = tiger.shape[0]
col = human.shape[1]
row = human.shape[0]
if event == cv2.EVENT_LBUTTONDOWN: # click.
y -= row/2 ... | [
"pection.naphat@gmail.com"
] | pection.naphat@gmail.com |
a3de73991f302e4984380b4f57432e7d9167b0a3 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /mDzheHpwtqyXePEBE_12.py | 5d5a6c21e0b1f47994b25b44b57f1c91dbd275ce | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py |
def sum_polygon(n):
sum = (n-2)*180
return sum
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
da33ecd6cb5985519aebc9f35185190401aabb93 | 17032b7326510e360adbc61d8566c42ce8a0483a | /python2.7/site-packages/firewall/core/ipXtables.py | 437808027155b96757b49e310a29f4bfd2428ca0 | [] | no_license | noslin005/wzz | d220f8ed84fe2bc8dca9b764ccc72ee807740fbc | 3a4e9fd377076b3a21730af9fca82e4b2e61702b | refs/heads/master | 2021-11-03T09:33:47.126484 | 2019-04-15T01:19:02 | 2019-04-15T01:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,988 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010-2016 Red Hat, Inc.
#
# Authors:
# Thomas Woerner <twoerner@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the Li... | [
"wuzhengzhong@ruiec.cn"
] | wuzhengzhong@ruiec.cn |
6f194f8fee5688dc5d7ab4e2da990b9aaf9ad2a8 | ecb286df5937cd30855335f3e9eadd3edbddbd02 | /CARSELL.py | 2c5425df7c655dd40a48d79202114e60d1bfbfba | [] | no_license | prashant97sikarwar/codechef-april-long-challenge-2020 | fbbddadb3398a285fe735f3c0049f74371b79100 | 5e459541044b54e64fd63b072ff5bf4870dea126 | refs/heads/master | 2022-04-14T21:06:41.237608 | 2020-04-13T19:48:29 | 2020-04-13T19:48:29 | 254,818,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | t = int(input())
while t > 0:
n = int(input())
arr = list(map(int,input().split()))
arr.sort()
arr = arr[::-1]
total = 0
for i in range(n):
fg = arr[i] - i
if fg > 0:
total += fg
else:
break
ans = total % 1000000007
print(ans)
t -= 1 | [
"prashant97sikarwar@gmail.com"
] | prashant97sikarwar@gmail.com |
4fd66b7a49d21ce1d83b06adf94d7c76213be7b6 | f563bbcb49a794037422c7c24eb97e4972ea10ef | /web/app.py | dd973883dc7b50f331328758cc0c8220fc35f453 | [] | no_license | oregonjoe/helmsmart_freeboard | 600161285068453d8ea73f739badcb8a6e0efe2e | b09ef3ef55c312d8528ffd8b038e772308486609 | refs/heads/master | 2023-05-25T05:30:57.282201 | 2023-05-04T20:47:44 | 2023-05-04T20:47:44 | 56,934,219 | 1 | 1 | null | 2023-05-02T21:12:51 | 2016-04-23T18:21:40 | Python | UTF-8 | Python | false | false | 644,146 | py | import os
from os import environ
from os import environ as env, path
import pylibmc
import sys
import json
#import md5
import hashlib
import base64
from operator import itemgetter
import requests
from requests.exceptions import HTTPError
import urllib
#from urlparse import urlparse
from urllib.parse import urlpar... | [
"joe@chetcodigital.com"
] | joe@chetcodigital.com |
e6ff601549b3118176a87d0a758ef30a7380e8dd | 83126637c4a1d378a1574decdd2c4242141e6e5b | /proxies/get_proxy.py | 761c3321b28fd0835a34e3a3b84a201db83ed9fc | [] | no_license | jiahongliu/project | 84027d26f0f2a31836c9c137117deb8b25211a6d | cfd7cbb0cc5535de2df2d27ff387c233f813e36e | refs/heads/master | 2021-05-18T02:04:30.701147 | 2020-04-07T13:13:22 | 2020-04-07T13:13:22 | 251,058,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | '''
代理获取模块
'''
import requests
from lxml import etree
class Got_Proxie():
#定义一个方法获取前五页66ip的代理
def got_proxie_ip66(self,pages=5):
base_url='http://www.66ip.cn/{}.html'
urls=[base_url.format(page) for page in range(1,pages+1)]
#这个网站不加请求头也能爬
for url in urls:
... | [
"noreply@github.com"
] | noreply@github.com |
0d412c4a85ddaed96ffffc17e79843711c8795ac | 2eb700cca1fd6dfaab15954e7598a1e70eef2d61 | /grad04.py | 01348b367d940c8efdf4ef1009b6b0dfd29c960c | [] | no_license | dharitrilimu/Chordimplementation | 6e17cfc451c8a518604e01547a9345b3018fb852 | a4c8f328dfd44490e3dd936121c516f81f427de0 | refs/heads/master | 2020-08-03T10:54:46.001784 | 2019-09-29T21:56:13 | 2019-09-29T21:56:13 | 211,726,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,371 | py | '''
Created on Apr. 15, 2019
@author: dharitri
'''
import socket
import random
import string
import time
filestore={}
peer0files=[]
peer1files=[]
peer2files=[]
peer3files=[]
peer4files=[]
keystores={}
filessentpeer0=[]
filessentpeer1=[]
filessentpeer2=[]
filessentpeer3=[]
filessentpeer4=[]
class node:
#Class that ... | [
"dharitri.limca@gmail.com"
] | dharitri.limca@gmail.com |
92981e0ce1c1e7afc1264360c50653db9744da75 | 4dad7115055009cb7b02d4b92cb70ed981be698e | /pythonVersion/venv/bin/pip | 8731c65980a2d37c593e4e8f8f264a9d6e276fcf | [] | no_license | kmuga001/SWEproject_recipe_interactions | e742e5fa363bfbc586dac3d1deb2b2366757eace | 727652d160d76173274f4598ae1c14ac28d0ab1b | refs/heads/main | 2023-01-30T00:55:34.670879 | 2020-12-15T20:23:38 | 2020-12-15T20:23:38 | 321,777,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | #!/Users/abeltheo/Desktop/Code/UCR_Projects/cs180project-022-calculatrons/pythonVersion/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"atheo003@ucr.edu"
] | atheo003@ucr.edu | |
1db2eb15a07927b63d04c874153f8eddb07d1667 | acee157d0527b64f941b6b0de07f73ab699244a7 | /training.py | 75600f7aa254643fe426fd6253d84678116e49e9 | [] | no_license | yang-fei/Semi-supervised-IRR | 71dae1b0dd571d6a38daf87083026560b52d4afb | dca2a894142de69e2697ab11d7645581b22d54f8 | refs/heads/master | 2022-04-12T11:21:16.333443 | 2020-03-09T19:20:35 | 2020-03-09T19:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,568 | py | import os
import h5py
import numpy as np
import tensorflow as tf
import cv2
import random
from utils import total_variation
import skimage.measure
##################### select GPU device ####################################
os.environ['CUDA_VISIBLE_DEVICES'] = "0"
######################################################... | [
"noreply@github.com"
] | noreply@github.com |
caea431022f378d02d5bd50d0123150423b2c64d | 8611701a548239f60f2300b59247052acc3b389c | /0x0A-python-inheritance/5-base_geometry.py | 5e9315f42d79af66f836bb1b3c8407e9b4ffb484 | [] | no_license | AMIRANDA9112/holbertonschool-higher_level_programming | b51129b96d51cd116027b319eb795661f46af632 | c7441c4480393d1eb0f5b9729fefd06a8eb04e9b | refs/heads/master | 2022-12-24T01:02:50.536379 | 2020-09-25T03:15:10 | 2020-09-25T03:15:10 | 259,493,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | #!/usr/bin/python3
"""this module start a class"""
class BaseGeometry():
"""
a empty class
"""
pass
| [
"andreselfm@gmail.com"
] | andreselfm@gmail.com |
6dfb6adbc1ee91d50ce24277ee70f6030bde8f77 | 80dc215725e6e070f98d451037260a2050aa4a46 | /settings/api/subjects.py | aa4e4a72972d572180732259c2d9b79b550cf1a3 | [] | no_license | agustin2791/notes | 3596845366d35cccbeb54a79a649310080a01585 | 25cd537a12998f1f9b91d59b63aa91f0fe71c603 | refs/heads/master | 2022-12-09T16:51:59.917854 | 2019-10-17T23:57:58 | 2019-10-17T23:57:58 | 170,402,529 | 0 | 1 | null | 2022-12-09T12:43:02 | 2019-02-12T22:41:20 | Vue | UTF-8 | Python | false | false | 2,682 | py | from flask import Flask, jsonify, request, url_for, session, redirect
from flask_restful import Resource, Api
from flask_pymongo import PyMongo
from bson.objectid import ObjectId
app = Flask(__name__)
app.config['MONGO_URI'] = 'mongodb://mongod:27017/notesdb'
api = Api(app)
db = PyMongo(app)
connect = db.db.subject
c... | [
"jagustin2791@gmail.com"
] | jagustin2791@gmail.com |
03e25ad00cd2784d9d887fb532d4dfc61584cc73 | 9f81e499164e747dbc7f99a21ea109343d2779d0 | /imagedl/nn/losses/kappa.py | 253eb7f452e9d6f2d74b25184c99c5e1e4389f47 | [
"MIT"
] | permissive | MalyshevValery/Image_Analysis_DL | b360b3e82ac5047e4e3232235fec2d4f19e89287 | ea2f7f89bd9796328a4c032f951902adf3c5bbb7 | refs/heads/master | 2023-05-04T19:52:53.649119 | 2021-06-03T12:18:01 | 2021-06-03T12:18:01 | 219,690,225 | 0 | 0 | MIT | 2020-04-08T11:01:23 | 2019-11-05T08:07:10 | Python | UTF-8 | Python | false | false | 1,238 | py | """Kappa Loss"""
import torch
from torch import nn
class KappaLoss(nn.Module):
"""Kappa Loss"""
def __init__(self, n_classes: int):
super().__init__()
r = torch.arange(0, n_classes, dtype=torch.float)
self._weight_matrix = torch.stack([r] * n_classes)
self._weight_matrix -= to... | [
"malyshevalery@gmail.com"
] | malyshevalery@gmail.com |
c9db1c0c592743b052fc2d961f724bed75ad9359 | 5d2a0c5fbbb1bd1e3e27851ddb4fb45608f6cb2d | /freelance_site/freelance_site/apps/main/views.py | 5c435d7b37f90e1868c007265df98995715ad679 | [] | no_license | Marlen-Shifu/freelance-site | 1a9588fa5f59c85abff2f3e7103ed13b81620074 | 410fd93080ba5c1d35095c54a10325bc915d9f52 | refs/heads/master | 2022-11-30T12:20:37.126035 | 2020-08-19T01:57:25 | 2020-08-19T01:57:25 | 288,604,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login
from . import models
from .forms import LoginForm
def index(request):
return render(request, 'index.html', {'title': 'Вход/Кіру'})
def user_login(request):
if request.method == 'POST... | [
"jfss7632@gmail.com"
] | jfss7632@gmail.com |
3dfbf8c94d2352552fc10b1451ec343edf118d69 | 686d2e525b7cd7a792501309f251dbf6dcea7ef4 | /剑指offer/14.2剪绳子-贪心法.py | cd7abf147180fc0496002f548c7b684b08bfbf0b | [] | no_license | freemanwang/Algorithm | fa23c9c33c43f942e72d9d1828a95417e7c99575 | bb691c1afb460a382d7aaaa308e8b4e17f5bf4c5 | refs/heads/master | 2020-06-29T19:37:32.584724 | 2020-02-07T06:36:29 | 2020-02-07T06:36:29 | 200,605,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | def maxCuttingSolution(length:int):
if length < 2:
return 0
if length == 2:
return 1
if length == 3:
return 2
#多剪长为3的段
timeOf3 = length // 3
#当最后剩下长度为4时减2*2,比3*1好
if length - timeOf3*3 == 1:
timeOf3 -= 1
timeOf2 = (length - timeOf3*3) // 2
print('长为3... | [
"121689123@qq.com"
] | 121689123@qq.com |
f5c158e1bd92dcca9407b0018b2d3b8d14a34558 | 95565f3fee911c3c778cf86073351590c9fffe34 | /hlrl/torch/policies/linear.py | 61c65277d64042030ab72f09989467ca2af58fc1 | [
"MIT"
] | permissive | Chainso/HLRL | a96eaad3d1339041101bb2def526892301777fa4 | cde3be1c69bfd76fe4a78fa529e851d0a78318c7 | refs/heads/master | 2023-09-01T15:30:38.376042 | 2023-08-25T05:58:35 | 2023-08-25T05:58:35 | 207,596,027 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,254 | py | from typing import Tuple
import torch
import torch.nn as nn
from hlrl.torch.layers import SplitLayer
class LinearPolicy(nn.Module):
"""
A standard linear policy.
"""
def __init__(
self,
inp_n: int,
out_n: int,
hidden_size: int,
num_layers: in... | [
"chanzobryan@gmail.com"
] | chanzobryan@gmail.com |
0e5104d4614e9bd3d252bbe2bd0904f739bc232e | 6c415aa4730b7e9412003d99e1cdca93ff386654 | /project/__init__.py | 9e654982a8fef8eccf82faf83b657298c4361199 | [] | no_license | sumeetsarkar/db_isolation_levels | 315f76c2f7b03f08cd33afef54df3e770d98cd01 | 482877b8f16b2e44aa9ec5352af8605b36545940 | refs/heads/master | 2020-05-03T22:52:02.983599 | 2019-04-01T11:51:01 | 2019-04-01T11:51:01 | 178,851,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | LEDGER_TYPE_CREDIT = 'credit'
LEDGER_TYPE_DEBIT = 'debit'
def authenticate_and_verify_account(conn, username, pin, accountid, req_id=None):
"""
Check for matching userid/ pin in DB
Check if userid has matching accountid
"""
with conn.cursor() as curs:
sql = 'SELECT 1 FROM users WHERE usern... | [
"sumeetsarkar4@gmail.com"
] | sumeetsarkar4@gmail.com |
4f08a70823bb4f9a1a6851ac87d58cfb16bc9a6c | ee745bd80ec7696750ea0dedf5e2b6ebf3fbf39c | /mysite/urls.py | 5f1bc4ca6ac0b6ed0cac93b3b78cf07d496f7e50 | [] | no_license | SeydazimovN/Nurba-Network | 6fbf73b5f7c1d4afe25cb412d8c59b15d09cf41e | ab966ae3d07868fde693a47a4753943f64cb092a | refs/heads/master | 2021-01-18T18:37:46.797474 | 2016-07-01T03:48:53 | 2016-07-01T03:48:53 | 62,355,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-base... | [
"nurbol.seydazimov@gmail.com"
] | nurbol.seydazimov@gmail.com |
63183dac12e1ac146a8ee95e08c3d767c7460535 | 76e498240a644b7ccf7e6af69f958f72af595a3c | /2018/function.py | 44fe021fe2be5eac9710967e541d465baee557c2 | [] | no_license | VladyslavHnatchenko/united | 54a868b9bdb54b510fb33f6b74562f2fb2c23c01 | 64d3319b18fcc8e1dbb96a63f7bef0c2e5766520 | refs/heads/master | 2020-04-13T07:24:28.053997 | 2019-08-23T07:22:10 | 2019-08-23T07:22:10 | 163,050,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | def function_a():
global a
a = 1
b = 2
return a+b
def function_b():
c = 3
return a+c
print(function_a())
print(function_b())
# def many(*args, **kwargs):
# print(args)
# print(kwargs)
#
#
# many(1, 2, 3, name="Mike", job="programmer")
# def keyword_function(a=1, b=2):
# retur... | [
"hnatchenko.vladyslav@gmail.com"
] | hnatchenko.vladyslav@gmail.com |
1ef80bf7450d07e7010e173fd6a6bd2d7fa2b92c | 65c8ca27a8f927b55d8d0aaed3a3279475f0beaf | /notas/nota.py | 192cd7b0f9d48ef9f99e96258ffe08da2c2ab87f | [] | no_license | CarlosAndresArangoJuliao/python-mymsql1 | b20f2b94deb27d4cd4ce0aee19a68a7a16e4dec5 | bc5b65e04156ca8af69dfbf5079ec67ffedc521f | refs/heads/master | 2023-02-17T01:53:17.366613 | 2021-01-05T20:27:59 | 2021-01-05T20:27:59 | 327,106,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | import usuarios.conexion as conexion
connect = conexion.conectar()
database = connect[0]#conexion base de datos
cursor = connect[1]
class Nota:
def __init__(self,usuario_id, titulo = "", descripcion =""):
self.usuario_id = usuario_id
self.titulo = titulo
self.descripcion = descripcio... | [
"carlosc2c3armenia@gmail.com"
] | carlosc2c3armenia@gmail.com |
ed5c75c5445579702f67c14726e2d59027b6d7e7 | bd0db287dd56a35a4c6d1fd85f349e4c2babfe86 | /ecommerce/migrations/0027_coupon_code_is_global.py | e25e1f1cca807bfa8ab462735429bab33c060902 | [
"BSD-3-Clause"
] | permissive | mitodl/mitxpro | 17a9e0d1271a4d0e48734a8ed2334a15ff515f23 | c5d9cda4e1ed87463da74d7956f1e1f9258f365c | refs/heads/master | 2023-09-01T02:58:32.997584 | 2023-08-31T13:27:35 | 2023-08-31T13:27:35 | 171,727,968 | 12 | 5 | BSD-3-Clause | 2023-09-13T15:48:48 | 2019-02-20T18:33:28 | Python | UTF-8 | Python | false | false | 384 | py | # Generated by Django 2.2.8 on 2020-02-12 12:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("ecommerce", "0026_coupon_include_future_runs")]
operations = [
migrations.AddField(
model_name="coupon",
name="is_global",
... | [
"ahmedbelalhashmi@gmail.com"
] | ahmedbelalhashmi@gmail.com |
cf5073e4c44b95893676e26aa7ff6ef52cd01700 | ca5d7fc720217f7b073c567d389a211725ecf401 | /apps/storybase_story/migrations/0017_call_to_action_to_translation.py | 46c03d92ff8e8eecbc46ef8b28774debc414494b | [
"MIT"
] | permissive | denverfoundation/storybase | 49b533b5572b6e70cdd036574ea4c84c765cd4b3 | 15e429df850b68ee107a9b8206adc44fe1174370 | refs/heads/develop | 2020-04-04T07:12:52.203147 | 2015-08-07T05:22:13 | 2015-08-07T05:22:13 | 3,374,036 | 3 | 5 | null | 2015-11-18T14:19:11 | 2012-02-07T03:35:38 | Python | UTF-8 | Python | false | false | 17,374 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import DataMigration
from django.conf import settings
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
for story in orm.Story.objects.all():
call_to_action = story.call_to_action
... | [
"geoffhing@gmail.com"
] | geoffhing@gmail.com |
7a99160a9b41a3afe3b729d916ebd377593d9fa2 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/encoding/manifests/dash/periods/adaptationsets/representations/sprite/sprite_api.py | c0609f57f38b0754440948820163b44f8bde915a | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 5,921 | py | # coding: utf-8
from __future__ import absolute_import
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase
from bitmovin_api_sdk.common.poscheck import poscheck_except
from bitmovin_api_sdk.models.bitmovin_response import BitmovinResponse
from bitmovin_api_sdk.models.response_envelope import ResponseEn... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
9db1a5211567b08ec0bd272c70b33e7b4b2417b3 | fb82fdf706863465b1f357cd1fa0447474cd8a70 | /ServerComponent/venv/Lib/site-packages/rsrc/contrib/db/sqla/serializer.py | 86d9f430b9df9c7e03c90d865f5bb3be82ec6e8c | [
"MIT"
] | permissive | CDU55/FakeNews | d79e2a069b3f1392f779d5b2256cd54c696e789a | 707bd48dd78851081d98ad21bbdadfc2720bd644 | refs/heads/main | 2023-02-20T06:27:18.618837 | 2021-01-17T15:14:27 | 2021-01-17T15:14:27 | 305,167,221 | 0 | 1 | MIT | 2020-12-07T19:51:46 | 2020-10-18T18:16:49 | Python | UTF-8 | Python | false | false | 436 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from rsrc import settings
from jsonsir import Serializer
from jsonsir.contrib.intencoder import IntEncoder
from jsonsir.contrib.boolencoder import BoolEncoder
from jsonsir.contrib.datetimeencoder import DateTimeEncoder
# instantiate `Serializer` (bound with specified enc... | [
"48147775+BiancaChirica@users.noreply.github.com"
] | 48147775+BiancaChirica@users.noreply.github.com |
d5f1e28ecd32147af8ca288ad213104e1a5416c4 | 31a2520c9eaa53af4762a089695036ff95636430 | /src/Chapter-5/01/精确调整一个工作簿中所有工作表的行高和列宽.py | bea3a4d1c7d169201300783ce5739a62d8df7ba0 | [] | no_license | TianXiaPy/PyExcel | b186bc2775eb4e609057672f8137dca6b9aa1793 | 1405f6a1302c1dc0acc4eadf412b87b43f517103 | refs/heads/main | 2023-05-12T01:33:31.456818 | 2021-05-30T11:54:43 | 2021-05-30T11:54:43 | 314,823,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import xlwings as xw
app = xw.App(visible=True, add_book=False)
workbook = app.books.open(".\\销售表\\电车.xlsx")
for sheet in workbook.sheets:
value = sheet.range("A1").expand("table") # 获取行列信息
value.column_width = 20
value.row_height = 20
workbook.save()
app.quit()
| [
"17600299187@163.com"
] | 17600299187@163.com |
fb2eaf6e873708972c6f1907d460da5c8d587c24 | 3815673c0f9514b622742fec07996f1090c08709 | /occuspytial/tests/test_utils.py | 1fca5bd090006b13d379912f174b159e740c992f | [
"BSD-3-Clause"
] | permissive | zoj613/OccuSpytial | 70985e459e6317ba567f06697f5ad133d9dae4d4 | e599d515b5377cb8f7a16af828f39b115a04bc66 | refs/heads/master | 2023-03-18T03:54:21.597016 | 2021-03-22T20:38:47 | 2021-03-22T20:38:47 | 156,858,192 | 5 | 1 | BSD-3-Clause | 2021-03-22T20:38:48 | 2018-11-09T12:18:42 | Python | UTF-8 | Python | false | false | 2,368 | py |
import numpy as np
import pytest
from occuspytial.utils import get_generator, rand_precision_mat, make_data
def test_get_generator():
rng = get_generator(0)
assert isinstance(rng, np.random.Generator)
# ensure the fastest SFC64 bitgenerator is used
assert isinstance(rng.bit_generator, np.random.SFC... | [
"44142765+zoj613@users.noreply.github.com"
] | 44142765+zoj613@users.noreply.github.com |
a27acd5ff53c9ddaee067e36a241613921bb22ca | 6d46c906c2b2764d8c7d5c7fd1f48bca2f5326bb | /Python_code/transfCamCoord.py | 0e0e752066f2c53028c919de012ef7e4b193484a | [] | no_license | rokspy/LeBot | 0eefa4970c56dbf6ab07a875af216630e43914c3 | dbc4ec23da583dd6b6ec9b48165619c2e2e8dd7c | refs/heads/master | 2023-02-27T00:35:12.601623 | 2021-01-27T18:30:59 | 2021-01-27T18:30:59 | 292,656,875 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import numpy as np
"""
This function takes input from the camera depth [distance, angle], transforms it,
and produces output of the coordinates [x, y] for the next functions find & approach.
"""
# Input distance [mm] and angle [rad] from depth camera reading
# Output vertical vector with coordenates x and y [mm]
def ... | [
"gerardo.tejada.saracho@gmail.com"
] | gerardo.tejada.saracho@gmail.com |
7844428f465f332e69a9fafa46bc8dc377f5a6bc | 8073fa39e8ca3c3ffed7c0b795c64281e1a76919 | /books4books/settings.py | a5975f2bc31855d1edf4298936ddb0073f9a1bf2 | [] | no_license | adarssssh/user_auth | 0584be9a21e139107fe37ada4da171eb0dd01b72 | cc87380ceb0ed95085087539625b68bc905ebc69 | refs/heads/main | 2023-07-18T18:19:17.803724 | 2021-09-22T18:41:18 | 2021-09-22T18:41:18 | 409,316,982 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,081 | py | """
Django settings for books4books project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""... | [
"noreply@github.com"
] | noreply@github.com |
56fa05c2c2209de10689e7ac05abd0c4819683e8 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/aio/operations_async/_public_ip_prefixes_operations_async.py | f793063e7b65111a6d47cd949a6ce5c76ff9a131 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 27,622 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
54e2765ad223824c17b6135411477e3c598773bc | a62fe26d0e99d1ee1292ac871e2c3e087ad08ef3 | /sonoma_parser.py | 2d74a4851f9cac378183c4de32dccb26c84c70d8 | [] | no_license | davidk13/json_parser | 9be088a42026e7e9c502782d81171a382c58c1dc | a20b6acb30745d015f48a82de8c6ca34c8ba5063 | refs/heads/master | 2021-04-09T16:51:49.578285 | 2015-05-06T20:39:49 | 2015-05-06T20:39:49 | 33,912,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | import csv
import json
jsonfile = open('sonoma.json', 'w')
reader = csv.reader(open('sonoma_csv.csv', 'rU'))
result = {}
for row in reader:
key = row[0]
result[key] = row[1]
#print result
json.dump(result, jsonfile) | [
"davidkastelman@Davids-MacBook-Air.local"
] | davidkastelman@Davids-MacBook-Air.local |
45e327d18e4e1ba6640cdfe418e0517120004e9a | 985850366819d505dcd54cd5878681c08bd93a8f | /day13/part2_sequences.py | c98b0e9b344965eef7d17c94e72cbca41f0582bc | [] | no_license | 5FeetUnder/advent-of-code-2020 | 193708777fa1d4165787989e9f7a930c74b0ae22 | 4b6de559a7b40f75a1da32a72dce90080cccd727 | refs/heads/main | 2023-02-02T09:50:00.962345 | 2020-12-19T22:21:28 | 2020-12-19T22:21:28 | 320,973,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | from math import gcd
lines = [x.strip() for x in open("D:/Users/Azure Meso/Documents/Programmierung/Advent of Code 2020/Day 13/input.txt")]
bus_ids = [id for id in lines[1].split(',')]
bus_ids = [(int(bus),-i) for (bus,i) in list(zip(bus_ids,range(len(bus_ids)))) if bus != 'x']
def kgv(x,y):
return x * y // gcd(x... | [
"petschbenjamin@gmail.com"
] | petschbenjamin@gmail.com |
c3f066c947f48b2d598a1bc6be518303b1f2221e | 72ede563023f78da0d23f36df0106aa4cd386600 | /src/mailme/utils/text.py | 0e2e912bd533cc7e3669e3cef8cd63fa16722f59 | [
"BSD-3-Clause"
] | permissive | mailme/mailme.io | 773e8266e6ec307762d220c0a6381170f6905de3 | 3b9cc8009226bf349e96504328146c61d8afcb02 | refs/heads/master | 2020-05-31T18:59:01.947128 | 2014-07-04T14:48:17 | 2014-07-04T14:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
"""
mailme.utils.text
~~~~~~~~~~~~~~~~~
Various text realated tools.
"""
import re
_str_num_re = re.compile(r'(?:[^\d]*(\d+)[^\d]*)+')
def increment_string(s):
"""Increment a number in a string or add a number."""
m = _str_num_re.search(s)
if m:
next = str(int... | [
"cg@webshox.org"
] | cg@webshox.org |
5930cfc112f15a47ff6b5e6f315d023db88b1b72 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /development/samples/SampleSyncAdapter/samplesyncadapter_server/model/datastore.py | 1f916332184373abece4825b266b23e6cfb2503a | [
"MIT",
"Apache-2.0"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | Python | false | false | 1,954 | py | #!/usr/bin/python2.5
# Copyright (C) 2010 The Android Open Source Project
#
# 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 require... | [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
946474b8afc07b9a6402d4e856c9d8b4e23a8aa7 | aed0850065dd467c0d0650c41987b61e94cad9c6 | /day 16/merging.py | a62f058715350f049773cbc9a756eca3ed872a3c | [] | no_license | parmarjh/100day-coding-challenge | 96c79cc86a8f1e0b062b72dd5992610597e289e8 | 8b3e1f6654e4a55a08b4f938f13626fcc2aa8468 | refs/heads/master | 2023-02-18T19:51:22.200057 | 2020-12-31T12:54:10 | 2020-12-31T12:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def printList(self):
temp = self.head
while temp:
print(temp.data, end=" ")
temp = temp.next
def addToList(self, newData):
newNode = Node(newData)
if self.head is Non... | [
"annamalaipalani11@gmail.com"
] | annamalaipalani11@gmail.com |
c0061249a558b46efbfcd01564880d4df45e0fec | d27453de856afd4e03c30ec92099a7833551431e | /lib/smb/utils/sha256.py | a13d6bf36d322afc5afa8110976819a5528b28d9 | [
"Apache-2.0"
] | permissive | webvul/Scanver | 1ec413a1ba53d1ec846c158fa0d750d8fedbd40a | f058eb7361e9c539917b85d3be69cf6655c2694f | refs/heads/master | 2020-04-10T15:46:20.733579 | 2018-12-07T07:03:11 | 2018-12-07T07:03:11 | 161,122,235 | 1 | 0 | Apache-2.0 | 2018-12-10T05:32:47 | 2018-12-10T05:32:47 | null | UTF-8 | Python | false | false | 3,580 | py | #!/usr/bin/python
__author__ = 'Thomas Dixon'
__license__ = 'MIT'
import copy, struct, sys
digest_size = 32
blocksize = 1
def new(m=None):
return sha256(m)
class sha256(object):
_k = (0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
0xd807aa... | [
"664284092@QQ.COM"
] | 664284092@QQ.COM |
6e9202c9029c4103e41f6eb7df2b3592fa136a5c | 946469c469a07e70260143805c0b395508aad27f | /tf01_helloword/tf_01_helloword.py | 4812457f6c8033ceb7f726ff5dfe5858b9446803 | [] | no_license | jpegbert/TensorFlow1.x | 6f4bf2d658ac3cea298b0247c405f48cefa5db7f | bded173429581805324fda4bccd8180eafdd3496 | refs/heads/master | 2023-03-21T15:19:39.440658 | 2021-03-19T12:57:02 | 2021-03-19T12:57:02 | 348,709,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import tensorflow as tf
message = tf.constant('Welcome to the exciting world of Deep Neural Networks!')
with tf.Session() as sess:
print(sess.run(message).decode())
| [
"jiangpeng.jiang@zhaopin.com.cn"
] | jiangpeng.jiang@zhaopin.com.cn |
5156d3a38dc7fb56966a2260d59291b0e1c4fee9 | 9495498e3275aef4de17963f679dab1ada3148a2 | /experiments/karla/diplomski-rad/blade/ont/datasets/n15-f-bacterium-racon-hax/finished-experiments/model-n15-ont-f-bac-racon-hax-24-hp.py | 366130f5153096c7be9f49c7235ef060e247952a | [
"MIT"
] | permissive | lvrcek/consensus-net | 131a4b378b8cc7704c033882560953442773fd74 | 560957f315751822e1ddf8c097eb7b712ceadff3 | refs/heads/master | 2020-04-13T02:09:00.435155 | 2018-12-17T18:53:43 | 2018-12-17T18:53:43 | 162,894,761 | 0 | 0 | MIT | 2018-12-23T13:50:29 | 2018-12-23T13:50:28 | null | UTF-8 | Python | false | false | 4,717 | py | from comet_ml import Experiment
from comet_ml import Optimizer
API_KEY = 'oda8KKpxlDgWmJG5KsYrrhmIV'
import numpy as np
from keras.models import Model
from keras.layers import Dense, Dropout, Activation, Flatten, BatchNormalization, Input
from keras.layers import Conv1D, MaxPooling1D, Conv2D, MaxPool2D
from keras.cal... | [
"juric.antonio@hotmail.com"
] | juric.antonio@hotmail.com |
e8212221e586dd1c5d25dfacb152cfc56e75b483 | 9e6c8d939805aad4ba4faea5bff210aed396a20a | /Python/shift_list.py | c0a1c25173243bcad5fc2328e29f61dc8efe5ed8 | [] | no_license | JaredAvila/Algorithims | 926331f3f9a8dc04c4d0b91ddb93f9ecb070e880 | 28b024fbc9cb88978bcb3effb1c874720b4d774c | refs/heads/master | 2020-04-02T18:34:17.596367 | 2018-11-30T02:13:02 | 2018-11-30T02:13:02 | 154,705,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | def rotate(lst, shiftBy):
y = shiftBy % len(lst)
for i in range(y):
x = lst.pop()
lst.insert(0, x)
return lst
z = rotate([1,2,3,4,5,6,7,8,9,10], 10000000000000000000000000000000000000000002)
q = rotate([1,2,3,4,5,6,7,8,9,10], 2)
print(z, q)
| [
"jared.c.avila@gmail.com"
] | jared.c.avila@gmail.com |
9131b4a2b649b06a3568b0f57006237fe5408c7e | 17362168d2aea6541ca9cc3e47a14b6255ce5c8a | /src/tweets/migrations/0001_initial.py | b2a657be4697faa92df5c9b33db88c1d6797f01f | [] | no_license | MaximeHarmant/tweetme | 84b9e4c0d9948c69d71812164bf0b0152d1b599c | 7d694db331afedcf47bb2c2dfff06007338647eb | refs/heads/master | 2021-01-23T06:06:03.738859 | 2017-04-14T18:08:50 | 2017-04-14T18:08:50 | 86,338,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-03-27 15:28
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"maxharmant@gmail.com"
] | maxharmant@gmail.com |
a28aac4f927131e3ccb5dea45c1fcefdbcba2ee6 | 2e73f2b16d1900e4c0e488783227665e4390d73c | /cmds/common.py | 30f09064a9bd37be667bc572fecaef1fda5b7559 | [] | no_license | NN0414/Meow_Bot-Official-Version- | b4d9da0d9e72627601b34540d27eb2b7a9aaf8ca | c3e90b298d8b5779a4d6f509aca8f2000787bcec | refs/heads/master | 2023-02-20T05:57:24.138007 | 2021-01-24T02:04:10 | 2021-01-24T02:04:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | from discord.ext import commands
from core.classes import Cog_Extension
import json
with open('setting.json', 'r', encoding='utf8') as jfile:
jdata = json.load(jfile)
class Common(Cog_Extension):
#ping
@commands.command(name= 'ping', aliases=['延遲' , '機器人延遲' , 'delay'])
async def ping(self, ctx):
... | [
"47559827+MeowXiaoXiang@users.noreply.github.com"
] | 47559827+MeowXiaoXiang@users.noreply.github.com |
25d394a6a7b58cc25804ceb01895f65ff2b1c820 | 77ddb490d25157bfe617f40698a9bda19801ba6c | /app/model.py | 41248910d97f45c8782171fe2af0a99c920beb24 | [
"Beerware"
] | permissive | williamgibb/dataGrapher | bde6837d1ee747e3c2fc45c2a7ebfb578e25bd9e | 806950a1bbee95f43ae82926675041e9e20fd1ac | refs/heads/master | 2020-12-24T21:01:08.761876 | 2016-05-02T02:31:50 | 2016-05-02T02:31:50 | 56,196,973 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | import contextlib
import json
import logging
import os
from sqlalchemy import Column, ForeignKey, Integer, String, DateTime, Float
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import relationship, sessionmaker
from sqlalchemy import create_engine
from sqlalchemy import exc
from . import u... | [
"williamgibb@gmail.com"
] | williamgibb@gmail.com |
f295ae8bb445794a84f3e45c99863c3f72ad0726 | 9bbd4f00fd88474b3ab1f007cb6848cf6c2304e8 | /run.py | 93c10171ae06cd2b21a361602775df251bd21300 | [] | no_license | cappuccino213/AutoGTF | 3128deb15bf6ebd67ed811773b3ef972f51fa9b7 | e9ee23860c5f59011367fb84c646f942fb5890ef | refs/heads/master | 2020-04-16T17:52:30.603769 | 2019-01-17T03:01:46 | 2019-01-17T03:01:46 | 165,792,698 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,936 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/1/14 14:20
# @Author : Zhangyp
# @File : run.py
# @Software: PyCharm
# @license : Copyright(C), eWord Technology Co., Ltd.
# @Contact : yeahcheung213@163.com
from mssql import *
# from ReadConf import *
# import os
from shellcopy import *
import shutil... | [
"yeahcheung213@163.com"
] | yeahcheung213@163.com |
4fb445678a4cd023a19dc7dd202db200d82ccfba | 9331f7179c2490f9bc0141ce91ebea704124e168 | /clr.py | 3aaea86cb672e27e196ed3354ac23a1e91344fba | [] | no_license | peternara/Contrastive-learning-for-image-retrieval-self-training | 50fbb35ca4f4f8cef6f70e7f037bb65f1f58bc21 | f04bdd62a1a647207c599570394c93327fb02044 | refs/heads/main | 2023-03-24T13:01:19.448203 | 2021-03-19T07:29:32 | 2021-03-19T07:29:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,435 | py | import os
os.environ['CUDA_LAUNCH_BLOCKING']='1'
import torch
from models.BiTmodel import BiTSimCLR
from models.ViTmodel import VisionTransformerSimCLR
from models.Efficientmodel import EfficientCLR
from models.CGDmodel import CGDmodel
from torch.utils.tensorboard import SummaryWriter
import torch.nn.functional as F
fr... | [
"noreply@github.com"
] | noreply@github.com |
af0851ba8867ea8c5138700c332c611e7c3453c5 | b5fb45288ed2a204692051ab78e72d8aa6e5accd | /mmdet/models/anchor_heads/anchor_head.py | 7b1e48d5270fcdf19061e7c3c1ecbade8dfe403f | [
"Apache-2.0"
] | permissive | nithinksath96/MMdetection_TensorRT_FP16 | d4987f003798f5d6d4fe5bde2f30dd5ee2e8596d | c8379b209d4deeff9350baf5bbedfc95fb8941f4 | refs/heads/master | 2023-02-13T20:00:21.834541 | 2021-01-06T09:24:20 | 2021-01-06T09:24:20 | 327,260,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,964 | py | from __future__ import division
import numpy as np
import torch
import torch.nn as nn
from mmcv.cnn import normal_init
from mmdet.core import (AnchorGenerator, anchor_target, delta2bbox, force_fp32,
multi_apply, multiclass_nms)
from ..builder import build_loss
from ..registry import HEADS
@H... | [
"nsathish@compute-0-32.local"
] | nsathish@compute-0-32.local |
d61ed41e66a270114d6516e1aefc291cbcf83af2 | b96297bd032e7730fff32dad8d638dcb22dd1b2f | /src/for_loop.py | 28ee384a2cbc8a0e41f116472bb3f025849b747f | [] | no_license | Tanu-N-Prabhu/Python | af91cfa6afc62aa221933dc43f5d950fab1d8be8 | 43e9ef11e5c840309a53b54415b0330437fef0fa | refs/heads/master | 2023-08-16T20:44:19.792496 | 2023-04-10T23:14:01 | 2023-04-10T23:14:01 | 183,729,552 | 910 | 609 | null | 2023-03-12T20:25:06 | 2019-04-27T04:49:56 | Jupyter Notebook | UTF-8 | Python | false | false | 57 | py | list = [1, 2, 3, 4, 5]
for item in list:
print(item)
| [
"noreply@github.com"
] | noreply@github.com |
f4806320b467766f48c9051aaf9b3416085432cd | b54cac4d19338bad392de278916073847009df74 | /s4_Multitraining.py | 17f09f60816418aac159aeb71cc33cb74ea7e50a | [] | no_license | Kolnove/SG-EPUNet | 377fcbebeccb84659035d4e5c00431245ecd39b1 | 7c007be98a602b878ffb965de6027479571f7736 | refs/heads/main | 2023-02-21T17:41:05.081676 | 2021-01-28T07:28:41 | 2021-01-28T07:28:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,352 | py | import matplotlib
matplotlib.use('tkagg')
import torch
import torch.optim as optim
import os
from core.utils.data_utils import directoryIterator
from core import configures
from datetime import datetime,timedelta
from core.utils.prepare_utils import AverageMeter, prep_experiment, evaluate_eval, fast_hist
impor... | [
"noreply@github.com"
] | noreply@github.com |
26c38ef0cff2a766d4ea37f3ed0a3bd57f09fd20 | 1bd36a049e1bf55eac24bf9b86c41cef7fddb15b | /models/densenet3d.py | 857974b5150983261619170409dc382e851de0b5 | [] | no_license | taozh2017/TCSM | 2df3306bbab63b5e45a0441a2861d825899cfb27 | 36112e34c7849594112ad3c7c89a7be05af265fa | refs/heads/master | 2022-04-16T01:54:15.233950 | 2020-04-03T20:25:31 | 2020-04-03T20:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,897 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 25 19:25:37 2019
@author: mwa
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from collections import OrderedDict
class _DenseLayer(nn.Sequential):
def __init__(self, num_input_features, growth_rate, bn_size, drop_rate):
super(_DenseLa... | [
"xmengli999@gmail.com"
] | xmengli999@gmail.com |
b476c10aeab8b37684614224e23eff676a964e22 | 9dbc04ffa97f606a193a8962b73471c80ba016aa | /bouquet/main/migrations/0005_order_items.py | c9f06f4a2dbf849bac1cdbd656e2d59122fa3a74 | [] | no_license | mollysingh/Bouquet_Cloud | 5908343df07adcfcf0e22f3a06f2cc56c06b1744 | 133de4564272d7efd768036d589b0a37389481b4 | refs/heads/master | 2023-07-17T09:03:15.154272 | 2021-09-04T17:35:08 | 2021-09-04T17:35:08 | 403,118,409 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | # Generated by Django 3.2.4 on 2021-07-09 13:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20210709_1112'),
]
operations = [
migrations.AddField(
model_name='order',
name='items',
... | [
"mollysingh28@gmail.com"
] | mollysingh28@gmail.com |
a6e67e7b5f1f4a6d65034f0be0c90eb049958dec | 12dcd169b2bbe1e446253194510e0c6f1f3344b7 | /Combinations/solutions.py | ccbe9813ab93c5b4a8a1d0bae9ea7bf05b642a87 | [] | no_license | LeoHung/myleetcode | 48b6c73ed22a034a974d0f35b83ea4e6ebda84b4 | 017167910b510ed6fdc5ed878db9bcd4c6f31576 | refs/heads/master | 2015-08-15T04:57:26.774006 | 2015-06-16T04:51:09 | 2015-06-16T04:51:09 | 27,021,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | class Solution:
# @return a list of lists of integers
def dp(self, k, n , i, c_list):
c_list.append(i)
if len(c_list) == k:
self.ret.append( [v for v in c_list])
c_list.pop()
return
for j in range(i+1, n+1):
self.dp(k, n, j, c_list)
... | [
"c2016.tw@gmail.com"
] | c2016.tw@gmail.com |
aabea6f6462a8c9d43459e84c6107ce39060a831 | ec467dc9282b1c45c83d7932233b4dd0f152f443 | /sitUpBackEnd/sit_analysis.py | a2548b368d4e0629e803d3f20523ef9fca1808b7 | [] | no_license | quincy-u/Sit-up | f616bb09c9fd54de87b90710aac7de146ac8b2f2 | e8a38caab47e239e65d6d446ac282ca5a8dc37b9 | refs/heads/master | 2022-11-25T03:12:23.662186 | 2020-08-06T08:06:16 | 2020-08-06T08:06:16 | 285,506,468 | 0 | 0 | null | 2020-08-06T07:41:10 | 2020-08-06T07:41:09 | null | UTF-8 | Python | false | false | 9,060 | py | class analysis_tool:
"""
Input a dictionary of <partname, position> and output a list of messages
Messages are warning messages if the sitting pose is not correct
Else messages should be only including affirm
"""
def __init__(self, dic):
self.dir = dic
# Assumptuib: Nos... | [
"zoulujiyouxiu@gmail.com"
] | zoulujiyouxiu@gmail.com |
3c8926c6432c7e32170941c5da6e58b2efa6f591 | d6f88f64e9f697517ffd6884ddf5314e99be90bd | /crg/carrace/migrations/0001_initial.py | 19c7f471010b3f3fe9ef830e0eae6ca0a29af0bd | [] | no_license | anyadiegwuc/anyadiegwuc | bb09305b457a3f21fe96b0bf24157a81579af8e5 | b8ae4fe433df8ed5e5f188c6675fcbe8c26f1449 | refs/heads/main | 2023-04-25T02:53:00.518037 | 2021-05-14T15:23:35 | 2021-05-14T15:23:35 | 367,397,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | # Generated by Django 3.2.2 on 2021-05-13 15:04
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
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"anyadiegwuc@student.trinityvalleyschool.org"
] | anyadiegwuc@student.trinityvalleyschool.org |
28d4a7cab05131a1d4887ee6d55d391758d54e4a | d4cabc17e5c2bcfd90c1850574fdcc589c737469 | /SensorTest/python/plotter.py | 11c8105dd1868084c971b457445dbe6523ed5695 | [
"MIT"
] | permissive | mbriday/Controller | f4880647ed4fb4235dfe5ffe156ed32119777359 | a03ad85e16f95ea19c58b1d8c9f1fb9a23fc2d03 | refs/heads/master | 2022-04-25T23:56:04.489234 | 2020-04-26T14:13:45 | 2020-04-26T14:13:45 | 258,992,298 | 0 | 0 | MIT | 2020-04-26T09:38:54 | 2020-04-26T09:38:53 | null | UTF-8 | Python | false | false | 557 | py | import matplotlib
import sys
import matplotlib.pyplot as plt
import numpy as np
def main(argv):
# tsi = np.loadtxt('tsi.txt')
recovid = np.loadtxt('recovid.txt')
fig, ax = plt.subplots(1, 1)
# ftsi = ax.plot(tsi[:, 0], tsi[:, 1])
x = range(len(recovid))
freco = ax.plot(x, recovid[:, 1])
... | [
"samuel.heidmann@inria.fr"
] | samuel.heidmann@inria.fr |
99cd5c99ec9821b1119a3562e43d7eac7c7f8511 | 64a5a80eea43135c2a891d2440b17e04db384725 | /Course_1/week_3/update_parameters.py | 69a70301b329b91df3e1c04ca0c7acc2c6b4cbce | [] | no_license | Vedarth/Deep-Learning | 2bf7b976c645e2d1fc84e510d038414218c745d6 | d370c34ce5f4a64549524d588cdd74e0e076d3b3 | refs/heads/master | 2021-03-19T18:09:24.245106 | 2017-11-03T10:40:00 | 2017-11-03T19:04:25 | 102,144,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | def update_parameters(parameters, grads, learning_rate = 1.2):
"""
Updates parameters using the gradient descent update rule given above
Arguments:
parameters -- python dictionary containing your parameters
grads -- python dictionary containing your gradients
Returns:
parameters ... | [
"vedarth.sharma@gmail.com"
] | vedarth.sharma@gmail.com |
08feceffad3c98bef8cebe430c67964c01a9c6b5 | e89b2b0da4d5d64ff697328b9d9e2d4e5f6d704e | /Db/Parser/UsuarioParser.py | 7d3fdc20ba2c2d23dcca567f7c2fb9230d5b3bb7 | [] | no_license | rafaeldornelles/pythonGUI | d6ff66bef9038a3220df567ae4ac03e79ca996c3 | 42382048dcaaffc612dccf03005f52bcfbcd0099 | refs/heads/master | 2022-07-29T18:19:53.270603 | 2020-05-16T14:23:15 | 2020-05-16T14:23:15 | 263,752,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from typing import Tuple, List
from Model.Usuario import Usuario
class UsuarioParser:
@staticmethod
def toUsuario(lista:List[Tuple]) -> List[Usuario]:
usuarios = []
for tupla in lista:
id = tupla[0]
nome = tupla[1]
usuario = Usuario(nome, id)
u... | [
"rafafd@hotmail.com"
] | rafafd@hotmail.com |
15a028c91f53835f4b343ea7425d4e20c639cb9d | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs_with_max_replays_5/interreplay_106_l_4/interactive_replay_config.py | 6f2cfeb97d82fa75d61d3f7f457edfa22f7668a6 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
d234cbff491086d8a2a9773b64f34db420ba10c0 | 75f03332e62653699b062a29aff5dd6367c0878e | /Plugins/infoGather/subdomain/othersApiSubdomains/othersApiSubdomains.py | e3869527ae1cfed55ea79f3cde9bc07bd6fc8219 | [] | no_license | ZKME/ShuiZe_0x727 | 1815e1dbe182bb38ff9bfa52d9761ed252a69463 | bbeaf5f8cd726b6a4e866813e9d002423ecfef8c | refs/heads/master | 2023-08-19T13:04:39.817397 | 2021-10-18T05:41:25 | 2021-10-18T05:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,480 | py | import requests
import configparser
import json
import re
import cloudscraper
import json
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
TIMEOUT = 10
# virustotal api 查询结果,返回json格式数据
def virustotal_api():
print('Load Virus... | [
"ske@github.com"
] | ske@github.com |
70a9b590c18dffa9c90b8bc72a254048d643e5be | 49838f737cdb8f4c7065edc7e275374f625042ef | /radDistFunc.py | 61b3d761a814c9505b3e6bca83e897ec2a06ae85 | [] | no_license | gbonnanzio/SummerScholarsTraining2020 | 598de86007c5b4f40c2d8ef1a90ee581e41bf44f | cd8ecc6e07efe9569d06c3e07f1ecf0b9fc41542 | refs/heads/master | 2022-11-09T17:26:53.440653 | 2020-06-15T13:43:12 | 2020-06-15T13:43:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import numpy as np
import matplotlib.pyplot as plt
import math
def radialDistFun(binSize):
radialFreqFile = open('/Users/gbonn/Summer_Research_2020/lammps_tut/radialDistFun.txt','r')
data = np.loadtxt(radialFreqFile)
allRad = data[:,0]
allCts = data[:,1]
#print(len(allRad))
#print(len(allCts))
... | [
"gbonnanzio@gmail.com"
] | gbonnanzio@gmail.com |
970f5a23bdfc872d4583272bcf1f1cde513713fe | a8062308fb3bf6c8952257504a50c3e97d801294 | /test/test_1567_maximum_length_of_subarray_with_positive_product.py | be383471a80f55305d5a81b2bb7181ca2e4f326f | [] | no_license | wan-catherine/Leetcode | 650d697a873ad23c0b64d08ad525bf9fcdb62b1b | 238995bd23c8a6c40c6035890e94baa2473d4bbc | refs/heads/master | 2023-09-01T00:56:27.677230 | 2023-08-31T00:49:31 | 2023-08-31T00:49:31 | 143,770,000 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | from unittest import TestCase
from problems.N1567_Maximum_Length_Of_Subarray_With_Positive_Product import Solution
class TestSolution(TestCase):
def test_getMaxLen(self):
self.assertEqual(4, Solution().getMaxLen([1, -2, -3, 4]))
def test_getMaxLen_1(self):
nums = [0,1,-2,-3,-4]
self.as... | [
"rarry2012@gmail.com"
] | rarry2012@gmail.com |
13588dbb07674533201d714cb77cf945cc3d8174 | 78ef88abf898d5a3e67c18fb3c01af4f2062d2ea | /process_5ch_data.py | f74614f729180a689b47a7f50b64bc2eaacf6a65 | [] | no_license | Yumenoshima/skt-5ch-tools | bc0b701ff21e698f432acbbdffd484915114638f | 13401ebfa219943ce1247e1a2ab8e0e0403c68c4 | refs/heads/master | 2021-05-17T15:18:31.113063 | 2020-03-28T16:39:10 | 2020-03-28T16:39:10 | 250,840,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | import csv
import pprint
import datetime
with open('5ch_data.csv') as f:
reader = csv.reader(f)
for row in reader:
lists = [row for row in reader]
msg = ""
msg += "[\n"
for l in lists:
msg += "["
msg += "\"\","
# id1
msg += "\"" + str(l[0]) + "\","
# id2
msg += "\"" + str(l[0]... | [
"skt.tofuya@gmail.com"
] | skt.tofuya@gmail.com |
76ac75eed9abdf78fe3bc28b5b9a868fecb6202e | 9155c0a40e0bf4c176bebdeb45bafcebeef33fb4 | /bert_classification/bert_preprocessing.py | b312be4309303041cf5442fec0d9afbc962a086e | [] | no_license | musicjae/korean_sentiment_analysis | 7947228f521012b7809d1327bfed38f1fcbd7aa8 | 3eb5f6b0b2b01a081289a2c374fd86dd8db57851 | refs/heads/master | 2023-03-08T16:34:11.139358 | 2021-02-26T09:11:13 | 2021-02-26T09:11:13 | 336,160,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,594 | py | from keras.preprocessing.sequence import pad_sequences
from transformers import BertTokenizer
from sklearn.model_selection import train_test_split
tokenizer = BertTokenizer.from_pretrained('bert-base-multilingual-cased', do_lower_case=False)
def preprocess_fn(dt,mode='train'):
TRAIN_MAXLEN = 128
TEST_MAXLEN ... | [
"66242400+musicjae@users.noreply.github.com"
] | 66242400+musicjae@users.noreply.github.com |
7bd8955a710a3b787e2a4d8c5723e6617742a484 | fdf3f968b738082391a1a8d412343080d734497f | /l10n_ec_withdrawing/report/report_move.py | ada6d5a1c04e2e16a79dd427c2fde3e10aab5de7 | [] | no_license | cholitoecuatoriano/ODOO-Ecuador-v8 | e738936dda53bf5014246a49ce28f94a1dc9c7c2 | 535ae3f548267ba9594614d56fd1580735b98e14 | refs/heads/master | 2021-01-19T09:20:50.744456 | 2015-02-21T04:49:21 | 2015-02-21T04:49:21 | 50,364,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"marcelo.mora@accioma.com"
] | marcelo.mora@accioma.com |
3b3ffedb0a26a37b64ae6911117d444709c961dd | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/2742.py | 11f9b2447b2a937fc8b101e3bde6e62529371e24 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | def main(x):
result='Draw'
for i in range(0,4):
if x[i][0]!='.' and x[i][0]!='T':
flag=x[i][0]
else:
continue
count=0
for j in range(0,4):
if x[i][j]==flag or x[i][j]=='T':
count+=1
else:
break
if count==4:
result=flag+' won'
count=0
for i in range(0,4):
i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f04976f5f4a46e8e91e562dbb0b080231863850a | daadb1b958f5c9405cb2e9522e38194f0912d80a | /Scripts/insertOldCursorSimple.py | acbd7bc287dc97f394808492a5f5e778aaf2344b | [] | no_license | KonchZa100/ArcpyProject | 6b6bdd2eb68c5bcb422267dc0fc485870c840738 | 009fa8496850832415181072d2c130804b3f5b15 | refs/heads/master | 2020-05-25T07:25:46.552412 | 2019-05-23T22:34:47 | 2019-05-23T22:34:47 | 187,684,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | #add new field in feature class
import arcpy
# Create insert cursor for table
fc = r'F:\Demidov\PythEveryone\PyCharmProject\Lesson3\USA.gdb\CitiesCopy2'
rows = arcpy.InsertCursor(fc)
# Create 25 new rows. Set the initial row ID and distance values
for x in xrange(1, 26):
row = rows.newRow()
row.setValue("UIDE... | [
"radionigor11@gmail.com"
] | radionigor11@gmail.com |
b18161e53e20d054e037ae498d8a13d10251da9f | 5549f66ba3c76461a9f02e7c86b2300b6caa854e | /package_management/package_management/doctype/scheduled_job_log/test_scheduled_job_log.py | f44d3c31c23196e725f6f77a9636d0e1f4b5bccb | [
"Apache-2.0"
] | permissive | Islammoustafa95/package_management | 17df6c46a94c038bfdfaebe89a18e32f987fd90f | 0b609c37a2bedb5c462d80d0d83f9f3ccf5275e7 | refs/heads/master | 2022-12-30T14:03:52.753030 | 2020-10-19T23:16:30 | 2020-10-19T23:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Lintec Tecnología and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestScheduledJobLog(unittest.TestCase):
pass
| [
"graulopezjavier@gmail.com"
] | graulopezjavier@gmail.com |
059406c3a6505c171156ef98fa09d4509e2bfe85 | 66738cf02020d979410bf65be524ed9bb622e7c5 | /homework/day0214/homework02.py | 1fab74d3a284ddda1f80f9403c3284315061adc7 | [] | no_license | Liu-Zhijuan-0313/pythonAdvance | 882a2c19cf611f068e4549a8b06bdfd0036d3624 | e5b794f8d0fa0da5465fe123ac179ac09d62cf24 | refs/heads/master | 2020-04-22T09:15:57.963165 | 2019-02-23T08:02:49 | 2019-02-23T08:02:49 | 170,261,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,326 | py | # 2.实现需求:给订单列表,用户余额两个函数添加装饰函数,能够完成权限验证功能
# 1.原始
# def checkuser():
# username = input("请输入用户名:")
# if username == "lzj":
# print("登录成功")
# showlist()
# showmoney()
# else:
# print("未授权,登录失败")
#
#
# def showlist():
# print("订单列表")
# def showmoney():
# print("用户余额")
# ... | [
"1602176692@qq.com"
] | 1602176692@qq.com |
6f9b6bce9f6cbc80ce6632692d605eb1d16b944d | f25142dfa39fd5792abfc9746d4e4452908fa612 | /myenv/bin/django-admin.py | 63958564113cd6f4e8cb70986b123f911c4b3e3e | [] | no_license | JuliaKramareva/Django_blog | a924098802a95a9687282d0f6a360c85f5c49b2f | 011842bce25ac463fd7081313b1fd41bcc1dbc97 | refs/heads/master | 2020-04-11T05:25:15.814560 | 2018-12-19T04:19:35 | 2018-12-19T04:19:35 | 161,549,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | #!/home/julia/PycharmProjects/NewPr/myenv/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"forjobonly100@gmail.com"
] | forjobonly100@gmail.com |
c9549c54c0b1fee378395e9a898c67bd4526f90f | 8456a7869b6bd9913c195e840c58069e1e0cd9a4 | /test/newtest.py | ee550f51190e8fe0e5748b82ac45ed8054cdd8ce | [] | no_license | hazra1991/florexa | dd1d814315fe8391fa138b90d38dd29b52c39d81 | 235af4a9b5029adce3fa80d6e21dd22189a0091f | refs/heads/master | 2023-01-23T21:54:47.372759 | 2020-11-19T05:55:33 | 2020-11-19T05:55:33 | 294,466,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from testing import myclass
class seconclass(myclass):
def fun(self):
pass
| [
"abhishekhazra007@gmail.com"
] | abhishekhazra007@gmail.com |
fea4f6f8d0ab5ce23d28edba69f6ef51f9911fa3 | 50c14feef077d97bceba2a8aee6af60091d369db | /congrads/conmap.py | 5127c5eee7fc1082562616b6750918d1b5084cfe | [
"BSD-3-Clause"
] | permissive | kristianeschenburg/congrads | 0d2ea92a521c88c752d98f5d9dfff2f8b6fe0957 | ef5f315302e9801b202e0c08b396c3f6cdbe49d9 | refs/heads/master | 2020-04-17T03:24:39.933567 | 2020-03-27T18:58:29 | 2020-03-27T18:58:29 | 166,181,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,237 | py | # usage: conmap.py [-h] -i INFILES -r ROIFILE -m MASKFILE -o OUTDIR
# [--nmaps NMAPS] [--save_eta2 SAVE_ETA2] [--norm NORM_FLAG]
#
# Developed at DCCN (Donders Centre for Cognitive Neuroimaging), Donders Institute
# for Brain, Cognition and Behaviour. Radboud University, Nijmegen, The Netherlands
#
# A... | [
"keschenb@uw.edu"
] | keschenb@uw.edu |
5402e817cf2d7192c7cd3280dfcfac5646b86263 | c9f9f7a0a94362d4c34f97751fdbb6d9a78e3e32 | /models/wavenet.py | 38e4eeeb3101d9f7242509d2e6c765b87ed43eab | [
"MIT"
] | permissive | speakupai/speakupai-app | faac81e23613521c1e6d74e791b414e34266b309 | 48afbe051b4bcd9f9835a97b60880955a15e7009 | refs/heads/main | 2023-03-20T03:06:20.224850 | 2021-02-28T20:25:59 | 2021-02-28T20:25:59 | 343,203,175 | 1 | 0 | MIT | 2021-02-28T20:26:00 | 2021-02-28T20:06:28 | Python | UTF-8 | Python | false | false | 4,024 | py | import torch
import torch.nn as nn
from hparams import hparams as hp
class ResLayer(nn.Module):
def __init__(self, padding, dilation):
super(ResLayer, self).__init__()
self.conv_dilated = nn.Conv1d(in_channels=hp.model.wavenet.n_channels_dilated,
out_channels... | [
"liqiang.ye@sap.com"
] | liqiang.ye@sap.com |
0c89bf17194ea6dd838a3529710a10b4e7c6642d | 45348ec8aec9b272bd3e0357f2e261890cb12800 | /.vscode/Phase2/EP40.Assignment4.py | ef35e503fec0d4104878ce2d36bf4ea16a0342d2 | [] | no_license | golfdcd/pythonbasic | e276ba70efe02358256323d24c663bdca2f9c8a3 | d6c9348b42d0c4b207e2c34450f4870fbca1f9f0 | refs/heads/main | 2023-06-20T20:39:21.106773 | 2021-08-03T18:45:29 | 2021-08-03T18:45:29 | 387,477,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | #เรียงลำดับชื่อ
student=["สมพร","แก้ว","จอมขวัญ","อัมพร","ก้อง","กล้า"]
print(student)
student.sort()
print(student)
student.reverse()
print(student) | [
"68695900+golfdcd@users.noreply.github.com"
] | 68695900+golfdcd@users.noreply.github.com |
deef1f0a42bed082ef252ec24ee5a46c3a242cd6 | f47a380e2ff84d53b890095f935b713ddc0c985f | /Programming Fundamentals/Lab 4-6/domain/asdasd.py | 5eaf33a140e764f952222a6f93b347e5e9043811 | [] | no_license | crisnita/University | 155b1855e2cfc20ca9f25558c8a026e6a691817c | 30e22ffde3ea41c55eb8a4964c8e57041c734d57 | refs/heads/master | 2020-05-04T18:35:51.427652 | 2019-05-21T16:57:41 | 2019-05-21T16:57:41 | 179,354,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | '''
class Caine:
def __init__(self,id,nume,val):
self.__id = id
self.__nume = nume
self.__val = val
def getNume(self):
return self.__nume
def __eq__(self,other):
return self.__id == other.__id
'''
t = Test()
| [
"cristiannita99@yahoo.com"
] | cristiannita99@yahoo.com |
053462ec4a7e180cc789d1c4e57d7317a937c305 | de1d7a3d8f29f88cc81163daf13e689b6a40f059 | /email_messages/forms.py | 405125dc3385913d028d2a32af5fedf65de7a455 | [] | no_license | kelechi2020/golivecomptask | 764c8be7cdb760b492bbd203cb1831fd47ba9e0c | 76c2d3c1ad4830399be0bf41bb63731bc50fe5e6 | refs/heads/master | 2022-12-10T14:34:28.809502 | 2017-08-06T12:36:45 | 2017-08-06T12:36:45 | 98,848,170 | 0 | 0 | null | 2022-12-08T00:42:51 | 2017-07-31T04:30:17 | CSS | UTF-8 | Python | false | false | 985 | py | # -*- coding: UTF-8 -*-
from __future__ import unicode_literals
from django import forms
from django.utils.translation import ugettext, ugettext_lazy as _
from django.core.mail import send_mail
from django.contrib.auth.models import User
class MessageForm(forms.Form):
recipient = forms.ModelChoiceField(label=_("... | [
"egbosikelechi@gmail.com"
] | egbosikelechi@gmail.com |
7e36da02f43077977385bb14639121fc397fb63a | 1b3cfcb22323d6a1f516d6b4f86690ae7615e7e1 | /setCronJob.py | 765ba82d2581e2dad8a5737e1fd368e65d943ce0 | [] | no_license | kebab-mai-haddi/ElderlyCare | ed645c4b5837355ff2e21aabb670ebf8130f971d | 849aec13e9a9da38646e8d928dfc5ebfa1a1d059 | refs/heads/master | 2021-10-25T10:01:12.634779 | 2019-04-03T19:41:35 | 2019-04-03T19:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from crontab import CronTab
my_cron = CronTab(user='ubuntu')
for job in my_cron:
job.delete()
job = my_cron.new(command='python3 ~/twilioTwitter/server/cronJobber.py')
job.hour.every(1)
my_cron.write()
| [
"avi.srivastava254084@gmail.com"
] | avi.srivastava254084@gmail.com |
0bbb06dc8d7cbf276b4acee582f650109dd8b1fa | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/celery/2015/12/test_builtins.py | 73601734b9176fe303b39b5ab5d9b913e6298584 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 5,411 | py | from __future__ import absolute_import
from celery import group, chord
from celery.app import builtins
from celery.five import range
from celery.utils.functional import pass1
from celery.tests.case import AppCase, ContextMock, Mock, patch
class BuiltinsCase(AppCase):
def setup(self):
@self.app.task(sha... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
4cf7b86d002f9d94d117b274c9a47d2fd0dc6e12 | 743d1e35108932987cd6c451561dceb4a9bd93fa | /function/11_function_param_list.py | 80fa3083e64047dac42791b68c2035bbeb414d83 | [] | no_license | jun-young000/grammar-basic | bede88f8f1a4a85c1af8254b2d6b3e53ae1bbc1b | f0f0ce6b22bed8460162a9993551ebd2132bcf38 | refs/heads/main | 2023-07-07T07:36:52.560004 | 2021-08-10T12:27:56 | 2021-08-10T12:27:56 | 382,528,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # 11_function_param_list.py
# 함수에 리스트 전달하는 예제
#함수 이름 : show_names(names) :
#함수 기능 : 전달받은 변수의 값을 반복문을 활용해서 요소값으로 출력하시오
# 리스트가 전달된다고 가정
def show_names(names) :
for name in names :
print(name, end = ' ')
#함수 테스트
#리스트를 인수로 전달한 후 출력이 일어나는지 확인
names_list=['Kim','Lee','Park']
show_names(names_list) | [
"taropoint1@naver.com"
] | taropoint1@naver.com |
4a7fb043308f902dc0987a7c1592d7b9d2302b77 | 97aacb59699b7fb019694df8650d727201ed903e | /tools/read_yaml.py | 8c4e20884a7ab379a680dfbefecc639bc959373e | [] | no_license | shizhihui2019/hmtoutiao | c25eb4a6a6fca25a704ec2c508b8595033ec9949 | 965b7737aedbf57d2d831ad72346e39f8a7bd937 | refs/heads/master | 2020-12-09T03:19:19.626871 | 2020-01-11T13:01:13 | 2020-01-11T13:01:13 | 233,175,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import os
import yaml
from config import BASE_URL
print(BASE_URL)
def read_yaml(filename):
with open(BASE_URL+os.sep+"data"+os.sep+filename,"r",encoding="utf-8") as f:
arr = []
for data in yaml.load(f,Loader=yaml.FullLoader).values():
arr.append(tuple(data.values()))
return ar... | [
"1159122710@qq.com"
] | 1159122710@qq.com |
8bee8964808d885455365f8b02327ba324e41ac7 | 4bb479f80b5276dca6d72b2e6dfd492183e1e43c | /CORE/products/views.py | ae9d29f5fe30778e1c86054441cf1d894582b1ed | [] | no_license | doyinsayo/E-COMMERCE | a89e6bddabca76b63f99acfce8cc4a5d7458f5b9 | 38ffef0cff42c7f56ef8ce2ab7f172972c84ba5f | refs/heads/master | 2023-01-11T21:47:42.878694 | 2020-11-11T15:00:27 | 2020-11-11T15:00:27 | 307,386,965 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | from django.shortcuts import render
from products.models import Product
from .filters import ProductFilter
from django.views.generic import ListView,DetailView
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.contrib.auth.mixins import LoginRequi... | [
"doyinsa01@gmail.com"
] | doyinsa01@gmail.com |
3161b1e5ec3cea9e9edbc8dcbf9dcf130c517955 | 59239e0c7d57786fcf52695c60e4ce44406883fa | /coffeed/settings.py | c3233940a756b56a618c9a19904ba583f5c38530 | [] | no_license | Ninjahamster611/Coffeed | 6ec7030c8408e47fda8855371e315e6d0b4b1cbb | e05232d14a31d9bc3b8b3ed10ea1623f38f774ea | refs/heads/master | 2021-01-10T20:24:58.472882 | 2015-06-10T03:57:44 | 2015-06-10T03:57:44 | 37,173,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,817 | py | """
Django settings for coffeed project.
Generated by 'django-admin startproject' using Django 1.8.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.8/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.8/ref/settings/
"""
# Build path... | [
"Nicky@Nicholass-MacBook-Pro.local"
] | Nicky@Nicholass-MacBook-Pro.local |
2366e5196ac2d79d050c2b029109a525ca09a921 | 51e8cf111ba3764fa1dfac9759110e3fe8fe644c | /E2E/MTAF/Tests/UIDataDrivenProcesses/Test_SystemConfig.py | f82c3d239bc82e0dfec8c193ee1c987a09c52da4 | [] | no_license | gurvinder13389/PythonFull | c0ed25e0a5f689afe4669d2718f00aec554e4aeb | 719e065e56ad011b1b3ff51d9f10e6276580eca7 | refs/heads/master | 2020-12-23T21:18:39.651012 | 2020-01-30T18:25:12 | 2020-01-30T18:25:12 | 237,276,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,562 | py | import pytest
from MTAF.Pages.ControlsPage import ControlsPage
from MTAF.Pages.HomePage import HomePage
from MTAF.Pages.SystemDatePage import SystemDatePage
from MTAF.ReusableFunctions import globalVar, reportFact
from MTAF.ReusableFunctions.DriverFunctions import DriverFunctions
class Test_SystemConfig:
@pytest.... | [
"Gurvinder122724@exlservice.com"
] | Gurvinder122724@exlservice.com |
d0c3bd3d778e8c722d0034f32411f2807179fe54 | aec28a032dd5788d9201d6325f2efa285116696e | /snake_iterator/t2d.py | cd291e17c7b793521c037741410e3ab47419c48d | [] | no_license | pletzer/pyterp_tests | 346addfe89ff14613e986ca2b9a14206f9b41d45 | 56be0634d8f7402ce5322a6a67c1843a593d31de | refs/heads/master | 2020-05-29T08:50:40.072549 | 2017-07-20T03:23:34 | 2017-07-20T03:23:34 | 69,289,048 | 1 | 3 | null | 2017-03-22T19:15:02 | 2016-09-26T20:15:44 | Python | UTF-8 | Python | false | false | 268 | py | n0, n1 = 3, 4
inds = []
for j in range(n0):
for i in range(n1):
indexFlat = n1*j + i
indexSnake = n1*j + (1 - j%2)*i + (n1 - 1 - i)*(j%2)
inds.append(indexSnake)
print('indexFlat = {} indexSnake = {}'.format(indexFlat, indexSnake))
inds.sort()
print(inds)
| [
"alexander@gokliya.net"
] | alexander@gokliya.net |
2013aae7f680284389a15c3a1658ab208fb3d02d | 95a5eb25fc760b221675e41f4837552363cd13d8 | /Twitter Analytics/q3 ETL/reducer.py | 114f7fe1f8d4e118eb59d1dbbf260f50d3de4063 | [] | no_license | SilunWang/CloudComputing | d1b4961d65c12a2c72c0bba7a3dd1df7e4794083 | fd88f084c16d9ca41b95b931004d9dc1e52c0ba0 | refs/heads/master | 2021-01-17T18:15:57.334770 | 2016-01-15T21:47:03 | 2016-01-15T21:47:03 | 49,746,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import time
import urllib2
import re
import json
def generate_afinn_list():
afinn_file = urllib2.urlopen("https://cmucc-datasets.s3.amazonaws.com/15619/f15/afinn.txt").read()
afinn = dict()
lines = afinn_file.split('\n')
for line in lines:
l = line.strip().spl... | [
"silunw@andrew.cmu.edu"
] | silunw@andrew.cmu.edu |
826e0cec2f2c532e1a1a11b0b59549a07ebdb131 | 924814aef07d17e10461ed2da54e935ea40c0456 | /links2markdown/links2markdown.py | 67b641d2f1aa7c7e6e21061f024b545880499be3 | [
"WTFPL",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | hydrargyrum/attic | edd7f302e273cd7e762c8bd8efd365ac4cd24aa1 | bf90a01ddaeb505b783ec3853c46aaaa0aa51304 | refs/heads/master | 2023-09-01T08:11:13.126290 | 2023-08-27T13:06:55 | 2023-08-27T13:08:09 | 13,541,344 | 18 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | #!/usr/bin/env python3
# SPDX-License-Identifier: WTFPL
import argparse
import re
import signal
import sys
from html.parser import HTMLParser
import requests
LINK_RE = re.compile(r"""https?://[^])'">\s]+""")
class TitleFetchParser(HTMLParser):
def __init__(self, *args, **kwargs):
super().__init__(*arg... | [
"dev@indigo.re"
] | dev@indigo.re |
db872567ebc8b05adb69ce5d497c10e5c4f50411 | 9fc3345577554c0f98f35468b21324f31ff9baa0 | /tests_and_misc/test_IKPy.py | 44075a8eedc2c8759236b6645b55c265242b422d | [] | no_license | MeCopyAndPaste/Dipl | 042a731b4e733ad9b532f6240e0e379442803e27 | cedd36f76cef1522cf76ffc6629b6710883d4c01 | refs/heads/main | 2023-06-22T06:23:30.253792 | 2021-07-16T11:01:57 | 2021-07-16T11:01:57 | 370,153,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,714 | py | #!/usr/bin/env python
from tf.transformations import euler_from_quaternion, quaternion_from_euler
import rospy
from geometry_msgs.msg import Pose
import math
import matplotlib.pyplot as plt
from trajectory_msgs.msg import JointTrajectoryPoint
from trajectory_msgs.msg import JointTrajectory
from geometry_msgs.msg impor... | [
"noreply@github.com"
] | noreply@github.com |
1ab64f69e6f1866e7fe38b9b0b2beea2f220e56f | e3f40e5d455eba5844da00846c5fdb519ff33230 | /Code/02_Modeling/03_ModelEvaluation/4_b_Test_Model_trained_on_Google_News_Embeddings.py | 6fafa1f0b35cbfc1c571a5986f0d31bdf6c7e0b0 | [] | no_license | CortanaAnalyticsGallery-Int/nertestproject1 | 397c479ff4afc12f0155594db0019a74021c4108 | f19a71ef15f45bab37c643a963484d26fb755e3d | refs/heads/master | 2021-06-25T14:02:14.433228 | 2017-09-13T23:44:16 | 2017-09-13T23:44:16 | 103,462,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,650 | py |
# coding: utf-8
# ## Testing the Neural Entity Detector trained using Google News Word Embeddings
# #### Download Google News vectors from <a href = "https://drive.google.com/file/d/0B7XkCwpI5KDYNlNUTTlSS21pQmM/edit"> here</a>
# #### Extract and move them
# In[1]:
get_ipython().system(u'cp "Location of the vectors... | [
"deguhath@microsoft.com"
] | deguhath@microsoft.com |
b2e6507f7cbc0024a8361d9508c6c4dc5de947ec | 3a3533b16b54d42d6889c490224345ca985bef74 | /account_loewie/stock_loewie.py | 30917e56bf0b12bb40ff4b547bbe9fbb910738b7 | [
"Apache-2.0"
] | permissive | lester-lees/extra_addons_hk | 52916ac6858d4b4484bd137b55268c7d5de177d0 | edd2c2595146bc9c99b75a2d0831a93f940fa55c | refs/heads/master | 2021-01-06T20:43:33.448307 | 2019-03-28T06:46:17 | 2019-03-28T06:46:17 | 99,546,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,228 | py | # -*- coding: utf-8 -*-
from openerp.osv import fields, osv
import logging
_logger = logging.getLogger(__name__)
class stock_move(osv.osv):
_inherit = "stock.move"
_order = 'id , date_expected desc'
def _get_sale_order_line(self, cr, uid, ids, field_name, arg, context=None):
result = {}
... | [
"346994202@qq.com"
] | 346994202@qq.com |
118cb1dba3596156dd33c77edf3e0cdaa59c58e9 | 98069a1eb0234007543c1346329383b3f0952021 | /zdiscord/service/integration/chat/discord/macros/Giphy.py | e974cecaa069acaaa30cc06c6ca277e89268accf | [
"MIT"
] | permissive | xxdunedainxx/zdiscord | e659cc49a45361004424e9c6d44bbbf00e164d50 | e79039621969fd7a2987ccac4e8d6fcff11ee754 | refs/heads/master | 2023-03-07T03:33:40.399291 | 2020-08-17T17:01:12 | 2020-08-17T17:01:12 | 269,732,680 | 0 | 0 | MIT | 2020-08-17T05:29:52 | 2020-06-05T18:12:58 | Python | UTF-8 | Python | false | false | 304 | py | from zdiscord.service.ServiceFactory import ServiceFactory
from zdiscord.service.messaging.Events import IEvent
async def get_giphy_and_send_it(query: str, event: IEvent):
giphy: str = ServiceFactory.SERVICES['giphy'].get_giphy(query)
await event.context['message_object'].channel.send(giphy)
| [
"zrmmaster92@gmail.com"
] | zrmmaster92@gmail.com |
6abfa5569f4b8792c15b52354ad9c3b49f757c19 | bc7bafde3dc21de3bfbf7af4215df621627b7aa2 | /objects/NeuralNet.py | 1ec8c10a1c4e98a2fc8b8e22f4bcb805acfec430 | [] | no_license | ALLYOURSR/oag_int_python | 623f65d9d93143e781f53e703d5b4cd7eefdd27f | 75acf6f0f6a4c86eb007fa3a5db5665f8eafddc2 | refs/heads/master | 2020-04-11T11:28:04.113673 | 2019-02-06T01:10:54 | 2019-02-06T01:10:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | import tensorflow as tf
class NeuralNet:
def __init__(self, input_placeholder, output_placeholder, linear_output_layer, error_tensor, train_tensor, summaries, graph, scope):
self.input_placeholder = input_placeholder
self.output_placeholder = output_placeholder
self.error_tensor = error_ten... | [
"ishtaygrud@hotmail.com"
] | ishtaygrud@hotmail.com |
689c4a2a4fbcae5c4efd6838dbe43bd9740fbf9f | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_1/vrmnic005/question3.py | 1c61ad08760818ce92e029b1eb28c9a08c1f20c6 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | name = input("Enter first name: \n")
surname = input("Enter last name: \n")
money = eval(input("Enter sum of money in USD: \n"))
country = input("Enter country name: \n")
money30 = money*(30/100)
print ()
print ("Dearest ", name,
"\nIt is with a heavy heart that I inform you of the death of my father,\n"
"Gener... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
7ac74ec12be4786098c593c32e327fed2de493b2 | a37bb8bb61bc156f0a8e85ea5a3018d6c1e8a7e3 | /src/atbBTC.py | 619eb348ac1893def550991d83eeb6214071febb | [
"MIT"
] | permissive | noisemaster/AdamTestBot | 0a0aca8be6874de47af2cb8b4ef760f31c0dbb57 | 44086221b18df342a241314de098e46bc275d991 | refs/heads/master | 2021-01-15T09:43:12.623317 | 2016-10-21T19:46:26 | 2016-10-21T19:46:26 | 58,100,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36,309 | py | #all the stuff related to Bot₵oin
import requests
import time
import sys
import datetime
import csv
import random
import re
import json
import traceback
import os
import telegram
from pydblite import Base #The PyDbLite stuff
import builtins
from . import atbSendFunctions
from . import atbMiscFunction... | [
"adam@DESKTOP-TA850RC.localdomain"
] | adam@DESKTOP-TA850RC.localdomain |
832db416f029c00afd8f1228a1537880d76e80d5 | 45777ea0510344344fb6f7ce15bf18ed8b6f4c32 | /all_white.py | 7c152f7a232ca7ca27f36717888c065090d7b056 | [] | no_license | prankymat/All-White-solution-finder | dfaa7587cefd4319decd890ca9209ddca826d246 | de5880f614e69e78ceacbcc0f8856368ee583095 | refs/heads/master | 2020-12-24T10:51:50.634014 | 2015-11-04T22:30:56 | 2015-11-04T22:30:56 | 32,658,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | from operator import itemgetter
import string
DIRECTIONS = [(0, -1), (-1, 0), (0, 1), (1, 0)]
class AllWhiteCalc:
def __init__(self):
self.marked = []
self.board = []
self.symbol = dict()
def find_neighbours(self, coordinate):
neighbours = []
for d in DIRECTIONS:
... | [
"9029537@gmail.com"
] | 9029537@gmail.com |
5330f052d2dd394451f49779af973f7ceeeaf5ec | 658773cf775fd97c3cec3aca5f559500dec021bc | /modules/s3/s3track.py | ad41a55d76ce313b2884a60b4fc1286e1f01ef89 | [
"MIT"
] | permissive | smeissner/ifrc | f3795474219d20fba5c68192f5d9b90006288e3e | 505eb6ffbb8fc32fdbbe63fdab4c19d87e53ca86 | refs/heads/master | 2021-01-18T10:43:55.847965 | 2012-10-07T22:43:15 | 2012-10-07T22:43:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,525 | py | # -*- coding: utf-8 -*-
""" Simple Generic Location Tracking System
@copyright: 2011-12 (c) Sahana Software Foundation
@license: MIT
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the So... | [
"fran@aidiq.com"
] | fran@aidiq.com |
ffeaa10ea44ddc6b3bde6930c5e81f3d5be7a588 | 66abc05ed47629d72d03ca6db23f5f34a3ddcdb6 | /mysite/settings.py | a9e65b14dbe15f03e6e3d7c4eb1d8a771d62628e | [] | no_license | vvdjyk/my-first-blog | 8e6e4d14a773069d27992a44fc5a7d5df408b435 | 4c9193d570fe708d72dd102e58c699820b05c3c9 | refs/heads/master | 2022-01-12T05:19:11.043297 | 2018-09-11T05:55:24 | 2018-09-11T05:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"jinyoungkim0828@gmail.com"
] | jinyoungkim0828@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.