blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6644f5d39c16c8085f33054bbbdde0e525062265 | 3c2323929499a4d81adada6f60ee64bde1e86cb2 | /Simple_Backpropagation_Program/pytorch/views.py | ad9420f44e05bb17b3ef53f819f0390a0c1d09d5 | [] | no_license | GeonwooVincentKim/Backpropagation_Pytorch_Django | 8ba22bb065aca35fed114420b749bb9f0a383688 | 41df659956e5e4e8126b272bd4f5053cdeb30663 | refs/heads/master | 2022-11-22T06:44:27.901139 | 2020-07-16T14:01:06 | 2020-07-16T14:01:06 | 273,230,382 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'index.html', {})
def sub(request):
# if request.method == 'POST':
# """
# Write down some code which is related to
# the number that you input.
# """
# """
# ... | [
"kdsnop@gmail.com"
] | kdsnop@gmail.com |
d785c9b583818c160e60f5526e855a49a12bea8d | ae240e884e9d79243d7a9e338e77e5ee70a8bfd1 | /secuity/bijective-function.py | 79356c9da633665f8a04cdc78641990f3284f58d | [] | no_license | roshnet/HackerRank | b35bbab3f03ff37cd29b257822b00b8c2e81a189 | 9a90adac9cd6000139ca4801445c4fd3c640d545 | refs/heads/master | 2020-03-29T06:10:43.496703 | 2018-09-20T15:54:31 | 2018-09-20T15:54:31 | 149,612,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py |
def all_equal(arr, value):
n = len(arr)
passes = 0
for i in range(n - 1):
if arr[i] != arr[i+1]:
return False
elif arr[i] == value:
passes = 1
else:
passes = 0
return False
# till now, all n-1 elements are equal to value..
# ch... | [
"noreply@github.com"
] | roshnet.noreply@github.com |
07db860fc6de84b931e4b270036c770e99f84c94 | 89b6997b24e404c176358073626a8bfad7bcdb8e | /.history/chat/consumers_20210427011737.py | 8bc854916d684ee4e430ad24a1f2c472b16dc6f0 | [] | no_license | mohamedhawas123/Education-platform-django | 513e64ac112880385402ce609077796578b4e9ee | 7b83e66bba66b8b2b1a007f5818a534653e6abfb | refs/heads/main | 2023-07-18T16:19:52.177886 | 2021-09-24T12:04:09 | 2021-09-24T12:04:09 | 352,306,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | import json
from channels.generic.websocket import WebsocketConsumer
| [
"mohamedhawas123@gmail.com"
] | mohamedhawas123@gmail.com |
d30dbb2ecc229ae57a7dff9c32a62233067b88a5 | 89ca99b517c10494f769cbda756bf0c8e00167fc | /src/sim/jvision_pb/keyvalue_pb2.py | 38d5cfa3bc751374df88e9bf27d9deb2b4a0eab2 | [] | no_license | nkumar43212/jvsim | fad56e25ae5eb8e8d0ad1272dacd8a25cb7e88ec | 7663c493cefcb7ffb04321226d0534be5711194e | refs/heads/master | 2021-01-17T11:49:10.052784 | 2016-07-28T22:32:56 | 2016-07-28T22:32:56 | 51,335,614 | 4 | 12 | null | 2018-08-07T02:11:14 | 2016-02-08T23:42:49 | C++ | UTF-8 | Python | false | true | 4,680 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: keyvalue.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.pro... | [
"kumarn@juniper.net"
] | kumarn@juniper.net |
68e429904fe72245794c1b21b63e11df67f9ce97 | cb13037cdbd3e0ab6108670108e9497cc1e2a5a7 | /0.leetcode/0.基本的算法/4.排序/1.冒泡排序Bubblesort.py | 87ddbad13767a3782c1a06daaf71a3b8bf67122c | [] | no_license | GMwang550146647/network | 390fe0d1c72dcaca8b6d6dd1307adca0d56b55ce | 576de9b993f7763789d25a995702b40c9bc6fa57 | refs/heads/master | 2023-06-15T04:42:54.306077 | 2021-07-12T06:06:02 | 2021-07-12T06:06:02 | 315,488,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | '''
1.冒泡排序:
把最大的数一个一个地丢到最前面(期间对比的时候,见到比自己小的就交换相邻两个)
优点:
在非顺序链表都可以用
'''
def bubbleSort(arr):
for i in range(len(arr)-1,0,-1):
for j in range(1,i+1):
if arr[j-1]>arr[j]:
arr[j],arr[j-1]=arr[j-1],arr[j]
return arr
def bubbleSortModified(arr):
for i in range(len(arr)-1,0,-1)... | [
"gmwang_global@qq.com"
] | gmwang_global@qq.com |
349ea6ce098e264d8c03d7b91b59e71dad2c0350 | d15eb2285895469a452867f76b033d0d64a4af5c | /Old_scripts_delete_20220804/Scripts/measurements/vna_autler_townes.py | 7d51bf373377dba1857bae3f809c5d6dc426d33d | [] | no_license | MRitter95/Kollar-Lab | 45ac62ed7805ad9faeeb33b54be50f39950f3b2c | c905725c43af6a49fe5bb2a994d5180f2ba469c2 | refs/heads/master | 2023-08-19T03:38:43.761313 | 2023-08-10T17:49:00 | 2023-08-10T17:49:00 | 236,054,959 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,356 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 8 18:31:45 2020
@author: Kollarlab
"""
import time
import os
import numpy as np
import matplotlib.pyplot as plt
import userfuncs
import plotting_tools as plots
def get_default_settings():
settings = {}
#Save location
settings['scanname'] = 'scanname... | [
"maritter@umd.edu"
] | maritter@umd.edu |
72f9a8aa6ffa67f07d79e64e1d54d6e39df82cf3 | 682f374456fc241d90d11b098ffa5920bde1e04d | /imgs/test_geometry/test_extrapolated_intersection/ah_test_line_line_intr_later.py | f7c4c2b02a2202e909806bb3a38caf918fcd56a8 | [
"MIT"
] | permissive | kgashok/pygorithm | eab6582126aeb561da1880787a44dd58598bee63 | e9afd6805e5b3adc5f362bc5ff1bf01e6ff88dd7 | refs/heads/master | 2021-09-09T23:39:45.935231 | 2021-09-08T15:34:01 | 2021-09-08T15:34:01 | 290,754,365 | 2 | 0 | MIT | 2020-08-27T11:12:32 | 2020-08-27T11:12:30 | null | UTF-8 | Python | false | false | 1,410 | py | from utils import create_newfig, create_moving_line, create_still_segment, run_or_export
func_code = 'ah'
func_name = 'test_line_line_intr_later'
def setup_fig01():
fig, ax, renderer = create_newfig('{}01'.format(func_code))
create_moving_line(fig, ax, renderer, (5, 4), (6, 3), (-2, -2), 'topright')
crea... | [
"mtimothy983@gmail.com"
] | mtimothy983@gmail.com |
3a907c358ef16c6b25e6cfc3950549464ea7c1b6 | 9965e8dffe094e5c82e0fb7656491f7a659bed28 | /hsvhist/extract_features_and_Indexing.py | f7bd280713054c9b115c952d26ade4334c2eb55a | [] | no_license | shukesu/XP | 1f59747376fb28e6403393fdfeb0c43bfb6c1cb1 | f58bc6ecae80212c6cc401c56855bcd6416fbc88 | refs/heads/master | 2020-03-06T18:31:15.349363 | 2018-04-24T14:24:01 | 2018-04-24T14:24:01 | 127,008,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | "CBIR(Content-Base Image Retrieval)--Extract Features and Indexing"
import color_descriptor
import argparse
import glob
import cv2
ap = argparse.ArgumentParser()
ap.add_argument("-d", "--dataset", required=True, help="Path to the directory that cntains the images to be indexed")
ap.add_argument("-i", "--index", requir... | [
"noreply@github.com"
] | shukesu.noreply@github.com |
72aa9c1bf64f5f4f9047020c38dd4282c7cf1b7c | 5cea0a771736a5018876591edb48d4815475364d | /Projects/migrations/0009_auto_20200818_1658.py | db238817c370a47afc65232c9b3101d0f6ad892b | [] | no_license | Jose-Velasco/cs-club-django | b6585446a0147471a261af29b58c63bfe473a3a2 | ff5562027762e46d40c04ca3ead53ccc2ae35291 | refs/heads/master | 2023-05-26T19:37:19.629594 | 2020-08-19T00:26:56 | 2020-08-19T00:26:56 | 195,765,212 | 0 | 1 | null | 2023-05-22T23:34:22 | 2019-07-08T08:05:03 | Python | UTF-8 | Python | false | false | 374 | py | # Generated by Django 2.2.4 on 2020-08-18 23:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Projects', '0008_auto_20200818_1655'),
]
operations = [
migrations.RenameField(
model_name='contactform',
old_name='hasBeenR... | [
"jose.juarez.velasco@gmail.com"
] | jose.juarez.velasco@gmail.com |
ff65e1e0c8f907b827c9cd8712f3c7cfe02e904c | c926ef1ad709ca98309186709a18898bf3701688 | /MIT_P10/server.py | 04e85801ebb61a7bd27857b2afc06ab5685a9522 | [
"MIT"
] | permissive | JialinC/xv6 | f877c8fe7f3b1a2b42ab9df0334abdfa89373ead | 5bd7294ec30d19c44c813b418c3ca1e97224628e | refs/heads/master | 2022-11-21T18:41:11.075118 | 2020-07-28T06:19:35 | 2020-07-28T06:19:35 | 268,158,669 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import socket
import sys
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
addr = ('localhost', int(sys.argv[1]))
print >>sys.stderr, 'listening on %s port %s' % addr
sock.bind(addr)
while True:
buf, raddr = sock.recvfrom(4096)
print >>sys.stderr, buf
if buf:
sent = sock.sendto(buf, raddr)
| [
"jialin@system76-pc.localdomain"
] | jialin@system76-pc.localdomain |
0c2dc8e32a64509a557a00e987cfc8a78b918cf1 | 69295fa0064b1496f5770c851d5add989a5bb8bc | /bin/checked-fftc-accuracy | 6df47cfd09742ac9fca6e0525b5331a36d47de6b | [
"MIT"
] | permissive | huonw/sisfft-py | 3ebaf6b40b753caac4827abf790855f665258ba2 | 3cf048022c6641a9c5d60b6db01734fa414e6d7b | refs/heads/master | 2023-01-06T14:41:20.958019 | 2016-05-31T05:44:05 | 2016-05-31T05:44:05 | 60,028,580 | 5 | 1 | MIT | 2022-12-26T20:04:16 | 2016-05-30T17:46:58 | Python | UTF-8 | Python | false | false | 3,332 | #!/usr/bin/env python
from __future__ import print_function
import sisfft
import argparse
import numpy
np = numpy
import sys
DEFAULT_REPEAT = 10
DEFAULT_LENGTH = '(2**x for x in range(1, 14))'
DEFAULT_ALPHA = 1e3
DEFAULT_LIMIT = 1e-10
def rel(x, y):
return np.abs(np.expm1(x - y))
def ranges(v):
return v.max... | [
"huonw@maths.usyd.edu.au"
] | huonw@maths.usyd.edu.au | |
5b31b66f750123829300588af08c4e00e0432925 | 22697cc13a40546ca67d4f30d106d88274804bbb | /cluster_for_weibo_data.py | ed2f36bdb43fdf243c943e6d133bdfd44ae46b5c | [] | no_license | vincenthuang1229/cluster_for_weibo_data | 7d92b18483114480441ea48a2730308d45eb8431 | 5c5376c5a69302e64f37cbf41e35e36e6e4f0818 | refs/heads/master | 2020-03-07T01:16:07.157090 | 2016-04-11T13:05:40 | 2016-04-11T13:05:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,208 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
from numpy import *
import math
import jieba
def loadWeiboData(fileName):
weiboData = []
i = 0
with open(fileName) as f:
for line in f:
#print line
i += 1
lineSplit = line.strip().split(',')
... | [
"abc1871450@163.com"
] | abc1871450@163.com |
e1cf471b0d6b5a2b75230406c676ccd15fbfeace | bdf3364eb293abcb02aca9b1594e7181ecbc651f | /net-diffusion-adaptive.py | 65f31bc4a1a5e75f3b1f64b68175d16f2c8cf170 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | hsayama/PyCX | f5ee2ec1d02b1ec7529725fc7c175b431a45ef06 | f61a56fcb5b79734216daf08203f7c08c9662dfb | refs/heads/master | 2023-03-16T20:59:55.706196 | 2023-03-08T15:19:38 | 2023-03-08T15:19:38 | 228,787,396 | 210 | 77 | NOASSERTION | 2023-01-17T14:32:30 | 2019-12-18T07:54:03 | Python | UTF-8 | Python | false | false | 1,472 | py | import pycxsimulator
from pylab import *
import networkx as nx
def initialize():
global g, nextg
g = nx.karate_club_graph()
for i, j in g.edges:
g.edges[i, j]['weight'] = 0.5
g.pos = nx.spring_layout(g)
for i in g.nodes:
g.nodes[i]['state'] = 1 if g.nodes[i]['club'] == 'Mr. Hi' els... | [
"noreply@github.com"
] | hsayama.noreply@github.com |
204487240a2d41647a0c34c703682a3d83e4c3d9 | 0f9356229ece68edec039b0ec626338355ba6f55 | /lib/core/enums.py | 48fa08cc9db5f98d5b77cb6df99b3d8f5ce597a4 | [] | no_license | HeartSleep/Shadow-Border | b7ba06eab213e36fb2b91b0391a2b364f94e3efd | 0548a83ba1e94f26efd6fa8c596ff42cb5849a7e | refs/heads/master | 2022-04-08T13:03:39.570875 | 2020-02-09T05:31:41 | 2020-02-09T05:31:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# project = https://github.com/fanxs-t/Shadow-Border
class CUSTOM_LOGGING:
SYSINFO = 9
SUCCESS = 8
ERROR = 7
WARNING = 6
| [
"tan.weixiu@outlook.com"
] | tan.weixiu@outlook.com |
5241322fc5a9b59e05984a280cf07e11a2302750 | 819e52d85d0eb5ce7a7545b27371b7ea931e7884 | /fix_scene_shaders_gui.py | d195a142cbd458fceba4935b23306704e60cdac9 | [
"MIT"
] | permissive | AndreySibiryakov/tools | 772a92d3837b49079726cbf595f5d2bdd5d9f16c | 2a78f3ebfac78841eb69b2aa771a2faa10b8d827 | refs/heads/master | 2021-01-15T08:14:07.191192 | 2019-12-06T09:04:12 | 2019-12-06T09:04:12 | 99,560,696 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,225 | py | import re
import os
import maya.cmds as cmds
import maya.mel as mel
def get_meshes():
'''Gets all the transform meshes node names from a scene
Returns:
list: all meshes in scene
'''
objects = cmds.ls('*', type='mesh')
meshes = cmds.listRelatives(objects, parent=True)
... | [
"noreply@github.com"
] | AndreySibiryakov.noreply@github.com |
bfde8700e2d3270e1f8eb1bb859935edf5db3bff | 9e3ffeffb98d881f4dee9fb81f2f058f48755fb3 | /unittest/testtask2.py | 8a1f1398578da32f11f98de8040d96511439a500 | [] | no_license | freesense/IFIAC | 32b642636d601fe0b136557be5eb8aa99af67a7e | d8ef65e4bd7b15aedaf9b6af36ecfed2d178a317 | refs/heads/master | 2020-04-26T16:34:00.528970 | 2019-03-04T06:05:45 | 2019-03-04T06:05:45 | 173,683,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | import time
from APP.invokerSHARE import TaskBase
class CTest1(TaskBase):
pass
idx = 2
b, c = None, 0
def testtask2(*a, **kw):
time.sleep(idx*60+59*2)
global b, c
c += 1
n = time.localtime()
if c == 1:
b = time.localtime()
else:
print idx+1, n, b, '% 3... | [
"freesense@126.com"
] | freesense@126.com |
c930ca2104aa8288425358d69ecbd3581df54105 | 78ba9cf8127630a731489c77e32a45f94bc65871 | /library/ix-dev/community/chia/migrations/migrate | 8f739ff4c45710b06a6069e44a16fe4d3c71d18c | [
"BSD-3-Clause"
] | permissive | truenas/charts | ba97b64975985619cfefe27f1b53abbb6efa7d7b | 2735b346592f817fdc568687a6f339b109cdb482 | refs/heads/master | 2023-08-31T22:14:21.054670 | 2023-08-31T07:26:04 | 2023-08-31T07:26:04 | 295,212,900 | 156 | 252 | BSD-3-Clause | 2023-09-14T18:47:59 | 2020-09-13T18:31:04 | Smarty | UTF-8 | Python | false | false | 708 | #!/usr/bin/python3
import json
import os
import sys
def migrate(values):
storageKey = 'chiaStorage'
storages = ['data', 'plots']
for storage in storages:
check_val = values.get(storageKey, {}).get(storage, {})
if not isinstance(check_val, dict) or not check_val or check_val.get('type', '... | [
"noreply@github.com"
] | truenas.noreply@github.com | |
a7cd21c1b64e44125460cfabf7a1036f6e792eff | 5761f160cdbd97b8c69601cd85bf41788b257ace | /Clases/TAREA_1/QUIZDanielAvila_hw1/integral.py | 15a32ba1e3ea388d16492f6169b0f02f2a5de178 | [] | no_license | daavera/METODOS | 3c63d7636ad880cad96cc6ef4f488c4e7663af58 | 775b47de08bf729e1388be46b61c5456f4524098 | refs/heads/master | 2020-12-02T05:24:41.789369 | 2017-07-30T18:00:34 | 2017-07-30T18:00:34 | 96,900,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import numpy as np
import matplotlib.pyplot as plt
def f(x):
return np.sin(x)
x = np.linspace(0,np.pi,1000)
y = f(x)
n_random = 10000
def integral(x,y,n_random):
y_rand = (np.random.rand(n_random) * (np.max(y)-np.min(y))) + np.min(y)
x_rand = (np.random.rand(n_random) * (np.max(x)-np.min(x))) + np.min(x)
delta ... | [
"da.avila@uniandes.edu.co"
] | da.avila@uniandes.edu.co |
3110be0789bcdd17dae6368e478eff526594e13b | 36cca47c3fa3a00f73fd4dd1ac375297f5c6d0a0 | /docs/conf.py | b7b7ac852b745ce03a6ba9fea10307b5dca628d3 | [
"MIT"
] | permissive | lugq1990/scikit-plot | 49f2adff7235ff5f7ab5d32053e9f3dc8aaa343a | c581bc590ad35e6bfe268a5073f60ec1e598c943 | refs/heads/master | 2022-02-14T03:22:57.896768 | 2019-07-08T09:55:24 | 2019-07-08T09:55:24 | 114,605,293 | 0 | 0 | MIT | 2018-12-04T07:01:26 | 2017-12-18T06:44:05 | Python | UTF-8 | Python | false | false | 4,881 | py | # -*- coding: utf-8 -*-
#
# Scikit-plot documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 12 17:56:21 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#... | [
"reii_nakano@yahoo.com"
] | reii_nakano@yahoo.com |
c68ce18e4ce9accdd1f8f3483b8c02924877afc6 | 5f375bc4daecac1ea67036d7fb9f1491a172f885 | /bitbucket/issue_comment.py | 2005dcaeb209515f72618a67ca267a0e1accf754 | [
"ISC"
] | permissive | goodtune/BitBucket-api | 33aa58c265eb65a351b0c400cef960c218311eaa | 7bcad56a135a8dffac138a1fe12373ea6bd0e675 | refs/heads/master | 2023-04-06T14:41:02.943659 | 2013-07-16T09:22:44 | 2013-07-16T09:22:44 | 11,445,517 | 0 | 0 | ISC | 2023-04-04T00:18:44 | 2013-07-16T09:20:43 | Python | UTF-8 | Python | false | false | 3,609 | py | # -*- coding: utf-8 -*-
URLS = {
# Issue comments
'GET_COMMENTS': 'repositories/%(username)s/%(repo_slug)s/issues/%(issue_id)s/comments/',
'GET_COMMENT': 'repositories/%(username)s/%(repo_slug)s/issues/%(issue_id)s/comments/%(comment_id)s/',
'CREATE_COMMENT': 'repositories/%(username)s/%(repo_slug)s/is... | [
"baptiste@smoothie-creative.com"
] | baptiste@smoothie-creative.com |
c0ca5a6f82956f92a7ef0182fded0c2af3d3ef8f | 392d918164b93f5fcee74b570928a28575f4d7e0 | /Fifa/Fifa/settings.py | fb0886bef1f295c9d4ce4e29cab08b79c6efcbe1 | [] | no_license | lenusca/FIFA | 1248bef5741ae35326dabed0a350bf4517d5ecde | f1d152663754ecd8c331d71a194215673bc75a5d | refs/heads/master | 2022-03-21T16:01:39.963732 | 2019-11-03T21:23:45 | 2019-11-03T21:23:45 | 213,355,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | """
Django settings for Fifa project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"helenamncardoso@gmail.com"
] | helenamncardoso@gmail.com |
b7684794f27be04b3fce498506f4aa79417899d1 | 81c4f1f3a363e6b1cb77a1faf7f7eaf96c30bf67 | /vae/src/modules/distributions.py | 0bd3e37371dbeb3db7cd2af7ac281d4b5988d829 | [
"MIT"
] | permissive | TangleSpace/DeepGenerativeModels | 320f8475613f7057fa30fa0a3968b2e12685e7c2 | c6924e91de475be36253f9f20b687d1e1c8b0dde | refs/heads/master | 2022-03-28T07:06:11.777236 | 2020-01-14T22:46:20 | 2020-01-14T22:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,710 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
import numpy as np
from src.utils import args
#####################
### HELPERS ###
#####################
def reparameterize(z_mean, z_log_var):
epsilon = torch.randn_like(z_mean)
return z_mean + tor... | [
"johngatop@gmail.com"
] | johngatop@gmail.com |
1b70f2c79a348180971c5ae664a3ee3a8482424a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03378/s251701721.py | 49de078c7467f51e9581f9eab691c6a075c1561c | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | n,m,s = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
low = 0
high = 0
for i in range(m):
if a[i] < s:
low += 1
else:
high += 1
print(min(low,high)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
333c75b551e4d62e7e80906e1b5ab7e2af0653cc | bd28f8a8dbcf7f2b4be3bcc0c0e656009191d379 | /predict_nn/ranlp/rsr_dev/mi/ian.py | 58b47a880118a587446b42c4ca6f575d9f0355ea | [
"MIT"
] | permissive | nicolay-r/attitudes-extraction-ds | e2e5f9218408514ca1f3eff5edf88771e2f368ee | 49a82843e6adbca35321aaaa08d05532e953a0fc | refs/heads/master | 2022-08-30T04:51:14.133899 | 2020-05-28T11:06:01 | 2020-05-28T11:06:01 | 197,908,649 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | #!/usr/bin/python
import sys
sys.path.append('../../../../')
from predict_nn.ranlp.rsr_dev.config import TEST_ON_EPOCHS, MI_CONTEXTS_PER_OPINION
from networks.ranlp.io_rsr_dev import RaNLPConfTaskRuSentRelWithDevIO
from networks.mimlre.base import MIMLRE
from networks.context.architectures.ian import IAN
from networks... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
07eb17285033c1e32f63c62d1bc2852e4964c4f9 | 1ec6cc75b884c31205f2edb4495d667742c01095 | /parse_workua.py | e9c89b9200e9ed8d3aea13a795a2a71b2c7ae4fe | [
"MIT"
] | permissive | miha-pavel/hillel_scr | bc4ececf5fdeefaa93adb693a33d75c2720fa9c3 | c176535d75c1ed2477394321d6552a790a6bb9cc | refs/heads/master | 2022-12-09T04:32:36.864579 | 2020-04-05T12:41:53 | 2020-04-05T12:41:53 | 251,305,308 | 0 | 0 | MIT | 2022-12-08T03:56:21 | 2020-03-30T12:58:47 | Python | UTF-8 | Python | false | false | 5,201 | py | import time
import json
import requests
import sqlite3
from user_agent import generate_user_agent
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as ... | [
"pavlom@oneplanetops.com"
] | pavlom@oneplanetops.com |
e5eaf4d0bc93e33a655e87b1d3d8dc906d2e7973 | 23414270f524b36972140bd9044300ada3a28136 | /消息认证算法实现/消息认证---CCM/CCM_ui.py | 31c27165f6d826985e072771e3fe2b4295f54124 | [] | no_license | Jing0607101510/CryptoAlgorithms | 421f463f5dc3e4701e8d1a5c7fbea6f772e92367 | a0a78b37b1fd07db75ea7e5ef88c2c9cfee95ced | refs/heads/master | 2021-10-09T06:57:25.105848 | 2018-12-23T06:46:20 | 2018-12-23T06:46:20 | 162,868,862 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,129 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'CCM.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form... | [
"1293521172@qq.com"
] | 1293521172@qq.com |
1746a184bbc6c7150a67150cd25059745e6018e1 | 89d7897bbae240871971538682b75b0a53efe4c7 | /data_process/view_data.py | 90d6145ad14399c847c05f186d3c0469600747b5 | [] | no_license | ahashisyuu/CAIL_SCM2019 | 5fc098ec4701276fa0272d649d474bbcb066bd64 | 092788e7c05d7738a6c8f8acb9d89594da634a01 | refs/heads/master | 2020-05-31T07:18:38.794183 | 2019-06-19T12:52:35 | 2019-06-19T12:52:35 | 190,162,484 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import json
def main():
data_file = "../data/input.txt"
with open(data_file, encoding='utf-8') as fr:
count = 0
for line in fr:
data_line = json.loads(line)
print(data_line["A"].split('\n')[2])
# print('\n\n')
print(data_line["B"].split('\n')[2])... | [
"1347324360@qq.com"
] | 1347324360@qq.com |
17c6671c419405c07d4edb4081bf917e3399a36e | 8aac5a3085d4a7fb1c61bb5ef80984e5bdd2bbef | /course_2_assessment_8/ac18_7_3.py | c362a5a149c0dc4a997de778795d715c6b65747d | [] | no_license | realyuyangyang/Python3Michigan | a932d3d237526f84fdbcdcc7b92412086f9c807f | 088244e7cc0e5d0270ab98fb7b5b10197d9f2d98 | refs/heads/master | 2023-08-29T22:47:10.947155 | 2021-11-12T13:22:08 | 2021-11-12T13:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # The dictionary, medals, shows the medal count for six countries during the Rio Olympics. Sort the country names so they
# appear alphabetically. Save this list to the variable alphabetical.
medals = {'Japan': 41, 'Russia': 56, 'South Korea': 21,
'United States': 121, 'Germany': 42, 'China': 70}
alphabeti... | [
"i@danchamorro.com"
] | i@danchamorro.com |
37fcce29634843a7c5c79899d2c6871a27f98257 | 3fb718b33d486d638402e5f5bb4eb028332bd54e | /Objects and Classes/Zoo.py | c657af3653914ff55c24c427eacb63f1fabf3133 | [] | no_license | lion963/SoftUni-Python-Fundamentals- | 1c0aced0d770d0f5d0a4977543e945576425aff1 | 25fca7f88513d9e9b9ceb2741d9cb3b3c067b97b | refs/heads/master | 2023-01-24T16:21:46.517847 | 2020-12-14T13:50:06 | 2020-12-14T13:50:06 | 297,916,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | class Zoo:
__animals = 0
def __init__(self, name):
self.name = name
self.mammals = []
self.fishes = []
self.birds = []
def add_animal(self, species, name):
if species == 'mammal':
self.mammals.append(name)
elif species == 'fish':
self... | [
"lion963@mail.bg"
] | lion963@mail.bg |
2bf9c0a0d2170b1cbd9e4cc23c65b29aced7fdfe | b3c41a006ee3863737c45a6928c630a886d59d01 | /mongoProj.py | 336649d1f2afb9b531364d8d2f93b1f32943d8af | [] | no_license | lawlietl4/mongoFileIO | 1852d0ac0861c9222ad9f5b8ff1cc9abbcc526b0 | f3dae3bb179d1a91dfc77fe1851eb00019cd9f8f | refs/heads/main | 2022-12-31T00:13:37.180367 | 2020-10-20T02:21:31 | 2020-10-20T02:21:31 | 305,211,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | import pymongo
import os
import json
client = pymongo.MongoClient("mongodb://localhost:27017/")
dblist = client.list_database_names()
mydb = client['test']
colle = mydb['clients']
new_dict = {}
collectionList = mydb.list_collection_names()
my_dict = {"name": "test"}
change = {"$set":{"name": "delete_me"}}
... | [
"noreply@github.com"
] | lawlietl4.noreply@github.com |
8fa7eeaa84cd832efa51784ee7486400ba367077 | d6f6524d2af71da9a68e1cac189c85347441c87e | /recipes/urls.py | fe15116301f3d809410b7fd769bb63fd8c73803c | [] | no_license | powellc/django-recipes | c490e535a1cbe53580fcf2c5c648a4d6a40528db | 6247a41495059207f0db5a826ee54e0113e8bd48 | refs/heads/master | 2021-01-02T09:14:22.681804 | 2010-11-03T02:00:08 | 2010-11-03T02:00:08 | 732,399 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | from django.conf import settings
from django.conf.urls.defaults import *
from recipes import views
from recipes.models import Recipe
from tagging.views import tagged_object_list
def approved_recipes(request, tag):
queryset = Recipe.approved_objects.all()
return tagged_object_list(request, queryset, tag, pagina... | [
"colin.powell@me.com"
] | colin.powell@me.com |
bcd72bbb8a871128ee180ec96e58f3129974ed75 | 47d2dfe5f95cda06fe580480309e9620d15c7e7a | /pythonBasic/e_file_class/Ex01_readFile.py | 3c39f3b75846ca0187d517b3f94e1d8492ae6270 | [] | no_license | xorms8/pythonPractice | 1318311b691f90fad6fd88700d51e75515b96211 | 2dd1b096630d8341cb4b3184332377e553c55ca3 | refs/heads/main | 2023-07-17T00:11:37.071953 | 2021-08-29T06:43:38 | 2021-08-29T06:43:38 | 374,634,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,154 | py | """
@ 파일 읽고 쓰기
- 파일을 읽고 쓰기 전에 파일을 열어야 한다
- fileObj = open ( filename, mode )
mode 첫번째 글자 - 작업 표시
r(read) : 파일 읽기
w(write) : 파일 쓰기 ( 파일이 없으면 생성하고 파일이 있으면 덮어쓴다 )
x(write) : 파일 쓰기 ( 파일이 없을 때만 생성하고 쓴다 )
a(append) : 파일 추가 ( 파일이 있으면 파일의 끝에서부터 추가하여 쓴다 )
... | [
"xorms8@gmail.com"
] | xorms8@gmail.com |
cdbd2abee686d0a4d7b5e1c105e37112b17f24e8 | ac0d9cd563af31f7ab60c85b45bb6341a4e6f840 | /debug.py | ba76114adb551198c1afd7c6293f4cb74ee719c8 | [] | no_license | huoang/home | 0b940ee2773dd8ec58cf2d6bb1bd0d83d7fa680f | c3d4d1134ba96b06e67caddc87acea39a7396afd | refs/heads/master | 2021-01-16T23:10:36.730487 | 2016-11-27T14:37:50 | 2016-11-27T14:37:50 | 72,357,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | #!/usr/bin/env python
#coding:utf-8
import pandas as pd
import feather as fd
import os
def dfvars(ncol):
dfvars=''
for var in range(1,ncol+1):
dfvars+='x%d,' %var
dfvars=dfvars[:len(dfvars)-1]
return dfvars
vars=dfvars(261)
ncol=261
loop = True
looptimes=0
reader = pd... | [
"huoang@126.com"
] | huoang@126.com |
a1e6752c97c13384efca970a958b0761d12d34cd | d2189145e7be2c836017bea0d09a473bf1bc5a63 | /Reposiciones/reposicionesIsraelFP/reposicion31Ago18IsraelFP/fibonacciISraelFP.py | 692bd0eafb663ca194cd985e7f9b1080a1142875 | [] | no_license | emilianoNM/Tecnicas3 | 12d10ce8d78803c8d2cd6a721786a68f7ee2809d | 6ad7f0427ab9e23643a28ac16889bca8791421d0 | refs/heads/master | 2020-03-25T18:06:34.126165 | 2018-11-24T04:42:14 | 2018-11-24T04:42:14 | 144,013,045 | 3 | 5 | null | 2018-09-14T10:47:26 | 2018-08-08T12:49:57 | Python | UTF-8 | Python | false | false | 306 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 15 16:04:05 2018
@author: israel
"""
def fib(f):
if f == 1: return 1
if f == 2: return 1
return fib(f-1)+fib(f-2)
print "\t..:Fibonacci:.."
f=input("Cantidad de no. a hacer en Fibonacci: ")
print "> No. Fibonacci: ",fib(f)
| [
"noreply@github.com"
] | emilianoNM.noreply@github.com |
40547c88ef4733a7b77c0d92fa0344e3439c408f | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_aatrox/__init__.py | edb18cb382f17b02c1036fa9cc09ee67a24a63ab | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from .na_aatrox_top import *
from .na_aatrox_jng import *
from .na_aatrox_mid import *
from .na_aatrox_bot import *
from .na_aatrox_sup import *
| [
"noreply@github.com"
] | koliupy.noreply@github.com |
390b65607f271bdd88f9fab4359365ad28e4f992 | d92235bce35d7bf1b028ae417c6ceb8891b6c8b4 | /dk_mnist_mlp_weightnorm.py | 10c935941f332df7936c404f15dd57a9d282b466 | [] | no_license | capybaralet/BayesianHypernet | 63faadc83aa95ec80e5d7805ec300c151734f93a | 4d7bdc749b2fb9cf74e45c5b21ccc590b6f781e7 | refs/heads/master | 2020-12-30T15:30:54.687925 | 2017-05-15T21:38:15 | 2017-05-15T21:38:15 | 91,155,018 | 3 | 0 | null | 2017-05-13T06:41:49 | 2017-05-13T06:41:49 | null | UTF-8 | Python | false | false | 5,345 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 12 17:46:38 2017
@author: Chin-Wei
"""
from modules import LinearFlowLayer, IndexLayer, PermuteLayer
from modules import CoupledDenseLayer, stochasticDenseLayer2
from utils import log_normal, log_stdnormal
from ops import load_mnist
import theano
import theano.tensor as ... | [
"davidscottkrueger@gmail.com"
] | davidscottkrueger@gmail.com |
d038aed3f5f3cf210f6470d7f30d1e6342dfc62b | 54c38a780280288609d963498484139eb65588a2 | /src/tools/STL_boundingBox.py | a37309bf444d0b72478792ae88494956366a6509 | [] | no_license | floli/flof | c8f56ad2e693d1c968eca7a8b79bf0ae14121427 | 765cbbe0bc526b4e80668aada507917f6e8bc2f0 | refs/heads/master | 2021-01-18T14:38:01.619254 | 2013-07-21T10:31:25 | 2013-07-21T10:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | #!env python2
import fileinput, sys
if len(sys.argv) == 1:
print "Calculates max/min values of vertexes from all files."
print "Usage: %s FILES" % sys.argv[0]
sys.exit()
max_x = max_y = max_z = -sys.maxint -1
min_x = min_y = min_z = sys.maxint
for line in fileinput.input():
if line.strip().startswi... | [
"florian.lindner@xgm.de"
] | florian.lindner@xgm.de |
b733a47e357b49c8b6a62d4657675992a32790d6 | e0cc12d17e0f6a8dac3797c7eb242cf0b0c90273 | /util/usbmux.py | f83ebf7eb07253c45fbff1e672c83e68bf1dac44 | [] | no_license | MockMoocLi/py-ios-device | f99a380d477e26ce62dce875c9b83dfcf74f38e0 | 2f501cb1b3dc4089ab7d9f4465c1f1175d8163e8 | refs/heads/main | 2023-02-02T08:46:24.108146 | 2020-12-21T10:30:20 | 2020-12-21T10:30:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,245 | py | """
USBMux client that handles iDevice descovery via USB.
:author: Doug Skrypa (original: Hector Martin "marcan" <hector@marcansoft.com>)
"""
import select
import socket
import struct
import sys
import plistlib
from typing import Dict, Union, Optional, Tuple, Any, Mapping, List
from .exceptions import MuxError, MuxV... | [
"chenpeijie@rongcloud.cn"
] | chenpeijie@rongcloud.cn |
990dc1f53f29fce4c728726c22bfa670e723a133 | 4af624e5655d6543dc1b6c5d3ce8da67a1171082 | /prices.py | 8a362e0ec5ca128b10ec5ca7e62fa233a6b91a13 | [] | no_license | ehtesham1999/Ecommerce-price-tracker | 38fb7920da6cfd83466db1b0aa889e16dc1856d0 | c70502e184ac9dd0acef81bf02c25c5478d82d7d | refs/heads/master | 2022-11-19T11:32:09.793321 | 2020-07-14T09:43:19 | 2020-07-14T09:43:19 | 279,551,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | import requests as r
from bs4 import BeautifulSoup as bs
import time
import webbrowser as w
import smtplib
def send_email():
sender = "ehteshamhussain1999@gmail.com"
receiver = "ehussain414@gmail.com"
message = "realme 6 is available"
s = smtplib.SMTP(sender,587)
s.starttls()
s.login(sender,"... | [
"ehteshamhussain1999@gmail.com"
] | ehteshamhussain1999@gmail.com |
fdd837ad5b77db49c7eb7d966b25fb6702ad84fe | dc27d116928edf9ebbbb62d13bbbfb5223bbc184 | /tests/test_s3_dict.py | 6510046d1ccb3ae4f6d9194f4763f7ff92149721 | [
"MIT"
] | permissive | MartinHowarth/s3os | 014a85efae3e3ad6680e4399d190c335e5a74743 | dc94c06a20c067e6dcc13eb8f7e1557fdd615452 | refs/heads/master | 2020-12-08T21:35:20.894917 | 2020-01-11T14:25:10 | 2020-01-11T14:25:10 | 233,101,822 | 1 | 0 | MIT | 2020-01-11T13:51:29 | 2020-01-10T17:54:30 | Python | UTF-8 | Python | false | false | 7,701 | py | """Tests for the S3Dict object."""
import pytest
from mock import MagicMock, call
from s3os.s3_dict import S3Dict, S3DictConfig
from s3os.s3_wrapper import ObjectLocation
@pytest.fixture
def mock_s3_api(mocker):
"""Create mocked versions of the s3 API."""
mocked_store = mocker.patch("s3os.s3_dict.store")
... | [
"noreply@github.com"
] | MartinHowarth.noreply@github.com |
d11ebcc5f146579561cd8f08dc0684481f02d04a | dcfcb05bd9e5dab2b5feaf5d3e57b6ccd286da40 | /content/forms.py | 73fe754833f74fc449dc3aae6af3831704f6a65b | [] | no_license | jsg1504/gori | 13a9bb0aedd350a5fb0b9ba3b645476baeab31d1 | 7db5f8c4477419f6bb6adfe3c57323341c8afef9 | refs/heads/master | 2021-01-10T22:14:28.607396 | 2016-07-24T08:32:24 | 2016-07-24T08:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from __future__ import unicode_literals
from django import forms
from content.models import Content
class ContentEditForm(forms.ModelForm):
class Meta:
model = Content
fields = ('image_file',)
exclude = ('description',)
| [
"jhlee9870@gmail.com"
] | jhlee9870@gmail.com |
1af1f78994d29c06376f48f05f8ca8dbd6ad1045 | f3a17b77d82bd2660f5306d7aa764f774aebc923 | /accredit/lib/base.py | 74b8abb8b6efd020c93cf74364a58a31135c30a0 | [] | no_license | drmalex07/accredit | b34888e3e61fb20b514a3c8466a95e479a3de7ad | 0899ee342d967ba23320f730e736fc8ddefe3bec | refs/heads/master | 2021-01-15T08:13:13.721513 | 2015-01-02T19:56:33 | 2015-01-02T19:56:33 | 28,724,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | """The base Controller API
Provides the BaseController class for subclassing.
"""
from pylons.controllers import WSGIController
from pylons.templating import render_genshi as render
from pylons import app_globals as g
from pylons.i18n import (get_lang, set_lang, _)
from accredit.model.meta import Session
class Bas... | [
"alexakis@imis.athena-innovation.gr"
] | alexakis@imis.athena-innovation.gr |
d0de215878371885b76dad2b28ae5936db0e3b20 | 6a43af03fed9de794acbba957065a29bf5b8113b | /MCS/distrib/hw3_task2.2/reducer.py | 074e0d8b3b0c4f5213980fe8f8237ca4ccc7c6ab | [
"Unlicense"
] | permissive | Wiki-fan/MIPT-all | c80a1313a172efa726e4f7749085a0d18df6e989 | acdb35fa11bc4f0127da4d5de0c33c7d0e91b699 | refs/heads/master | 2021-05-09T04:14:57.412717 | 2018-01-29T08:40:56 | 2018-01-29T08:40:56 | 119,266,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/env python
import sys
sum0 = 0
sum1 = 0
current_key = None
for line in sys.stdin:
arr = line.split('\t')
key, val = arr
if current_key != key:
if current_key:
print("%s\t%d\t%d" % (current_key, sum0, sum1))
sum0 = 0
sum1 = 0
current_key = key
if ... | [
"uberslowpoke@gmail.com"
] | uberslowpoke@gmail.com |
9146101854204eb2ddf6005824a08783642fe417 | 5d3c2005010eb64ed4443f98460520f1fd40a22b | /assignment2/asgn2/classifiers/cnn.py | 0fc9d863a191652042c04161a4506180a275dfe7 | [] | no_license | danielsamfdo/CS682_NeuralNet | 16ffc1c3e1313931ea2b56aea4b20cbc0eb8602a | 6a906ae4864758dddf87249598bfa11d760bcc24 | refs/heads/master | 2021-03-16T08:41:57.987218 | 2018-03-20T15:01:46 | 2018-03-20T15:01:46 | 103,343,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,161 | py | import numpy as np
from asgn2.layers import *
from asgn2.fast_layers import *
from asgn2.layer_utils import *
class ThreeLayerConvNet(object):
"""
A three-layer convolutional network with the following architecture:
conv - relu - 2x2 max pool - affine - relu - affine - softmax
The network operates on minib... | [
"danielsamfdo@gmail.com"
] | danielsamfdo@gmail.com |
691a689078a23f15d29871c71916d6a51e10f596 | b0a856174eb144baaab59b9b4de2b8654660f9aa | /FlipCoin.py | 3264f2621470268aa3bfaf2020e25e7acfe5618c | [] | no_license | ariprasathsakthivel/BasicCoreProgram | 5c1f302b0b256a7d18dffc0fb48890a70035b4c4 | 26e3c6560d2306e560993dd53413f34c775a971d | refs/heads/master | 2023-07-23T17:21:38.110376 | 2021-09-08T15:10:47 | 2021-09-08T15:10:47 | 404,186,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | '''
@Author: Ariprasath
@Date: 2021-09-08 08:15:00
@Last Modified by: Ariprasath
@Last Modified time: 2021-09-08 08:30:00
@Title : Flip coin and print percentage of head and tail
'''
import random
if __name__=="__main__":
count=abs(int(input("How many times do you want to flip the coin\n")))
percent_count=co... | [
"67471289+ariprasathsakthivel@users.noreply.github.com"
] | 67471289+ariprasathsakthivel@users.noreply.github.com |
775a119a67245fdb0d9299d512d4b793d1281268 | 0f931d9e5b74f52a57499364d858819873bdf469 | /15.py | ea1afc8f020b5301aa75fbcffe5bfc0a28df61c1 | [] | no_license | estuprofe/AdventOfCode2019 | 43f4d6f96d580a1732d7932ea863613af270fe56 | 54450df616feef810fbd410ccc9d1b0670195e49 | refs/heads/master | 2022-04-03T11:35:30.553698 | 2019-12-22T03:21:33 | 2019-12-22T03:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | import fileinput
import heapq
import intcode
left, right, opposite = [2, 3, 1, 0], [3, 2, 0, 1], [1, 0, 3, 2]
dxs, dys = [0, 0, -1, 1], [-1, 1, 0, 0]
def traverse(program):
buf = []
gen = intcode.run(program, buf)
send = lambda d: buf.append(d + 1) or next(gen)
test = lambda d: send(d) and send(opposi... | [
"fogleman@gmail.com"
] | fogleman@gmail.com |
31000a2ec88649069ec3b2d7c7689491fecc6263 | 809d9bef65e328d8782a43cc8f184755163211dd | /page_parsing.py | 0ec6254d0ffdf12b539d5ef0bbcf8ad213bea2d8 | [] | no_license | WangjiayuBerserker/zhonghua_project | 0baffcb9dfde0e83d850de8cff36135c0697fa97 | eb9f2ad4a7450a5c59ee593ebe0fcbc2de6aabd7 | refs/heads/master | 2020-03-10T22:16:07.716384 | 2018-04-15T13:57:22 | 2018-04-15T13:57:22 | 129,615,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | import requests
from bs4 import BeautifulSoup
import pymongo
client = pymongo.MongoClient('localhost',27017)
project_zh = client['project_zh']
url_list = project_zh['url_list']
item_info = project_zh['item_info']
# http://www.chinahr.com/haerbin/jobs/23272/2/
def get_links_from(url,page):
start_url = '{}{}/'.for... | [
"wangjiayuhlj@163.com"
] | wangjiayuhlj@163.com |
f1883475c18fada917ce742224d4c5223a023126 | 659a7a65c877f2eb0adbb6001a1f85f063d01acd | /mscreen/autodocktools_prepare_py3k/AutoDockTools/autoanalyze4Commands.py | 1c6e7002d9350becb7fe81829ce939e0463cab13 | [
"MIT"
] | permissive | e-mayo/mscreen | da59771be250ebe341feb102e0cbf41aab70de43 | a50f0b2f7104007c730baa51b4ec65c891008c47 | refs/heads/main | 2023-06-21T17:47:06.519307 | 2021-08-09T16:06:29 | 2021-08-09T16:06:29 | 345,008,321 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,348 | py | #############################################################################
#
# Author: Ruth HUEY, Michel F. SANNER
#
# Copyright: M. Sanner TSRI 2000
#
#############################################################################
# $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/autoanalyze4Commands.py,v ... | [
"eduardomayoyanes@gmail.com"
] | eduardomayoyanes@gmail.com |
957ae7bfb14341b990ca697a6415bd9a2e092fb4 | 0920f2b166190ae7d8f282b4476ffcfd7d22a148 | /0x03-python-data_structures/1-element_at.py | 3c9a8abb264b4fa5a9cb9706fb51b990b1885f60 | [] | no_license | nkcornelius/alx-higher_level_programming | c0a92fdfb9dc39c02a31c05fc65f62b711bd22ed | eb0977dfa7fc50daee5214848fd6e8838b5c7557 | refs/heads/main | 2023-08-19T08:02:08.171970 | 2021-10-03T11:56:37 | 2021-10-03T11:56:37 | 404,076,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | #!/usr/bin/python3
def element_at(my_list, idx):
if idx < 0 or idx > len(my_list) - 1:
return 'None'
else:
return my_list[idx]
| [
"ngetichcornelius0@gmail.com"
] | ngetichcornelius0@gmail.com |
e1df19bd7b54072b7916091bc544fd40129d5ef7 | d6cd4c2ffedf8cd4f94c53bc91169c9d8a513521 | /Pypeline/Pypes/Node.py | 5e36ab4605ff50e6c96af2b06b0376c7304d8d7c | [
"MIT"
] | permissive | akiljames83/Pypeline | f66635a1454b79b98138d717b43660144d69c9ae | c06a7e954ff59e1a6cfb7e4e81640720e61d8bfd | refs/heads/master | 2021-12-27T01:37:26.002529 | 2021-05-09T20:23:26 | 2021-05-09T20:23:26 | 149,651,390 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | """
Implementation of the node object
"""
from typing import Any, Optional
class Node(object):
def __init__(self, val: Any=None):
'''
Base for node object containing node value and visited state.
val -> Any data type
visited -> bool
'''
self.val: Any = val
... | [
"akil.james83@gmail.com"
] | akil.james83@gmail.com |
a5888f45449d9d8bb0e3f5a7ffc919981ad9291f | a1b8d59a2a297e3404c12efbe51dcd80920d767a | /tests/requests/test_pokemon_controller.py | eea329f8dd2c12c3eec62a74c35965d4164fd9aa | [] | no_license | rafaelsmedina/pokemon-team-predictor | 7edf8dd3ea5113e696c0da381656ca859a927300 | 2edd8ec4a00bf6781affb7b5b850d01824593ae3 | refs/heads/master | 2020-06-15T04:56:34.699350 | 2017-01-09T19:41:33 | 2017-01-09T19:41:33 | 75,327,291 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | from test_base import BaseTestCase
from app.models.pokemon import Pokemon
from factories.pokemon_factory import PokemonFactory
class TestPokemonController(BaseTestCase):
render_templates = False
def setUp(self):
PokemonFactory.create_batch(1)
def tearDown(self):
Pokemon.query.delete()
... | [
"r.salesmf@gmail.com"
] | r.salesmf@gmail.com |
c86215f987c2ba0c2ffd91294eb7e3c2e8b8c5da | 26a864ff6a8f97f5dc06251f49aaa68379e7b6cd | /app/views.py | 3796664041ceaa771f0718c3b79fba78a82a9e6c | [] | no_license | isradesu/Agenda | 49973f435feebf6ca7cd179d70be0dc531a064ff | ce4367933231d2a6033f6045c06caecb6d663d6a | refs/heads/main | 2023-06-24T18:27:35.218185 | 2021-07-14T18:55:03 | 2021-07-14T18:55:03 | 384,508,640 | 0 | 0 | null | 2021-07-09T17:30:38 | 2021-07-09T17:30:38 | null | UTF-8 | Python | false | false | 5,027 | py | import json
from flask import Blueprint, render_template, request, redirect, url_for, flash, jsonify
from flask_login import current_user, login_required
from app.jsons.funcs_jsons import carrega_addressbooks, guarda_addressbooks
from app.models.models import ClassFactory
views = Blueprint('views', __name__)
def p... | [
"ruannyury1@outlook.com"
] | ruannyury1@outlook.com |
ef907923a1970b33a70abe7364cdcf42e701a3d2 | 3cea6c6664d9489b4cfb33ea8580f8189b5839ff | /torchex/nn/modules/padding.py | ca8bc82e42fac577d1304747aa66ed99bb511ce6 | [
"MIT"
] | permissive | tarokiritani/torchex | 81c24457337bdbf6ad103dd9ded5488b69b468bd | 5e9d8f7f08a3931c2271e108d73226b1ee6b3efa | refs/heads/master | 2020-04-12T17:55:02.960878 | 2018-12-14T09:37:46 | 2018-12-14T09:37:46 | 162,661,997 | 0 | 0 | null | 2018-12-21T03:40:19 | 2018-12-21T03:40:19 | null | UTF-8 | Python | false | false | 2,265 | py | import torch
import torch.nn as nn
class PeriodicPad2d(nn.Module):
"""
:params torch.Tensor input: Input(B, C, W, H)
# https://github.com/ZichaoLong/aTEAM/blob/master/nn/functional/utils.py
"""
def __init__(self,
pad_left: int=0, pad_right: int=0,
pad_top: i... | [
"kbu94982@gmail.com"
] | kbu94982@gmail.com |
f303c4c5c52b859986065ba36976c2cd24f5fa30 | 4e8e9ed2a8fb69ed8b46066a8d967e4c107013a4 | /main/control/comment.py | 74b22b2e72d524f3e59cb31990a4cf5d1b395682 | [
"MIT"
] | permissive | welovecoding/vote4code | a57b3d155096d362dca47587ad2985b4201ef036 | be265d553af35dc6c5322ecb3f7d5b3cf7691b75 | refs/heads/master | 2021-08-11T22:46:40.884030 | 2019-11-15T16:15:05 | 2019-11-15T16:15:05 | 90,191,931 | 14 | 0 | MIT | 2021-08-10T22:50:49 | 2017-05-03T20:46:02 | Python | UTF-8 | Python | false | false | 5,801 | py | # coding: utf-8
from google.appengine.ext import ndb
import flask
import flask_wtf
import wtforms
import auth
import config
import model
import util
from main import app
###############################################################################
# Update
########################################################... | [
"lipiridis@gmail.com"
] | lipiridis@gmail.com |
224115799dcddd421f082f520cd9f670ef3cd9cc | e81fabdd6988c787524755fac73aa9d3631fc64c | /tests/test_ops/test_early_stopping.py | 286560c5fd38fb4cc2edbac48b85b01eeecdd9e7 | [
"MIT"
] | permissive | granularai/polyaxon-schemas | 0aa06f15b7353ceb6d31f1e5cf63c269ab0e2ce4 | 017ae74701f21f12f0b25e75379681ea5d8baa9e | refs/heads/master | 2022-08-30T00:05:40.888476 | 2020-05-19T17:22:46 | 2020-05-19T17:22:46 | 265,312,701 | 0 | 0 | MIT | 2020-05-19T17:16:38 | 2020-05-19T17:16:37 | null | UTF-8 | Python | false | false | 1,874 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from unittest import TestCase
from tests.utils import assert_equal_dict
from polyaxon_schemas.ops.group.early_stopping_policies import EarlyStoppingConfig
from polyaxon_schemas.ops.group.metrics import Optimization
class TestE... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
9ff9b1b4f5e88031f1b4c71bf900b366103e5a6f | b67efb7ac1832f2a70aa570f8025c69498a8cd71 | /pgoapi/protos/POGOProtos/Data/Logs/FortSearchLogEntry_pb2.py | 7469fad7bf20a643ec48fffd8c8889493a9bf5e5 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | PogoHop/pgoapi-hsvr | f1513d7548075a7defd21f1018bd59afcb79d78f | b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47 | refs/heads/master | 2021-01-12T11:17:55.334203 | 2016-11-05T12:48:38 | 2016-11-05T12:48:38 | 72,892,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,709 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: POGOProtos/Data/Logs/FortSearchLogEntry.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goog... | [
"hoptional@gmail.com"
] | hoptional@gmail.com |
8f6fd8ea81510568275d7b78dfb4006186d7155e | 872c4a47c53cd81ddb1e8b6e3645c67119153d5d | /Reverse Integer.py | ad0436d3d8245245baccedd6429630598d773e01 | [] | no_license | Zahidsqldba07/codesignal_and_leetcode | c58d4714dcdcda76ed43452620a4adb7b9d2be5d | 3d35d711d6edcfb71f49378222a1f57229001dac | refs/heads/master | 2023-08-28T01:13:49.410945 | 2021-10-22T06:22:40 | 2021-10-22T06:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | # Given a signed 32-bit integer x, return x with its digits reversed.
# If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 - 1], then return 0.
# Assume the environment does not allow you to store 64-bit integers (signed or unsigned).
class Solution:
def reverse(self, x: int)... | [
"danieldavtyan99@gmail.com"
] | danieldavtyan99@gmail.com |
67dcd3ec7cdb0cc71d9f3b762d542f02506fbeb3 | 49ba5356bdc5df7dd9803b56fe507c5164a90716 | /surface-area-of-3d-shapes/solution.py | a1de598aa85c92a605d01dfaf2403263d9ecf1e5 | [] | no_license | uxlsl/leetcode_practice | d80ad481c9d8ee71cce0f3c66e98446ced149635 | d8ed762d1005975f0de4f07760c9671195621c88 | refs/heads/master | 2021-04-25T18:12:28.136504 | 2020-03-11T07:54:15 | 2020-03-11T07:54:15 | 121,472,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | # leetcode
# https://leetcode-cn.com/problems/surface-area-of-3d-shapes/
# 解法:
# 求六个方向的表面积
class Solution(object):
def surfaceArea(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
N = len(grid)
area = 0
# xy 正反面
for i in range(N):
... | [
"songlin.lin@yunfangdata.com"
] | songlin.lin@yunfangdata.com |
d18e1388e6202f3e3374a6deb68cdb51baa1c64d | f25185fcf2361463a8a12605843fe05a053f6488 | /NeuralCRF/utils/data.py | 1b3d5a6dbaa5f3de16b8170d6960a15c3dac486c | [
"Apache-2.0"
] | permissive | evijit/ledam | 13373c92e8b5354d902721fb4d948c3380e17d45 | a0003cd95ee8a8954581db0bd42a09dc6b1da92f | refs/heads/master | 2021-06-22T10:52:44.358450 | 2020-12-18T18:56:18 | 2020-12-18T18:56:18 | 141,115,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,107 | py | # -*- coding: utf-8 -*-
# @Author: Jie
# @Date: 2017-06-14 17:34:32
# @Last Modified by: Jie Yang, Contact: jieynlp@gmail.com
# @Last Modified time: 2018-06-22 00:01:47
from __future__ import print_function
from __future__ import absolute_import
import sys
from .alphabet import Alphabet
from .functions import *... | [
"avijitg22@gmail.com"
] | avijitg22@gmail.com |
60e90179d65c27f5cfc3f69124e458ba34c5ba8b | cdb60f4688bedae2b77cdeb5296f772e6d5af96b | /1144-Decrease_Elements_to_Make_Array_Zigzag.py | edb48730f2e2328a57c90a5968aa23453fdec240 | [] | no_license | FomalhautA/Algs | 2c5034dbae6a9c834fabd7a54ffeb32b56fc0138 | c7964d1b921d9a4e821abec02212a69b12891c83 | refs/heads/master | 2023-03-14T07:18:00.972102 | 2021-03-08T09:20:16 | 2021-03-08T09:20:16 | 275,773,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | import copy
class Solution(object):
def movesToMakeZigzag(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
if len(nums) == 1:
return 0
if len(nums) == 2:
return 0 if nums[0] != nums[1] else 1
temp = []
for peak in [Tru... | [
"qinhf@taiyi-tech.com"
] | qinhf@taiyi-tech.com |
22952dde76746bc41fd526ad79a60b70f792c86d | 77eedce13cd5343dc5e3fb5806819519524c677b | /Lib/site-packages/ebcli/controllers/abort.py | 5422dfbb7f77c48ed11e37df45340a7b4e67e6f6 | [] | no_license | brianpiperato/Flask-SocialNetwork | ebd13007a88d19b07cc3b46530d64c7b0ed2fcb9 | 6006d7a6f812d3b32154e0d1bb793c7535464283 | refs/heads/master | 2022-11-07T15:48:19.723827 | 2019-11-05T15:35:54 | 2019-11-05T15:35:54 | 150,278,662 | 0 | 1 | null | 2022-10-25T04:13:05 | 2018-09-25T14:26:43 | Python | UTF-8 | Python | false | false | 1,913 | py | # Copyright 2015 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompa... | [
"piperatob1@gmail.com"
] | piperatob1@gmail.com |
9ecf37ebe0a84489aef5072cc5f52747306442c4 | 1281562143ae64bc3d4d874938ca5363c81a4de8 | /python/tools/simple-player-ctrl-remote | cd87a66926e243046ede11a46f7275a9a00a8b81 | [] | no_license | javier-lopez/learn | a5e46afe701ce6012f89fde93d5d78b1ee683dbf | c3072383aec50fd89ecc5bd5f68f6a3746959b0d | refs/heads/master | 2023-04-07T23:55:13.645601 | 2023-03-17T03:02:20 | 2023-03-17T03:02:20 | 673,834 | 99 | 28 | null | 2022-08-26T20:17:50 | 2010-05-18T20:07:45 | HTML | UTF-8 | Python | false | false | 15,573 | #!/usr/bin/env python
#usage: simple-player-ctrl-remote [options]
#based on mplayer-remote v0.0.4, http://www.gwenn.dk/mplayer-remote.html
import BaseHTTPServer, commands, sys, os, pwd, grp, socket, subprocess
from optparse import OptionParser
parser = OptionParser(description='%prog - a multimedia player web control... | [
"m@javier.io"
] | m@javier.io | |
518efa12cdac4e7d9987566f0fde5f3ba06a7022 | f64cce55bc3fb1f2de624a69d5ae10e10dc56999 | /trigram_creation.py | c92ef138fb12dba1d823d4a29b148b81bc7c171e | [] | no_license | shricharanks108/MLCourse_GroupE | c9b58ed65af6ba076d5da7f758bdbf25dea9a66b | 20977fd6546bbdd9053051730af97a6af2125299 | refs/heads/master | 2022-12-04T01:19:33.135117 | 2020-08-23T13:34:19 | 2020-08-23T13:34:19 | 288,582,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | training_set = []
with open('imdb_train.csv') as file:
training_set = file.readlines()
# Using CountVectorizer
Cvectorizer = CountVectorizer(ngram_range=(3, 3))
count_vec_model = Cvectorizer.fit_transform(training_set)
f = open("Cvector_Score.txt", "a")
f.write(str(count_vec_model.toarray()))
f.close()
# Applyin... | [
"noreply@github.com"
] | shricharanks108.noreply@github.com |
7856572f45aa7aac250552352e2eaa3974420458 | 7b358ca457bb2318b2cc4c74a3d43f97cb979a2a | /ags.py | 58e1725922d06e236f8d0f4e106f02851fb50c84 | [
"MIT"
] | permissive | rkelson/agrc.python | df3e266b6da6ecc108812d40527c1a4575909662 | d2372f3be89997c69b6d990cb0b948f9c31880ce | refs/heads/master | 2020-05-29T12:21:23.521210 | 2016-09-29T19:57:36 | 2016-09-29T19:57:36 | 15,258,499 | 0 | 0 | null | 2016-09-29T19:57:36 | 2013-12-17T15:43:41 | Python | UTF-8 | Python | false | false | 4,372 | py | import requests
import json
from time import time
# urls
baseUrl = r'http://{}:6080/arcgis/admin/'
tokenUrl = r'{}generateToken'.format(baseUrl)
servicesUrl = r'{}services'.format(baseUrl)
class AGSAdmin:
"""
Provides methods for administering arcgis server
"""
username = ''
password = ''
ser... | [
"scott.sheri@gmail.com"
] | scott.sheri@gmail.com |
0b8ac0fd48b23f6221dadd4080dfadd5e98b0079 | 83f04821ce65c367a8e3456ebaeac20c15de2b10 | /concurrent/cache.py | e5b2716607aaf30b78592e84aae7d0d7e4d2094f | [
"MIT"
] | permissive | Mochis/curry-grib-runner | 19ca60762e4085d67ed3e6485a153ac327b91370 | 628dbdf5ad9c06a246fd65f44772f31ebe127079 | refs/heads/master | 2022-06-12T01:35:56.216799 | 2022-05-20T16:35:03 | 2022-05-20T16:35:03 | 198,517,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | import threading
# Implements a cache using a dict() object
class Cache:
def __init__(self):
self.cache = dict()
self.lock = threading.Lock()
def put_value(self, key, value):
self.lock.acquire()
if key not in self.cache:
self.cache[key] = value
self.lock.re... | [
"mochi@MacBook-Pro-de-JuanJo.local"
] | mochi@MacBook-Pro-de-JuanJo.local |
ce978302f88b0065282a8fb57be6ec347d9e2012 | 2fabea234735beefc980b77b213fcb0dfb394980 | /tensorflow_probability/python/distributions/deprecated_linalg_test.py | e30bf6de1138043acd8d2544bd85b4b5b72eabca | [
"Apache-2.0"
] | permissive | tarrou/probability | 0eee452b525a6e6b3c7c98d467468e47f07e861b | d4d80a1c04ad0b3e98758ebc3f7f82887274384d | refs/heads/master | 2020-08-08T11:16:42.441268 | 2019-12-06T17:35:17 | 2019-12-06T17:35:17 | 213,819,828 | 0 | 0 | Apache-2.0 | 2019-10-09T04:20:19 | 2019-10-09T04:20:19 | null | UTF-8 | Python | false | false | 2,518 | py | # Copyright 2019 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
65b2949c009f8ad20cc04f691b5311b5128a254e | d661dc74491613029701f8c36351c5ffb4e27b0b | /mmo/server/database.py | 83a25d42adf71d694b8f29804a73dd3834c22e26 | [] | no_license | rafael146/workufal | d0d1b1507eab709dc67a056a5d6bee03231a9b67 | f17de5dcfe057df28e956213737a95321693e848 | refs/heads/master | 2021-01-15T19:28:12.854119 | 2015-04-23T13:21:08 | 2015-04-23T13:21:08 | 34,455,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | #Autor: Alisson Oliveira
from MySQLdb import Connect, escape_string
from MySQLdb.cursors import DictCursor
#Move this values to config
HOST = '127.0.0.1'
USER = 'root'
PWD = 'root'
DB = 'mmo'
class DatabaseManager(object):
def __init__(self):
self.db = Connect(host=HOST,user=USER,passwd=PWD,db=DB,cursorc... | [
"Alisson Oliveira@cd46cd7e-7c3c-4829-9a36-9a7bc2eed6a4"
] | Alisson Oliveira@cd46cd7e-7c3c-4829-9a36-9a7bc2eed6a4 |
a6d5eda42a50060fe71b8e3abac6a3debb0e2b97 | 8953e89983ce8a7fec3e93fea90a1c306d8886b3 | /App/forms/UserForms.py | 079f2b95abf662d5a40a26ac4920f9d441cd3965 | [] | no_license | mhasan-t/Rabo | ea6011999b5d5cb8dfc3d0c00ccda5a46c09c1b5 | b8166760fc68692e5a7240e7a0000d035e27c7c6 | refs/heads/master | 2023-07-09T09:30:06.708699 | 2021-06-18T10:31:13 | 2021-06-18T10:31:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | from django import forms
class CreateUserForm(forms.Form):
first_name = forms.CharField(max_length=20, widget=forms.TextInput(
attrs={'placeholder': 'enter your first name'}))
last_name = forms.CharField(max_length=20, widget=forms.TextInput(
attrs={'placeholder': 'enter your last name'}))
... | [
"tahnoonn19@gmail.com"
] | tahnoonn19@gmail.com |
0132b1722e94891601c8cc8372386775e645a23c | d989b8504599c17201215c343c2111525cfa2706 | /FeatureEng.cluster3.py | 7e750e6dc75a2385b8f51482787d29a09f560fa6 | [] | no_license | salilkhandelwal/Predict-Future-Sales | 3c53b16d1683598ab8a057a0807e031a1caaa8e1 | 6dbf7f7f57c5e05033cd710a59a335db1014f992 | refs/heads/master | 2022-04-10T19:36:09.565058 | 2020-03-26T18:48:05 | 2020-03-26T18:48:05 | 250,343,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | import numpy as np
import pandas as pd
import random as rd
import datetime
import matplotlib.pyplot as plt
import seaborn as sns
from statsmodels.tsa.arima_model import ARIMA
from statsmodels.tsa.statespace.sarimax import SARIMAX
from pandas.plotting import autocorrelation_plot
from statsmodels.tsa.stattools import adf... | [
"noreply@github.com"
] | salilkhandelwal.noreply@github.com |
8c0d012d8d04a4973b14979e0731ec72a32bbdde | 0728a2e165808cfe5651693a6e7f47804bfb085f | /ry/trunk-ry/rynok/controllers/category.py | 2c8663f5cbf391dbaad2d949ff7d5a5f07a4cd0e | [] | no_license | testTemtProj/OLD_PROJECT | 5b026e072017f5135159b0940370fda860241d39 | 9e5b165f4e8acf9003536e05dcefd33a5ae46890 | refs/heads/master | 2020-05-18T15:30:24.543319 | 2013-07-23T15:17:32 | 2013-07-23T15:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,907 | py | #coding: utf-8
""" Category Controller
"""
import logging
import rynok.lib.helpers as h
import json
from pylons import request, response, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect
from webhelpers.html.builder import HTML
from rynok.lib.base import BaseController, render
from ... | [
"Kyzmenko_Pavel@mail.ru"
] | Kyzmenko_Pavel@mail.ru |
65808865c4ac615c1029fc059831cfae0dd7f3b1 | 0295d379d396fa02202d0db01a0ccf9f9ad2f3c0 | /aoc16/D15/d15.py | cd510a67e0d6a37e59f28f94019aee6a3ddbfd26 | [] | no_license | majstenmark/adventofcode | 047c8839aa89acc0cf60c4ef326f1a5f9cc400b0 | f2fd8cb6f645de6c67a58f466358fe4813153a1b | refs/heads/main | 2023-06-07T04:23:47.678427 | 2021-04-17T19:28:39 | 2021-04-17T19:28:39 | 379,188,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | import sys, time
from datetime import date
sys.path.extend(['..', '.'])
from collections import *
from fetch import *
from util import *
#import drawgraph
#lo, hi, lt, pw = lazy_ints(multisplit(line, '-: ')) #chars only!
#or lo, hi, lt, pw = lazy_ints(multisplit(line, ['-',': ','))
import re
#use regex re.split(' |,|: ... | [
"majstenmark@gmail.com"
] | majstenmark@gmail.com |
2bd112ac93dcd356a16b4eefafb8a2aa5b1fe728 | 4d30d39cbcb0d2428d710a47c0ca7ef8bcec447d | /core/dbs/__init__.py | c95c6e94c224de6b64cb1e2e67ddf572f055abd2 | [
"BSD-3-Clause"
] | permissive | baifengbai/CornerNet-Lite-Pytorch | 7a8c5bbe49343e67ae100001c18df5542b375b4e | 7c52f93720d6276a6e073c06fb6cec6b8580da56 | refs/heads/master | 2020-09-22T15:25:13.050615 | 2019-12-01T16:44:28 | 2019-12-01T16:44:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from .coco import COCO
from .dagm import DAGM
# 数据库名字
datasets = {
"COCO": COCO,
"DAGM": DAGM,
}
| [
"274762204@qq.com"
] | 274762204@qq.com |
0afc1093eb45acf937105c84f16f51d70e60e023 | 300c162a7345dc2f68cf472abb5f60a2cb7e516f | /1209.py | 5426f7b1ce6954a3016ba2e4ad8c4ba7451407a0 | [] | no_license | kinabalu/adventofcode2020 | 871cab85509c85a4d7b02863cc2239b70687b7bd | d714f776c002b0f965f5b8dd55d74f6fd9e48e64 | refs/heads/master | 2023-01-28T12:44:53.528927 | 2020-12-11T17:28:43 | 2020-12-11T17:28:43 | 317,611,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | def read_input():
with open('12_09_input.txt') as reader:
return [int(line.strip()) for line in reader]
def main():
data = read_input()
prev_25 = []
idx = 0
found = False
xmas_number = None
while idx < len(data) and not found:
entry = data[idx]
if idx > 25:
... | [
"andrew@mysticcoders.com"
] | andrew@mysticcoders.com |
e8b820bfaa080a86067ff6ddf2cda44d01ba25eb | fa14db2af8403af9cba892489e382f4b33547b58 | /levelupapi/views/game.py | 22fe771b120aa2eef06a7581f23783972a44ad7c | [] | no_license | hrlnsnchz/nss-level-up-server | 4e1e737121229d4a52f2651dc71ca114adef5933 | b06436addfe7ed97ed8b58e31f5561cca7ec2f79 | refs/heads/main | 2023-05-05T19:17:01.751397 | 2021-05-28T01:38:05 | 2021-05-28T01:38:05 | 364,671,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,590 | py | """View module for handling requests about games"""
from django.core.exceptions import ValidationError
from rest_framework import status
from django.http import HttpResponseServerError
from rest_framework.viewsets import ViewSet
from rest_framework.response import Response
from rest_framework import serializers
from re... | [
"hrlnsnchz@gmail.com"
] | hrlnsnchz@gmail.com |
4905389b265f26eae8f3ad56e407e10420eb28aa | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/eclect.py | 7be45d81379ad886d250abb271881bb833c02954 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 80 | py | ii = [('NewmJLP.py', 2), ('BachARE.py', 1), ('SoutRD.py', 1), ('WestJIT.py', 3)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
36686ecf3ef8dddacb386186f976e7db325b7da8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/16/usersdata/122/6123/submittedfiles/triangulo.py | 3ae57cd9af2aa0c78741ee0de80b08dafd3b0c19 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#ENTRADA
a=input('digite o valor do lado a:')
b=input('digite o valor do lado b:')
c=input('digite o valor do lado c:')
if a<(b+c):
print('S')
if (a**2)==(b**2)+(c**2):
print('Re')
elif (a**2)>(b**2)+(c**2):
print('Ob')
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f2c593a16f13760954e84df1235f3e79e7d61106 | 49b769476ecc6adb306f158a61412e45e677a00b | /frontend/migrations/0029_auto_20170529_0118.py | 81a65bab91a2c9bd0bcddda6d72da12f87b8136b | [] | no_license | 3dlink/ivoweb | ac4743eb4d85ad17976c11d31d846bf01d017b40 | 088c78af64a6cb803e284fa309575cfc4354df03 | refs/heads/master | 2021-01-19T12:50:47.380535 | 2017-07-22T07:55:55 | 2017-07-22T07:55:55 | 82,341,900 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-05-29 01:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('frontend', '0028_auto_20170529_0113'),
]
operations = [
migrations.AlterField(... | [
"wa_p@hotmail.com"
] | wa_p@hotmail.com |
440e63a0acf0112f5cb39eb44852550860e1d240 | b6d3d7647705851c5eb16a6a09a267c6f01c8e05 | /flaskblog/__init__.py | d734ebb7f83bb05ae99b57ee04ace80dd9240abc | [] | no_license | TarasFurman/flaskblog | 309efacec913d5e4ef8c1eed950a2ce1bae37726 | 3fa70702b689875c44ad34ecedb49e18ca89e8b1 | refs/heads/master | 2020-05-25T00:23:40.433221 | 2019-05-19T22:06:52 | 2019-05-19T22:06:52 | 187,532,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from flask_mail import Mail
from flaskblog.config import Config
db = SQLAlchemy()
bcrypt = Bcrypt()
login_manager = LoginManager()
login_manager.login_view = 'users.login'
login_manager... | [
"tarfurman@gmail.com"
] | tarfurman@gmail.com |
c2bb2d65b3870a887e0ddb17c2f03d3f97dbddcc | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Trigger/TriggerCommon/TriggerMenu/scripts/moveDisabledChains.py | 3cf550466499b6bb7c7896c7e66d13a32585c169 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,373 | py | #!/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
"""
This script reads the rulebook and swaps items between Physics and MC if they are disabled or not.
TrigMenuRulebook needs to be checked out and installed.
Currently it needs to be run from the script folder.
One argumen... | [
"graemes.cern@gmail.com"
] | graemes.cern@gmail.com |
d694de90a7928e69f7b07e2791407d265fc58b26 | 701c93f0cba68c28162e6f9443022420b8f4e57d | /wotmad/stats/migrations/0003_auto__del_field_stat_moves__del_field_stat_spellpoints__del_field_stat.py | 2348b5b74c1d5693738786801c8238b140202a42 | [] | no_license | avidal/wotmad | e9c069ff07fc528738e97851e2f1db87759651cb | 78b7164afc0d63fc58451d4078da8ad71c57bb7e | refs/heads/master | 2021-01-22T19:48:44.790586 | 2015-02-24T19:41:38 | 2015-02-24T19:41:38 | 1,926,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,569 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'Stat.moves'
db.delete_column('stats_stat', 'moves')
# Deleting field 'Stat.spellp... | [
"alex.vidal@gmail.com"
] | alex.vidal@gmail.com |
937e8d50119c5045eaa3d246d2349f4e1b9acdb8 | 12dd250ca14f9e42320acbc7c95cf67b654da702 | /ratings/wagtail_hooks.py | 90ceae160dcaace8e0e868bb8bf11c3502bc5cf3 | [] | no_license | fourfridays/umairabbasi.com | 86b3fe09108cd0f09c8d7b122dc18b16a81b985b | b6bd6ecb85b281b03564eef4d7a6f74f59bbd31b | refs/heads/master | 2023-08-20T00:59:53.741112 | 2023-08-18T14:51:48 | 2023-08-18T14:51:48 | 54,347,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from wagtail.contrib.modeladmin.options import (
ModelAdmin, modeladmin_register)
from ratings.models import Cast, MovieGenre, People
class MovieGenreModelAdmin(ModelAdmin):
model = MovieGenre
add_to_settings_menu = False # or True to add your model to the Settings sub-menu
exclude_from_explorer = Fa... | [
"umair.abbasi@fourfridays.com"
] | umair.abbasi@fourfridays.com |
98299e8fc9719396b0a0c8296d8e7d217f227d6b | d385c85c8f462e6908f41fb51e5fb6386a9398a8 | /Desktop/Program/Packing and Unpacking/5.unpacking.py | bcd7f2483cd09021c58e26d8d5a2342866eef8d4 | [] | no_license | spiderr7/cls-python | 697b7802c5efa8eeba2d77fa5fd62a3a1e7c7045 | f2a325f858a2f073cb40e5d8e04ce91dba32d28d | refs/heads/master | 2020-09-13T10:39:42.841354 | 2019-11-19T17:00:14 | 2019-11-19T17:00:14 | 222,745,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | def unpacking(a,b,c):
print("a:",a,end="|")
print("b:",b,end="|")
print("c:",c)
print("-"*50)
a="Hai"
b=[1,2,3]
c=(4,5,6)
d={7,8,9}
e={'a':1,'b':2,'c':3}
unpacking(*a)
unpacking(*b)
unpacking(*c)
unpacking(*d)
unpacking(*e)
unpacking(**e)
| [
"utkarshrana1@gmail.com"
] | utkarshrana1@gmail.com |
8948ad1eaafc3c4f1f7c4e33dfe4de52e0e26e2e | 5d91c8dc65df96816994b5e8cce10d2261294349 | /natural-selection-sim 30-10-2020/vectorMath.py | 351c07b104768d43c93deaf50a21799c1e8d1c85 | [] | no_license | phletic/pythonEcosystemSimulation | 9d8f90b53a6c37d0f7236404bd9997cb45daa8ce | 9e20afacb1c5a44bca920a9f549962f46d437d5c | refs/heads/main | 2023-01-06T15:27:14.272785 | 2020-10-31T04:14:44 | 2020-10-31T04:14:44 | 302,033,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,349 | py | '''
Credits
__author__ = "Sven Hecht"
__license__ = "GPL"
__version__ = "1.0.1"
__maintainer__ = "Sven Hecht"
__email__ = "info@shdev.de"
__status__ = "Production"
to get it : https://gist.github.com/mostley/3819375
Code was used to process the Vector 2 Math required in the simulation, which I was extremely lazy... | [
"chavezchendy@gmail.com"
] | chavezchendy@gmail.com |
5081f40832a7f517c7158063156294613b41d58e | b84bf023fc27c8b4c800c9397f0dfb0a36025e4b | /share/static/i18n.py | c3ccb7b3de5d8cedc1631eb9cfb3da8efa1ff69e | [
"MIT-0"
] | permissive | gracious-tech/track | e95ccc619f42384d0007674ca6eb9e779ccadfc1 | 859804b000222af77ee1a52b5eb25fd93a8cc90a | refs/heads/master | 2023-06-25T01:04:12.197270 | 2023-06-09T00:37:39 | 2023-06-09T00:37:39 | 206,684,739 | 7 | 0 | MIT | 2022-12-08T06:47:41 | 2019-09-06T01:05:50 | TypeScript | UTF-8 | Python | false | false | 585 | py |
I18N = {
# WARN Check any added strings don't overflow sidebar width
'en': {
# Used in image
'percent_heading': "Current readthrough",
'recently_heading': "Recently finished",
'currently_heading': "Currently reading",
# Used in html
'page_title': "Bible reading p... | [
"noreply@gracious.tech"
] | noreply@gracious.tech |
a8ccd4938b7833a0c65b7d17b12e9b858fdf862c | b1562c178375809b7460b15c5cef266eec47b8d9 | /dailyacitivities/dailyacitivities/urls.py | 0f8794ff1349809a4bea409a060a12760209d65f | [] | no_license | viswanath27/dailyactivities | ddeccc900e189a0aed1df82ffb7d8177d708abe6 | 1483158e35f5e1a8ca40281d02fa760ad6b5954a | refs/heads/master | 2022-04-11T19:19:43.006451 | 2020-01-21T16:07:21 | 2020-01-21T16:07:21 | 233,562,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | """dailyacitivities URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cl... | [
"noreply@github.com"
] | viswanath27.noreply@github.com |
9cc28d9f4c07c4648dc57207f4e8201627ae8aed | 1b9075ffea7d4b846d42981b41be44238c371202 | /2008/devel/programming/libs/libdbf/actions.py | 242da707fa8723753f2298926612cdf827675c4e | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
... | [
"MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2"
] | MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2 |
9cd3be7836070f97da48bb5a27fe23846acf509d | 8cc547e9b1285b885f4d2c4320f3b5416c37094d | /proyecto1/testimonios/migrations/0003_auto_20190426_1231.py | 7742ac23426d2eb4110db090baa3ff9ecfeb36a6 | [] | no_license | programaciondb/Django-BootsrapProject | 0f7122142c7c7aadf74fff4a3101be34b1fa16c7 | 8e95c3f238ffec940cbc73c262a7abf6a28444dc | refs/heads/master | 2020-06-20T21:13:41.557227 | 2019-07-16T19:07:10 | 2019-07-16T19:07:10 | 197,251,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # Generated by Django 2.2 on 2019-04-26 12:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('testimonios', '0002_auto_20190426_1228'),
]
operations = [
migrations.AlterField(
model_name='testimonio',
name='creat... | [
"noreply@github.com"
] | programaciondb.noreply@github.com |
b4a09ce335b1af8c297f6a936a94a0159504d5ee | 3fb1b01aa17af71b8c456230474a2c0be2239af7 | /venv/bin/cwutil | c98640220fdb6d4c85f06555c2ad2ccb451a4dfb | [] | no_license | Playron/tdt4117_Assignment3 | 0a0adf7739ca8dd1b42f0cba7ea9ea093c510059 | d481f079d0fa2c0bfcfd304bd31da321bb064cce | refs/heads/master | 2020-08-07T10:23:34.711338 | 2019-10-16T16:38:52 | 2019-10-16T16:38:52 | 213,410,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,092 | #!/Users/perhaagensen/PycharmProjects/tdt4117Oving3/venv/bin/python
# Author: Chris Moyer <cmoyer@newstex.com>
# Description: CloudWatch Utility
# For listing stats, creating alarms, and managing
# other CloudWatch aspects
import boto
cw = boto.connect_cloudwatch()
from datetime import datetime, timedelta
def _pars... | [
"pdhaagensen@gmail.com"
] | pdhaagensen@gmail.com | |
bc7516acc082e5094019d93d309b7b2de24a0d03 | 3af4cdd6d0ea352a82e7126444c321578bfa96e1 | /web_flask/0-hello_route.py | aabef345b768c68ba04374650634e608b4c3d781 | [] | no_license | pasignature/AirBnB_clone_v2 | 7388968c924ddaa024d8b5de9797568b22cbca84 | 7a5c816e76d6442bf6bd5b8f0a00e1c267599036 | refs/heads/master | 2022-12-19T09:33:03.606231 | 2020-08-30T21:42:01 | 2020-08-30T21:42:01 | 288,272,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/python3
"""runs an app with Flask"""
from flask import Flask
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def hello_hbnb():
""" Function called with / route """
return 'Hello HBNB!'
if __name__ == "__main__":
app.run(host='0.0.0.0', port=5000)
| [
"pasignature@gmail.com"
] | pasignature@gmail.com |
cdbe41c2ec761eb560f3450e4eafcb73d802900a | cecd61903943d9f25f37605a344b1683ee958b11 | /what_is_food/config/desktop.py | 06f7e215806a55310c988083ea653bb469f998b8 | [
"MIT"
] | permissive | ashish-greycube/what_is_food | 1f31ce461f97f8d4dccbbd078eb2190a4f785caa | 6c4a327a721accf86667cc87c0b2976dcd09abe6 | refs/heads/master | 2022-12-15T06:07:07.137326 | 2020-08-27T04:05:21 | 2020-08-27T04:05:21 | 273,717,466 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "What Is Food",
"color": "yellow",
"icon": "octicon octicon-device-mobile",
"type": "module",
"label": _("What Is Food")
}
]
| [
"mr.ashish.shah@gmail.com"
] | mr.ashish.shah@gmail.com |
2f4826d4a50897a095ca333682e37d6d4c270c40 | 413450abb1b1b13fd432e41a8a048607aa1b2fc7 | /db/models/__init__.py | b5d02aaf058a5c70fc7d526d92838c29a717bede | [] | no_license | RubenBejanyan/real_estate_app | ea57157517633fc1903e972227db01c7b5f49b3b | afb0a6dba113ea9afbe0cd2359fb08c09b30e012 | refs/heads/main | 2023-05-08T11:10:44.862127 | 2021-06-01T10:22:56 | 2021-06-01T10:22:56 | 358,673,556 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from .db_flask_sql import db
from .apartment import Apartment
from .city import City
from .currency import Currency | [
"bejanyanruben@gmail.com"
] | bejanyanruben@gmail.com |
422cf42aadee1922388e66fd743cda78df05f826 | a901ec459b38cfc0ed2bb3e0ed711dcca3c850c3 | /appium/migrations/0008_auto_20170317_1324.py | c9db2a5b5c2b449e7d2ef2a05157766eab2510d5 | [] | no_license | balavnc/TestConsoleNew | c265999517c2852d1e408849da073de93452673c | 5a1391ed60e7e0a2a9a636990f86d49b68252d5a | refs/heads/master | 2021-01-23T07:16:04.565965 | 2017-07-06T06:26:59 | 2017-07-06T06:26:59 | 86,418,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('appium', '0007_auto_20170317_1322'),
]
operations = [
migrations.AlterField(
model_name='appiumdevices',
... | [
"balasubramanian_n@hcl.com"
] | balasubramanian_n@hcl.com |
e0c0f5874c310c08d6aae5b8963709dc2a7f55f7 | 061c36c4b33dd0c47d9d62c2057559d4c5973681 | /validate_csv.py | 2e7d2f78cb711aa32b69265e49916552cf28ae42 | [
"MIT"
] | permissive | ashkankamyab/DevOps-Python-tools | 0847f9e1b74d7864d17b0a9833beeef1f149e5a5 | dc4b1ce2b2fbee3797b66501ba3918a900a79769 | refs/heads/master | 2022-10-09T15:23:31.108086 | 2022-09-01T14:32:56 | 2022-09-01T14:32:56 | 189,855,037 | 1 | 0 | NOASSERTION | 2019-06-02T14:15:18 | 2019-06-02T14:15:18 | null | UTF-8 | Python | false | false | 10,977 | py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2015-12-22 23:25:25 +0000 (Tue, 22 Dec 2015)
#
# https://github.com/HariSekhon/DevOps-Python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and opt... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
40bf69fc32a19fddc23cf0e29fdc8fc40c238709 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /nlp/dialogue_generation/cpm/pytorch/iluvatar/cpm/config/layers/self_multihead_attn.py | 55be679404c3ac3d70ad62e15e3d9ac7aa90f005 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 3,926 | py | import math
import torch
from torch import nn
from torch.nn import Parameter
import torch.nn.functional as F
from layers.self_multihead_attn_func import self_attn_func
from layers.fast_self_multihead_attn_func import fast_self_attn_func
from apex.normalization.fused_layer_norm import FusedLayerNorm
class SelfMultih... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
f52bf406ca44a3c1069a2d0b80f6794f749d1cf2 | a6562be99956a631d85dc0a13bae03f60dd3c5c3 | /Algorithm/chap10/Radix Sort Algorithm.py | be9111724b8742d40b945a2db668137c440f449f | [] | no_license | ghkdwl1203/python-ml | b6cffaeda0a732f0b0e9aa2065d5ef52bf986dc9 | dceff1a4ee140e97ba93ef40a01d9e0f295a3a74 | refs/heads/master | 2020-04-15T01:25:10.340164 | 2019-10-28T10:08:29 | 2019-10-28T10:08:29 | 164,275,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | from math import log10
from random import randint
def get_digit(number,base,pos):
return (number//base**pos)%base
def prefix_sum(array):
for i in range(1,len(array)):
array[i] = array[i] + array[i-1]
return array
def radixsort(l,base=10):
passes = int( log10 (max (l))+1)
output=[0]*len(l)... | [
"46411842+ghkdwl1203@users.noreply.github.com"
] | 46411842+ghkdwl1203@users.noreply.github.com |
6a255bb67ec9b498d13f2e3027922810f1ba61e4 | a7c33625436a0fc770b795121b65223aca0920c3 | /django_test/settings.py | f4f8a9cacff3cf705e7b3125a5aba60a9aeff8c9 | [] | no_license | parkslyn/mydjango | c876c304df6808b2b70e475fe6622896c8a540ff | aeb0071c0d9f44f2a87705efdca3115fcfd47938 | refs/heads/master | 2020-04-01T22:51:33.102440 | 2018-10-19T06:26:19 | 2018-10-19T06:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | """
Django settings for django_test project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
... | [
"parkslyn@gmail.com"
] | parkslyn@gmail.com |
5e7f0c164fc792ed2978a8a20dbed1f8855921d4 | bd22ab0eef0fa3be5b958772bea0aa6e813cbdd0 | /MyShop/settings.py | 0de109fbde7d2905909fc99e40acca31233d64bf | [] | no_license | DNahian/My-Shop | babcf12fc8b429cbff924d5ee93830b5d0f3f147 | d5f7b5e45e7247be1ea668f49b5cb364d61a62ff | refs/heads/master | 2022-12-03T08:32:04.057352 | 2020-08-20T07:21:15 | 2020-08-20T07:21:15 | 288,934,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | """
Django settings for MyShop project.
Generated by 'django-admin startproject' using Django 3.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"nahiyan313@.gmailcom"
] | nahiyan313@.gmailcom |
33c8c7e6cc382a9dbcd9a3eb49171fbcf67e4e72 | bedf68a6e2bb337d2848a4a55a24c71fd62484c7 | /tests/test_NMT_architectures/bidir_deep_LSTM_ConditionalGRU.py | 0151b7f437481dcaae0d6cdc7546fecde3951030 | [
"MIT"
] | permissive | 19ai/nmt-keras | 941d5bbffe1889d72e4d58ae77fd92d8db3b0df7 | ec56acb619b0c4be0558f737d5d848971fa282db | refs/heads/master | 2020-03-11T16:37:06.633273 | 2018-04-18T11:46:03 | 2018-04-18T11:46:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,746 | py | import argparse
import pytest
from keras import backend as K
from config import load_parameters
from data_engine.prepare_data import build_dataset
from main import train_model, apply_NMT_model
from sample_ensemble import sample_ensemble
from score import score_corpus
def load_tests_params():
params = load_param... | [
"lvapeab@gmail.com"
] | lvapeab@gmail.com |
96af95f675dfa3f4c9a6680800458e6cd0f96d66 | 408f5374f51a00506bed47b8ab242ad5a736f6a4 | /test2.py | 8f1de18d8716023676f4ddf8fae3ee209350331c | [] | no_license | anneaarts/4CK00-Assignment-github- | 96b0f9487d32b1e13f665c250472cacdb168a8c0 | 339a3a989a4904c78f4b3f79835d0aaf825d93b9 | refs/heads/master | 2020-03-19T06:40:38.326504 | 2018-06-04T15:42:20 | 2018-06-04T15:42:20 | 136,044,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 3 16:20:54 2018
@author: s161694
"""
print("Hellllllllo") | [
"anneaarts@live.nl"
] | anneaarts@live.nl |
81e2ac7b48eaae6b4cc377ebf848b672f0e76268 | 9e84117406990da84717bc2a4f70d64207bced7b | /backend/employeeprofile/apps.py | 49c35cff0ebf7d4d329f2d26d9ccd471afc87f58 | [] | no_license | joshhammer/propulsion-final-project | 5063ed5be652f69dd0b6012781614822d9c8d66f | 27c8a8875da591fa3883c1af88fc2a2a5f3bb803 | refs/heads/master | 2023-05-11T01:38:21.326322 | 2020-02-18T18:42:26 | 2020-02-18T18:42:26 | 241,432,633 | 1 | 0 | null | 2023-05-08T01:51:12 | 2020-02-18T18:09:11 | JavaScript | UTF-8 | Python | false | false | 105 | py | from django.apps import AppConfig
class EmployeeprofileConfig(AppConfig):
name = 'employeeprofile'
| [
"rebeccakurup@protonmail.com"
] | rebeccakurup@protonmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.