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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9393d21961b0043d35b932fd166c21ca22c72e0c | e456cdf76c1419413931d218317d44ea4b7c3fb7 | /demo/django/pokedex/admin.py | fd91861f03cd25790e7dec41cc349aba98f35f27 | [
"MIT"
] | permissive | Nekmo/angular-django | cbbd8bb0c6baeea6e788c5623fb98102b443f1e9 | 0464747806ce4e79571d3a72db0f04e15f0c6e5e | refs/heads/master | 2023-08-27T16:03:10.006482 | 2021-11-08T23:15:14 | 2021-11-08T23:15:14 | 298,419,330 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.contrib import admin
# Register your models here.
from pokedex.models import Specie
@admin.register(Specie)
class SpecieAdmin(admin.ModelAdmin):
pass
| [
"contacto@nekmo.com"
] | contacto@nekmo.com |
ee1b03e83ea540328e12e93a69490d8e49e7779a | 8b8ef5fba1dfba0b8bd9fb3d724e69048bbc0f13 | /models/student.py | 8458b4855f8adc10b1a60d043175ec77eb4e7319 | [] | no_license | zbaylin/BookWorm | 5e66331870cfaac541aa157a3568cb4b6bddc49a | 6eda4d7e8c5c4aff779dcfcab2eee7126a9cad99 | refs/heads/master | 2020-04-05T10:26:32.318741 | 2019-02-13T01:17:22 | 2019-02-13T01:17:22 | 156,798,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | import json
import util.dict
class Student():
def __init__(
self,
firstname,
lastname,
email,
grade,
ID=None,
password=None,
num_issuances=0,
):
self.firstname = firstname
self.lastname = lastname
self.email = email
self.grade = grade
self.id = ID
self.passw... | [
"zbaylin@gmail.com"
] | zbaylin@gmail.com |
cc175ac74f032d57d8641a106ebead8e8f7f8a10 | 7c9707f0f1cb8e633ac605934f3dbd8036790868 | /projet/rpi_manager/migrations/0002_ph.py | 71da2a49b682367bb47761ea2e6341addf2a5fc5 | [] | no_license | ometeore/hydropo | 891e1abd4c1b8ccd0a3b27a043abf894b70ceb5b | 324076d4b7ddbd14e718c424eb24d129c2a2243c | refs/heads/master | 2023-06-14T08:35:55.838469 | 2021-07-04T16:28:09 | 2021-07-04T16:28:09 | 290,198,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | # Generated by Django 3.1 on 2020-08-25 13:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("rpi_manager", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="Ph",
fi... | [
"pilt64@hotmail.fr"
] | pilt64@hotmail.fr |
a602a6bd91d133db3c68be3c4b4d25e48dc8bb36 | c02b68e0e1962cab85e9ab882080c68f594d764b | /src/unifide_backend/action/brand/__init__.py | 382b99103ef9c0480ec78fe4dd017daeeb81b733 | [] | no_license | nubela/unifide-backend | b892fab58193488560c852f784ee05f2b656df01 | 0be338be06380941b43601e29326b195e6bc8778 | refs/heads/master | 2021-01-10T20:23:00.291958 | 2013-10-16T15:56:06 | 2013-10-16T15:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | from unifide_backend.action.brand.action import * | [
"nubela@gmail.com"
] | nubela@gmail.com |
142bd6e7f8a71debb064f1499a40085ef6517cf7 | 524cf264b53a353217a0dd7127889db0ec735bec | /pytest/pytest_simplesecclient.py | 78a82dc0430d53e86c31288580f35cc44fea395e | [] | no_license | ChengHsu/NetworkSecurity | 575b993bc11f0ec781a13ff4a1374d7203cb863c | a9ba3ca32794bd55bf1058593aea33d7850850ff | refs/heads/master | 2020-03-28T02:22:46.080800 | 2018-12-30T05:20:48 | 2018-12-30T05:20:48 | 147,566,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | import asyncio
import time
import sys
import os
def findfile_num(start, name):
c = 0
for relpath, dirs, files in os.walk(start):
for file in files:
if file.startswith(name):
c += 1
return c + 1
async def tcp_echo_client(plaintxt, loop):
reader, writer = await async... | [
"chenghsu0224@gmail.com"
] | chenghsu0224@gmail.com |
f5f92d828ee62431a444c5e91a5c8221d3cfc4ba | 429c3b272030641fd62652d052e21e7814fbe17e | /setup.py | 8429a728e869b979f6dd953863f4168141d861d0 | [
"MIT"
] | permissive | williamd1618/ksql-python | 774911ad913557e39cd8ebd04e1c17a0c86686d4 | 42b6f684597716cdaf69b42caa718e2a32b36603 | refs/heads/master | 2020-03-11T04:04:17.039767 | 2018-01-15T07:03:21 | 2018-01-15T07:03:21 | 129,767,462 | 0 | 0 | null | 2018-04-16T15:43:02 | 2018-04-16T15:43:02 | null | UTF-8 | Python | false | false | 1,508 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Setup module """
import os
import re
from setuptools import setup
from pip.req import parse_requirements
# Get version from __init__.py file
VERSION = "0.3.0.2.22"
here = os.path.dirname(__file__)
# Get long description
README = open(os.path.join(os.path.dirname(__f... | [
"kenshin2004528@gmail.com"
] | kenshin2004528@gmail.com |
89e026a18c52f389d46597ba589fee07cc32a352 | d44d33899aaab3d2a8b693b648701d49810aca12 | /cip5-multiprofile-wave.py | e001a331576902efdc7df62b78d3e40a59f81237 | [] | no_license | izham-sugita/CIP | 208eee2e108a910abd3a137083638244b8f60303 | a0cd77531a34ad32a0cebeb6069123e89aceb0b5 | refs/heads/master | 2021-06-27T14:51:45.696969 | 2021-01-07T11:44:04 | 2021-01-07T11:44:04 | 204,810,048 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,796 | py | import numpy as np
import matplotlib.pyplot as plt
#Changing the default size
#fig_size = plt.rcParams["figure.figsize"]
#fig_size[0] = 20
#fig_size[1] = 16
#plt.rcParams["figure.figsize"] = fig_size
imax = 2001
imax = int( input("Enter imax ") )
length = 2.0 #-1<=x<=1
dx = length/(imax-1)
u = np.ndarray((imax),dtype... | [
"sugita5019@gmail.com"
] | sugita5019@gmail.com |
2edcd56053e680eecd41a98f819562aeef6b12f5 | 2b238627de066356b54503bf762ec6dfd6d26e9a | /BinarySearchTrees/KthLargestValueBST.py | de73ae5a609b561064528d9f98de1cd8e2ef71b7 | [] | no_license | LKhushlani/leetcode | 601e1efa8ae6dbfdd4c3b49710f82cf68b9fa54a | 0a4643ca38224bd4cb4a101a6be3161f35979911 | refs/heads/master | 2023-04-28T08:17:38.286004 | 2023-04-20T02:13:52 | 2023-04-20T02:13:52 | 237,696,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # This is an input class. Do not edit.
class BST:
def __init__(self, value, left=None, right=None):
self.value = value
self.left = left
self.right = right
class TreeNode:
def __init__(self, noOfVisitedNodes, latestVisitedNode):
self.noOfVisitedNodes = noOfVisitedNodes
self.lates... | [
"lavinakhushlani@gmail.com"
] | lavinakhushlani@gmail.com |
889cc8fe5b495309708d35c56ef72d7f8db8646e | 5045030c79a0956415bfe57a55e01593fc310214 | /blogproject/accounts/views.py | 837c84f28df473174da34f2a244c328386499e71 | [] | no_license | Werfit/WDjangoReactBlog | 92b49b9bb74005c63a66badd969bbff8b886a81f | 6447a69edfb3c7afcf1d94b14226976091deb5fd | refs/heads/master | 2023-03-07T10:23:25.949406 | 2021-02-20T10:54:52 | 2021-02-20T10:54:52 | 340,630,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | from rest_framework import generics, permissions, status
from rest_framework.response import Response
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist
from knox.models import AuthToken
from .serializers import *
from .models import Profile
class RegisterAPI(generics.... | [
"werfit@Slaviks-MacBook-Pro.local"
] | werfit@Slaviks-MacBook-Pro.local |
898a057527760f01aeb95b618322cf09388c1f42 | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/TRABAJO_SPT_v3_20200224230649.py | 0fe0123926d8f3bed47ddd88db91bc709c442b12 | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,848 | py | import os
import pylab as pl
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import numpy as np
#------------------------------------------------------------------------------
os.system("clear")
fig = pl.f... | [
"jaamunozr@gmail.com"
] | jaamunozr@gmail.com |
a58d31267abb259207c5a6ac44d0e161b10ae7b2 | 37da840bfc8e8299e6415a4816d6d6b72e1e1807 | /fizika.py | bbed51ce22cd4641ad3bd3edee3325def85c4f1f | [] | no_license | stasextaz/chikibambminecraft | 523e06d139a63b0cd5a222f0ab8ff298b37d18ba | 7c23be155797993a3a1e1015d13996082a3d7577 | refs/heads/master | 2020-09-22T08:39:32.317675 | 2019-12-24T15:12:02 | 2019-12-24T15:12:02 | 225,124,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | fizika = [2,3,2,2,3,3,3]
fizika.count(2)
def fizika1():
for i in range(fizika.count(2)):
fizika.remove(2)
for j in range(fizika.count(3)):
i = fizika.index(3)
fizika.pop(i)
fizika.insert(i,4)
for p i... | [
"noreply@github.com"
] | stasextaz.noreply@github.com |
2b733cc49a3d904c59a1710110ebf794cacf8a94 | 17de3571cfbd99b7541d15c55231575eb635260b | /txt2rpy.py | a2bdb80db9e5c7a1a3b43929297c77e8262793ae | [
"BSD-2-Clause"
] | permissive | sinsong/literal-script-compiler | f56f64afd8806552f08da4d72bca9e1f1f6e3eff | bc16e66581336d7e448461532490876a6ff2a865 | refs/heads/master | 2020-06-02T10:49:40.086612 | 2019-06-10T09:39:40 | 2019-06-10T09:39:40 | 191,131,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import sys
import re
from core.row_file import row_file_open
from core.lparser import lparse
from core.llparser import llparse
from core.parser import parse
from core.codegen import codegen
from core.context import Context
# raw_content -> raw_line
# raw_line -> logic_lines
# logic_lines -> ir
# ir -> code_gen
def... | [
"literalkernel@outlook.com"
] | literalkernel@outlook.com |
423824d04b9ff1a989d3a18f132c057b03f82f22 | 4554f8d3ab1a6267b17dad2b4d2c47b0abe8d746 | /benchmarking/remote/devices.py | c7cacd80d2eb8e3a4eb17eebb98a6ac45237cf32 | [
"Apache-2.0"
] | permissive | jteller/FAI-PEP | 44fead3ca26f4844067d455c86ac8c5bfaf79a14 | 73b8a08815675135e9da7d68375d1218cbd04eaa | refs/heads/master | 2020-04-29T06:04:19.197966 | 2019-03-15T23:32:54 | 2019-03-15T23:32:54 | 175,904,011 | 0 | 0 | Apache-2.0 | 2019-03-15T23:30:04 | 2019-03-15T23:30:04 | null | UTF-8 | Python | false | false | 2,484 | py | #!/usr/bin/env python
##############################################################################
# Copyright 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
################################... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
22d1c6a2d75f0cc23740d21dd8851259c7042728 | 8f5eb43f1331d08ffd7ba7617313f9b3823ab36e | /Profiling/src/instrumentation.py | bb3454feaaa722b662eced4914135c98dd112e67 | [] | no_license | felipebetancur/WCET-1 | d68ebcd50388116d001b0ca5a495d8b7e838224d | e148e4d564c6df5488a390de888bfb1b5fedab61 | refs/heads/master | 2021-01-22T13:53:00.787666 | 2015-03-13T14:27:25 | 2015-03-13T14:27:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | import udraw
import config
import vertices
import random
def remove_vertices(enhanced_cfg, to_remove):
for v in to_remove:
enhanced_cfg.remove_vertex(v)
def relink_vertex_predecessors_to_successors(enhanced_cfg, v):
for predID in v.predecessors.keys():
for succID in v.successors.keys():
... | [
"a.betts@imperial.ac.uk"
] | a.betts@imperial.ac.uk |
12187cdb11c155892257555af0a9c93d9dc2d100 | b4b1459ecb0d9190b11e530ffc374153af5c349e | /filters.py | c4c0b7f9216ed70b0c1d2b591f456e8d5ab9c01c | [] | no_license | perintyler/nfl_tracker | 77aaa9a1d22a358e664da68890a134d8e8005b8b | eb7020c19b42b33c3cbad23af5e2823158cba569 | refs/heads/master | 2020-08-01T07:13:04.259355 | 2019-11-11T21:24:43 | 2019-11-11T21:24:43 | 210,909,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | def toBlackAndWhite(img):
avg = np.mean(img, axis=2)
bw = np.zeros(img.shape)
bw[np.where(avg>150)] = [255,255,255]
return bw
def getGreenChannel(img):
green = img.copy()
green[:,:,0] = 0
green[:,:,2] = 0
return green
def getBrightChannel(img):
return | [
"perintyler@gmail.com"
] | perintyler@gmail.com |
c041a21f8b5aebe604b582047f90566ced7c2fec | 31b716176ccece1e0530ae1129c5b2a535741051 | /label_test.py | 7e2fa52c3bade7ed9375e31f77b06a543b6e303f | [] | no_license | NicolasAcci/Machine-Learning | 1ad3d9c930c2895b20ab8b68ef8b5d9ab3e6eb86 | b801aea5960893db29f1794286faa599987a4588 | refs/heads/master | 2020-06-29T10:55:33.905301 | 2020-06-11T03:15:03 | 2020-06-11T03:15:03 | 200,515,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,029 | py | import argparse
import json
import os
import os.path as osp
import warnings
import copy
import cv2
import numpy as np
import PIL.Image
from skimage import io
import yaml
from labelme import utils
NAME_LABEL_MAP = {
'_background_': 0,
"road": 1,
"grass": 2,
"building": 3,
"car": 4,
"person": 5,
... | [
"noreply@github.com"
] | NicolasAcci.noreply@github.com |
38319b02bd4e57cd29c0ab49c5da043995369dde | 1cee2094b52f23172f262d4290011840066fcfc1 | /cw/cw_proj/model_hyperparameters.py | a4c6efaa929655998fa365b62d7ab3d9597918bc | [] | no_license | VariableDeclared/uop-computer-vision | 3210db7fd8797e0a94b807ee4449b73351b1ef0e | 59c07b9b25bd020409b28f88bb4aa7b9a1e543ca | refs/heads/master | 2020-03-30T14:01:43.298122 | 2019-05-07T08:17:48 | 2019-05-07T08:17:48 | 151,297,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,380 | py | from tensorflow.keras.layers import Dense, LSTM, Dropout
import tensorflow as tf
import pprint
import os
import datetime
import main
import numpy as np
import cv2 as cv
def modelv1(num_frames):
model = tf.keras.Sequential()
model.add(LSTM(100, input_shape=(num_frames, 1000)))
model.add(Dropout(0.5))
mo... | [
"petedes@live.com"
] | petedes@live.com |
fcea52caf6cd8c18bd6aa88e38b67ee777906660 | dedf3082c0026d52200361a34262c752c05a193b | /Hackerrank-Solutions/Hackerrank-Python-Solutions/Regex and Parsing/Regex Substitution.py | 65949f65eea2f201a40ee97f5307fb0b3baa06f4 | [
"MIT"
] | permissive | HetDaftary/Competitive-Coding-Solutions | 0d31568ab5be7292d28883704f15e62a2496f637 | a683fa11895410c6eef07b1a68054f3e90aa596b | refs/heads/main | 2023-04-02T11:58:00.731977 | 2021-03-31T14:23:39 | 2021-03-31T14:23:39 | 351,979,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
import re
N = int(input())
for i in range(N):
print(re.sub(r'(?<= )(&&|\|\|)(?= )', lambda x: 'and' if x.group() == '&&' else 'or', input()))
| [
"hetdaftary@gmail.com"
] | hetdaftary@gmail.com |
431a60378e86b4b85d841143ab2f513bb7bbeeff | 1b5cc8dc487da59455dfe6749796870d51d5ab87 | /src/collective/iptvusp/tests/test_uspvideo.py | 72b74796685ac00b3964064bc7a733813671c2c5 | [] | no_license | simplesconsultoria/collective.iptvusp | eddcd726a800933127b04959bba90c63210049dc | 89b14ee4a01e19ef5cd7198c5bdf808ef555f1f0 | refs/heads/master | 2021-01-01T18:29:41.272115 | 2013-03-12T19:01:25 | 2013-03-12T19:01:25 | 6,388,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | # -*- coding: utf-8 -*-
import unittest2 as unittest
from zope.component import createObject
from zope.component import queryUtility
from plone.app.testing import TEST_USER_ID
from plone.app.testing import setRoles
from plone.dexterity.interfaces import IDexterityFTI
from plone.app.dexterity.behaviors.exclfromnav im... | [
"erico@simplesconsultoria.com.br"
] | erico@simplesconsultoria.com.br |
b847d5a37a190f795512d1c3a3ab13e6d4fcebb6 | 1472b262cb8a3032abcfb51cf3f2a9e094cfee70 | /FirstPage.py | a58769afbbfd4bf983dcdabd4bd53afc1d67e8fb | [] | no_license | kusmakharpathak/system_admin_group | 5413c80a550a2da78a899f3c37a8ffa261ec86d3 | 725cdaea6847db0946c5d819a5090feacdbebee5 | refs/heads/main | 2023-03-11T13:12:12.458059 | 2021-02-25T19:40:12 | 2021-02-25T19:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | from tkinter import *
from tkinter.ttk import Combobox
w = Tk()
w.geometry("900x700")
w['background']='#6EB69E'
f1 = Frame(w,width = 100,height = 100,background = '#E0F1F0',highlightthickness = 3)
f1.grid(row=0,column=0,ipadx = 10,ipady=10,padx=1,pady=1)
admin = Label(f1,text="Admin",fg="black",bg='#E0F1F0', font=("... | [
"noreply@github.com"
] | kusmakharpathak.noreply@github.com |
f2212a99bb2cf06fa216bca71f657bb19d3a6cd2 | 553f801bea01707f30b39846d008759237cb826e | /Scripts/rename.py | 54d2af317072927846a6ca9b0f1dc4622d1b2777 | [
"MIT"
] | permissive | ChristopherStavros/General | 55241e5823df2fc763a3103c3c2ade2fa833301d | 7701fee0a2db8a8f4b2cfe80e57eb10ed86a89a8 | refs/heads/master | 2020-03-26T01:02:59.572695 | 2019-05-12T21:37:17 | 2019-05-12T21:37:17 | 144,349,708 | 0 | 1 | null | 2019-01-02T18:36:46 | 2018-08-11T02:40:03 | PowerShell | UTF-8 | Python | false | false | 403 | py | import os, sys, shutil
script_path = os.path.dirname(sys.argv[0])
if script_path[-1:]=='\\':
script_path = script_path.strip('\\')
for f in os.listdir(script_path):
if 'notes_' in f:
shutil.copy2('{}/{}'.format(script_path, f), '{}/{}'.format(script_path, f.replace('notes_', '')))
#os.rename('... | [
"christopher.kurkoski@gmail.com"
] | christopher.kurkoski@gmail.com |
6a28e7551bac14d5e50e838a962b64b49a7008ae | 057722b227e9f51c78bd77b622859674016f19dc | /homework4/code/p7/trysvm.py | 8783e7fd91174a983250421516e6938b0597d778 | [] | no_license | walkerning/Homework-pattern_recognition | 56508bc66d0932ad8c9899658d8229169d800551 | 843a79d1f4cc278839ade27a593ae66e603ac4ba | refs/heads/master | 2021-03-19T15:30:55.581932 | 2017-05-31T15:51:22 | 2017-05-31T15:51:22 | 84,166,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | # -*- coding: utf-8 -*-
import numpy as np
from sklearn import svm
samples_w1 = np.array([[-3.0, 0.5, 2.9, -0.1, -4.0, -1.3, -3.4, -4.1, -5.1, 1.9],
[-2.9, 8.7, 2.1, 5.2, 2.2, 3.7, 6.2, 3.4, 1.6, 5.1]]).T
samples_w2 = np.array([[-2.0, -8.9, -4.2, -8.5, -6.7, -0.5, -5.3, -8.7, -7.1, -8.0],
... | [
"foxdoraame@gmail.com"
] | foxdoraame@gmail.com |
7becadaa213cd03cf79e3e0b8cb057367af3bfac | 117078195d04c6b4a8919cb3d426f7434081c222 | /polarmine/alternative/alternative_solver.py | 6ca0dda71ea0acc77c69a5684bb42605ae60e574 | [
"MIT"
] | permissive | morpheusthewhite/master-thesis | 6825e15dd7a958306ebbff5b5037cfdeaa119c5e | 2ab4c0509a119d7b5f332b842a4101470a884351 | refs/heads/master | 2023-07-11T07:11:20.353983 | 2021-08-10T13:01:42 | 2021-08-10T13:01:42 | 330,761,354 | 1 | 0 | MIT | 2021-03-16T15:57:16 | 2021-01-18T19:03:50 | Python | UTF-8 | Python | false | false | 453 | py | from typing import List
from abc import ABC, abstractmethod
from polarmine.graph import InteractionGraph
class AlternativeSolver(ABC):
"""A solver for an alternative formulation of Echo Chamber Problem"""
def __init__(self, *args, **kwargs):
super(AlternativeSolver, self).__init__(*args, **kwargs)
... | [
"zffromGerace@hotmail.it"
] | zffromGerace@hotmail.it |
a914aec5310e3f105c8274a919bfec0b29a9cbea | 68ec834c72d32f1c393235035a4bad13f5e7dc46 | /test.py | b268c117867837083a4c96968d409b9ceb152310 | [] | no_license | jordanwesthoff/scantron | da41bbb42d0c243ce3246f129ea1f195d3af3f5b | a06bd8cf256baffa1066966b046d03438510e772 | refs/heads/master | 2021-01-19T05:39:12.664486 | 2015-05-13T22:14:03 | 2015-05-13T22:14:03 | 34,220,779 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print 'This is a test.py'
| [
"mkp9617@rit.edu"
] | mkp9617@rit.edu |
6a4e8cbc8eaf2827af140b194d0447517e825729 | 52147a1f41f813945ccde3cb726dc274a3868371 | /MDjango/urls.py | 5b5a85035fc5698239f8b764fac798fa328814c1 | [] | no_license | ipnono/django-- | 2b31031700346c3b594731a27834eeb39cec8c2d | 9fdfb86c29e1f2815bf8e9d157bf6a7009e890f9 | refs/heads/master | 2020-04-14T21:11:27.740478 | 2018-09-04T06:30:30 | 2018-09-04T06:39:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | """MDjango URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.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')
Class-based... | [
"842021219@qq.com"
] | 842021219@qq.com |
f6d6555a8ba6236ab372c46d3874d38c6e764625 | db7660d3541c26b418ea84ca08fbf41f9ebd726b | /brax/jumpy.py | 7486fd1ac0b8ac9b44e57f3f0ed88c4c3ca5f7a4 | [
"Apache-2.0"
] | permissive | proceduralia/brax | 8727ada08184fe9f60356d17a15ea671df0906d6 | d54dc479a32e5e99641cde921c7988d69cd5bb7b | refs/heads/main | 2023-08-27T15:39:44.618414 | 2021-11-08T21:35:42 | 2021-11-08T21:37:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,680 | py | # Copyright 2021 The Brax 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 or agreed to in wri... | [
"erikfrey@google.com"
] | erikfrey@google.com |
d2f6e5faa8e1f124af00e0502dca3ad30670785e | b5fabc6c6de064690f8d4ee423001cf9365a3d9f | /flash/image/segmentation/model.py | 9296db60cbcff1e6220d5aee051ddb36549a8b1f | [
"Apache-2.0"
] | permissive | dmarx/lightning-flash | 021dfd76bde6e30309f14feb5853020b0babe90d | 4cda031c1f9c8d8754fd36b5720d2a5a7d866765 | refs/heads/master | 2023-09-06T06:24:29.856354 | 2021-11-24T23:38:14 | 2021-11-24T23:38:14 | 422,352,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,182 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | dmarx.noreply@github.com |
bf2bb21fe32c046e31ac269a94e444f91dc0217b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03626/s873858203.py | 5c64e4b78d0537220084f2cc138a77120c711579 | [] | 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 | 440 | py | MOD = 1000000007
n = int(input())
s1 = input()
s2 = input()
if s1[0] == s2[0]:
ans = 3
i = 1
prev = 1
else:
ans = 6
i = 2
prev = 2
while i<n:
if s1[i] == s2[i]:
i += 1
if prev == 1:
ans *= 2
else:
prev = 1
else:
i += 2
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0d112d9d22bf6d95c471ac0daf7bbcf566c2e834 | 1af288c99de84ca38b0df3469fa468b45473eb13 | /src/globals/constants.py | 7e84bee181145119688cf72d20eace0f6991bcbb | [] | no_license | bhavye9499/DIP-Project-MangaColorization | 3aea11bef39d4f7b142c1929d929a337ccebd3d6 | ae6b1f9f6c75f78c874414da5508be2dc4880198 | refs/heads/main | 2023-05-31T20:43:17.351616 | 2021-06-29T20:08:39 | 2021-06-29T20:08:39 | 317,637,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | import enum
COMMON_COLORS = (
'--Select--',
'Black',
'Blue',
'Brown',
'Green',
'Hot-Pink',
'Mustard',
'Orange',
'Peach',
'Purple',
'Red',
'White',
'Yellow',
)
COMMON_COLORS_HEX_CODES = {
'Black': '#000000',
'Blue': '#0000ff',
'Brown': '#964b00',
'Gre... | [
"bhavye17038@iiitd.ac.in"
] | bhavye17038@iiitd.ac.in |
9378b8553218a33230ad97549dba2ea78a1f7bf6 | b8e0147172dd54e5f9c6b7f6ebd55d93155e029b | /server.py | a712fb527014e321da17b178823a68af35bb90c1 | [] | no_license | thaiantt/Gdelt | 5d8491438a5f54600caf8085f44ced1b969cb0c8 | 776f0352a15887f51849fbef7ef4e522d17cc47a | refs/heads/master | 2021-05-11T02:52:21.500185 | 2018-01-23T07:33:50 | 2018-01-23T07:33:50 | 117,896,772 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,019 | py | # coding: utf-8
from twisted.web.static import File
from twisted.web.server import Site
from autobahn.twisted.websocket import WebSocketServerProtocol
import json
from functions_api import *
from pymongo import MongoClient
# API
api = {'getAllHumanitarianEventsByRegionByYear': getAllHumanitarianEventsByRegionByYear,
... | [
"thaian.tt@gmail.com"
] | thaian.tt@gmail.com |
6976c5d4d8149dc07efe4fe71690283a0ffcb22c | d1e6b312d8d4e4601213ad44f1b2ce90563118c9 | /reviews/models.py | 4b958f226dcbcf60b13e4c7250d0dfbce647021d | [] | no_license | seabass189/owhatacookie | 8a1fb8b99d69b4b44d0ec981a0fe09c3de710ba2 | 96cb3d7c54d71c187f53cc37876fba171ea5bac9 | refs/heads/master | 2023-01-02T01:30:07.974163 | 2020-10-25T23:19:01 | 2020-10-25T23:19:01 | 294,293,474 | 0 | 0 | null | 2020-09-22T00:00:30 | 2020-09-10T03:33:00 | Python | UTF-8 | Python | false | false | 563 | py | from django.db import models
from orders.models import Order
# from customers.models import Customer
class Review(models.Model):
header = models.CharField(max_length=50)
text = models.CharField(max_length=500, blank=True, null=True)
stars = models.PositiveSmallIntegerField()
customer = models.ForeignKe... | [
"33647914+seabass189@users.noreply.github.com"
] | 33647914+seabass189@users.noreply.github.com |
deb150440060e0d6c968a2ccf2812970012b495a | 27c4e774f053594473da202c1c45dcbf237465be | /Scorm.py | 566403fdd0e407806057a4daa6e2727586ed572a | [] | no_license | Gamboua/zope-migration | 34e6b27962859352fe08a4277a8215b36b01889c | 7a83ed67c5ea561bfa8aa300728390b7220f3633 | refs/heads/master | 2020-12-25T14:49:22.173420 | 2017-10-19T20:47:50 | 2017-10-19T20:47:50 | 67,830,154 | 0 | 1 | null | 2016-10-20T21:42:09 | 2016-09-09T20:20:57 | PHP | UTF-8 | Python | false | false | 1,910 | py | import paramiko
import os
from scp import SCPClient
from config import *
from Command import Command
import random, string
class Scorm:
def __init__(self, scorm, course):
self.course = course
self.scp = None
self.type = 'scorm'
self.section = 0
self.folder = self.get_if_... | [
"gabriel.bonfim@4linux.com.br"
] | gabriel.bonfim@4linux.com.br |
c4255ced1b54803e492ceff98a8071bf9141f62f | 51c1304e01aa5b83b8a0f98c1c182f47a2cca090 | /scripts/sisi_angle_script.py | 2006860e20887c466e1011cbe62ba4f4987c0649 | [] | no_license | Schulmanlab/nanotube_image_analysis_scripts | 5e9283f90f217093d7aa4b9186cfa14d8b25a3cd | 078be9239ca19582ace6b2589f95ac6bdc94cc2c | refs/heads/master | 2020-03-19T21:45:20.439149 | 2018-06-11T18:30:52 | 2018-06-11T18:30:52 | 136,949,013 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,367 | py | import numpy as np
from skimage.transform import (hough_line, hough_line_peaks,
probabilistic_hough_line)
from skimage.feature import canny
from skimage import data
from skimage import io
from skimage.morphology import closing, disk
from skimage.morphology import skeletonize
from skimag... | [
"mpacella88@gmail.com"
] | mpacella88@gmail.com |
6799732e6efdadc03999d9a6551f7d070c25df4b | f5a002ae3b12a750fa3c777e8ce239677d0f8db5 | /accounts_mode_voucher/model_purchase_account_signal.py | a6dbc629f75dc259c7f63f80103a13fc3d8d5143 | [] | no_license | abhishek-ag2000/working123 | f217911c6f54091b6412f1bf7e594998cab5cbda | e9e07d98011a4db812d06e50de4063e305dbc1d9 | refs/heads/master | 2022-12-14T03:54:54.064379 | 2019-09-14T14:10:58 | 2019-09-14T14:10:58 | 188,194,278 | 0 | 0 | null | 2022-12-08T05:21:08 | 2019-05-23T08:37:53 | JavaScript | UTF-8 | Python | false | false | 6,078 | py | """
Signals for Purchase
"""
from django.db.models import Value, Sum
from django.db.models.signals import pre_save, post_save, pre_delete, post_delete
from django.db.models.functions import Coalesce
from django.dispatch import receiver
from accounting_entry.models import JournalVoucher
from accounting_entry.decorators ... | [
"ratanbiswas.it@gmail.com"
] | ratanbiswas.it@gmail.com |
7620f89c22df19a666234828f74b8c1e662b8d0f | fd0e3562df4c4aadac3717de5cabef499e209553 | /battlefield.py | c22aeb83b800f249a39347fd5c0e15fc42bb9e18 | [] | no_license | ImHucklle/Robots_vs_Dinos | 9833a42bab08b9ae5e8296ac15093fb33d9c831f | 3e50f98b6e7cc092d6711174765f4283ec95c795 | refs/heads/main | 2023-09-06T06:43:55.252832 | 2021-11-18T20:45:21 | 2021-11-18T20:45:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | from fleet import Fleet
from herd import Herd
class Battlefield:
def __init__(self):
self.fleet = Fleet()
self.herd = Herd()
def display_welcome(self):
print ("Hello, welcome to the carnage!")
def game_start(self):
user = input("Ready to fight for survival? Enter y or... | [
"mylesnlister@Myless-MacBook-Pro.local"
] | mylesnlister@Myless-MacBook-Pro.local |
b79d517c91a75383143e6245ca26f5d5dc4c4e01 | 33ba0c08d8302eeede1cb3c8d9a3797a1a572ac5 | /assignments/11-regex-dates/dates.py | e79758f77afb8ecd1792fdf0a34eca7954beb8b9 | [
"MIT"
] | permissive | mattmiller899/biosys-analytics | a39db0f793b317c5de6c3a02b905536fdff66a71 | ab24a4c7206ed9a865e896daa57cee3c4e62df1f | refs/heads/master | 2022-08-18T08:52:50.827883 | 2021-05-26T21:07:42 | 2021-05-26T21:07:42 | 166,158,190 | 0 | 0 | MIT | 2019-01-17T04:07:06 | 2019-01-17T04:07:05 | null | UTF-8 | Python | false | false | 1,951 | py | #!/usr/bin/env python3
"""
Author : mattmiller899
Date : 2019-04-08
Purpose: Rock the Casbah
"""
import os
import sys
import re
# --------------------------------------------------
def main():
args = sys.argv[1:]
if len(args) != 1:
print('Usage: {} DATE'.format(os.path.basename(sys.argv[0])))
... | [
"mattmiller899@login3.cm.cluster"
] | mattmiller899@login3.cm.cluster |
ed470021c5d7320465b10f40070de60988c328b6 | fd987458b3b294a7e757aaf1d80c5a9a6a3da53f | /DataModeling/backlog/FFMap.py | 27b1ff41ab5df28777338c9baae8055c74af531a | [
"MIT",
"Apache-2.0"
] | permissive | achyun/OpenVisuMap | 77d487e4f434b30377dbba695870c13f8022ff52 | d4f19b4c6ad12e25b407966571f830eb28e0b610 | refs/heads/master | 2023-09-04T07:30:12.421170 | 2021-11-01T22:48:34 | 2021-11-01T22:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,090 | py | #=========================================================================
# FFRegression.py
#=========================================================================
import sys, os, math, time, shutil, ModelLog
os.environ['TF_CPP_MIN_LOG_LEVEL']='3'
import tensorflow as tf
import numpy as np
from Util import MakePai... | [
"jamesxli@visumap.com"
] | jamesxli@visumap.com |
2f60880d4c4c0a1f5c94b43bdaba7a41cacd7635 | 08123bd466ec99bc91db6ebdf5023b31ffce0862 | /etl/etl.py | 48432eef0f5bd21dd6b7548a0ac3be140cecf7f6 | [] | no_license | lbedner/rose-of-eternity-legacy-reviews-etl | 3d1a06ff57f05486f3a10dfb7261edfca77c4f24 | 1dbbe150ec8ca1377e8e347354331ff0f638392e | refs/heads/master | 2023-04-28T18:42:57.068118 | 2021-05-01T03:33:44 | 2021-05-01T03:33:44 | 360,008,809 | 0 | 0 | null | 2021-05-01T03:33:44 | 2021-04-21T02:26:21 | Python | UTF-8 | Python | false | false | 5,880 | py | """ETL for legacy Rose of Eternity reviews archived on wayback machine."""
import csv
import datetime
from dateutil import parser
import logging
import os
from typing import Optional
from urllib.parse import ParseResult, urlparse
from bs4 import BeautifulSoup
import psycopg2
import psycopg2.extras
import requests
fr... | [
"LeonardBedner@iheartmedia.com"
] | LeonardBedner@iheartmedia.com |
615158eadfcbf02124c5f25128a0cf68ffa28514 | c2ef2deccd5319ad291317a16e8cb96fe1cf26dd | /Sizing_FrozenAug26/engine.py | 7106895f1511c8ae22babd9e6c98760bff103be8 | [
"MIT"
] | permissive | icl-rocketry/optimalSizing | 9045aef128f7c3b339bd6ee251dd29f873d34cd5 | c23f5a84bc9f46cf86977ec7da97dbf7126dcb1b | refs/heads/master | 2020-07-02T13:53:59.344763 | 2019-11-06T00:54:31 | 2019-11-06T00:54:31 | 201,545,820 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,064 | py | import gpkit
from gpkit import Model, Variable
from gpkit.constraints.tight import Tight
from gpkit.constraints.loose import Loose
from gpkit.constraints.bounded import Bounded
from gpkit import ureg
class SimpleEngine(Model):
def setup(self):
constraints = []
components = []
######## co... | [
"dra16@ic.ac.uk"
] | dra16@ic.ac.uk |
df13faf30c4a370935e8475eda2e144e87e571bb | a51380a47c97a0a7b5b9b517ad412334a299d956 | /wordcount/views.py | d4229e37348d4a8d04622b77015c10706adbe074 | [] | no_license | buhyunk3/topproject | 8fdead719430c4f0f809ffcf3d338d7f0126010b | 6934319f2de2291d8efa1a2ed8be6c49c228f792 | refs/heads/master | 2020-04-17T09:55:01.641594 | 2019-01-18T22:12:42 | 2019-01-18T22:12:42 | 166,479,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from django.shortcuts import render
# Create your views here.
def home(request):
return render(request, 'home.html')
def about(request):
return render(request, 'about.html')
def result(request):
text = request.GET['fulltext']
words = text.split()
word_dictionary = {}
for word in words:
... | [
"buhyunk3@likelion.org"
] | buhyunk3@likelion.org |
55d8310f311948081576b53b7f9881db250ab417 | 36121f94d6ffcc23e37e81920885fea7b8613bd4 | /ColourUse/colourMap_crameri/ScientificColourMaps7/bamO/bamO.py | 523c6446441659ebd362b742b541fbd3dca58a1f | [] | no_license | mickaellalande/MC-Toolkit | 16079a58930293baa86a2be4e6c3e9755a74f861 | c0c17c107881751b82c7d99c5c7f328ddbe1fada | refs/heads/master | 2023-07-21T19:53:01.905408 | 2023-07-06T09:20:27 | 2023-07-06T09:20:27 | 233,410,384 | 11 | 6 | null | 2021-05-11T10:07:30 | 2020-01-12T15:04:06 | Jupyter Notebook | UTF-8 | Python | false | false | 12,400 | py | #
# bamO
# www.fabiocrameri.ch/colourmaps
from matplotlib.colors import LinearSegmentedColormap
cm_data = [[0.30946, 0.18635, 0.26374],
[0.31419, 0.18609, 0.2688],
[0.31943, 0.18615, 0.27428],
[0.32515, 0.18655, 0.2802],
... | [
"jb.barre@gmail.com"
] | jb.barre@gmail.com |
4a5b7c6844ca194b50ed70323648cba57b6e0b8d | c6e5bbafd810d23e0ee46d69026cba35339d1dbd | /accounts/managers.py | 42d3aae755fba1358031994ccd3a06d4ca8dcdd1 | [] | no_license | mfonism/django-inqueerstigate | 9c8b729848bf3df9fb9ec991ec47391b69ad7b66 | af5420bf8adf6aa89533cd1462d9eeed6e8c88db | refs/heads/main | 2023-05-26T12:59:55.774989 | 2021-06-07T11:46:48 | 2021-06-07T11:46:48 | 323,681,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,179 | py | from django.contrib.auth.models import BaseUserManager
class UserManager(BaseUserManager):
use_in_migrations = True
def _create_user(self, email, password, **extra_fields):
if not email:
raise ValueError("The given email must be set")
email = self.normalize_email(email)
us... | [
"mfonetimfon@gmail.com"
] | mfonetimfon@gmail.com |
847e83de22c9dbcb04f87362a0d956c786584799 | caace044baf7a6f2b0bda65ae361eed06bddfc3c | /dailyQuestion/2020/2020-06/06-01/python/solution_items.py | 1f7df5de69c465f7a57e918ca5eee350c02c2603 | [
"Apache-2.0"
] | permissive | russellgao/algorithm | fd6126e89c40d7d351c53bbd5fde690c9be899ef | ad5e724d20a8492b8eba03fc0f24e4ff5964b3ea | refs/heads/master | 2023-03-28T03:00:02.370660 | 2021-03-28T10:56:38 | 2021-03-28T10:56:38 | 259,038,372 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py |
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# 迭代
def sortList(head: ListNode) -> ListNode:
head_len = 0
invc = 1
h = head
while h :
head_len += 1
h = h.next
result = ListNode(0)
result.next = hea... | [
"gaoweizong@hd123.com"
] | gaoweizong@hd123.com |
8da0b36863fe5720eff6f961ca1136f07cd253f3 | 648e0c3bcd4b26d72087c9a785fea85dbd5dce59 | /chap05/chap05.py | ae3b450c6f4a0524790246da33fea6690a8e079f | [] | no_license | bryansis2010/machinelearninginaction | d31f6c10996155957593123297fcbd4c0d954a57 | f21a2af2c306d5c53d56d5a7bcd8a5f2f07fea1b | refs/heads/master | 2020-06-02T06:57:03.163294 | 2015-04-05T14:50:07 | 2015-04-05T14:50:07 | 31,070,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | #-------------------------------------------------------------------------------
# Name: chap05
#
# Author: bryansis2010
#
# Created: 05/04/2015
#-------------------------------------------------------------------------------
#imports relevant to the text
from numpy import *
import re
#my own imports to... | [
"bryan.sis.2010@gmail.com"
] | bryan.sis.2010@gmail.com |
88128fb4f2ef8cb1c5a3e6135fa51534bd1e2718 | 949a6268b7bbd2707ce21a4398a5eedd8c1509b4 | /hw_1016/title_state.py | e912a5361ecc183c04eeb83d0ffc10c62e92ba79 | [] | no_license | samang22/School-Project | a2bbeb75f39fcbbb2e8e5ae52bc0272178670e4d | 9736ff9f456fdaea4c2b69ecd5887dd2562c3ba9 | refs/heads/master | 2020-03-28T11:11:53.791271 | 2018-12-14T04:03:16 | 2018-12-14T04:03:16 | 148,187,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from pico2d import *
import game_framework
import boys_state
def enter():
global bgImage
bgImage = load_image('../res/title.png')
def exit():
global bgImage
del bgImage
def draw():
clear_canvas()
bgImage.draw(400, 300)
update_canvas()
def update():
delay(0.03)
def handle_events():
events = get_events()
f... | [
"samang22@naver.com"
] | samang22@naver.com |
db0454c4c301f4b509ebb198c08bac7e87c6a3bd | d19d16ddc922b0915aff982568c5c71ee58fb8b9 | /dataset/utils.py | f13a627e795ae92c6dca77770e719e98d0542e2e | [] | no_license | zhaoyuzhi/HSGAN | 036a6fec722d564f9b203f6032bf47039c1eadd4 | f974761ec4a65ef58283ae4ccba618b97e79c4bc | refs/heads/main | 2023-08-03T10:06:05.195187 | 2023-07-27T14:21:54 | 2023-07-27T14:21:54 | 337,642,689 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | import os
import numpy as np
# ----------------------------------------
# PATH processing
# ----------------------------------------
def check_path(path):
if not os.path.exists(path):
os.makedirs(path)
def get_files(path):
# read a folder, return the complete path
ret = []
... | [
"noreply@github.com"
] | zhaoyuzhi.noreply@github.com |
4e9e117b4208da744ba02a9299faa7b6caea4145 | 45d17ca56a111c550272214ee555e91f3cf8ea08 | /ERROR404/QuestionDiagonosisTkinter.py | 047c35e2258ad369b066d131e6b96af5a57995ec | [] | no_license | bipul2002star/HealthCare-Jarvis-bot | d0ad0dc4979a87bbde7b7090ce44781d43f35611 | 8e2c9fcce2173ab2ce9a68f86bc74aa1ed1b49fd | refs/heads/main | 2023-04-12T08:45:42.956875 | 2021-04-25T12:29:02 | 2021-04-25T12:29:02 | 361,421,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,582 | py | from tkinter import *
from tkinter import messagebox
import os
import webbrowser
import numpy as np
import pandas as pd
class HyperlinkManager:
def __init__(self, text):
self.text = text
self.text.tag_config("hyper", foreground="sienna... | [
"noreply@github.com"
] | bipul2002star.noreply@github.com |
596c977a72f3fb8a47089d9ab9c5f443a05cdcdc | 58c505e5883ce4975517eb00544c5871647b6f69 | /blog/migrations/0001_initial.py | 35a93a385d0ab7a9ce0027632d373f27e192d98d | [] | no_license | kalyanit17/my-first-blog | 0ae6e078d87f64d475bd9e077ac53b4939cb1ddf | e372db9a5741902326b4a8fd2b7591cd2e21db54 | refs/heads/master | 2020-12-31T06:46:29.128949 | 2017-02-17T06:47:38 | 2017-02-17T06:47:38 | 80,627,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-01 13:01
from __future__ import unicode_literals
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
... | [
"kalyanit17@gmail.com"
] | kalyanit17@gmail.com |
971930662e9f48b55e5e7268f17b00a473b909c6 | 4fb5b869f6690b73e32a2d8624f5fc8954540b42 | /pypiplot/examples.py | b73f61adfb29a23b32d768d116b50680a0502255 | [
"MIT"
] | permissive | erdogant/pypiplot | cc8eb15f9b6855cba270256591ba8b1ec4ae41f6 | 2016cca3d0b4022cda1806c2c4b8c4eb2d31ee19 | refs/heads/master | 2023-04-16T03:26:26.935072 | 2023-02-21T23:46:01 | 2023-02-21T23:46:01 | 293,334,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | import pypiplot
# print(pypiplot.__version__)
# print(dir(Pypiplot))
from pypiplot import Pypiplot
# %% Update all libraries to date.
pp = Pypiplot(username='erdogant', repo_type=['owner', 'fork'])
pp.update()
results = pp.stats()
pp.plot_year(vmin=700)
pp.plot()
pp.plot_year()
# %% Top 10 best repos
pp = Pypiplot... | [
"erdogant@gmail.com"
] | erdogant@gmail.com |
8cdbe5d4f721be8e8da2b94aa2163e7bd13f4a7b | c700111e96595d2f0699d20c3260823bf5cf5124 | /Release_01_20171106/src/ex9-integration.py | 495a8bd27c4814191b650bf18fe3816834a70e5e | [] | no_license | jimmielin/HW-Numerical-Physics-201718 | 7de1068465951b48929616623ee0b36bca65f5b5 | 63b2fd59ba1448009124feabce2bb549009b673e | refs/heads/master | 2021-09-03T21:38:53.909261 | 2018-01-12T06:59:15 | 2018-01-12T06:59:15 | 105,414,720 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | # $ RELEASE $
# $ 201711060212Z $ rel01
# $ Signed-Off-By: Haipeng Lin <jimmie.lin@gmail.com>
####################################################################
# Computational Physics, 2017-18 Sem1
# HW-1 Ex-9
#
# (c) 2017 Haipeng Lin <linhaipeng@pku.edu.cn>
# All Rights Reserved.
#
# This program is written as Home... | [
"jimmie.lin@gmail.com"
] | jimmie.lin@gmail.com |
bcec11864e5a79afc5b9dcfbadbcba43c0dff5e0 | 08c48f2627281810fe2a4a37bb1e9bc5c03eeb68 | /Huan_link_all_script/All_result_ICGC/network/random_walk_restart/Walker/scripts/transform_matrix.py | d88430ba3123bda3df7da3bda747ef7d17166e4b | [] | no_license | Lhhuan/drug_repurposing | 48e7ee9a10ef6735ffcdda88b0f2d73d54f3b36c | 4dd42b35e47976cf1e82ba308b8c89fe78f2699f | refs/heads/master | 2020-04-08T11:00:30.392445 | 2019-08-07T08:58:25 | 2019-08-07T08:58:25 | 159,290,095 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import sys
import numpy as np
def main(argv):
matrix_file = argv[1]
output_filename = argv[2]
matrix = np.loadtxt(matrix_file)
def f(x): return 1 / float(x)
f = np.vectorize(f)
matrix = f(matrix)
transformed_matrix = [([0] * len(matrix[0])) for _ in xrange(len(matrix[0]))]
for i, row i... | [
"lhhuan01@163.com"
] | lhhuan01@163.com |
8f02e80998e754774675b8c69805f6d4c4c0b149 | d97322b14525d7f03976ee220ad38a10419215f6 | /Basic/depth_evaluate/run.py | 854aaa0c91dc11daad9f44c85ee6718125f63a52 | [] | no_license | zhoujuncug/Basic | f4281cf4b8d6dc16f3bd40bcd65ad9ad06878f88 | 63cb6d6d535cc207fb216ac12104f373d3bddd9a | refs/heads/master | 2022-12-02T23:32:37.052574 | 2020-08-08T12:20:44 | 2020-08-08T12:20:44 | 286,036,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | import argparse
import pprint
import torch.optim as optim
import visdom
from lib.basic_tools.log import *
from lib.basic_tools.device import *
from lib.basic_tools.reproducibility import *
from lib.dataset.data4depth import *
from lib.models.depth_eval import *
from lib.utils.train import *
from lib.utils.test import ... | [
"noreply@github.com"
] | zhoujuncug.noreply@github.com |
09d975c569575f2a776cc28ff00f7e2fc34a7637 | 7bb14c6587a73b28f8e99b8ba9d02a1aaa08fa27 | /samfilterdg.py | 84cecf9605f4a50ab58fd0557ab54268534ed4b8 | [] | no_license | zhipenglu/duplex | 95a570c89bdac9efcd03dcabcfc745d2aa46728d | 62c845cad98fda8b9cfd45856e3f469a249b216f | refs/heads/master | 2020-12-29T02:42:31.242209 | 2017-02-01T19:31:18 | 2017-02-01T19:31:18 | 52,380,558 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,627 | py | """
samfilterdg.py
Zhipeng Lu, 2015-10-16
Read in sam file with DG (duplex group) and XG (chiastic) tags,
filter out DGs with only 1 read and those with identical breaks, XG:i:2
"""
import sys, re, time
if len(sys.argv) < 3:
print "samfilterdg.py"
print "removes DGs with only single or duplicate reads and XG... | [
"zhipengluchina@gmail.com"
] | zhipengluchina@gmail.com |
a60ce595e94bd01b6f46c0cb382957eebfd7ab07 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /Tensorflow/CNN/莫烦python02.py | 2e08d2c51048bcd31c14f4a4a131722ae38111f1 | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("data",one_hot=True)
def add_layer(inputs,in_size,out_size,activaion_function = None):
Weights = tf.Variable(tf.random_normal([in_size,out_size]))
... | [
"864773190@qq.com"
] | 864773190@qq.com |
6567d0f8b19425ebfd1cd990c73c0e2498f971f2 | 41294ab88364fbb40ee67fcc643a91cc355c25d5 | /solution/accounting.py | 368251986f18af4b2806c42760073666909b3c70 | [] | no_license | tessajules/underpaid-customers-HB-homework | 96e542cc736d03b1476c88c43cd931081b03926d | ec3526debea68ecbf7aed25d041baf26110e40b2 | refs/heads/master | 2021-05-28T22:11:25.106565 | 2015-04-10T02:56:36 | 2015-04-10T02:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | MELON_COST = 1.00
def melon_payment_calculator(payment_data):
"""Calculate cost of melons and determine who has underpaid."""
payment_data = open(payment_data)
for line in payment_data:
order = line.split('|')
customer_name = order[1]
customer_first = customer_name.split(" ")[0]... | [
"info@hackbrightacademy.com"
] | info@hackbrightacademy.com |
06c9466548a22b41756278bd448c149df64fd1c6 | ace6e4dbf09fd26edeba28e9f91fa3e4d21a2f39 | /test_sublime.py | f043587957644abe11af487923f0d5a1667b1574 | [] | no_license | may5day/test | c8f7d01b6f928afce84e80601317f4e026348157 | 1d9eebe72d2a14a65f7328e3fbb2c0c38f054bf9 | refs/heads/master | 2020-04-26T04:02:34.437251 | 2019-03-05T09:09:22 | 2019-03-05T09:09:22 | 173,288,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | this is a test file!
this is not the first line!
hello world! | [
"2849905332@qq.com"
] | 2849905332@qq.com |
11bb47901662be6ed2b74c9e23f7bc18d66e6842 | 5d7256e74c692da0da5f5dea9d8cb5cd8e191654 | /MostPopularSuperHero.py | 62d9bedbd6911479cb0f49986a23aaecca143d4f | [] | no_license | rakeshadk7/Spark | ec2fc2ba7c16f9affa4cbc87e456eff452680bb0 | a76af73c066b78eefcaeaf60f360f897e45da3dc | refs/heads/master | 2021-05-03T23:51:27.651546 | 2016-10-27T19:35:46 | 2016-10-27T19:35:46 | 71,810,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | from pyspark import SparkConf, SparkContext
import os
conf = SparkConf().setMaster("local").setAppName("PopularHero")
sc = SparkContext(conf = conf)
def countCoOccurences(line):
fields = line.split()
return (int(fields[0]), len(fields) - 1)
def parseNames(line):
fields = line.split("\"")
return (... | [
"rakesh.adk7@gmail.com"
] | rakesh.adk7@gmail.com |
ac6c3bdcd556fa864f83317da9c8ce709377b0a7 | 033489cc8c1c32c9d8cae695f2fe79643dbe852a | /scripts/count.py | 9b77bc65e69888058aef1c0bd9719e336218b82d | [
"BSD-3-Clause"
] | permissive | ueshou/mypkg | 46b6636c8caba78b6e9ccbf5162cf4f563ff1987 | 69d5f3b6c2949f9cf3b7f4914c8a5132aaaff66b | refs/heads/main | 2023-02-17T22:56:49.338683 | 2021-01-22T05:48:57 | 2021-01-22T05:48:57 | 327,495,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python3
import rospy
from std_msgs.msg import Int32
rospy.init_node('count')
pub = rospy.Publisher('count_up' , Int32, queue_size=1)
rate = rospy.Rate(10)
n = 0
while not rospy.is_shutdown():
n += 1
pub.publish(n)
rate.sleep()
| [
"s19c1015uq@s.chibakouda.jp"
] | s19c1015uq@s.chibakouda.jp |
ea8bb3f37fef6e37cd9f9274f22db69548ed5b99 | 1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e | /xcp2k/classes/_program_run_info36.py | df87e8835f3ba808b0a2fb5f2bbb04a979030521 | [] | no_license | Roolthasiva/xcp2k | 66b2f30ebeae1a946b81f71d22f97ea4076e11dc | fc3b5885503c6f6dc549efeb4f89f61c8b6b8242 | refs/heads/master | 2022-12-23T06:03:14.033521 | 2020-10-07T08:01:48 | 2020-10-07T08:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._each343 import _each343
class _program_run_info36(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.File... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
acc4aef5d2a6eb365488380fe43780058d19a3d6 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1623+386/sdB_PG_1623+386_lc.py | 79bf55d3e02753efc2d185b0d3025a46f7a7b55a | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[246.351292,38.505214], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_1623+386 /sdB_PG_1623+386_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
b1ba433d509d020677e93798474154d142ff323a | 8588203926686503d233a7cf4128a9d179cb3e37 | /proyectos/chapter4b/adapters/repository_order_line.py | f31c2b82a639073689c13106a61a74eccddc06ed | [] | no_license | jlbali/python_architecture | bc615dbe978c55a2c8a5929f004411a0a72d6243 | e5a580e8a18fa2055d2f8a07bbaa3b98b06b83bb | refs/heads/master | 2023-02-06T11:54:09.819914 | 2020-12-26T00:13:36 | 2020-12-26T00:13:36 | 324,174,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | import abc
from domain.order_line import OrderLine
from typing import List, Optional
class AbstractOrderLineRepository(abc.ABC):
@abc.abstractmethod
def add(self, item: OrderLine):
raise NotImplementedError
@abc.abstractmethod
def get_by_ref(self, reference:str) -> OrderLine:
raise No... | [
"juan.lucas.bali@gmail.com"
] | juan.lucas.bali@gmail.com |
7f86b7ad0d656cca5c68cfeed92a6778b9b6ca30 | 19380754401eebfb890da93ba5eb216cf776ba82 | /fabrik/flowlabel.py | af7bbf8713288025ddd2e6c4104f5a2816a8b7c0 | [
"Apache-2.0"
] | permissive | viccro/diarc | 2693734fa92a7b4e98bc0d97ce6cbc85694a0476 | 5b8d18fe08ce175109e9c8e72a3d29c4078cd77a | refs/heads/master | 2021-01-14T10:44:47.104726 | 2015-08-06T18:15:14 | 2015-08-06T18:15:14 | 38,066,704 | 0 | 0 | null | 2015-06-25T18:30:46 | 2015-06-25T18:30:46 | null | UTF-8 | Python | false | false | 1,392 | py | # Copyright 2014 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"amber.crosson@nytimes.com"
] | amber.crosson@nytimes.com |
6827cbf6518d397d25b1759ecbab6d3cf03cb7f1 | f2b4be9a933aa024a7934ab9758a0b29816e74d3 | /Interfaces/API/NewInterface/Tests/Test_DDSim.py | d81a22add8109fbab36d9483992e42f789235e2f | [] | no_license | hamzazafar/ILCDIRAC | 84c24a4b65e75d7df55f91c3601867cc45990ee6 | 6fa2b7b130b6248afeb7ae77d42502f2f72908aa | refs/heads/master | 2020-03-25T03:39:54.444975 | 2017-07-28T10:51:18 | 2017-11-23T14:02:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,345 | py | #!/usr/local/env python
"""
Test DDSim module
"""
import inspect
import unittest
from mock import create_autospec, patch, MagicMock as Mock
from DIRAC import gLogger, S_OK, S_ERROR
from ILCDIRAC.Interfaces.API.NewInterface.Applications import DDSim
from ILCDIRAC.Tests.Utilities.GeneralUtils import assertEqualsImprov... | [
"andre.philippe.sailer@cern.ch"
] | andre.philippe.sailer@cern.ch |
cbd4324d8911038723a6c833cf2b4120d84a6c32 | 2d3a9a5ca9b15f4fc3edc443bf885f43421e31f4 | /done/db1.py | d80edea0dbc4f146d8eed4c5371e08a6c1db840c | [] | no_license | takao-fujiwara/mypy | 913ab4bdb80a97fe2be33d1615e4ee18c062578e | 93c0f8c7026278540fe84d7d590af41f032a0e9b | refs/heads/master | 2020-05-21T04:27:03.079300 | 2018-10-15T07:17:58 | 2018-10-15T07:17:58 | 47,017,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | from sqlalchemy import create_engine, MetaData, Table, Column, Integer, String
engine = create_engine('sqlite://', echo=True)
print engine
metadata = MetaData()
metadata.bind = engine
menus = Table(
'menus', metadata,
Column('id', Integer, primary_key=True),
Column('name', String),
Column('kcal', In... | [
"cafetakao@gmail.com"
] | cafetakao@gmail.com |
3bee51e9e68133d4651c5816abba2c27197fc326 | 678c82b0436a707436f828532afdf0f6116190d5 | /publication/models.py | 55a36c5c5fb1750b6d880b41c7413cea8bf4926c | [] | no_license | fabioh80/play | 2f7f000a55130b926d7d95fa18583c375dc83504 | c6198b5de9d606f2e854cb3de6418f9ecc5d9e06 | refs/heads/master | 2021-01-12T14:41:06.683152 | 2016-10-27T17:25:04 | 2016-10-27T17:25:04 | 72,050,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | from django.db import models
from datetime import datetime
class Publication(models.Model):
pub_date = models.DateTimeField(default=datetime.now(), blank=False)
place = models.ForeignKey("Place", related_name='place')
type_play = models.ForeignKey("Type_Play", related_name='play')
cnt_player = models.... | [
"fabioh80@gmail.com"
] | fabioh80@gmail.com |
67297bf9c3b97968aa6fd2d91e6b6bc95004c561 | 80eff326f1d78c4dce8d15aa927b07e0b65af798 | /third_party/mmpose_model/transforms.py | f03bd453db0410603facd9c6360d3708c83d5a40 | [] | no_license | animalact/AAR_Net | 4e228651a8a693cb8b91ae1c99f2af56f00dce8a | 9f88a6678d3d6bfbba2dc654c1e0dcac43e6d6b7 | refs/heads/master | 2023-07-25T20:37:08.182423 | 2021-09-08T17:30:33 | 2021-09-08T17:30:33 | 384,944,081 | 1 | 5 | null | 2021-09-08T15:13:03 | 2021-07-11T12:36:51 | Python | UTF-8 | Python | false | false | 8,407 | py | import cv2
import numpy as np
def transform_preds(coords, center, scale, output_size, use_udp=False):
"""Get final keypoint predictions from heatmaps and apply scaling and
translation to map them back to the image.
Note:
num_keypoints: K
Args:
coords (np.ndarray[K, ndims]):
... | [
"songys96@naver.com"
] | songys96@naver.com |
6b5ecf59aee91287debfc7a264002ca531ac0eb0 | a657d3151ec97e2cbb184d967fd7bbc2d6167253 | /Decision-Tree-with-Adaboost/MainCode/DecisionTreeFull.py | b064f071d27d83ad1664b989b1f3e09f683c804b | [] | no_license | hasin-abrar/Machine-Learning | 98e370291f5fb073db77a2c4e3b5be0ce33fb8d2 | 72b5db6e7815aebe7e477c73d6765e34ad7a91b4 | refs/heads/master | 2022-12-23T21:02:03.049735 | 2020-10-06T14:42:46 | 2020-10-06T14:42:46 | 286,272,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,422 | py | # pre processing
import math
import random
import datetime
import numpy as np
import pandas as pd
class PreProcessing(object):
def __init__(self, examples):
self.examples = examples
# takes a list as input and gives the mode. (1)[0][0] 1st appearance and more signifies
def Most_Common(self, lst... | [
"1405048.mha@ugrad.cse.buet.ac.bd"
] | 1405048.mha@ugrad.cse.buet.ac.bd |
4570a4f1135d69481df51ef52485f7fe43b9827d | 430bd23decf16dc572a587b7af9f5c8e7dea5e6b | /clients/python/swagger_client/models/funding.py | ff0870b285368906885d8379191500364f1d06c3 | [
"Apache-2.0"
] | permissive | jltrade/api-connectors | 332d4df5e7e60bd27b6c5a43182df7d99a665972 | fa2cf561b414e18e9d2e1b5d68e94cc710d315e5 | refs/heads/master | 2020-06-19T10:20:46.022967 | 2016-09-24T13:12:17 | 2016-09-24T13:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,097 | py | # coding: utf-8
"""
BitMEX API
REST API for the BitMEX.com trading platform.<br><br><a href=\"/app/restAPI\">REST Documentation</a><br><a href=\"/app/wsAPI\">Websocket Documentation</a>
OpenAPI spec version: 1.2.0
Contact: support@bitmex.com
Generated by: https://github.com/swagger-api/swagger-co... | [
"samuel.trace.reed@gmail.com"
] | samuel.trace.reed@gmail.com |
1944a86dacbfb1bc3786a49c8b508979384b9555 | 99b496588937e7a4269d7614f9d2c9df701602b6 | /2017年04月14日_P14_recommendations.py | 993fa90f3da40c5f8ef77bc303d8504281a8e98d | [] | no_license | kedup/2017-04-13-_CollectiveIntelligence | bedb909d0f8e2404c693aab587d1a44095ef7b38 | 3e95fea24d6f022ebab3ab52d6f27a4ce2b62d62 | refs/heads/master | 2021-06-16T07:51:25.770248 | 2017-05-11T12:10:50 | 2017-05-11T12:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py | # A dictionary of movie critics and their ratings of a small
# set of movies
critics={'Lisa Rose': {'Lady in the Water': 2.5, 'Snakes on a Plane': 3.5,
'Just My Luck': 3.0, 'Superman Returns': 3.5, 'You, Me and Dupree': 2.5,
'The Night Listener': 3.0},
'Gene Seymour': {'Lady in the Water': 3.0, 'Snakes on a Plane': 3... | [
"webkwd@qq.com"
] | webkwd@qq.com |
cfbdabfc13d6e89a1cfcbc015ee849ffc5635eb5 | 148072ce210ca4754ea4a37d83057e2cf2fdc5a1 | /src/core/w3af/w3af/plugins/attack/db/sqlmap/plugins/generic/filesystem.py | ee9770612e90346479646bec319c7d2028574f13 | [] | no_license | ycc1746582381/webfuzzer | 8d42fceb55c8682d6c18416b8e7b23f5e430c45f | 0d9aa35c3218dc58f81c429cae0196e4c8b7d51b | refs/heads/master | 2021-06-14T18:46:59.470232 | 2017-03-14T08:49:27 | 2017-03-14T08:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,062 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import os
from lib.core.agent import agent
from lib.core.common import dataToOutFile
from lib.core.common import Backend
from lib.core.common import checkFile
from lib.core.c... | [
"everping@outlook.com"
] | everping@outlook.com |
55bd1e9c03901d04fa75221fbb2e004339501afe | c3379fb707daf434fc731006e173da817b68ca75 | /pydatview/fast/runner.py | f321a81d662cb9f3714995b306df20a08da376e1 | [
"MIT"
] | permissive | dviewtest/pyDatView | 43cb6d2bb76a78670ecd1083495024f935bc9e9b | 3516ffaff601c122d62ffc94abd842958354ece8 | refs/heads/master | 2023-06-27T11:08:52.056689 | 2021-06-23T17:57:35 | 2021-06-23T17:57:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,304 | py | # --- For cmd.py
from __future__ import division, print_function
import os
import subprocess
import multiprocessing
import collections
import glob
import pandas as pd
import numpy as np
import shutil
import stat
import re
# --- Fast libraries
from weio.weio.fast_input_file import FASTInputFile
from weio.weio.fast_ou... | [
"elmanuelito.github@gmail.com"
] | elmanuelito.github@gmail.com |
bca0e4a8bfdd5fb61f779d7021faff1f11192a8b | 2792c12fc00de1a4057cbfe9f03c6fdcd9e45e2e | /archive/collectRaws.py | eb4bdb7386efd09957f739c943e24f386c8ebe13 | [] | no_license | tangylyre/EOG | 0b2d4d9ded3087248324e021e00c561f7279cd27 | bec8cdd2a2034272d127045880b230b131fa19ac | refs/heads/master | 2023-05-09T18:29:45.003247 | 2021-04-14T21:45:41 | 2021-04-14T21:45:41 | 326,846,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,260 | py | from datetime import date
import time
import os
import numpy
import time
import busio
import digitalio
import board
import adafruit_mcp3xxx.mcp3008 as MCP
from adafruit_mcp3xxx.analog_in import AnalogIn
# from pygame import mixer # Load the popular external library
# import pickle # Rick
# import matplotlib.pyplot as... | [
"tangylyre@gmail.com"
] | tangylyre@gmail.com |
27d32813b7fee47a8f3898e5b10327bb6f1e91ce | 25404f4cfb9be3e6f1b3fe31a1554459eb200813 | /1_todo/string_io_and_json_example.py | 5cb62ee749b5815bcf6dba5c20c390f1ac5608f1 | [] | no_license | nightimero/annal_report_test | 1c6eb4b71482f870c753f5084212afd071929f57 | 7bbc76ba703527ba8f4b84fbdb94fd57b37b9887 | refs/heads/master | 2021-09-06T21:18:59.534963 | 2018-02-11T15:31:21 | 2018-02-11T15:31:21 | 103,259,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # -*- coding: utf-8 -*-
from StringIO import StringIO
import json
io = StringIO()
json.dump(['streaming API'], io)
io.getvalue()
# '["streaming API"]'
# 2.use seperator, Compact encoding
import json
json.dumps([1, 2, 3, {'4': 5, '6': 7}], separators=(',', ':'))
'[1,2,3,{"4":5,"6":7}]'
# 3.Pretty printing: indent参... | [
"chenxiang@aiknown.com"
] | chenxiang@aiknown.com |
276a00dcd091106149ec816df2e84655c49386ea | 654caebc0a12face3f5a57fd4c64ffb85c6fe0c6 | /venv/bin/pip | 28f57425b752cd07254df5c6e4572c4495da78cc | [] | no_license | hoAlimoradi/TheFirstCourseInAPA | ede5cdae74eefe175c41a2ade51aff6c701f3810 | e6024ce2f586cecd016e1fc762affec9ffe6c6ad | refs/heads/master | 2020-04-27T11:54:38.236215 | 2019-03-07T09:42:03 | 2019-03-07T09:42:03 | 174,313,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | #!/Users/ho/pycharmProjects/TheFirstCourseInAPA/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"ho.alimoradi@gmail.com"
] | ho.alimoradi@gmail.com | |
0480e0b8c2d156438f5e163074ef17c3dfd8dbe5 | 90cbd3e71e0f6a5bc5175a1bafbc981c0ca64060 | /homework/hw2/Hu_hillary.py | 1ad46d01e702523d6f0d04e1abc7fb367657131f | [] | no_license | sammo3182/POLI7002-TextAsData | ef888f5ed9728bd11783cc5d5cb1febe88c6be9c | 389e13dbee07f747a02c7b8f306dead1d49379c8 | refs/heads/master | 2020-12-06T01:17:14.174854 | 2016-11-01T00:44:07 | 2016-11-01T00:44:07 | 66,304,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,987 | py | # Title: Homework2_Hillary
# Author: Yue Hu
# Environment: Win 10, Python 3.5
# Purpose: The assignment is a project using the New York Time API to scrape text data.
## module preload
import requests # imported the `requests` package for request url later.
import csv # for saving the results into csv files.
# ## Data... | [
"sammo3182@sina.com"
] | sammo3182@sina.com |
a19a5bde912baaf41479780b9b03f7f7f91d23f2 | c1dad911fef54ecf07997a969e72b9f1f316378b | /Longestpalindrome.py | 4fdb8e7af00463c75dba813f0cb728e03d312bf0 | [] | no_license | jatin008/DP-6 | 3b3d2efbc87ea87880912f65a801b99dbf237dd4 | ef2397061613e7b3818506ee7a683c030464d91d | refs/heads/master | 2021-05-22T00:35:55.906604 | 2020-04-04T02:19:00 | 2020-04-04T02:19:00 | 252,887,262 | 0 | 0 | null | 2020-04-04T02:08:17 | 2020-04-04T02:08:16 | null | UTF-8 | Python | false | false | 889 | py | #T: O(M+N)
#S: 0(1)
#Tested on Leetcode
class Solution:
def longestPalindrome(self, s: str) -> str:
self.start = 0
self.maxLen = 0
n = len(s)
if len(s) < 2: #Edge case
return s
for i in range(n):
#checking if a stri... | [
"jatindawar26@gmail.com"
] | jatindawar26@gmail.com |
7c6c857ffe8c602712021be9078f9c31a1a5d128 | 97dc530ab8852f328fa1974710caabd3ffec32ac | /apps/cron_consume_apk/bak/cron_crawl_appinfo_v2.py | d8335f9e367f950efbaf9a7cbdc7b64d2b46cfa7 | [] | no_license | danielzhu1201/getAppInfo | 12df4c9f99a06556313c0e90ab672dbcda246725 | 7db1c991fa9e56c1760a50f275d35d63bd15988a | refs/heads/master | 2020-03-20T00:31:59.403042 | 2018-06-14T06:09:40 | 2018-06-14T06:09:40 | 137,047,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# qw @ 2017-03-08 17:48:52
import sys
import os
import json
from config import *
import redis
import multiprocessing
import time
import random
import traceback
import urllib
import logging
import datetime
logging.basicConfig(
level=logging.DEBUG,
# format='%(asctime... | [
"zhuzhaosong@youmi.net"
] | zhuzhaosong@youmi.net |
e54a3d7c4412e2993a3e50aea8f2ee52b2bc1a38 | 088e0c83bb0467f54ad6a481ce77e03bc9f32515 | /venv/Scripts/pip3-script.py | 106abf0b818cb42802790b83b774548aea6fd553 | [] | no_license | Nicole-peng/gy-1908A | 33bac0f7f5d3a2fddc2561807135d614e07c37a7 | c376359ade7c1844410f4b712ba8fbefec8bc9c2 | refs/heads/master | 2022-02-27T03:22:59.922174 | 2019-09-09T02:54:19 | 2019-09-09T02:54:19 | 207,207,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | #!D:\softwareData\python\1908-A\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
s... | [
"pengyijieyiyi@foxmail.com"
] | pengyijieyiyi@foxmail.com |
086a719cbdaad09756a71716cec0332342db36f1 | 8827d6e4a531d4da8ec5567f235bc79551b43a68 | /app/game/component/baseInfo/BaseInfoComponent.py | 3621b625e971a6ec0c217adea0ab9bdd12328097 | [] | no_license | wyjstar/traversing | 0f6454f257e5c66a7295ef1f9a9dca970e8a1bb7 | f32bb9e6d9f4c0d8bcee9ce0aa4923dcfc913cce | refs/heads/master | 2021-01-17T22:44:54.059161 | 2016-04-04T09:54:13 | 2016-04-04T09:54:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | # -*- coding:utf-8 -*-
"""
created by server on 14-6-10下午4:58.
"""
from app.game.component.Component import Component
class BaseInfoComponent(Component):
"""
抽象的基本信息对象
"""
def __init__(self, owner, bid, base_name):
"""
创建基本信息对象
@param id: owner的id
@para... | [
"guanhaihe@mobartsgame.com"
] | guanhaihe@mobartsgame.com |
e3280f9a700f857d1a028607a351ab8ff308aa07 | 2611a6ecda7b36511485439dcecdc11356ea98a6 | /pychemia/dft/codes/vasp/_incar.py | 7511b7cbfd02f3d14806113e4df8c7db27250c4b | [
"MIT"
] | permissive | maksimovica/PyChemia | 169fa9e2c0969d4375b2dddf935440bf35d68519 | 62b8ed06f186d0b40a628d98e7dd985efe3b7581 | refs/heads/master | 2021-01-16T17:51:42.772243 | 2014-06-18T02:18:17 | 2014-06-18T02:18:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,228 | py | """
Routines to read and write INCAR file
"""
__author__ = "Guillermo Avendano-Franco"
__copyright__ = "Copyright 2014"
__version__ = "0.1"
__maintainer__ = "Guillermo Avendano-Franco"
__email__ = "gtux.gaf@gmail.com"
__status__ = "Development"
__date__ = "March 16, 2014"
import os as _os
import numpy as _np
def l... | [
"guilleaf@msn.com"
] | guilleaf@msn.com |
1c033942dc1bbb7c998f9e475650b707ae7e453d | 06e6b257405a077b9cac1cd03373d2ded225634f | /manage.py | 7f59ef13a4055f5d50601ed26fd3e2e3b511cf7e | [] | no_license | darrenwu1058/mystore | ae4bec6ef37976e69ee620974d28f4723788feff | 158487a768ac80e0b632de5e60fcfde18e0e51f0 | refs/heads/master | 2020-05-20T22:44:57.255753 | 2019-03-08T16:16:47 | 2019-05-09T09:09:57 | 185,788,305 | 0 | 0 | null | 2019-05-09T11:45:12 | 2019-05-09T11:45:12 | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mystore.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are ... | [
"github.tsod@tsod.idv.tw"
] | github.tsod@tsod.idv.tw |
d40fe1fa68ac26ffdef8cf290971dda494b0fc6b | 7cfa2d0e1b28cf14925b5ce55d1b2a9e55bfdb73 | /Week5/Quiz.py | fe8263f84bbcba5785fdfae22c59d5bbf85c23e3 | [] | no_license | ads2100/Saudi-Developer-Organization | 45dcb9a5813fe1725ee3b2ca8defe8331625dc39 | 0dbeb0843ff476805dfc67f774de9f45ffac0754 | refs/heads/master | 2022-02-25T13:54:32.165819 | 2019-09-27T12:42:16 | 2019-09-27T12:42:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # the lists of numbers
A = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]
B = [2,4,6,8,10,12,16]
# defaul number for var y
start = 0
# nested loops for print A,B lists elements
for x in A[2:17]:
print('List A element: ' + str(x))
for y in B[start:6]:
print('List B element: '+ str(y))
start+=1
break
| [
"root1@MacBook-Engneering-waseem.local"
] | root1@MacBook-Engneering-waseem.local |
79b6d3007b7c9f2d365f2bb097665e9d494d16d9 | 37a593995c96c65be0e93722cb395cdfac9b0bd2 | /pymongo_fetcher.py | fc214e3f1276dd1f013453a28a50b43a6a5a1251 | [] | no_license | in0928/com-schedule | 26401eb6b21912404cc666db894a52e45de82f2e | 1b0e9989f682ec923687e59e26feb402862157f2 | refs/heads/master | 2022-12-12T10:45:00.508719 | 2020-02-12T08:28:19 | 2020-02-12T08:28:19 | 226,829,792 | 0 | 0 | null | 2022-12-08T03:20:11 | 2019-12-09T09:09:06 | Python | UTF-8 | Python | false | false | 500 | py | from pymongo import MongoClient
class MongoFetcher:
def __init__(self):
# real DB
self.client = MongoClient("mongodb+srv://in0928:trybest920928LAISAI@cluster0-nfgyd.gcp.mongodb.net/test?retryWrites=true&w=majority") # host uri
self.db = self.client.NSDB # Select the database
sel... | [
"49297560+koasurion@users.noreply.github.com"
] | 49297560+koasurion@users.noreply.github.com |
ae7c6fb32f635a0734cb1b392275d8a99e4c28fa | ece78bd2141b3ce31bb0e52b9298734b899eb05e | /Number_theory_and_Other_Mathematical/Prime_number_and_Prime_Factorization/gcd_euclid.py | b295194fc1be35d6306b0100dc322c4949fea6f6 | [] | no_license | code-project-done/Algorithms_for_Competitive_Programming_in_Python | cf4cacbe7e3f170a454dce59949973e6152737b2 | fe13c90d1bc84e1a8858c83ea32c725182106616 | refs/heads/main | 2023-04-05T04:04:26.934540 | 2021-04-11T09:01:31 | 2021-04-11T09:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py |
from math import gcd
def gcd_euclid(a, b):
"""
actually no need it, it is in the module math
"""
if a < b:
return gcd(b, a)
while b != 0:
a, b = b, a % b
return a
for a in range(500):
for b in range(500):
assert(gcd(a,b) == gcd_euclid(a,b)) | [
"pierre.machine.learning@gmail.com"
] | pierre.machine.learning@gmail.com |
3b2b4b72c827466af785eb8a9670fc7e4d2bff0d | 06ee5a5d83466896bbfd1653206da0151d6aa81a | /apps/business/serializers/file_serializer.py | ae6dac0452ba845b69a632709ac10c18ac7e31f3 | [] | no_license | fengjy96/rest_task | 201421a40ce42031223f61135d1d5e85809188e6 | db1d7c4eb2d5d229ab54c6d5775f96fc1843716e | refs/heads/master | 2020-07-22T19:48:19.940094 | 2019-09-02T13:40:11 | 2019-09-02T13:40:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | from rest_framework import serializers
from business.models.files import Files
class FilesSerializer(serializers.ModelSerializer):
"""
文件:增删改查
"""
class Meta:
model = Files
fields = '__all__'
class FilesListSerializer(serializers.ModelSerializer):
"""
消息:增删改查
"""
c... | [
"onerf@sina.com"
] | onerf@sina.com |
e2e6053a401e98b26f59d1afe6d7fe23d264c972 | 099c4d066035463c2e9b201798a8d3b57357458a | /blog/models.py | c5faa2d6ca6c7cb6d5b41e052ae8ef3291d6929a | [] | no_license | Toluwalemi/Fast-API-Blog | 3c2123b09538f164c12258e0a4ddcfbd6a9680ff | cd62b18b052ae344f8f8e9eed7f60a20d4f3113b | refs/heads/main | 2023-05-06T09:57:47.570888 | 2021-05-27T22:01:06 | 2021-05-27T22:01:06 | 371,513,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | from sqlalchemy import Column, Integer, String, ForeignKey
from sqlalchemy.orm import relationship
from .database import Base
class Blog(Base):
__tablename__ = 'blogs'
id = Column(Integer, primary_key=True, index=True)
title = Column(String)
body = Column(String)
user_id = Column(Integer, Foreig... | [
"toluwalemisrael@gmail.com"
] | toluwalemisrael@gmail.com |
e01b140eb36a9c67eba75192ebe27eb8b1a977f6 | 6f2a8a9d2f11d194fe41762e71ebd7270a22325b | /source/abstract/entities/electronic/controller/controller.py | 889ac5c8eca1c378a0464c9d0484d2aa82609ba9 | [] | no_license | rschum/game | 053da314a276445e03d682c6481a35aa888c5125 | 59ef0461c1ac60e690d39f6c180256f387999e44 | refs/heads/master | 2020-05-23T20:10:57.698939 | 2017-04-20T03:04:31 | 2017-04-20T03:04:31 | 84,785,024 | 0 | 0 | null | 2017-03-13T04:45:46 | 2017-03-13T04:45:46 | null | UTF-8 | Python | false | false | 193 | py | from source.abstract.entities.inanimate.controller import controller
class Controller(controller.Controller):
def __init__(self):
controller.Controller.__init__(self)
pass
| [
"Master.Foo.v.1.0.0@gmail.com"
] | Master.Foo.v.1.0.0@gmail.com |
9cb991b352cb52bf657354c37ce5000bcdddc967 | 5072235c3798e182705017c684da42897f5710d4 | /tools/general_tools.py | bbb6a5ff74afc17afa0e1e7d16e18625001f680a | [
"Apache-2.0"
] | permissive | gafzan/AlgorithmicTradingStrategies-Decommissioned- | a4522f68db64f37fcc24ac5d74d824cf45345d87 | 80e7f97bf75b22de52130de5ad247342488b27f4 | refs/heads/master | 2023-08-14T23:29:26.065878 | 2021-10-17T09:18:01 | 2021-10-17T09:18:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,917 | py | """
general_tools.py
"""
from itertools import zip_longest
from operator import itemgetter
from datetime import date
# ______________________________________________________________________________________________________________________
# Handling lists and dictionaries
def _grouper(iterable, n, fill_value=None):
... | [
"gafzan@gmail.com"
] | gafzan@gmail.com |
e6df5acf08fd8bbbf178c132ccb74291ca5e33b8 | 10d2ff5992d0d5d5dfc25350c56b030f4b669f29 | /driven_by_mysql/driven_by_mysql.py | a442adc26688af65e4860544f9d412ee3dcf215c | [] | no_license | hongzhiguang/DataDriver | 5ca42e92d3b725fc34651e01ba59cf88fae61749 | ca997910000a131a0beb420a516071f8ba700552 | refs/heads/master | 2020-06-03T01:58:49.861415 | 2019-06-11T14:26:07 | 2019-06-11T14:26:07 | 191,387,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import ddt
import unittest
import time
import logging
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from Config import *
from ReadData import *
logging.basicConfig(
level=logging.INFO,
format="%%(asctime)s %(filename)s... | [
"1583297821@qq.com"
] | 1583297821@qq.com |
00306de26033af3b73544da9760dde62a5a6bd64 | e1eac39ac5b0b28bcc704a48e4d17602ee6477eb | /news3.py | 73a1ea1da464d2fba6cb20bba96c05c2b9b852e5 | [] | no_license | CMyCode/webscrapepy | 76341f455bf483cdf29382946001697e36f3c0c6 | 6419aa2ddd71b6ff296733d7bea5ba2e7d0413a3 | refs/heads/master | 2020-03-08T23:48:13.940815 | 2018-06-02T01:24:56 | 2018-06-02T01:24:56 | 128,473,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,006 | py | import requests
from bs4 import BeautifulSoup
import re
import sys
import os
import datetime
import pandas as pd
from random import choice
from collections import defaultdict
from nltk.corpus import stopwords
from datetime import datetime, timedelta
from random import *
import string
import nltk
from nltk.tokenize impo... | [
"balaji.meka1@t-mobile.com"
] | balaji.meka1@t-mobile.com |
11247c56107695e84821a8412a5d43b66542c9fc | a5d0a0499dd069c555080c8cefc2434304afead4 | /Programmers/pipe.py | bfa9ff3f16b5e878de473bd4fbe430f11b47ebcb | [] | no_license | devjinius/algorithm | 9bdf9afc021249b188d6930cf9d71f9147325d9f | 007fa6346a19868fbbc05eefd50848babb5f1cca | refs/heads/master | 2020-05-04T06:08:32.827207 | 2019-07-31T02:39:39 | 2019-07-31T02:39:39 | 178,999,456 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # 프로그래머스 쇠막대기
# https://programmers.co.kr/learn/courses/30/lessons/42585
def solution(arrangement):
stack = []
prevStr = ''
count = 0
for word in arrangement:
if(word == ")"):
if(prevStr == "("):
stack.pop()
count += len(stack)
else:
... | [
"eugenekang94@gmail.com"
] | eugenekang94@gmail.com |
bccd589288338812701721351e97a1efb0ac9b50 | f1dc6331fa73b7f3f5bc6b3af64ceab4a4804849 | /src/sagemaker/local/image.py | 432567484b5eae3f674b9a35416a577ac48747cc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lily1110/sagemaker-python-sdk | 77532f9ba9ed105dd56f0b3d1824d2dd9cd7065e | fb91511e32610965bcb793e976eb7a47d161c04f | refs/heads/master | 2020-03-20T12:42:36.228606 | 2018-06-14T22:26:56 | 2018-06-14T22:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,342 | py | # Copyright 2017-2018 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" fil... | [
"noreply@github.com"
] | lily1110.noreply@github.com |
71fd2309a48331c48fd5788811c68992705cdd2a | b57a5f2613d626c96beab02966f2075848cb1d8f | /Linear Regression.py | 6ebab678842e0131d9e3c280ecda3ae18ce3d147 | [] | no_license | rishabds/Machine-Learning- | e29e9917fa883c5756442b2d358029dd0ac8b3be | f966bffa1012787f77fc37ac03c5f124202601c6 | refs/heads/master | 2020-08-01T18:21:38.855225 | 2019-09-26T11:48:16 | 2019-09-26T11:48:16 | 211,074,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | import numpy as np
import matplotlib.pyplot as plt
def estimate_coef(x, y):
# number of observations/points
n = np.size(x)
# mean of x and y vector
m_x, m_y = np.mean(x), np.mean(y)
# calculating cross deviation and deviation about x
SS_xy = np.sum(y*x)-n*m_y*m_x
SS_xx = np.sum(x*x)-n*m_x*m_x
# ... | [
"rishabdussoye@hotmail.com"
] | rishabdussoye@hotmail.com |
b7201790e7f7e245810a4e7196093347bcf5631a | fed4c4352fba76fe5bbf1ebb7c3f2a845f864794 | /src/allStat.py | d78ca9d2f9d2f81468f8995929672180ee79f0c3 | [
"MIT"
] | permissive | theandyb/cleanCollegeBBallData | 1e9011fad30bb2c029c37d0c15235c600d5edf1a | 13ca29055cf84894c22d8b128436507550f11358 | refs/heads/master | 2020-05-17T06:03:10.526095 | 2015-03-08T16:12:09 | 2015-03-08T16:12:09 | 31,838,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | import sys,getopt
try:
opts,args = getopt.getopt(sys.argv[1:], "r",["recursive"])
except getopt.GetoptError:
print "Lulz"
reclass = False
for o,a in opts:
if o == "-r":
reclass = True
fName = "./raw_data/all_stat2.csv"
num = 1
outFile = "./raw_data/" + str(num) + ".csv"
out =... | [
"beckandy@umich.edu"
] | beckandy@umich.edu |
32f2f00bef6097a79694d585d991c08882b2179c | 02f3cf8d895ef167be50a4865bb03210f5ab4c4b | /setup.py | dd93efa4948162a15dba1a29b316b3eb817c94fc | [] | no_license | cy-sohn/my-vot-toolkit-python-master | 67a7d51f70b10d6622d32adb2a1b35d2177fd23b | e1e78c0064e8ad33559a6a72d35e2eb9b8395f62 | refs/heads/master | 2022-12-02T10:35:54.695104 | 2020-08-07T06:36:34 | 2020-08-07T06:36:34 | 285,754,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | #!/usr/bin/env python
from os.path import join, dirname, abspath, isfile
from distutils.core import setup
this_directory = abspath(dirname(__file__))
with open(join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
install_requires = []
if isfile(join(this_directory, "requirements... | [
"64947778+cy-sohn@users.noreply.github.com"
] | 64947778+cy-sohn@users.noreply.github.com |
ed283187764b5f7ce7a792ed6445b60d8b759828 | a066ef198ddd1ce9a77bb5cf4495f5f937dc642e | /2017/Day 17/Day17_Part1.py | a56396e29719fe398fd30eac1ed174141dd651ea | [] | no_license | olber027/AdventOfCode2017 | 1719860d7410a04ca356b0de921b45357448b426 | c664100bab9ab31af231404e6b5cc5bc51fc9cf8 | refs/heads/master | 2021-05-14T09:10:16.016241 | 2019-01-02T20:44:12 | 2019-01-02T20:44:12 | 116,319,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 738 | py | class Node:
def __init__(self, value, next):
self.value = value
self.next = next
def insert(self, value):
node = Node(value, self.next)
self.next = node
def getNext(self):
return self.next
def __repr__(self):
return "{0}".format(self.value)
file = open... | [
"olber027@gmail.com"
] | olber027@gmail.com |
b1ac9099c36ddeeab3548464dd1b5d5e9b1ee687 | 84d2040faf1acaabedce67e884b55767b6b98e57 | /source/watches/migrations/0003_auto_20210305_1130.py | e955040939fd33e381c347577ff1f00f4c1035ee | [] | no_license | UuljanAitnazarova/watches_shop | 3adae63141107c91ae6a489dddeb8f8fa9433666 | 6f54b11d468957cf05275c37b17f4c2e669e9fc2 | refs/heads/master | 2023-05-08T11:51:25.597190 | 2021-05-27T12:48:46 | 2021-05-27T12:48:46 | 344,481,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # Generated by Django 3.1.7 on 2021-03-05 11:30
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('watches', '0002_auto_20210304_1426'),
]
operations = [
migrations.AlterField(
model_name='product'... | [
"u.aitnazarova@gmail.com"
] | u.aitnazarova@gmail.com |
346d811811941e402f2c375d0f49101f32158661 | 77311ad9622a7d8b88707d7cee3f44de7c8860cb | /res/scripts/client/gui/scaleform/daapi/view/lobby/customization/camouflageinterface.py | 6ebe0013b393fb58ca391ed6ffa5081abde07dd3 | [] | no_license | webiumsk/WOT-0.9.14-CT | 9b193191505a4560df4e872e022eebf59308057e | cfe0b03e511d02c36ce185f308eb48f13ecc05ca | refs/heads/master | 2021-01-10T02:14:10.830715 | 2016-02-14T11:59:59 | 2016-02-14T11:59:59 | 51,606,676 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 16,854 | py | # 2016.02.14 12:39:07 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/customization/CamouflageInterface.py
import BigWorld
import functools
from datetime import timedelta
from math import ceil
import time
from CurrentVehicle import g_currentVehicle
from constants import IG... | [
"info@webium.sk"
] | info@webium.sk |
54b812bf117a999b6cb8c36a01995b5107aa8ea4 | 0db729c520410c95139589098f303f1de30b99f5 | /radio/programs/migrations/0002_event.py | 747a22373c73b67b6534532496f3897f70895668 | [] | no_license | deisaack/radio | b76cca194f6a02ca27dea5f8b24925611016545c | e6abf60f4462e88ff5b8f88b024093ac3067c947 | refs/heads/master | 2021-06-22T12:44:20.452555 | 2017-08-23T06:19:22 | 2017-08-23T06:19:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-07-30 13:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profiles', '0001_initial'),
('programs', '0001_initial'),
]
operations = [
... | [
"pkemey@gmail.com"
] | pkemey@gmail.com |
d72e7e11bde474750297d7c0e0c5be87fe00bcb8 | 01b0227ed8e8955491e4465d8ebbda9e835d83f4 | /python/prueba_completa.py | 73eb094a6ca028fc16c6a7e78a3692c6d81151df | [] | no_license | LeoBrasileo/QR-Assistance | 4ab0b3e87c9f5683cf2f06ee8d46fb5656329af2 | 10ae308baf841bb0e5ad8432a1c150c9c95e1b95 | refs/heads/master | 2023-01-24T17:04:58.133133 | 2019-11-19T13:44:22 | 2019-11-19T13:44:22 | 194,198,054 | 2 | 0 | null | 2023-01-09T11:53:34 | 2019-06-28T03:11:44 | Java | UTF-8 | Python | false | false | 1,078 | py | import schedule
import time
import pyrebase
import random
import qrcode
import numpy as np
import cv2
# Configuracion e inicializacion de Firebase
config = {
"apiKey": "AIzaSyAbMl8vM1IHJj6ygDad_TSg4b8daYQVXJA",
"authDomain": "ususarios-3b9a8.firebaseapp.com",
"databaseURL": "https://ususarios-3b9a8.firebaseio.com",
"s... | [
"leobraginski@gmail.com"
] | leobraginski@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.