blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d9b27ca343e10170046a3a51a3e7e755e6f6f5d7 | 8ce29f7ca669c23ed8a43d33eee3e98be99afbf7 | /__init__.py | 6f3ef0bd5d0451e2ac49f36d2ce942887efd701a | [] | no_license | agatapouglof/odoo_School-test | b90a1ae1cd897c90dfb57dee0a928a9f55dd73ab | cc38d66fa184d8587e7aabaf59fc038ef7e646c3 | refs/heads/master | 2021-09-03T05:17:49.064803 | 2018-01-05T22:45:44 | 2018-01-05T22:45:44 | 109,565,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from models.etudiant import Etudiant
from models.filiere import Filiere
from models.prof import Prof
import models
# from . import controllers
| [
"nougbeledaniel@gmail.com"
] | nougbeledaniel@gmail.com |
db7c4a0b79b27d1685be085bd88b35cdddf098b6 | 35f163f0db45094ea44e6e698750e5780b8f1a79 | /aiortc/rtcsctptransport.py | 40a7178eca033abaac30e6921e02a2854cdbc32d | [
"BSD-3-Clause"
] | permissive | royfu/aiortc | 886ac442a56af93e8771d9be0aa15702b0635fb4 | 4a781e15e061176470f8b2c7d30ab2e64d71da9e | refs/heads/master | 2020-04-15T01:43:00.905480 | 2019-01-04T16:06:29 | 2019-01-04T16:06:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55,614 | py | import asyncio
import enum
import hmac
import logging
import math
import os
import time
import warnings
from struct import pack, unpack, unpack_from
import attr
import crcmod.predefined
from pyee import EventEmitter
from .exceptions import InvalidStateError
from .rtcdatachannel import RTCDataChannel, RTCDataChannelPa... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
45557265dd394c810a14f3635467179f9dbd3b59 | e63b3dcc294ee227759473b2f47335548abf469a | /basic1/unit_testing.py | 6dc7e2438e208a77534e6380ac9de20e81867617 | [] | no_license | bhuvinisar/pythonProject1 | e54fe607e0974da70c6e2645483ce609e19cfba0 | adaaad21af8979c0ddbbf27348afacb9de2ae21c | refs/heads/master | 2023-06-24T13:35:50.293014 | 2021-07-24T09:36:46 | 2021-07-24T09:36:46 | 389,055,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | import unittest
class TestStringMethods(unittest.TestCase):
def setUp(self):
"""
Method called to prepare the test fixture.
This is called immediately before calling the test method
:return:
"""
print("Setup Method Called")
def tearDown(self):
"""
... | [
"bhuvikoki1912@gmail.com"
] | bhuvikoki1912@gmail.com |
21ed8fb655c96dd4b06b65865b071a07bf9d5dc1 | efad772c1da5220a8dc26583b808abdc7b23617c | /TicTacToePlayingComputer/computer_player.py | 31d8feb4d31d5f8197c31ea402bf14383422ad66 | [
"MIT"
] | permissive | tdhris/Algorithms | 016f605753821c415a0a0f5a4a497797052d5dc1 | 4aeaa2d8610613957f61060ef1d812c6580a9fa5 | refs/heads/master | 2021-01-01T05:51:38.325779 | 2015-02-13T18:32:00 | 2015-02-13T18:32:00 | 20,029,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | from game import Game
from move import BestMove
from copy import deepcopy
WIN = 1
LOSE = -1
TIE = 0
NINFINITY = - 10000
INFINITY = 10000
INITIAL_DEPTH = 100
def computer_move(game, computer_player):
return alpha_beta_minimax(game, computer_player).move
"""Minimax Algorithm assumes that at each step:
* Maxima... | [
"tdhristova@yahoo.com"
] | tdhristova@yahoo.com |
e0069151847d0d09f9ad60a5a5d0b65200219968 | 7364f67ec30af26e02cf894124a60478fdb56df7 | /make_plot.py | 1a6f1bf02180fc24f9f1df327b547b1d9b144f93 | [] | no_license | RaymondSimons/clear_local | b5430bbaf198654b190f7e41f261337389b6a209 | dd5dfbabd0149ef8323750a887640407dc6d1477 | refs/heads/master | 2021-06-15T08:14:42.452049 | 2021-02-24T15:47:00 | 2021-02-24T15:47:00 | 147,576,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,208 | py | import numpy as np
from matplotlib.backends.backend_pdf import PdfPages
from astropy.io import fits, ascii
from astropy.coordinates import SkyCoord
import astropy.units as u
import matplotlib as mpl
from astropy.cosmology import Planck15 as cosmo
import matplotlib.pyplot as plt
from numpy import *
import glob
from glo... | [
"rsimons@jhu.edu"
] | rsimons@jhu.edu |
4170b7cfe9ae4a5a1d28597c35636cff1d655ce1 | 957238b2a08f7cce83a46961eaaae8626d9db380 | /cleardb.py | dcf367b68f22176c22a660bfb6a8eaf2c669b898 | [] | no_license | garnetgrimm/GABraunMessanger | e3922ac6fe35ec395a62d8fef0c5eb2581f32948 | 0f9299c35e85dff16a0965ea948d33ab3f585bab | refs/heads/master | 2022-04-14T00:22:35.553828 | 2020-04-14T22:23:23 | 2020-04-14T22:23:23 | 255,740,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import server
import os
server.db.drop_all()
server.db.create_all()
print("db cleared")
os.system("pause") | [
"epicishness@live.com"
] | epicishness@live.com |
a223bea87e727fe2a3930553e4a11331f0f6186c | 696ae6173e8544d92e72647fbc492ab6a9b28e51 | /manage.py | 083e1e26a29fbfd997f0cba5a35dd8e5c0e78958 | [] | no_license | edgar-sebastian-94/Fase2CastilloBarrera007D | c813243cbf7307268c2b700b3c67e31611a4aa3d | 59ec1fe33fd496d626f561d1b4836b488ef127ec | refs/heads/main | 2023-01-19T04:44:36.430554 | 2020-12-01T02:22:46 | 2020-12-01T02:22:46 | 309,462,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'MusicosChile.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"edgar94_sebastian@hotmail.com"
] | edgar94_sebastian@hotmail.com |
1e1ef944556644234b01de801bc01eac0e0e4c2e | 48637665afeacae58d99e5203524ed8f2313d649 | /drawBot/context/gifContext.py | 2beff8238f2b3c31daaab1128958396ab581b1af | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | bitforks/drawbot | 35853a63d2d685cda7789d2dc3ca812bad0cc6d0 | e66f12cf1a4fdd412d27d3b9f36092112b6cbd4f | refs/heads/master | 2021-01-20T16:44:45.084558 | 2015-09-17T14:40:19 | 2015-09-17T14:40:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | import AppKit
import Quartz
import os
import tempfile
import subprocess
from imageContext import ImageContext
gifsiclePath = os.path.join(os.path.dirname(__file__), "tools", "gifsicle")
if not os.path.exists(gifsiclePath):
gifsiclePath = os.path.join(os.getcwd(), "tools", "gifsicle")
class GifContext(ImageCont... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
4a30a31efe5e3354243d6ad81590c7facc85974d | 28b32dc98255ef4e066f021d4da0405cdfdbaf20 | /L9/loadMovieList.py | df762d966bd130197b4ff3573958bb190a6ef13d | [] | no_license | NikitaKudin/ml | 4fc72804288eaf7fff682eb04bd01d152ab12636 | b56b20eaa327d764bae24c35459b1c5405cce97d | refs/heads/master | 2020-09-20T10:37:01.339721 | 2019-11-27T15:06:27 | 2019-11-27T15:06:27 | 224,452,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | def loadMovieList():
#GETMOVIELIST reads the fixed movie list in movie.txt and returns a
#cell array of the words
# movieList = GETMOVIELIST() reads the fixed movie list in movie.txt
# and returns a cell array of the words in movieList.
## Read the fixed movieulary list
with open("movie_i... | [
"noreply@github.com"
] | noreply@github.com |
bda72a45c56ce6b1c4ea927d9a8567f2951fdb18 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_sobers.py | 86f6f5f194a353070e1f9fe678676c2bc8cd808f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _SOBERS():
def __init__(self,):
self.name = "SOBERS"
self.definitions = sober
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['sober']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8b4d6cc9e6417a7445d18c9f96d953bdcd1a47bf | 47ea5b76010972ed3181a2ccad68cf8c9b40b9e2 | /main.py | f3b26e22b261134d6957fb4a4c0a43b09b307c01 | [] | no_license | ChinmoyJyotiKathar/Virtual_Interview | b9a3634e9fa131260448d88e5ff0e1207726370c | 8d533b2fa006e157b1dc90c5a89a8c6de580c0d2 | refs/heads/master | 2021-07-11T16:12:01.887247 | 2017-10-06T15:59:09 | 2017-10-06T15:59:09 | 106,022,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,057 | py | #!/usr/bin/env python3
import speech_recognition as sr
from os import system
from textblob import TextBlob
from textblob.classifiers imp... | [
"c.kathar@iitg.ernet.in"
] | c.kathar@iitg.ernet.in |
50899501d48aefbf8069736a20d4adf832d5c014 | 195f19578f3eea3f8c3e3a780655ce2f8dd009d0 | /caixa_racional/views.py | 11f834c7fb9fdce95b8fa501e59832eee8e6a44b | [] | no_license | osmarsalesjr/TheBeeFreshTeam | 5b68c26d413940badc0814fb5c4cfc953b4fb695 | 9ca839083d903236054a813b265b0d09f34cb288 | refs/heads/master | 2022-12-17T11:22:30.482340 | 2019-07-14T00:11:50 | 2019-07-14T00:11:50 | 194,682,998 | 0 | 0 | null | 2022-12-08T01:47:50 | 2019-07-01T13:57:06 | Python | UTF-8 | Python | false | false | 1,240 | py | from rest_framework.response import Response
from rest_framework.reverse import reverse
from rest_framework import generics
from caixa_racional.models import Temperatura, BaseDeDados
from caixa_racional.serializers import TemperaturaSerializer, BaseDeDadosSerializer
class TemperaturaList(generics.ListCreateAPIView):... | [
"osmarsalesjr@gmail.com"
] | osmarsalesjr@gmail.com |
5ca637eb2ebfb7ed1a6f2ba5d043a4f944c62dc9 | 8ff12c53e31f134b9f39f59b9a6f7d4f9142cea7 | /src/if.py | e048368b8880f8521d2dce9ee91380e173b38b8e | [] | no_license | quhuohuo/python | 5b0a80dbec7d22a0b274e4a32d269e85d254718c | 5732c5974519da8e8919dab42b36ab0ab2c99b37 | refs/heads/master | 2021-06-13T11:41:12.356329 | 2017-04-07T08:58:05 | 2017-04-07T08:58:05 | 75,054,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | #!/usr/bin/python
#coding=utf-8
#简单的if语句
a = input()
if a > 0:
print "a > 0"
| [
"813559081@qq.com"
] | 813559081@qq.com |
e8e3d8de20abef556139aa2fe44ad71d69297b8a | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_dospolicy_binding.py | c16c8f0e9fb625627902597e36abce766c98e1f5 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,292 | py | #
# Copyright (c) 2008-2019 Citrix Systems, 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 l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
81184cdde6754b655bd026af3681dda6241021c4 | f751c9fe5d0d485f46e28d71f6f5c0418ae3b5a3 | /rfIfReaderTest.py | 12dbc27586c17814657849e60b6a2ee42aa59cec | [
"CC0-1.0"
] | permissive | neueda/voting-machine | ef808d488b124af874641eabe2ba14f8590dd2bf | e06b92f654e8926b5bfda08cfbdca56bf5d15f65 | refs/heads/master | 2020-03-28T19:05:01.693755 | 2015-06-05T14:43:40 | 2015-06-05T14:43:40 | 35,207,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | import unittest
import rfIdReader
class RfIdReaderTest(unittest.TestCase):
def test_format(self):
to_format = ' 19272FA912,.!\r'
formatted = rfIdReader.format_input(to_format)
self.assertEqual(formatted, '19272FA912')
if __name__ == '__main__':
unittest.main() | [
"sergey.ishchenko@neueda.com"
] | sergey.ishchenko@neueda.com |
e4eb072d8f1eeaaa4cdf7f001effd5d4efd96d64 | 3f84f51751c4191bb81c9df7094578461fb12a2d | /AtcoderProblems/ABC/ABC063/C.py | a0d1edc24569a3ff1337dee5f6488331c804eeb4 | [] | no_license | rikukawamura/atcoder | 7ff49f1bd8534b99d87fe81ef950e1ba77eee8b8 | 09c0cfe3ce25be56d338614a29e996f4106117cd | refs/heads/master | 2023-08-13T21:21:19.058219 | 2021-09-28T10:02:42 | 2021-09-28T10:02:42 | 329,206,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | import pdb
import itertools
N = int(input())
S = sorted([int(input()) for _ in range(N)], reverse=False)
non_ten = []
ten = []
for s in S:
if s % 10 == 0:
ten.append(s)
else:
non_ten.append(s)
ten = sorted(ten)
non_ten = sorted(non_ten)
total = sum(ten)+sum(non_ten)
'''
1. 総合点が10の倍数且つ,10の倍... | [
"49993650+rikukawamura@users.noreply.github.com"
] | 49993650+rikukawamura@users.noreply.github.com |
2daa6a81d0cd0f64c95008466e9adec9e4b1254b | a7b72ecc1f4b72bcb0949c767cde6380847e0510 | /kejia_simulator/we_python_sm/src/opt_action_putdown.py | 0a00e15e33ced1209bf17a24823961de6f4f66b1 | [] | no_license | cuigw1/simulation | 00c68eb5e813aa9e902ceb39d6986824dfcfbd97 | f591c830c52bdc697ffececf99bc39f561672d9e | refs/heads/main | 2023-01-23T14:08:11.668923 | 2020-11-26T16:06:50 | 2020-11-26T16:06:50 | 313,495,316 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from option import Option
import world
import rospy
import util
from robot import robot as device
import conf
class Opt_action_putdown(Option):
def __init__(self):
labels = ['init', 'findpos', 'prepose', 'adjustpose', 'slamgo', 'putdown', 'finish']
O... | [
"gw@guoweicuis-MacBook-Pro.local"
] | gw@guoweicuis-MacBook-Pro.local |
07ea445d9d660a88c24287a6baf5cdcc3c48e651 | cc22bc2cb1ce901eebbbae599a35738e78505341 | /dummy-web-server.py | 615474aa9b2b3174f702f817ebeb84607e2d1468 | [] | no_license | aairon/python-webservice | e38c487ea18076cf117c8d5997b41421bc197aa6 | 81b288ba733c35ada0b46d393d73612d7ce073d3 | refs/heads/master | 2020-05-15T13:54:17.892577 | 2019-04-20T22:53:57 | 2019-04-20T22:53:57 | 182,316,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Very simple HTTP server in python.
Usage::
./dummy-web-server.py [<port>]
Send a GET request::
curl http://localhost
Send a HEAD request::
curl -I http://localhost
Send a POST request::
curl -d "foo=bar&bin=baz" http://localhost
"""
from BaseHTTPSe... | [
"adschaum@sherwin.com"
] | adschaum@sherwin.com |
b49482817895ed4364111760e2e669ad95ba46db | 999879f8d18e041d7fa313132408b252aded47f8 | /01-codes/scipy-master/scipy/cluster/tests/test_hierarchy.py | 84de6b3e57d6f535499c88e97ebd502ab81d922a | [
"MIT"
] | permissive | QPanProjects/Surrogate-Model | ebcaf05728e82dcbcd924c2edca1b490ab085173 | 848c7128201218b0819c9665e2cec72e3b1d29ac | refs/heads/master | 2022-10-11T19:03:55.224257 | 2020-06-09T14:37:35 | 2020-06-09T14:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,971 | py | #! /usr/bin/env python
#
# Author: Damian Eads
# Date: April 17, 2008
#
# Copyright (C) 2008 Damian Eads
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copy... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
64d1d2b1b37b4026b3e815a6043a6385271dd400 | ba497e08eceb3241856a96afb77db2768c99802a | /gansht_server/gansht_server/scripts.py | c76620ceb5ac85be287a7ca472754d12a25a75c5 | [] | no_license | leonardocarvalho/gansht | 3bbff05f99edd7d5c9f1b86cf7c67c891d2bb486 | 8632c7b222b0bcafdf26073c38298b4c3bb95e76 | refs/heads/master | 2021-01-22T10:07:37.334664 | 2012-12-30T01:01:49 | 2013-10-18T09:35:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from gansht_server.models import user
from gansht_server.models import repository
def add_user(username, password):
repository.user.save_user(user.User(username, password))
| [
"leonardo@geekie.com.br"
] | leonardo@geekie.com.br |
8ee25d457d74e3e63a2e9f758f67dca435c52ee9 | 7cad76f158dafa87976b5170aa9bda3336495963 | /fencingEngine.py | 8b7d086849a7734c97028c2995f6030032d761be | [] | no_license | wadelu/fencing | 9250bb82f3991303e8dccdc91254480046987419 | a528ae7d48b21d10d2e4db51a9dbd78a7763354b | refs/heads/main | 2023-04-24T09:04:02.053720 | 2021-05-12T00:17:30 | 2021-05-12T00:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,621 | py | from math import sqrt
import subprocess
import shlex
import shutil
import os
import numpy as np
import cv2
import json
import glob
BODY_PARTS = [ "Nose","Neck","RShoulder","RElbow","RWrist", "LShoulder","LElbow", "LWrist", "MidHip", "RHip","RKnee","RAnkle","LHip", "LKnee","LAnkle","REye","LEye", "REar", "L... | [
"noreply@github.com"
] | noreply@github.com |
6d137525bb523fe09492cfcbd843b3bf0d506b8e | 44f3a427263d51e0bb0e0fdc4489698bdede4245 | /code/python/solar_system_gravity.py | 8c45b307ac43d3f1eac86e5eb9f411d0b41e9e7f | [] | no_license | ThomasKundera/fedb | 0afab1a26ec58b35e53f4c7eb0fca7401b33df3a | e71b480c8dcb29f9443705d8a8bbc70825ce3741 | refs/heads/master | 2023-08-31T11:27:25.261644 | 2023-08-21T19:45:23 | 2023-08-21T19:45:23 | 588,850,816 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Units
# Distance
m=1.
km=1000.*m
UA=149597870700*m
# Time
s=1.
Y=31556925.98*s
# Mass
kg=1.
#derivatives
N=kg*m/(s*s)
# Constants
G=6.67E-11*N*m*m/(kg*kg)
# Wikipedia
# Demi-grand axe (UA) Excentricité Inclinaison (°) Période (années) Mass (kg)
planetsArray=[
["M... | [
"thomasked69@yahoo.fr"
] | thomasked69@yahoo.fr |
dac7e505f582598df1f8fc97cb9013ed86ce288b | 098e16aa14b362d44d3b2c3f2726ec544052956d | /catalog/tests/test_views.py | 9617bd01aab2ad5b69f0455e541f7b0f9bfa5a33 | [] | no_license | pavlenk0/my-catalog | e026997fbebe1a134de41e2d0630473d3c9b15b8 | 32cac600b47bb27ea7df5e2c99a4603a942aeee5 | refs/heads/master | 2020-05-22T02:25:44.220445 | 2017-03-18T11:07:16 | 2017-03-18T11:07:16 | 84,659,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,367 | py | import datetime
from catalog.models import Author, Book, BookInstance, Genre, Language
from django.contrib.auth.models import \
Permission # Required to grant the permission needed to set a book as returned.
from django.contrib.auth.models import \
User # Required to assign User as a borrower
from django.core... | [
"noreply@github.com"
] | noreply@github.com |
d7b25aec513b656f9d7cd0602a4c83da8289ac1a | 91b07d2c7662d862a12f4cf1b390ab3db6f246e7 | /mail/util.py | de25ba712ca88b4bdcc9a18fc35342bacdef8c51 | [] | no_license | kartikeychoudhary/modules | 6b26228a31f4108e5a84b8f801e315a75b58db4c | bca9325b753f74c0c0e946e73b3feb334e1a590a | refs/heads/master | 2020-09-21T05:44:36.057909 | 2019-11-29T11:58:04 | 2019-11-29T11:58:04 | 224,699,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | import configparser
import getpass
import os
CURRENT_PATH = os.getcwd()
def createFile(config):
username = input("Enter the username\n")
password = getpass.getpass(prompt='Password: ', stream=None)
config['CREDENTIALS'] = {'username':username, 'password':password}
with open('config.ini', 'w') as file:... | [
"31shavy@gmail.com"
] | 31shavy@gmail.com |
4c9be75decb4839498b7b34404609eb5443e30a9 | 94a6434269f2148006c86ff99fc0211d08fd1223 | /plugins/cloudify-fortinet-plugin/fortigate/config.py | 5e8870bfb40def791b0bcd68f3ed1014c3a56e15 | [
"Apache-2.0"
] | permissive | thomnico/multicloud-fortigate-nfv-blueprint | 17f8714403c67e2785909b22ea3c50fb8b0045a8 | 3d6a51225839d0b97122b7866e9cfe6d4dfbb414 | refs/heads/master | 2021-05-03T10:44:20.015181 | 2017-05-10T16:14:38 | 2017-05-10T16:14:38 | 69,953,032 | 0 | 0 | null | 2016-10-04T10:00:14 | 2016-10-04T10:00:14 | null | UTF-8 | Python | false | false | 6,842 | py | # #######
# Copyright (c) 2016 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | [
"earthmant@icloud.com"
] | earthmant@icloud.com |
2f52d56babbfee5ac5d6aac0cbe755517a480448 | 2e336a1c8876f17588e8144114b2b1bacf4d4f66 | /fde_cmp/old_src/old1_py_source/parse_xde.py | 941d9f4bc1de0d9651be4b8908034fd6b426a5b6 | [] | no_license | darlyz/FelacGenerator-py-version | f67c7032f04d587e34f9e538d3dce4377fd2954b | bcd47ade1fa95182a0ff9363b6a49b45bc746d79 | refs/heads/master | 2020-05-29T14:30:44.451730 | 2019-08-30T07:37:59 | 2019-08-30T07:37:59 | 189,195,226 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,890 | py | '''
Copyright: Copyright (c) 2019
Created: 2019-4-15
Author: Zhang_Licheng
Title: parse the xde file and check it
All rights reserved
'''
import re as regx
def parse_xde(gesname, coortype, keywd_tag, xde_lists, list_addr, keyws_reg,file):
# 0 prepare
shap_tag = regx.search(r'[ltqwc][1-9]+',ge... | [
"darlyz@163.com"
] | darlyz@163.com |
a69b2292889bf83dff62c0d9477259abd9002067 | 0d152a0363d52558549f126609ce460aedbe798a | /Programs & Challenges from Python for beginners book/Chapter 2/quoteManipulate.py | e517baba1ae846884d62463520f5269e81035867 | [
"MIT"
] | permissive | Ry09/Python-projects | 04acdf349c6a785a387cc64cac13f218cc6380d2 | 0987bb39149b5f02f1ac5684262e2469ffe6be31 | refs/heads/master | 2021-01-10T15:28:42.025307 | 2017-03-13T01:44:36 | 2017-03-13T01:44:36 | 45,318,778 | 0 | 0 | null | 2017-03-13T01:44:36 | 2015-10-31T21:20:36 | Python | UTF-8 | Python | false | false | 491 | py | #Quotation Manipulation
#quote from IBM Chairman, Tomas Watson, in 1943
quote= "I think there is a world market for maybe five computers."
print("Original quote:")
print(quote)
print("\nIn uppercase:")
print(quote.upper())
print("\nIn lowercase:")
print(quote.lower())
print("\nAs a title:")
print(quote.title())
... | [
"Ry09@users.noreply.github.com"
] | Ry09@users.noreply.github.com |
9a00c936f07468dcfad0916355bce60cd36cf17d | 209b1eb07d4eac15318bee6415a3701252abc272 | /Functions/update_stocks.py | f94dc4f625d891f8d0db3728fab0ee4e953a461d | [] | no_license | CodeDropper/PMS | 0bb1d41a99c49bde8846cb92d2752a9323b3b92f | 921c18873185e628ef4ec8d53224851b884877fd | refs/heads/main | 2023-06-21T05:10:36.612534 | 2021-08-05T08:02:11 | 2021-08-05T08:02:11 | 392,950,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | def createConnection():
import mysql.connector
connection=mysql.connector.connect(host='localhost',
user='hb',
passwd='mysqluserpassword',
database='pms',
auth_plugin='mysql_nati... | [
"noreply@github.com"
] | noreply@github.com |
f301ba900ddb00e3ac26827d12d71ad827d3a5fe | 99827f6b1c32bd0399c7caafe23c6725edd74d82 | /linear_forward.py | d55a27071f5d0c755fef09557ee2e47ed711b1c1 | [] | no_license | nguyenlinhvn512/Deep-Neural-Network-for-Image-Classification | fe88666be0be2b8cb074a9fec9dc526485f490fe | 5d6ea7f2cf1f43af9eac5766e640b10a831204b1 | refs/heads/main | 2023-01-28T19:51:03.800054 | 2020-12-08T22:13:05 | 2020-12-08T22:13:05 | 319,773,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | # GRADED FUNCTION: linear_forward
def linear_forward(A, W, b):
# """
# Implement the linear part of a layer's forward propagation.
# Arguments:
# A -- activations from previous layer (or input data): (size of previous layer, number of examples)
# W -- weights matrix: numpy array of shape (... | [
"noreply@github.com"
] | noreply@github.com |
a355eeec111864ef7af555c51e8460f11f29c365 | 0581988cad7e0ea62a638d551548e409af1e5dc1 | /20200529/UI_PPT2PDF/myUI_ppt2pdf.py | cc3732bbc0196e33f92063a50d906881b836f73f | [] | no_license | Aimee888/python-20200513 | 7c1dff7d7f0fdea08e12735efeb2e889fedeee10 | 578c388be5582dc7f1556f95168adf0399b7ea1f | refs/heads/master | 2023-01-06T10:21:35.014780 | 2020-11-03T01:07:04 | 2020-11-03T01:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
# _*_ coding: UTF-8 _*_
"""=================================================
@Project -> File : six-dialog_design -> myUI_ppt2pdf.py
@IDE : PyCharm
@Author : Aimee
@Date : 2020/5/29 17:11
@Desc :
================================================="""
import sys
from PyQt5.QtWidgets imp... | [
"961745931@qq.com"
] | 961745931@qq.com |
df48ff50d8958708c5c41fd317a1f7cab90c3ffd | b9686758a441c250e3625deb487e94eb6fb1c591 | /twisted_proto_client.py | 0c52fe02e7780495235045d60c5d5cc82054b359 | [] | no_license | MachineRunning/twistedExperiments | 501acfe3c2218b909f1c8e177e7fa77fb80e049c | 72ac88bf3670c0130bf3ce37ed6117112abae149 | refs/heads/master | 2020-04-26T11:32:50.161726 | 2015-07-17T06:53:25 | 2015-07-17T06:53:25 | 39,239,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,868 | py | from twisted.internet.protocol import Protocol, ReconnectingClientFactory, Factory
from sys import stdout
import sys
from twisted.internet import reactor
from twisted.internet import stdio
from twisted.application import internet
### https://twistedmatrix.com/documents/current/core/howto/clients.html
# bugjar twiste... | [
"recneps_running@hotmail.com"
] | recneps_running@hotmail.com |
c44e31915ea2575dc522eb49e10a41f4cfbe1772 | 308d75172c81bddb45c82429e4ddb3e09a3d220e | /01-OpencvPythonTutorial/ch22/06-hist-normalized.py | 2040ee82d34de1984caff9ba18df6ac7a162de4c | [] | no_license | Damon0626/OpenCV3ForBeigner | 956f2163249b5a3d1426089e3650695467a0427f | b3e8c5c201b6adabe067c9f2d1f614d93dcef447 | refs/heads/master | 2020-04-04T16:49:32.806739 | 2019-02-21T13:54:12 | 2019-02-21T13:54:12 | 156,095,139 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*-coding:utf-8-*-
# @Author: Damon0626
# @Time : 18-12-16 下午11:25
# @Email : wwymsn@163.com
# @Software: PyCharm
import cv2
import numpy as np
import matplotlib.pyplot as plt
image = cv2.imread('contrast75.png')
hist, bins = np.histogram(image.flatten(), 256, [0, 256])
cdf = hist.cumsum() # 累积分布
cdf_mormalized... | [
"2404448093@qq.com"
] | 2404448093@qq.com |
4755926cfff3216ab285a58a49e8ac2af920625f | 6fdb4a1a7ecb68dcddce8b03cb325578aaef3b33 | /2013-02-02/old_library/summing_subsets.py | a77f9d6dab09542dbf25e3e2d8652b5517522282 | [] | no_license | lowrey/checkio | 19e62bf9383bb21a069bc782a99bbe0e2dcf09d2 | be0090a4d444648b2295ee088bce0c0e2b4e190d | refs/heads/master | 2021-01-23T12:05:17.214951 | 2014-06-09T03:34:50 | 2014-06-09T03:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | def checkio(n):
'''
Let G(S) denote the sum of the elements of set S and F(n) be the sum of G(s)
for all subsets of the set consisting of the first n natural numbers.
For example, F(3) = (1) + (2) + (3) + (1 + 2) + (1 + 3) + (2 + 3) + (1 + 2 + 3) = 24.
Given n, calculate F(1) + F(2) + ... + F(n)
... | [
"lowrey@server.fake"
] | lowrey@server.fake |
85e05e3c33ca86dc0280e5c8edbaa2ac143212c9 | 6930e9d3372e83cf43a47ae8ad165f83a218aee2 | /capture/noworkflow/now/utils/bytecode/f_trace.py | 93e8b89a211b8519aa8d55ca65e360e7e73c8d43 | [
"MIT"
] | permissive | hugobowne/noworkflow | 02ab47a8b3377ee56f1e7c4552a8dbcb3d15e5f0 | 333cbe274348428f1a9514fe81406f8416036845 | refs/heads/master | 2021-01-17T20:27:16.524245 | 2015-11-18T23:53:28 | 2015-11-18T23:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | # Copyright (c) 2015 Universidade Federal Fluminense (UFF)
# Copyright (c) 2015 Polytechnic Institute of New York University.
# This file is part of noWorkflow.
# Please, consult the license terms in the LICENSE file.
""" Define f_trace related interpreters and functions """
# pylint: disable=R0902
from __future__ impo... | [
"joaofelipenp@gmail.com"
] | joaofelipenp@gmail.com |
efa1bf081f157d7e08c578608723aab9760247b8 | 25278aa3c82ccb67fa8e6afc049fa3dc77d6baf6 | /ENV/lib/python3.6/heapq.py | 19ad9faf6d40e0e10f4644c661174c5ab5e41330 | [] | no_license | chianhenglee/NTU_NBD_multi-page | 8e529517c34cbccffc71e7c32e2110227f429852 | ee7e1ae070fd9ceecb5b66579d52719e823cf277 | refs/heads/master | 2023-01-08T21:06:37.596071 | 2018-11-19T07:10:36 | 2018-11-19T07:10:36 | 157,572,731 | 0 | 0 | null | 2022-12-26T20:50:25 | 2018-11-14T15:50:53 | Python | UTF-8 | Python | false | false | 45 | py | /Users/cl58/miniconda3/lib/python3.6/heapq.py | [
"chianhenglee@gmail.com"
] | chianhenglee@gmail.com |
8ee29ba37af77bfdff3612f2e215b1e79ece3c94 | 8b57edd4f28d4d68093561f96692948dfa43de2a | /Clase 1/desafio2.py | dd5f55996aec9382df9c4edac68b2a0de01f42eb | [] | no_license | priscilafaliani/Seminario-de-Lenguajes-2021 | 40ce5a143fd1d2283ff2862ff4c5de97cd7c932e | c2e8cf580d5733cb67f1e7534766e75069977bb2 | refs/heads/main | 2023-04-14T04:54:13.422835 | 2021-04-16T07:32:16 | 2021-04-16T07:32:16 | 350,755,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | # ingresar un número desde el teclado e imprimir si es múltiplo de 2, 3 o 5
num = int(input('número: '))
if num % 2 == 0:
print('multiplo de 2')
elif num % 3 == 0:
print('multiplo de 3')
elif num % 5 == 0:
print('multiplo de 5') | [
"priscilafaliani@gmail.com"
] | priscilafaliani@gmail.com |
7ef42a92ae39b24782fb94eaa671bb5de5c6651c | 1676c903661f762982a272c1d7599a3f963cb5f9 | /repos/system_upgrade/el7toel8/models/opensshconfig.py | ad786d22df7ef41836614fcf4ddac241674b821a | [
"Apache-2.0"
] | permissive | NetworkManager/leapp-repository | 6ceafa62c4b24e08c96574ea6595cbc795c8b6d7 | 0b043ee7f6d0989f11e5a35491fdcb5e7eb634a6 | refs/heads/master | 2023-02-08T16:29:57.582064 | 2019-11-25T12:50:16 | 2019-11-26T11:15:03 | 224,422,560 | 0 | 0 | Apache-2.0 | 2019-11-27T12:09:48 | 2019-11-27T12:09:47 | null | UTF-8 | Python | false | false | 1,131 | py | from leapp.models import Model, fields
from leapp.topics import SystemInfoTopic
class OpenSshPermitRootLogin(Model):
topic = SystemInfoTopic
value = fields.StringEnum(['yes', 'prohibit-password',
'forced-commands-only', 'no'])
in_match = fields.Nullable(fields.List(fields.S... | [
"vsokol@redhat.com"
] | vsokol@redhat.com |
f1df347ea415e48c82664af4a4070506e7d10cc3 | a71259865e3dadd2ee43952d822ab9fd716d0dfb | /exps/pytest_exps.py | e30d4e3d958f15cb981e40d245e45f56975282ca | [] | no_license | GlebMorgan/PyUtils | f4c5ea15c45acc8dc7ff01505a7f7c6e25cad2c3 | cffaebcce6570cbd4bd6b1212067afb0561fe10e | refs/heads/master | 2023-02-01T06:35:11.270221 | 2020-12-16T21:52:51 | 2020-12-16T21:52:51 | 283,730,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,512 | py | from pytest import fixture, mark, lazy_fixture
# ————————————————————————————————— Fixture parametrization via @fixture(params=...) ————————————————————————————————— #
fixture_params = ((1, 0), (2, 5))
@fixture(params=fixture_params, ids=lambda par: f"{par[0]} and {par[1]}")
def fixture_with_params(request):
p... | [
"glebmorgan@gmail.com"
] | glebmorgan@gmail.com |
746c0b57bed4dd0b08863afd6dd9a3dbc999cc87 | 62f2abe3d738a7f06cbadb432ce6abab80b6f1f8 | /07_Python_projects/website_scanner/whois.py | 243f34c2cccb43f9d12fd2ba0e7580f84fb8940a | [
"MIT"
] | permissive | udohsolomon/LearnPython_Class | 042e26b5322c24eead218be8d198f84d66760ff1 | 4c5073d12d3c5fbb4d61bb506b640942cce4aecf | refs/heads/master | 2020-04-11T20:44:50.843121 | 2019-03-08T03:09:03 | 2019-03-08T03:09:03 | 162,081,210 | 1 | 16 | null | 2019-01-23T13:48:42 | 2018-12-17T05:52:35 | Jupyter Notebook | UTF-8 | Python | false | false | 178 | py | import os
def get_whois(url):
command = 'whois ' + url
process = os.popen(command)
results = str(process.read())
return results
print(get_whois('augeosai.com')) | [
"solomonlazio@gmail.com"
] | solomonlazio@gmail.com |
d03cfc54549a9351e06314cd40d6c21f91fc4c0c | 37e33587feec6006a8a134b80a1a961470564015 | /ecommerceproject/store/models.py | e45a5ff659ecc0a21810562b20f10ef9745d91aa | [] | no_license | gmdavis1/gocode-samples | cf388d74aa39035fb3b6364fa02857f09f375a68 | fc2dde82730522b1d4cb83bb8d59987144e02a7c | refs/heads/master | 2021-05-29T22:59:03.520759 | 2015-08-07T19:58:01 | 2015-08-07T19:58:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | from django.db import models
# Create your models here.
class Order(models.Model):
status = models.IntegerField()
status_legend = {1: 'in cart', 2: 'ordered'}
username = models.CharField(max_length = 128)
def get_status(self):
return self.status_legend[self.status]
class Product(models.Model)... | [
"gmdavis1@gmail.com"
] | gmdavis1@gmail.com |
0a440ca2304b5b85ac7be765ce40731eb7968d6e | 317b6dbc5d53a037268a6ca4983b1eb6ac2401d7 | /scratches/learning/learning_list.py | 52a6c4639c6dd2f4eec6b491c1970a5807dbfa97 | [] | no_license | xikapsy/learning | 6db9b8d84b97de1c74ff4078327d698dbef9ecbd | 71ff14510c027d0853aab9c039c35098c3ab1257 | refs/heads/master | 2023-05-27T05:07:49.527530 | 2019-12-09T08:29:42 | 2019-12-09T08:29:42 | 226,812,270 | 0 | 0 | null | 2023-05-22T22:35:08 | 2019-12-09T07:36:48 | Python | UTF-8 | Python | false | false | 288 | py | aList = [123,'123',234.213,['index','list']]
print(aList[0],aList[0:2],aList[3])
print(aList[3][1])
aList[0] = 321
print(aList)
a = 1,33.234,'13d','vsd'
print(a[0])
b = 1, #单元组需要添加‘,’
print(b[0])
b=(1,)
print(b[0])
#a[0] = sdf 元组不支持赋值
print(tuple(b))
| [
"476380800@qq.com"
] | 476380800@qq.com |
21305a05b0d16995beb47fb0437db468320c7458 | 87280e2156919618004eff4c55a3ee7b64cd5795 | /cse331/proj07/Main7.py | ab0c4c5aa8fec6295ae45974f36ecbf46662bae5 | [] | no_license | ithomps/school-backups | a2ef0823568ff55426290853095a6a90fa2cab9c | a2ee052631d61d402fa1dc395aa8f08c058ecdf0 | refs/heads/master | 2020-09-28T09:04:00.269866 | 2019-12-08T23:08:21 | 2019-12-08T23:08:21 | 226,742,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | from Lis import *
def read_file(filename):
with open(filename, 'r') as reader:
return [word for line in reader for word in line.split()]
def main(file):
seq = read_file(file)
lis = find_lis(seq)
print('length:', len(lis))
print(lis)
if not verify_subseq(seq, lis):
print('War... | [
"noreply@github.com"
] | noreply@github.com |
0889e4b5bf0fb41b45f187407034409007530b53 | 4ebf8204f3c8bcfdd8c296068f2154dc21fbfebb | /lifelong/datasets/permuted_dataset.py | 3b20b2a5a8a414e06f83ba74b512113eb652b8b9 | [] | no_license | ain-soph/lifelong | 10128c48b96af06c761b7bbfb2d4aee55361d92f | a420385ffd67814ed0e24fb9590c48ad85f862bf | refs/heads/master | 2023-03-01T23:26:49.303199 | 2021-02-05T02:11:19 | 2021-02-05T02:11:19 | 325,872,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | #!/usr/bin/env python3
from .lifelong_dataset import LifelongDataset
from trojanzoo.environ import env
from trojanzoo.utils.data import TensorListDataset, dataset_to_list
from trojanvision.datasets import ImageSet
import torch
import torch.utils.data
import numpy as np
class PermutedDataset(LifelongDataset, ImageS... | [
"ain-soph@live.com"
] | ain-soph@live.com |
78bf4b66b76ead27c58b57a6ee28fb64948d0173 | 6bb12d58edf19f5e06cfeda67bef8aa372a26125 | /collection/tencent/p1.py | 53579bc066a48dc126250c4f5bddcef55c578c5d | [] | no_license | eguilg/coding-interview-guide | ca06fcf4077b8b75a1d321e538732befcd79e4ea | 88f92648f2a4ecc940bb0baea44ca95fba746f91 | refs/heads/master | 2020-06-21T01:38:02.518013 | 2019-09-22T01:54:34 | 2019-09-22T01:54:34 | 197,312,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | n, k = list(map(int, input().split()))
heights = list(map(int, input().split()))
ans = 0
cur_h = 0
for i in range(k):
cur_h += heights[i]
min_h = cur_h
for i in range(k, n):
cur_h += heights[i] - heights[i-k]
if cur_h < min_h:
min_h = cur_h
ans = i-k+1
print(ans+1)
| [
"artisan6g@outlook.com"
] | artisan6g@outlook.com |
7012967cb00baae4f581bb049013311b240da290 | 61bc53ec90d92aece91753ec5ec9d25e0879a1e2 | /content/pythia/pythia/tasks/vqa/textvqa/dataset.py | c4bc2ee38892409d39789dc107a8a061951eb380 | [
"BSD-3-Clause"
] | permissive | aluka1994/textvqa | 08a16c9b21ea9c5eca05f5d4d1763c190d2d7275 | 694cb2be08def519ba73be78e34664afa2c607b5 | refs/heads/master | 2021-05-26T23:44:21.973827 | 2020-04-08T22:05:58 | 2020-04-08T22:05:58 | 254,190,630 | 0 | 0 | MIT | 2020-04-08T20:14:11 | 2020-04-08T20:14:10 | null | UTF-8 | Python | false | false | 1,047 | py | # Copyright (c) Facebook, Inc. and its affiliates.
from pythia.tasks.vqa.vizwiz import VizWizDataset
from pythia.utils.text_utils import word_tokenize
class TextVQADataset(VizWizDataset):
def __init__(self, dataset_type, imdb_file_index, config, *args, **kwargs):
super().__init__(dataset_type, imdb_file_i... | [
"anandkumar@instance-1.us-central1-a.c.andromanit.internal"
] | anandkumar@instance-1.us-central1-a.c.andromanit.internal |
f772e0ba9394c4d90885630e1ac201f0af5188a2 | a961e902b49c4787d839b42168927832e71347c4 | /src/SumTree.py | ce51ce2ee83e411b717ae99c120b97faa6519242 | [] | no_license | ptolmachev/Collaboration_and_Competition | 716a8be24f944dedf1d54f5b2a0386bf222e417b | 6606af223eb82319f07da636f4cfccadec1f7b4f | refs/heads/master | 2020-04-07T19:10:59.300224 | 2018-12-03T06:23:55 | 2018-12-03T06:23:55 | 158,638,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | import numpy as np
class SumTree():
'''
Tree-like data-structure to make sampling, update, add adding a new element into the structure for the logarithmic time
'''
def __init__(self, capacity):
self.capacity = capacity # maximum number of stored elements
self.tree = np.zeros(2 * capac... | [
"betadecay1993@gmail.com"
] | betadecay1993@gmail.com |
03e265ef4512ff14b625e27be52beea9494fcc97 | 5b9e4f57a796ac3ab17fcf1d843e4b370f22ce73 | /zhihu.py | d328b7c0c3d2ea23d367771ee5b2fa27de4808f4 | [] | no_license | DivineH/MyZhihu-Helper | 7a8fe381bf460f26c706d62656a5695fe2fef98a | 4bb925792622f6aa593d88ca11fb0157ac0d6095 | refs/heads/master | 2021-01-18T19:52:07.601216 | 2017-04-16T06:23:13 | 2017-04-16T06:23:13 | 86,917,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | # -*- coding: utf-8 -*-
# 放置于首位
import sys # 修改默认编码
import os # 添加系统路径
from src.main import ZhihuHelper
zhihuHelper = ZhihuHelper()
zhihuHelper.start() | [
"2414767656@qq.com"
] | 2414767656@qq.com |
84272d0c64a8128d488da1959bb8af7afbd979c7 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/not/sample_good807.py | 55e1c22bfa14474792c197d5bc8d4af90bf8e645 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import stringprep
import difflib
import math
import array
import textwrap
import datetime
import readline
import random
nterms = 618
n1, n2 = 0, 1
if nterms <= 0:
print("Please provide a positive integer.")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
print(n1)
else:
print("Fibonacci sequence:")
... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
f51aef49f07d3052cb15691b3b84201f5f648e98 | b2643444ade5d54529a2e81398e23ba18eddceaf | /dglgo/dglgo/cli/apply_cli.py | c097d21a91bf9b2c08b94b6ee17da22f20aedf4f | [
"Apache-2.0"
] | permissive | CuiDachao/dgl | 49a3644180201deae61c59fe25a1cc05e1090883 | 1947d87dd77eabe5893e277a52ecf0f9eb2f1063 | refs/heads/master | 2022-09-10T06:51:45.344189 | 2022-08-23T04:08:32 | 2022-08-23T04:08:32 | 257,187,311 | 0 | 0 | Apache-2.0 | 2020-04-20T06:07:35 | 2020-04-20T06:07:33 | null | UTF-8 | Python | false | false | 601 | py | from ..utils.factory import ApplyPipelineFactory
import autopep8
import isort
import typer
import yaml
from pathlib import Path
def apply(
cfg: str = typer.Option(..., help="config yaml file name")
):
user_cfg = yaml.safe_load(Path(cfg).open("r"))
pipeline_name = user_cfg["pipeline_name"]
output_file_... | [
"noreply@github.com"
] | noreply@github.com |
a052841bb1d2949bf555e862f60aaec98458a5e2 | f1c7d37fa3de5e2013999f511437d8d1997f4063 | /week6/pyqtcss/dark_blue.py | 1145b5ea969bd90df10c5dcc94b1606619760257 | [] | no_license | embed-Rayn/PyQt-fast-making-GUI | 1555cd7481fd201df01585dd3e7e2037f5f6380f | 51db441e3f76da7b7c382e8bad8e5d30e548525b | refs/heads/master | 2021-01-04T08:03:16.575739 | 2020-04-16T07:25:17 | 2020-04-16T07:25:17 | 240,457,681 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173,529 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.13.0)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x12\xe4\
\x00\
\x00\x66\x71\x78\x9c\xcd\x1d\x6b\x73\xdb\x36\xf2\xf3\xe9\x57\xa0\
\xce\x97\x38\x... | [
"57181674+embed-Rayn@users.noreply.github.com"
] | 57181674+embed-Rayn@users.noreply.github.com |
673df8917fcffa493359510bf3037a32df3e67b3 | 70bc77336e4544031ad7d7d29a2e964ef2626076 | /ui/RepositoryTreeObject.py | 981473acc6c301a58ddafa660cc03bbf33b220b2 | [] | no_license | DronMDF/vanadis | 9af7a8c9281bf0eb17df593f5c9fc9345e474612 | de692207bbd127c5a9952e3144653492a0ba969f | refs/heads/master | 2020-04-17T08:11:18.411429 | 2016-12-21T20:50:05 | 2016-12-21T20:50:05 | 66,539,179 | 1 | 0 | null | 2016-12-21T20:50:06 | 2016-08-25T08:20:03 | Python | UTF-8 | Python | false | false | 532 | py | from pathlib import Path
from ui import RepositoryId
class RepositoryTreeObject:
''' This is a tree object (blob or tree) '''
def __init__(self, entry, prefix, repo=None):
self.entry = entry
self.prefix = prefix
self.repo = repo
def id(self):
return RepositoryId(self.entry.id)
def path(self):
return s... | [
"dron.valyaev@gmail.com"
] | dron.valyaev@gmail.com |
ae4e0612bd99cf3550d720c68f048a811ddad6a7 | e5f0dfe95d72f49ad164927420e107c70623e2a4 | /SimpleRDTProtocol/intermediate.py | 6d9453b0f4f4d4ecfc7d6ccd0b6bcc35fb4872da | [
"MIT"
] | permissive | fuchsteufelswild/MiniProjects | 7ccbee4e0243fc5b21e56c387e1780171c1db823 | 3b0a1e5018ae221525b0e1003eb13996f0f5c669 | refs/heads/master | 2020-07-16T17:21:10.318780 | 2020-02-20T08:46:45 | 2020-02-20T08:46:45 | 205,831,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | import socket
import threading
import sys
from utils import *
import time
class Intermediate:
def __init__(self, _ip, _port):
src_receive_socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # Receive messages from the source
src_receive_socket.bind((_ip, _port)) # Bind to its port, ip
... | [
"noreply@github.com"
] | noreply@github.com |
366f02f1a2816f1244629e3f11aa05c8cac98ad0 | 0d4097a56bb0c6c4a6edd51a78befcda1788cfc1 | /server/app/console/commands/__init__.py | 11754bafe9ac9005041474773373a0e8dd3dd361 | [] | no_license | euclid1990/instaface | 6d5944364e975afa8b42dd2e0a3e184a8ff7286a | 43d1be48d77f0dbbbb2c3611360244057cb90b07 | refs/heads/develop | 2022-12-11T11:37:55.391203 | 2017-11-08T09:46:46 | 2017-11-08T09:46:46 | 101,125,345 | 4 | 1 | null | 2022-12-07T23:47:00 | 2017-08-23T01:51:00 | Python | UTF-8 | Python | false | false | 80 | py | from .seed_command import SeedCommand
from .worker_command import WorkerCommand
| [
"euclid1990@gmail.com"
] | euclid1990@gmail.com |
bb007c1d256afa44a338f244e95a208c91178b9d | 60509c5e1956cb64d0220e9fc4542db7ef18bbf9 | /data_processor/migrations/0015_auto_20160808_1832.py | 2862cfc8066f418d652052fdf3ed5cc011d01fdf | [] | no_license | Nemesisesq/streamsavvy_dataprocessing | 18989378c8aa6c5a250449e74d93d64303874092 | 6c814818c0bac27c99ad4a5c8799648a5d9e637a | refs/heads/master | 2021-06-15T02:38:32.982171 | 2017-01-17T16:38:49 | 2017-01-17T16:38:49 | 61,290,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-08-08 18:32
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('data_processor'... | [
"Nem@Carls-MacBook-Pro.local"
] | Nem@Carls-MacBook-Pro.local |
4578978e5d83afaaa5cd87ea5c95ba3be3b4ac3f | 6f005f0e6c0e0e408938cfd1debf510da8d2bc5f | /Exercice_23_Suite d’entiers.py | d7c1ba0704d9f5795b49e680fe510bf0b7637bce | [] | no_license | tsdiallo/Python_Exercices-2 | 53b9bbb390c9da06419552679940bfc044ac525d | 7951d3cfedade9f77a14e7170d83ed4c14088b42 | refs/heads/main | 2023-04-11T10:31:47.407164 | 2021-04-09T22:39:59 | 2021-04-09T22:39:59 | 356,414,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | n=int(input("entrer une valeur n"))
d=10
if (n==1):
print (n, "->", d)
else:
for i in range (2,n+1):
d=(d*2)+1
print (n, "->", d)
| [
"sadzioon123@gmail.com"
] | sadzioon123@gmail.com |
8be2f70f024036be4e4f7cc27126fd302cb87bd6 | a4fd9f5d765351fb771455db18290e48affc3747 | /password_generator/migrations/0001_initial.py | 6cba7dcf9ebd26fb59d017987760ec2b182b24db | [
"MIT"
] | permissive | rwgeaston/django-password-generator | a7aa9627c721b8a0f5ba66149d681c333f79da59 | 62607905bafc111802c61223a1c3c34aa927c9fc | refs/heads/master | 2020-03-28T18:50:35.512795 | 2018-09-15T22:03:23 | 2018-09-15T22:03:23 | 148,917,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # Generated by Django 2.0.6 on 2018-09-15 15:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Word',
fields=[
... | [
"rwgeaston@gmail.com"
] | rwgeaston@gmail.com |
f73e15bf4139a0bbb0af8ffab5f9a987372e6af4 | eb08685af92e47af6f7339035b2f3e3313c2899c | /sudoku_digits.py | 5e0745c06937ca728f268a183a66f72c1e5053ed | [] | no_license | Paarth-Jain/Sudoku-Solver | da16782760ce58ace63e93b74553a3db55f22729 | 7e8c85c8dd4c664112c1aa9f63220fe74dd8afc6 | refs/heads/master | 2022-10-08T05:22:54.424814 | 2020-06-07T17:24:56 | 2020-06-07T17:24:56 | 270,220,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,803 | py | import cv2
import copy
import numpy as np
import os
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
from keras.preprocessing.image import ImageDataGenerator
from keras.utils.np_utils import to_categorical
from keras.layers import Dense
from keras.optimizers import Adam
from keras.... | [
"noreply@github.com"
] | noreply@github.com |
348755d702fc5ac9724209d342cc23c5b0fd2979 | bb97b50ebab71bd78e4c2bdcb08ee32297c36ee9 | /visa_test.py | e99f52e4999f417a4eb91266fff5296d3ff77dca | [] | no_license | tblawson/HRBC | ed0c52d15c63181a7e5950713c3ca3333020a29c | b68568e44d6d15b00423cde276cbb252dcfa8a36 | refs/heads/master | 2022-09-29T07:09:07.077268 | 2022-07-27T21:59:46 | 2022-07-27T21:59:46 | 87,987,616 | 0 | 0 | null | 2017-09-13T02:14:09 | 2017-04-11T23:14:13 | Python | UTF-8 | Python | false | false | 885 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 27 13:34:33 2015
@author: t.lawson
"""
import visa
import time
t = 0.1
RM = visa.ResourceManager()
print RM,'\n'
i = RM.open_resource('GPIB0::22::INSTR') # 'GPIB0::22::INSTR','ASRL5::INSTR'
print 'Opened session',i.session,'\n'
i.write_termination =... | [
"noreply@github.com"
] | noreply@github.com |
8b3f63549d00e8cea33abf01740c0f6a261dfde4 | 053b653acb6dae48c9fb02334388b6abd6068682 | /application.py | beb1d15284c8cb4354b5fddc47100d89cc75bd2a | [] | no_license | richardxu1983/ElectronicHealthy | 43430748c5924e98d26f92a747af9404321e423d | aff9b697c3fb60d647a87d8a53d68cfb6df9c35f | refs/heads/master | 2021-01-11T17:27:51.505888 | 2016-08-07T03:01:49 | 2016-08-07T03:01:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # coding=utf-8
import tornado.web
import os
import momoko
from url import url
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), "templates"),#设置静态页面路径
static_path=os.path.join(os.path.dirname(__file__), "statics"),#设置css,js文件路径
cookie_secret="qwsBnAr/SYude9L/uPmYEovG8H9rx07CsL+Ep1/HA... | [
"2755289083@qq.comm"
] | 2755289083@qq.comm |
e96bc15edcd18b498f1eb158cee26552db12498c | 2be17508626867749f2be47346ab3b8feca3f817 | /a5/ip2asn.py | be15d4066869eb9fe019549e8023092f5894cbab | [] | no_license | rettigs/cs311-operating-systems | 087402ba8967b98ad2314371b8cfb29057ebfab4 | 024ca4e250b6e6dbe728c5d7a880a4a56d3b7e75 | refs/heads/master | 2021-03-12T20:14:42.485511 | 2014-03-19T19:50:04 | 2014-03-19T19:50:04 | 30,707,453 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | #!/usr/bin/python
import os
import sys
import getopt
import socket
import re
def main():
# Defaults
debug = 0
ip = '127.0.0.1'
port = 54321
infile = None
outfile = sys.stdout
# Parse arguments
try:
opts, args = getopt.getopt(sys.argv[1:], "da:p:i:o:q:h")
except getopt.GetoptError... | [
"seanrettig@gmail.com"
] | seanrettig@gmail.com |
0a87c613070041cd6ca47ab39268421df5ed335a | f06680ed95c01f50f0b484ffa81a5baea022282d | /data/parse_wiki.py | 80f18cd87ef5eb7edc85c99419d97b5428901daf | [
"MIT"
] | permissive | mohit1997/DeepZip | d3980935517b311b06d39a429546de9f024a73e5 | 8c35502397a1488c89fa282ed033cc9d5fd4b4dc | refs/heads/master | 2022-03-16T02:17:55.479656 | 2022-03-04T22:09:48 | 2022-03-04T22:09:48 | 141,168,415 | 126 | 28 | null | 2019-04-23T23:42:20 | 2018-07-16T17:03:11 | Python | UTF-8 | Python | false | false | 1,190 | py | import io
import sys
import numpy as np
import json
import argparse
parser = argparse.ArgumentParser(description='Input')
parser.add_argument('-param_file', action='store', dest='param_file',
help='param file file', default='params.json')
parser.add_argument('-input', action='store', dest='input_fi... | [
"goyal.mohit999@gmail.com"
] | goyal.mohit999@gmail.com |
1d8813e9a7aad155790fff79356a8c0f084eaeaa | da970654754deef5d24842362377b57aa2cf0d94 | /lists/migrations/0006_list_owner.py | f85d5de929dfe75abffb9d444eadce3f69555143 | [] | no_license | G000D1ESS/todo-lists-django | cde261390e8588b03939fa0a79a7980b5f2cf9f8 | 85ad8372ed586f5fbcf81aba66e2c620fb2c3b37 | refs/heads/main | 2023-08-17T09:08:20.931226 | 2021-09-28T16:23:17 | 2021-09-28T16:23:17 | 387,132,542 | 1 | 0 | null | 2021-09-28T16:23:18 | 2021-07-18T08:59:25 | Python | UTF-8 | Python | false | false | 604 | py | # Generated by Django 3.2.5 on 2021-09-27 21:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('lists', '0005_alter_item... | [
"62620930+G000D1ESS@users.noreply.github.com"
] | 62620930+G000D1ESS@users.noreply.github.com |
fd3e9d3a74cc896ead349afb4520114128eef17e | fa81f1c5039da7554277a87d334cbee675e91995 | /yelp/migrations/0002_userreview.py | 7f9ee9895e7e1142e55b6537075c7be7a23e96e6 | [] | no_license | hldai/labelel | b5eaaac5cef73ccf6941ffed474e8b544c76a944 | 87c36972d1d7f4c1b146c185bcdee5207c030b8d | refs/heads/master | 2020-12-30T13:39:45.673434 | 2017-07-09T06:20:32 | 2017-07-09T06:20:32 | 91,239,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-17 08:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('yelp', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"hldai@outlook.com"
] | hldai@outlook.com |
aad18d7a236ca45e76a8a2117574bf90f6006e48 | 4cfcecba71cd9b9c292b8c9b0fefb5c6dff62abc | /test/PR_test/unit_test/op/numpyop/univariate/test_contrast.py | c66f6a65efeb3b69670c7ce687a767893cfef4c0 | [
"Apache-2.0"
] | permissive | fastestimator/fastestimator | b186be549631b05c8471515df0a2d9eb4359c8c9 | b936d9272f3901dd0f49e01dd981f889caee9c5e | refs/heads/master | 2023-09-04T10:55:14.223435 | 2023-08-24T18:50:23 | 2023-08-24T18:50:23 | 178,290,396 | 83 | 62 | Apache-2.0 | 2023-08-24T18:50:24 | 2019-03-28T22:17:44 | Jupyter Notebook | UTF-8 | Python | false | false | 2,133 | py | # Copyright 2021 The FastEstimator Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"gaurav272333@gmail.com"
] | gaurav272333@gmail.com |
bd88a28726322d9e402e7e14401d7b7c2c0e8786 | 109ac2891c5af60cc0a5c9e988048315314014b3 | /Data Structure ZJU/printN2.py | 719f3203bd1e631382a9a080b659424415e69ebe | [] | no_license | francislinking/PTA-codes | 485c6019a458fa1705dde6f84a69b33c0bd7de81 | fea40800c6813300fe56f8b14f159d971b745a6b | refs/heads/master | 2021-07-10T14:50:16.643802 | 2021-05-02T02:16:35 | 2021-05-02T02:16:35 | 244,085,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 21 18:48:24 2020
@author: Deng Jie
"""
def printN( N ):
if N == 1:
print(1)
else:
printN( N-1 )
print(N)
n = eval(input())
printN(n) | [
"francis.linking@gmail.com"
] | francis.linking@gmail.com |
d8430f1d5175fb1d55b52739f4da2c585b3874c1 | c22b5c68727ef7d351be6db6e4f68965dfd02146 | /blockchain/blockchain/multisig-core-master/multisigcore/oracle.py | f2b582189005f185cac943cb732f0d0abfcd43f5 | [
"MIT"
] | permissive | louiewuliyu/mail-by-blockchain | b3baf8a297c78aa0adcba83e5117e079047e0b6d | 5f36f1d0a73027c7db26585ec26b85c36e8f40bb | refs/heads/master | 2020-03-30T15:40:52.549313 | 2018-10-03T07:16:59 | 2018-10-03T07:16:59 | 151,374,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,972 | py | from __future__ import print_function
import uuid
from copy import deepcopy
import dateutil.tz
import dateutil.parser
import requests
from pycoin.tx import Tx
from pycoin.ecdsa import generator_secp256k1
from pycoin.serialize import stream_to_bytes
from .hierarchy import *
from pycoin.tx.script.tools import *
from pyc... | [
"lywu0420@hotmail.com"
] | lywu0420@hotmail.com |
a1980d87a7dc6fd471a8f2326f29180ca6a9e490 | d3e1632c916240838a9516da5cb80a355026063f | /tools/plot_const.py | 628312aa88b0cb2f95e083e6f9cf808239257e03 | [] | no_license | ul1234/test_tool | 384a083e1b011be2d04e552692a8ac4b1c492fc8 | 7b74f1b5719fdfb3447a0a3b1e7a34c47779abf6 | refs/heads/master | 2022-01-18T03:54:01.672681 | 2021-05-21T09:41:22 | 2021-05-21T09:41:22 | 89,684,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import os, re, sys
import numpy as np
import matplotlib.pyplot as plt
#filename = r'E:\03.Matlab\NR\data\nokia_10.txt'
#data_log_keyword = 'LOG_NR_L0_DL_SRP_PDCCH_PHASE_COMP_FFT_DATA'
def load_data_dsp_log(filename, data_log_keyword):
data_all = [];
with open(filena... | [
"unclelim@sina.com"
] | unclelim@sina.com |
0ce727248c0d7d4e73b72de01af608de4b8251c1 | c3c009b97f8d753f3e7fe333574bc7471285c8a0 | /primeNum.py | 6754d6ec240c93033fa10bafcc78449b613e52cb | [] | no_license | Vk686/BridgeLabz | 985242659f804f01927206943557906ea76c4f25 | 715d20715d05490d13e5ae9ce66976d8f201e1ca | refs/heads/master | 2022-04-26T12:15:30.434311 | 2020-04-29T07:36:29 | 2020-04-29T07:36:29 | 259,850,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def prime(num):
count = 1
for i in range(1, num):
if num % i == 0:
count += 1
if count > 2:
break
if count == 2:
return True
return False
for number in range(1001):
if prime(number):
print(number,end=" ") | [
"noreply@github.com"
] | noreply@github.com |
f5925291a960379a1367d2b5d148fb027a8b79e4 | abe19418099bad7b23dcae7737d127948833018e | /test/Tool/BaseFunctionTest.py | fd2d1405d06b232a70d538e4ebbd39545902a6e9 | [] | no_license | uans3k/BasicPractice | b2a3bbed1870a42fb271df41602389f1a548f98d | 72bf4066b489a7c0f7129f14dd8b60dec1b42f8c | refs/heads/master | 2021-07-12T06:51:57.483616 | 2020-12-09T09:22:51 | 2020-12-09T09:22:51 | 221,613,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | import core.Tool.BaseFunction as BF
import numpy as NP
def normTest():
a=NP.array([[1,2,3],[2,5,4],[5,6,7]])
aNorm=BF.normalize(a,axis=0)
print(a)
print(aNorm)
normTest() | [
"uans3k@163.com"
] | uans3k@163.com |
d410cda4cd79517ac0aa58d972ce5a7f598add65 | 03837c332af052b0b632ca16e3e2bc6687670e99 | /python/libtrain.py | 3d77c7288117e32b69454b5ed03252b405c90727 | [] | no_license | eric-tc/testCython | 312d12411a05c8c94086a8aa7ec572c9241f3614 | 00f6d6ddb44975851049f016ded124b2e7fbf1c2 | refs/heads/master | 2020-09-24T04:33:03.818629 | 2019-12-04T15:43:48 | 2019-12-04T15:43:48 | 225,663,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,192 | py | from libmodel import simple_autoPrelu
from torchvision import transforms,datasets
from torch.optim import Optimizer
import numpy as np
import torch
from pytorch_msssim import *
import os
from libcustomDataset import ImageFolderWithPaths
class CyclicLR(object):
"""
optimizer (Optimizer): Wrapped op... | [
"emanueleperini@bitbucket.org"
] | emanueleperini@bitbucket.org |
b8f3a64bbc2a8167b63c3cc6a540d10ed5ec6aca | d9ba36ecbe8f7b54809ffd5fd64784c2d02b2100 | /back-end/node_modules/argon2/build-tmp-napi-v3/config.gypi | 38d32d425ecca604273054bcf66f5d1c129e893e | [
"MIT"
] | permissive | jreddev/creativeProject | 115a550e84323dd31c518f1215094f3c00ae058e | 94e967bcc169730d56940624df836f76926bdc9d | refs/heads/main | 2023-06-01T16:40:40.289496 | 2021-06-20T19:46:30 | 2021-06-20T19:46:30 | 377,894,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,482 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": [],
"msbuild_toolset": "v142",
"msvs_windows_target_platform_version": "10.0.18362.0"
},
"variables"... | [
"jared.devenport@gmail.com"
] | jared.devenport@gmail.com |
06e1f9b50cd4203f4526aa2af52be37ed254a692 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/GnomeDesktop/RRScreen.py | 4092b6b1843f0804d1cbd81498ddbc29582ae5d0 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 19,400 | py | # encoding: utf-8
# module gi.repository.GnomeDesktop
# from /usr/lib64/girepository-1.0/GnomeDesktop-3.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attr... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
cba388edc4aa1e4cef2a00c1c477ee100903e965 | 9bf235aa5d6eef84de6fa3093d813c7eff982510 | /score_board.py | 25c39236f09bf842efe250d58fa893fd4136abf3 | [] | no_license | Styxlethes/alien_invasion | e1d2f66ab6a9a84e9bd2136af11f09ee06e62cd8 | 4e05c08dfb87b52418600b9eb0d81d48d04182ea | refs/heads/alien_invasion | 2020-03-22T07:28:45.654176 | 2018-07-06T09:14:14 | 2018-07-06T09:14:14 | 139,702,908 | 0 | 0 | null | 2018-07-05T08:33:07 | 2018-07-04T09:51:53 | Python | UTF-8 | Python | false | false | 2,915 | py | import pygame.font
from pygame.sprite import Group
from ship import Ship
class Scoreboard():
'''显示得分信息的类'''
def __init__(self, ai_settings, screen, stats):
'''初始化显示得分信息涉及的属性'''
self.screen = screen
self.screen_rect = screen.get_rect()
self.ai_settings = ai_settings
se... | [
"styxlethe@outlook.com"
] | styxlethe@outlook.com |
bc8e0220fd562d1e2e25a436a94648ec1cdc456a | 32d1177fc001b2b50cfb65268532465cea87ac85 | /olx_scraper/middlewares.py | c9ad650632599e98dfd8625907233d700863413f | [] | no_license | Wadwadw/olx_scraper | 3d64a391e5ab7849513825c51bfcec9af15952ff | 72c6bbe0c4c4e164fda19169ffc0419dac124cc2 | refs/heads/master | 2023-05-07T22:34:37.000917 | 2021-06-01T11:19:18 | 2021-06-01T11:19:18 | 372,510,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class OlxScraperSpiderMiddleware:... | [
"sumsunh777@gmail.com"
] | sumsunh777@gmail.com |
00eb3d4cabedd40827a975661786e96777cf1673 | 8963feb7f81c45de2ba56d4d6f5fdde1f41d4a33 | /im2mesh/onet_depth/config.py | 9f5a6c1a605c27dad1acfdf0749e392e4a450711 | [
"MIT"
] | permissive | AlexsaseXie/occupancy_networks | ae2fd48d67caf944f244b4baa4045496f3bc7920 | 972119ae7a7c9f782e1fc1df48a5b85b678edd31 | refs/heads/master | 2021-07-19T03:11:42.100464 | 2020-10-30T03:41:05 | 2020-10-30T03:41:05 | 225,619,537 | 3 | 2 | MIT | 2019-12-03T12:53:04 | 2019-12-03T12:53:04 | null | UTF-8 | Python | false | false | 9,150 | py | import torch
import torch.distributions as dist
from torch import nn
import os
from im2mesh.encoder import encoder_dict
from im2mesh.onet_depth import models, training, generation
from im2mesh.onet_depth.models import depth_predict_net
from im2mesh import data
from im2mesh import config
def get_depth_predictor(cfg):
... | [
"thss15_xieyw@163.com"
] | thss15_xieyw@163.com |
d26db268212730243e31afef9dac80f44edda814 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/store/views_20211010181824.py | 5404e2083299cd5fa19e695dd5bbf5bc15364268 | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from django.shortcuts import get_object_or_404, render
from store.models import Product
from cate import member
# Create your views here.
def store(request, category_slug=None):
categories = get_object_or_404(Category, slug=category_slug)
products = Product.objects.all().filter(is_available=True)
products... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
91ba21c33130d050d6e9deb747ad6b93744dad14 | b963d08cf59186a08cdc56a7a726cf5968bcc483 | /Project 1/rstr-master/rstr/rstr_base.py | 41511629283b49211fb211bc96b41bd643f4e2c0 | [] | no_license | KerolesNady/Theory-of-Computation-project | c31c2b2dec60bd61cd9d462ec3cab127c9576e74 | b33e00b02419c4bb197103af8205daf4dc8d4672 | refs/heads/main | 2023-05-31T11:08:16.826104 | 2021-06-06T17:14:29 | 2021-06-06T17:14:29 | 361,816,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,489 | py | # Copyright (c) 2011, Leapfrog Direct Response, LLC
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notice, this list o... | [
"https://github.com/KerolesNady/api.git"
] | https://github.com/KerolesNady/api.git |
5950867e2aa946a991ac254c60ee027b6ce2234b | 5623cbb459fb18fd483094524a7f7348de55cdb7 | /jenkins_helper.py | 6b599f679231eab35e88f6d4960ad933beda1d00 | [] | no_license | derHeinz/jenkinsjobfeedback | 6d35d93d578b92b709fb2330d94b1093cbb59ca8 | 026e550478c7e8829f28d9b453c63715e24001d9 | refs/heads/master | 2021-01-19T07:53:22.158970 | 2017-04-23T20:20:03 | 2017-04-23T20:20:03 | 87,585,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import jenkinsapi
from jenkinsapi.jenkins import Jenkins
import job_state
class JenkinsJobHelper():
''' This class is the accessor to jenkins. It acually uses jenkinsapi but could use the REST api directly'''
def __init__(self, url, username, password):
self.url = url
self.username = username
self.password =... | [
"heinzserfas@gmx.de"
] | heinzserfas@gmx.de |
86a41bbcb57873b5e5e9b05c4a461a74a7aabcdf | a182cc2f1512fae7639e686a0e9727eb5477a3fe | /server.py | b2bc5d12cf02180e0f22f0666666ce0b14605531 | [] | no_license | heikipikker/Covert-Channel | 271a654477c087cf5678175712b0b1b78ef0f20f | f84a8c562677c6c73dcbb841e7ea2a33ce1ac4dc | refs/heads/master | 2021-05-15T18:08:11.205914 | 2017-09-19T22:46:53 | 2017-09-19T22:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | #!/usr/bin/python
# -----------------------------------------------------------------------------
# FUNCTION: Covert Channel
#
# DATE: September 19, 2017
#
# DESIGNERS: Paul Cabanez
#
# PROGRAMMERS: Paul Cabanez
#
# NOTES: Using Scapy, sniff for packets with C flag, then extract the character
# ... | [
"noreply@github.com"
] | noreply@github.com |
48d1c4923015cdb19368e88f8c02818efe22b75b | 3a9ae24eb87d8b84ff6928320aa897dfc5d72145 | /test_social2vec_rank.py | fb146ed0b1b4cde79572dc3e95fd29e61a0424c4 | [] | no_license | shashankg7/Trust-Inference | eebd22528caf1882695eb0e8dd4b214338271290 | 43e4a5154561640eecf49e6b0290d6ac977ab5e7 | refs/heads/master | 2021-03-16T05:15:27.148772 | 2017-01-05T13:31:46 | 2017-01-05T13:31:46 | 78,115,348 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,985 | py |
import numpy as np
import sys
import pdb
from sklearn.metrics import accuracy_score
from sklearn.metrics import precision_score
from sklearn.metrics import recall_score
from sklearn.metrics import f1_score
from networkx import read_edgelist
import networkx as nx
path = ''
Wu = []
Wm1 = []
Wp1 = []
B11 = []
B21 = []
U... | [
"27392shashankgupta@gmail.com"
] | 27392shashankgupta@gmail.com |
85aeceb360ef83d314bdba8c16380f49cd51f985 | 1afa1e65ccd3a62c05f99c2ce63f65c3789532cf | /src/_gprn/tests/test_single_gp_ell.py | f1b9f042c5e78d92906259521449ed62ee492620 | [] | no_license | junbozhao/multi_res_gps | ea44c10cf041170e2dd517e189bac60c77933bc8 | 4322c1f2d28422845e6295dfee011bb002c24837 | refs/heads/master | 2022-04-11T03:31:43.961246 | 2020-01-20T09:40:32 | 2020-01-20T09:40:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,697 | py | #To run tests: python -m unittest *
import sys
sys.path.insert(0,'../../')
import unittest
from unittest.mock import MagicMock
import tensorflow as tf
import numpy as np
import math
import scipy as sp
import gprn
from gprn import sparsity
class Test(tf.test.TestCase):
#called by unittest before each test is ra... | [
"ohamelijnck@gmail.com"
] | ohamelijnck@gmail.com |
76745ecd9031d861fde3a223b7c2399fc316fbc5 | f16939eff916382abc7d28f19df0188a88d72c2c | /python/receive.py | 76a5295ce47319d75c61dbbb0d11818931b29630 | [] | no_license | thgngu/sdr | 24a83f3d8c14fb4c63ce3adcfe181b0e91c09ace | 1258095036bebd25fccf88a5adb4ceac79cc3680 | refs/heads/main | 2023-04-22T17:26:06.244617 | 2021-04-28T22:58:03 | 2021-04-28T22:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,259 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: Receive
# Generated: Wed Feb 24 22:53:34 2021
##################################################
from distutils.version import StrictVersion
if __name__ == '__main__':
import ct... | [
"matt@i7deb.localdomain"
] | matt@i7deb.localdomain |
3eaef504291e96d86e19d626ec8720b13aec4cc8 | 6f65f959af2139d12a181c538c4deca89a549b48 | /accounts/migrations/0001_initial.py | ad2d71a2baf61cc6ee58e07c3b874f36d30c2d8f | [] | no_license | rohithpala/SocializeWebApp | 545a04e42fbaf2618a3bd019192bfae737d49fcf | 7d6e55b59bca70c5ad4e2647d6ff0166b12af023 | refs/heads/main | 2023-06-11T09:45:42.271573 | 2021-07-01T07:43:02 | 2021-07-01T07:43:02 | 381,949,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | # Generated by Django 3.2.4 on 2021-06-11 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='UserAccount'... | [
"63358944+rohithpala@users.noreply.github.com"
] | 63358944+rohithpala@users.noreply.github.com |
5cb5f6b8ccf26d58cbd0363a37d076f1d55c436f | 16ac02b8f427bd622af1564f1236e4913ed63521 | /Codes/Version 1.8.6/geometry_def_DEP.py | 7c22289e317f50fec51f1ba4fa4e82052a6f6a8e | [
"MIT"
] | permissive | gharib85/Brownian-dynamics-in-a-time-varying-force-field | 20660665747310e1201e8ca7d404acc15ec7a3bd | 1dce268fcc4f27e066be0ec0b511178cbc1437c5 | refs/heads/main | 2023-08-16T03:47:51.957137 | 2021-10-23T19:09:50 | 2021-10-23T19:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,523 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat May 8 13:18:12 2021
@author: Mohammad Asif Zaman
Date: May 15, 2021
This code defines geoemtrical elements by a set of points. It also calculates the
normal vector for each surface of that geometry.
Definition parameters:
- In geo_pointsX() fu... | [
"39745895+zaman13@users.noreply.github.com"
] | 39745895+zaman13@users.noreply.github.com |
4d2f1b947c37bea509fec0603fec028f2816c5f7 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/level_head/aws_company_right_program.py | a269a3cf60adfad0ae305533decf4c19f884f035 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import srt_translate as st #must use python 3
#import os
#subdirec = 'home/ben/test'
#os.chdir(test)
# Replace the subscriptionKey string value with your valid subscription key.
subscriptionKey = 'a3487bf0249992cc26cd5aaf14d5f0b0'
# Language codes and names:
# English: en
# Greek: el
# More: http://www.emreakkas.com... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
06eb92aedb520d1abd53d84ec71c2a5db5fa3441 | 51d4d53a03ff4aa2dea4b60991389ac95b3576bf | /ddexreader/ern32/_ddexC.py | d79196b6479acd92af3babf6846231f1ddbdeec0 | [
"MIT"
] | permissive | Trax-air/ddexreader | 05fda370d4a4dd251daa19a031c6dc4dc7a42f4b | 444811b3c0a4704691e8cd27ab3d9c580f23e177 | refs/heads/master | 2023-01-05T21:40:33.901586 | 2015-09-14T14:43:57 | 2015-09-14T14:43:57 | 38,633,547 | 28 | 15 | MIT | 2022-12-26T19:44:20 | 2015-07-06T17:08:40 | Python | UTF-8 | Python | false | false | 1,359,187 | py | # ./_ddexC.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:bd3011a5b4365de65473dbafb591a813dcf669bd
# Generated 2015-07-06 15:09:50.920552 by PyXB version 1.2.4 using Python 2.7.6.final.0
# Namespace http://ddex.net/xml/20100712/ddexC [xmlns:ddexC]
from __future__ import unicode_literals
import pyxb
import pyxb.bind... | [
"flavian@trax-air.com"
] | flavian@trax-air.com |
b2e8bea287d02210c84ce9b006c288a95af8ce64 | 68f9eb0440e3387adbbc5c2c788ae606cc08ad07 | /pydownscale/config.py | acfb8054962d6f6e59a5d46117e2bae7904f5533 | [] | no_license | helianglen/pydownscale | 73e2bd7dc78fb34b9e0d8ce3e2166f0886d7a2e1 | 4f3a83cbbfe29ee5b1958da6d750ad7a6a079a41 | refs/heads/master | 2021-01-23T01:56:05.674493 | 2016-10-25T15:42:58 | 2016-10-25T15:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | #reanalysis_dir = "/gss_gpfs_scratch/vandal.t/ncep/daily/downscale-data"
reanalysis_dir = "/gss_gpfs_scratch/vandal.t/merra_2/daily_merged/"
obs_dir = "/gss_gpfs_scratch/vandal.t/cpc/regions/"
#obs_dir = "/gss_gpfs_scratch/vandal.t/gmfd/prcp/daily/0.25deg/"
gcm_dir = "/gss_gpfs_scratch/vandal.t/cmip5/historical/atm/d... | [
"tvandal20@gmail.com"
] | tvandal20@gmail.com |
e48492cf46d4d18b82782a7a592364130562e8f3 | 9cc7cf3536dea04320912037b60e4b4acd54632f | /Eshopping/asgi.py | bc58a8cfc2180c41c25fe12ea155d53eb4987133 | [] | no_license | kreeshnapathak/Eshopping | a0bd9fb34b47a8300d629ea7b5b347b9c68f293b | 45c374827e002b6b01cdd1fde91ec6219d2a7930 | refs/heads/master | 2023-07-08T08:20:40.653492 | 2021-08-04T05:17:21 | 2021-08-04T05:17:21 | 392,559,503 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for Eshopping project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"kreeshnapathak@yahoo.com"
] | kreeshnapathak@yahoo.com |
94f49f72be5a9cb1af0f0aab8b3a7450e7162cb0 | a3a170b2a93699260f8491473b926b4bbce4b3fe | /project_bedu/bin/jupyter | d8d4e88a0278fbc85b0b4e99b3900225fbc44053 | [] | no_license | erknaz/proyecto_python | 54d133267655976bbc82ccebc2d125dd9115bb28 | c8c9d2fd05dc498970d8a0e041f771be0511cbfd | refs/heads/master | 2022-10-28T07:41:42.741628 | 2019-07-18T00:30:40 | 2019-07-18T00:30:40 | 197,481,534 | 0 | 1 | null | 2022-10-07T20:55:13 | 2019-07-18T00:27:09 | Python | UTF-8 | Python | false | false | 273 | #!/home/eacosta/Escritorio/virtualEnv/django/project_bedu/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.command import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"acja.erick@gmail.com"
] | acja.erick@gmail.com | |
6f8823b538aac104cbe7fd36e0d69d19bea76e71 | 1466c55e299e2c0f0b4c04a22a5827c11e123029 | /yuntien/apps/note/urls.py | e318d85a8ac5a87452fa96b920a976d9ea697571 | [] | no_license | geyuntian/yuntien | b440a90890f689405a26fe4f786a0a69c9a30e8d | 1daa0bd38fdcb15a2dfc24e5614f9e4747305259 | refs/heads/master | 2016-08-04T10:05:50.212509 | 2013-04-13T13:57:01 | 2013-04-13T13:57:01 | 3,609,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | from django.conf.urls import *
from yuntien.apps.note.views.tool import render
from yuntien.apps.note.views.post import render_feed
def r(template):
def _r(request, context):
return render(request, template, context)
return _r
urlpatterns = patterns('yuntien.apps.note.views',
url(r'^$', 'post.list... | [
"yuntian.ge@gmail.com"
] | yuntian.ge@gmail.com |
1944001d5e5e2cfa206cc7d5f062bc0d2c2597a5 | c8e8c42d6f78fd14c595640c3eeff0c139f6219c | /手绘.py | 41fd246244792e90f3a8f841146be6806cd846cb | [] | no_license | ctrlzhou/python | 92d6079322d0b554b10fd11908b52e6155da2509 | 743d18fab0adad3419c141e0eaf4e26dfe2507bb | refs/heads/master | 2020-07-21T05:19:14.791964 | 2019-09-06T09:38:53 | 2019-09-06T09:38:53 | 206,761,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # -*- coding:utf8 -*-
from PIL import Image
import numpy as np
import os
import join
import time
def image(sta,end,depths=10):
a = np.asarray(Image.open(sta).convert('L')).astype('float')
depth = depths # 深度的取值范围(0-100),标准取10
grad = np.gradient(a) # 取图像灰度的梯度值
grad_x, grad_y = grad # 分别取横纵... | [
"noreply@github.com"
] | noreply@github.com |
721192edfb7089a6cda03f3928411899b67d71a0 | 9d5dd012d31bf585060d1d80eedaeafcdbee89c1 | /venv/bin/django-admin | fddb04d837dc5a842f7fac1ad378da8d185fcbc1 | [] | no_license | gimeneca/IS2_PROY | ad1abfa6f898968689f4b218bc4a2e6414b1f7bb | 744de325e700a3015b1de74e14c728c6a11e014f | refs/heads/master | 2021-05-21T19:03:32.169864 | 2020-04-01T03:51:53 | 2020-04-01T03:51:53 | 252,762,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | #!/Users/landa/PycharmProjects/IS2_PROY/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"gimeneca@gmail.com"
] | gimeneca@gmail.com | |
1ff640fe7e36b1fa053268a8444e4d290cd90c50 | f514f2746c69726ac38f8e8679eb2b646d11ec91 | /dota2_stats/views/matches.py | 857690b007094ca61e06f0758e261b316c1b1ecb | [] | no_license | bobbyrward/dota2_stats | 871b99ca6550496acc95ff44947a23566708861f | b3d2e7fbe4712dcb08f75e3a15b358a8388711a3 | refs/heads/master | 2021-01-19T03:23:54.158490 | 2013-02-15T22:56:08 | 2013-02-15T22:56:08 | 8,169,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from pyramid.view import view_config
from dota2_stats.models import DBSession
from dota2_stats.models import Match
from dota2_stats.models import PlayerMatch
from dota2_stats.models import Player
from dota2_stats.models import Hero
from dota2_stats.views.common import template_params
@view_config(route_name='recent_... | [
"bobbyrward@gmail.com"
] | bobbyrward@gmail.com |
4dd01610b4147862288e32fff7184a7315c42ec7 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/Products.Archetypes-1.9.11-py2.7.egg/Products/Archetypes/tests/test_utils.py | 7c7df642c1f4a38a6ef5e21daf0932724c758cb4 | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 12,246 | py | # -*- coding: utf-8 -*-
################################################################################
#
# Copyright (c) 2002-2005, Benjamin Saller <bcsaller@ideasuite.com>, and
# the respective authors. All rights reserved.
# For a list of Archetypes contributors see docs/CREDITS.txt.
#
... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
14bab698f118b522cd0978a6978aea724e04ed3f | 9816e66072c8d59984af82a080a6bded62934c61 | /utils.py | c4f9b151e7187a988d57a921c96fd8ffe15736b8 | [
"MIT"
] | permissive | shivamiitgoa/Toxic-Comment-Classification-Challenge | f0a1c1bfe9f15740708ada40d3870b389dbc3fe0 | 7e0837376e68a7beceb85fdecce0b9609a59e785 | refs/heads/master | 2021-02-27T14:51:32.478523 | 2020-03-07T11:32:40 | 2020-03-07T11:32:40 | 245,613,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | from datetime import datetime
from nltk.stem.porter import PorterStemmer
from sklearn.metrics import confusion_matrix
from sklearn.metrics import roc_auc_score
stemmer = PorterStemmer()
def commentPreprocessor(comment):
'''
Converts the string given into lowercase and removes all characters which are not al... | [
"shivam7@outlook.in"
] | shivam7@outlook.in |
403fb160036c0433e15ae4f7321d952110952034 | 9fdcaa1510225d8d140b97378cd77247b5534b4d | /api/user.py | d407c22191e60e0dde074d594a64f2f031f1c4fe | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Rudi9719/booksearch-web | 2ab465f46b0bd4c493847aa30b19e462b730f856 | c48300e04ebdf2f01a990c67d4ff63d282da8168 | refs/heads/master | 2021-03-27T13:55:38.180793 | 2016-06-05T20:29:10 | 2016-06-05T20:29:10 | 58,660,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,890 | py | #!/usr/bin/env python
import datetime
import re
import uuid
import constants
import models
from api.base import BaseApi, authorize
from api.error import Error
from frameworks.bottle import request, response
from utils import request_utils, validation_utils
class UserApi(BaseApi):
def __init__(self):
Ba... | [
"rudi@lolay.com"
] | rudi@lolay.com |
87ef5d8ed682d518f47eb6e1e03850066d251895 | ff268c31f10cbd3e1c44261ca65a45c88ed3dae5 | /Transfer Learning/Code/classify.py | 2670af12d79b9e3e4f9dd6f648aa8ad8c6399325 | [
"MIT"
] | permissive | gyani91/Machine-Learning | 6642c65359ed48b212a0f4296f5ce908ed6e95e3 | 2fabaa6386d3be24e56aaa9a19d58cd19d225198 | refs/heads/master | 2023-05-27T10:25:55.222053 | 2023-05-15T18:12:45 | 2023-05-15T18:12:45 | 114,811,646 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import tensorflow as tf
from resize import *
from convert import *
#IMAGE_PATH = "Classify/panda.jpg"
TRAINED_GRAPH = "sets_graph.pb"
LABELS = "label.txt"
FINAL_TENSOR_NAME = "final_tensor"
def classify(IMAGE_PATH):
# Convert the image to JPEG
converted_image = convert(IMAGE_PATH)
# Resize the image
... | [
"noreply@github.com"
] | noreply@github.com |
458cdbd1b58829509e0effc4788f3ab3a3f70a48 | 6cc3afff7dac3afda0bb7c7f4b69a546f15d5832 | /crawler/DaumCrawler.py | 8fb41ba7563a54b360ac65b578323e3b276bd163 | [] | no_license | jayong93/GraduationProject | 00a3048d6431bb091f57710d648534b5ca733fbc | d877b04176fc04d567a1387cee3643b69d814f50 | refs/heads/master | 2020-04-05T04:18:08.738473 | 2018-12-06T08:54:59 | 2018-12-06T08:54:59 | 156,545,596 | 0 | 0 | null | 2018-11-07T12:48:57 | 2018-11-07T12:48:57 | null | UTF-8 | Python | false | false | 9,745 | py | #!/usr/bin/python3
import os
import time
import datetime
import json
import argparse
import sys
import functools
from multiprocessing import Pool, Queue
from selenium import webdriver
from selenium.common.exceptions import TimeoutException, NoSuchElementException, StaleElementReferenceException
from selenium.webdriver.... | [
"jayong93@gmail.com"
] | jayong93@gmail.com |
74f8457d4531a04c1a90c746ed740feab0b23ffc | a177866569d63aedc9a7cb368a130ad4106a79a8 | /1_hello_world/venv/bin/easy_install-3.5 | 8d62cbd277aaab1a80738271bad3135d6001dd91 | [] | no_license | MarkZsombor/learn-python | 869f2ac09ebc9b5c6fb3588f682fe666179b2904 | 648040e398d4c5ab6bb569a515271d45ee350522 | refs/heads/master | 2020-03-16T06:04:41.556073 | 2018-05-17T19:32:03 | 2018-05-17T19:32:03 | 132,546,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | 5 | #!/home/mark/PycharmProjects/hello_world/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install-3.5'
__requires__ = 'setuptools==28.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"markszsombor@gmail.com"
] | markszsombor@gmail.com |
93f9ff7f0c20a17eac24bdb842d09cdd06d72f77 | 94bfb1346a9ce4cf6ca8bfeeb5194b7a467731a6 | /aclark/db/migrations/0031_siteconfiguration_company.py | d98d10bc777b9bace6f33643961cd5d7281078eb | [
"MIT"
] | permissive | aclark4life/aclarknet-best-pro | 4006cad37c2eec166a98a73e988b9b490a10e5cb | e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea | refs/heads/master | 2023-03-01T09:10:04.041913 | 2020-12-01T18:40:07 | 2020-12-01T18:40:07 | 140,634,961 | 0 | 0 | MIT | 2021-02-10T01:57:38 | 2018-07-11T22:49:33 | CSS | UTF-8 | Python | false | false | 598 | py | # Generated by Django 2.2.3 on 2019-07-30 18:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("db", "0030_company")]
operations = [
migrations.AddField(
model_name="siteconfiguration",
name="... | [
"aclark@aclark.net"
] | aclark@aclark.net |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.