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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f93414a8b6943067c70e69c8d7903d3a7e315a0 | 8a9ced8ebd8bc01f902d0380860200f72b0cd110 | /profiles/models.py | 26f28da68c5060f91605f90aa7656094045a8bc8 | [] | no_license | Priyanshu2019b151067/social_network_django | 14015ed50dd6388d2a22bfcf6338fb9429da7e29 | 1bc20512d2f3a6fe39d30bd84781b53c838e6a48 | refs/heads/master | 2023-06-11T18:58:55.001364 | 2021-06-23T04:45:19 | 2021-06-23T04:45:19 | 379,481,420 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | from django.db import models
from django.shortcuts import reverse
from django.template.defaultfilters import slugify
from django.contrib.auth.models import User
from .utils import get_random_code
from django.db.models import Q
# Create your models here.
class ProfilesManager(models.Manager):
def get_all_profile... | [
"priyanshuplpup@gmail.com"
] | priyanshuplpup@gmail.com |
81134a6168f4a84855cdf9a45482da4a311f7d74 | c1e7e9012ffeba35473912af3ea432da22e2e085 | /base/67_demo_AIO_Coroutine.py | 392ae9d14f0b8ee2f348413920e72e1098787bd0 | [] | no_license | skwangdl/python_demo | 24e22100b232a7531047a9c313d24aee68c702b7 | 92b0404b3783c22b6109caca18529eb4d30a9dbe | refs/heads/master | 2020-04-30T17:19:04.472884 | 2019-05-30T10:15:04 | 2019-05-30T10:15:04 | 176,975,754 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py |
# 首先调用c.send(None)启动生成器
# 然后,一旦生产了东西,通过c.send(n)切换到consumer执行
# consumer通过yield拿到消息,处理,又通过yield把结果传回
# produce拿到consumer处理的结果,继续生产下一条消息
# produce决定不生产了,通过c.close()关闭consumer,整个过程结束
def consumer():
r = ''
while True:
n = yield r
if not n:
return
print('[CONSUMER] Consuming %s... | [
"wangck4@lenovo.com"
] | wangck4@lenovo.com |
b6bd75945987e1414a96002a48821094fbf1dd28 | 9661a19548c9886beb4965f8b404fc61f0f6831e | /Tools/virtual_server_remove_cores.py | 4e9cb58e9c3f0c823cb8ea5f0573f86ab036705d | [] | no_license | dirkhpe/bv | d3ee2f43ac1cc0b14b38b40417adbd96335db818 | 7725ebc01b3b981897f018a5e81bfd8a62dea11d | refs/heads/master | 2022-01-31T00:30:46.056907 | 2019-06-05T08:30:05 | 2019-06-05T08:30:05 | 107,697,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | py | """
This script will find all virtual servers where Core is defined. The core property is removed.
For virtual servers only CPU count is listed. Core is not relevant for virtual servers.
The CPU field in MURCS for Virtual Servers is the 'Number of logical CPUs' in ESL (see ESL documentation).
A server with 4 CPU, 4 co... | [
"dirk.vermeylen@skynet.be"
] | dirk.vermeylen@skynet.be |
ba837d55e3dd6107d2a049fbd6ffd82ff426d678 | aa9c055001fc48f1e98e3e52e4d23a9dffa11572 | /NumpyCookbook/src/test/commonly_used_functions/test_fermat_factor.py | 1478cd032325f2aae3cb5204e23cf6e6116ad771 | [] | no_license | sts-sadr/NumpyCookbook | b326697393ad804a1b74c310808d68dc242f85a1 | 8ccc270a7793919e7511d09b94d2b1a0f5bad022 | refs/heads/master | 2021-01-09T17:46:16.807042 | 2014-07-18T00:01:47 | 2014-07-18T00:01:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | import unittest
import numpy
def factor(n, limit, prime_factors):
#1. Create array of trial values
a = numpy.ceil(numpy.sqrt(n))
limit = min(n, limit)
a = numpy.arange(a, a+limit)
b2 = a**2 - n
#2. Check whether b is a square
fractions = numpy.modf(numpy.sqrt(b2))[0]
#3. Find 0 fractio... | [
"wright1michael@gmail.com"
] | wright1michael@gmail.com |
67f4c5e5b9180fbdfcfe9e9ce38ea7ff37093739 | 6142a961585cc01f39ae24de8540d7f9399c2ea0 | /tutorial/quickstart/views.py | 211430b3f1d3d7a4dad560199280e399c053251f | [] | no_license | sremy/django-demo | d5954410bfb4c18c79632b06376898880ee58606 | c74f4ee0e1639e02cea0a40c28517c13f9158f85 | refs/heads/master | 2020-07-29T04:05:35.225899 | 2019-09-30T23:52:26 | 2019-09-30T23:52:26 | 209,662,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | from django.shortcuts import render
from django.contrib.auth.models import User, Group
from rest_framework import viewsets
from rest_framework.views import APIView
from rest_framework import generics
from rest_framework.response import Response
from rest_framework.request import Request
from tutorial.quickstart.seriali... | [
"seb.remy@gmail.com"
] | seb.remy@gmail.com |
70a6b84238efa4e023179a2ad24b371742532fce | fbb141c9b99c4c08ce2c0acfe13630d694d98744 | /7-stack/4.10-shu-zu-zhong-de-ni-xu-dui-lcof.py | f04c9947f38d38bf2a749719998cd041df3b5b3b | [] | no_license | huixian3/algorithm017 | 1534bc8a0364595b056e0f346cfe9fa8b8fee3bd | f43c99dc7810de863f8cd79115e272ac65ce9257 | refs/heads/master | 2023-04-02T07:10:03.670003 | 2021-04-13T14:38:36 | 2021-04-13T14:38:36 | 297,989,771 | 0 | 0 | null | 2020-09-23T14:05:41 | 2020-09-23T14:05:40 | null | UTF-8 | Python | false | false | 1,473 | py | '''
在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。
输入一个数组,求出这个数组中的逆序对的总数。
'''
# 归并排序 同 逆序对,分治
# 在megrge环节中计数即可,计数方法是,左边数据大于右边数据元素的pair数量
class Solution(object):
def reversePairs(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
self.cnt = 0
def merge(nums, start, mid... | [
"zhanhuixian@meituan.com"
] | zhanhuixian@meituan.com |
5eb8ffeec94c2991e9e2530bf7cdee6e3819a92b | ea463d9a1ff7343a553293c1402ee13151624594 | /Sprint3/qaCompiler/outputs/CompiledCode/outputs8_Code.py | d12bb015b4a06dd0ad51ea6cdc5ac73ac10a2f65 | [] | no_license | benbennza1/QACompiler | 88d09ae58b94454a9b99ec20f4fd010910ff855d | f4059a19000ddb6f9cf1b2f7276cb6da0d2bb47e | refs/heads/master | 2021-01-21T11:27:34.216347 | 2017-05-18T22:29:22 | 2017-05-18T22:29:22 | 91,740,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | from splinter import Browser
from time import sleep
SLASH = "/"
def step (browser, loop = False):
return step1(browser, loop)
def step1(browser, loop = False):
return step3(browser,loop)
if loop:
return
return step2(browser, loop)
def step2(browser, loop = False):
browser.find_by_id("Search").first.type("te... | [
"nizhangan123@hotmail.com"
] | nizhangan123@hotmail.com |
17c36a85b75b51e756e29a8ead5b24a5fa4896ea | 89e6c3548fbdd06178aae712de1ff19004bc2faa | /my_dulwich/contrib/test_swift_smoke.py | 222a609b4aa4864ef99696425775c51d3982d551 | [] | no_license | bhgv/ublog_git.hg.repo-django.python-engine | a3f3cdcbacc95ec98f022f9719d3b300dd6541d4 | 74cdae100bff5e8ab8fb9c3e8ba95623333c2d43 | refs/heads/master | 2020-03-23T01:04:07.431749 | 2018-07-25T12:59:21 | 2018-07-25T12:59:21 | 140,899,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,075 | py | # test_smoke.py -- Functional tests for the Swift backend.
# Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
#
# Author: Fabien Boucher <fabien.boucher@enovance.com>
#
# Dulwich is dual-licensed under the Apache License, Version 2.0 and the GNU
# General Public License as public by the Free Software Foundation... | [
"bhgv.empire@gmail.com"
] | bhgv.empire@gmail.com |
a48301d71e183eb42c92177fcf120ec2d8b0d9ca | 6b15bcbbc4a7537ae231d6544b6161db8c3e7165 | /venv/bin/launch_instance | 25313f89293e6214471d7894222aadaa492341ea | [] | no_license | bopopescu/pythonflask | 1a5ceb1d8e2b2aae2cfae024a61ad023e4281a6f | 59e36cfc8a3f5d3257c2ccf3f9eca4ff3c78418b | refs/heads/master | 2022-11-24T06:40:29.233836 | 2019-06-09T20:13:29 | 2019-06-09T20:13:29 | 282,545,921 | 0 | 0 | null | 2020-07-26T00:10:12 | 2020-07-26T00:10:11 | null | UTF-8 | Python | false | false | 10,649 | #!/Users/rajendrasinghrana/projectstructureflask/venv/bin/python
# Copyright (c) 2009 Chris Moyer http://coredumped.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction,... | [
"rajendrasinghrana79@gmail.com"
] | rajendrasinghrana79@gmail.com | |
887f6ea2c7e8bbca6135e136376ad8a3086747d8 | 2bd978979c0d5b301f7e677980da5f27dbeba5a7 | /catkin_ws/devel/_setup_util.py | 754f12afef2bd4a4fd682fa90597656f39850f56 | [
"BSD-3-Clause"
] | permissive | Jenny0ly/MultipleAgents | ad9c9af454683f5f8d62483a1221c192cbe17951 | 01ee412b067800c6d45367d398e74df0a5880d54 | refs/heads/master | 2021-05-16T22:34:27.491519 | 2020-05-05T05:31:51 | 2020-05-05T05:31:51 | 250,494,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,360 | py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistri... | [
"jennyoly.maya@gmail.com"
] | jennyoly.maya@gmail.com |
7f79f55e72f1534f9e0147d8e1b58a6ee6487135 | 852b0d3386dace1a50b1eead6054eb24bb4bddd2 | /src/main/python/imqueue.py | ecf444820c66b6e0f4e93faa070c453e608dc743 | [
"MIT"
] | permissive | duskvirkus/crop-tool | 2271f95f323a83d6dfdba343bee3fdbcd2aab295 | 89ca43f99ed82ce3106ec0915040185ff3af6448 | refs/heads/main | 2023-08-29T01:49:13.505492 | 2021-10-27T10:09:25 | 2021-10-27T10:09:25 | 417,399,725 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,840 | py | from typing import Any
from enum import Enum
import abc
from argparse import ArgumentParser
import os
import threading
import time
import cv2
import numpy as np
from rect_data import RectData
class ImageLoaderThread(threading.Thread):
def __init__(self, thread_id, name, queue):
threading.Thread.__init__... | [
"duskvirkus@protonmail.com"
] | duskvirkus@protonmail.com |
155abf1cb8c24811bbe7251caef3d6eb6e1d3629 | 617ff229b63165368e32a303488b29c738a5378a | /src/bad smell/plot_smell_fft.py | c75518ce5eedbec995ac26155c38b340be32e0b4 | [] | no_license | dimpisingh/e-dom | a1ae76229a31c0a5dcc725a80e7a741be660a0da | a820874545e97ec10580db6dd11e35c7eec65abc | refs/heads/master | 2022-05-13T07:27:31.180506 | 2019-04-10T13:53:26 | 2019-04-10T13:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | import os
import plotly
# plotly.tools.set_credentials_file(username='dichen001', api_key='czrCH0mQHmX5HLXSHBqS')
plotly.tools.set_credentials_file(username='amritbhanu', api_key='cuaXxPfbSxptk2irXf7P')
import plotly.plotly as py
import plotly.graph_objs as go
import cPickle
import pickle
cwd = os.getcwd()
data_path =... | [
"amritbhanu@gmail.com"
] | amritbhanu@gmail.com |
d90f4c250ad6540185c4685ac49cf4e5df824ab7 | b4f661f1153637d9cfec18e4cf56b64582c31385 | /src/Python/304.二维区域和检索-矩阵不可变.py | fd58f373a91c848ff44f0bd8495b1cc29de69c8a | [] | no_license | Icedomain/LeetCode | 12dd24bbe2d7aba1f6ebe61bffe4c5e6284fbd06 | 4bc8e41499b9c884d64b5a44fe783fdb7030676e | refs/heads/master | 2021-02-15T15:12:15.009790 | 2020-09-22T11:37:59 | 2020-09-22T11:37:59 | 244,909,740 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | #
# @lc app=leetcode.cn id=304 lang=python3
#
# [304] 二维区域和检索 - 矩阵不可变
#
class NumMatrix:
def __init__(self, matrix: List[List[int]]):
if not matrix:
return
n, m = len(matrix), len(matrix[0])
self.sums = [ [0 for j in range(m+1)] for i in range(n+1) ]
for i in range(1, n+1... | [
"1271029566@qq.com"
] | 1271029566@qq.com |
5637b3ee60d7b7414a6682e471e056af11a9ca98 | 21d7e0a30b75601956c1a3a7da85b8ce97f52d81 | /app.py | 38793a3888d200e6f3a4ce2b830fad53c949bde0 | [
"MIT"
] | permissive | ginrou/handwritten_classifier | 9d700898dbbd57397cb272dd6d19bb7b78b762ed | a06a8bfe0264c864caca815acc4ebda172271f2e | refs/heads/master | 2018-12-28T00:24:32.285858 | 2014-12-01T12:51:32 | 2014-12-01T12:51:32 | 27,335,942 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #!/usr/bin/env python
from flask import Flask, render_template, request, jsonify
from NeuralNetwork import *
import numpy
import pprint
pp = pprint.PrettyPrinter(indent=4)
app = Flask(__name__)
nn = NeuralNetwork(in_size = 784, hidden_size = 300, out_size = 10)
nn.load("mat.npz");
@app.route("/")
def index():
r... | [
"ginrou799@gmail.com"
] | ginrou799@gmail.com |
b04f5902369c128c688593ca330bb43b55ffa29c | a8ed252f3b76a8d134f026ccf0204c5e5e918edb | /apps/common/views.py | 5651d62f133a31899ed83656bb5d35032146918d | [
"MIT"
] | permissive | F483/bitcoin-bounties.com | a8c84bfe61df25bae93f1bfd3c055754414cbe27 | 64a4a973fa38a4fb54178d855c1b82ec18799628 | refs/heads/master | 2020-04-25T23:19:32.859170 | 2014-11-22T15:40:48 | 2014-11-22T15:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2014 Fabian Barkhau <fabian.barkhau@gmail.com>
# License: MIT (see LICENSE.TXT file)
from django.http import HttpResponseRedirect
from django.views.decorators.http import require_http_methods
from apps.common.utils.templates import render_response
@require_http_methods(['GET'])... | [
"fabian.barkhau@gmail.com"
] | fabian.barkhau@gmail.com |
a2b9401e365f59e25fda4d940259a3dc95ee6a8e | 3359b7dd5fd3d33b749545129a994e4328df8b9b | /temperature-regex.py | 6ed771e2edb05d80100cf730cb6ff4dec5581e3d | [] | no_license | Sway007/regex-python-test | dddfaa0e08d72d80d4c3e17943c3d246533045d5 | 34280d3946adb1b0685fc0735655e883f2d71012 | refs/heads/master | 2021-01-24T07:57:21.574814 | 2018-02-26T14:02:17 | 2018-02-26T14:02:17 | 122,966,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import re
pattern = '^([-+]?\d+(?:\.\d*)?)\s*([CF])?$'
match = '0'
match = input('try to validate a temperature:\n')
while match is not '#':
m = re.match(pattern, match, flags=re.IGNORECASE)
if m:
print('pass, and class is {}'.format(m.group(2)))
else:
print('invalid')
match = input(... | [
"yansw007@gmail.com"
] | yansw007@gmail.com |
724ace94a1e0870eab100583a8d238c8ae4de8ab | 47a60670de631b53a5299960a56f49c69440f243 | /SentimentAnalysis.py | 9ce675ca812ddc9d52567c408c36b964435aba79 | [] | no_license | findingnino/SentimentAnalyzer | 2f72764220f4da93a596232f0b73066038f8809a | 1680fb0bb14b492a9409a11ba22b7bf95f19d014 | refs/heads/master | 2020-12-30T09:37:57.659112 | 2015-07-18T17:03:59 | 2015-07-18T17:03:59 | 39,018,681 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from textblob import TextBlob
from textblob.classifiers import NaiveBayesClassifier
from os import listdir
import time, winsound
def dir_list(dir):
'''Returns the list of all files in self.directory'''
try:
return listdir(dir)
except WindowsError as winErr:
print("Directory error: " + str((... | [
"ngancitano@gmail.com"
] | ngancitano@gmail.com |
75b0742f4d4d9ac93c8bda2c913177cade4c76c6 | e4217e4ab2f6ef04f7f0e7c95caa5d5c0f750742 | /Cap2/Ejercicios/Ej04.py | 5339273cebee823c00e3c79776f69600e065f8d5 | [] | no_license | ShannonNCM/Sistemas-Dinamicos | 0cc8b88b2c702134c4b10aa977927a504b099187 | 1aea45b0a5657c33d3ecae0a35492f64d60fd55e | refs/heads/master | 2022-12-29T21:16:27.298901 | 2020-10-21T01:22:07 | 2020-10-21T01:22:07 | 281,296,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | '''un circuito en serie capacitor-resitor esta dado por: RdQ/dt + Q/C = E donde Q es la
carga del capacitor. R=1/(5+t) y capacitancia C=0.5, E=100. Hallar carga del capactiro
en Q(0)=0'''
#importando las librerias
from sympy import *
from sympy.abc import t
#resolviendo la ecuacion diferencia
Q=Function('Q')
eqd1=(1/... | [
"noreply@github.com"
] | ShannonNCM.noreply@github.com |
e66adf2a6d1f32f1467ae3ff1e1bdc2c509baa2b | 33fa46042e7decb01008b73202e5d24ce6bad03a | /config/settings/test.py | ece2ef2fbcdf6949a10c811059a6d1e4cacc7b42 | [
"MIT"
] | permissive | rlaneyjr/project_pawz | 2d2ef8ef8a801e788c139a35bf82d72aafac8f69 | 27f316ef35968ed1319ec0585a050ebed795763a | refs/heads/master | 2022-12-05T11:39:04.384922 | 2019-05-28T22:24:24 | 2019-05-28T22:24:24 | 185,061,794 | 0 | 0 | MIT | 2022-12-03T08:21:14 | 2019-05-05T17:28:47 | JavaScript | UTF-8 | Python | false | false | 2,024 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#se... | [
"rlaneyjr@gmail.com"
] | rlaneyjr@gmail.com |
6c8b767bfd8451494c732f1f3a4f097e759995a8 | 314719658bf9c6a393bf73e2caa846b682648d7f | /no-save.py | 1c8afd01c10cfbaa1e1c250395656b58bb8d03ec | [] | no_license | vilajp/irenic | f07714b14856d707fd5dca8cefbae1ab20e4b08d | 054c548bde33bfbb9649de91bff1d8e73812a611 | refs/heads/master | 2023-02-22T05:58:24.997871 | 2021-01-26T16:11:18 | 2021-01-26T16:11:18 | 288,257,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | import os
os.environ['KIVY_GL_BACKEND'] = 'angle_sdl2'
import webbrowser
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
from kivy.uix.label import Label
class MyTextInput(TextInput)... | [
"vilajp@gmail.com"
] | vilajp@gmail.com |
8a0079dd597dba447df0d9aed6437df677f2accb | 710026f64d3a23913ae71d2300147b371f5cb75b | /gammapy/data/tests/test_all.py | 138034335de153523316b69996357d13979c5972 | [] | no_license | Cadair/gammapy | 557c01e33d93fe6cc2daaac35b53590d33e31fbc | 19f4fdd299b8c3495c732fc412f5d18cb9df3590 | refs/heads/master | 2020-12-13T21:52:37.790005 | 2014-02-20T15:15:10 | 2014-02-20T15:15:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function, division
from numpy.testing import assert_allclose
from astropy.utils.data import get_pkg_data_filename
from astropy.io import fits
from .. import poisson_stats_image
def test_poisson_stats_image():
"""Get the d... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
e17ec42260d63dbec8d4f3a7362681eb8117e543 | 7e5a63cc13397cb31ea8d4f22320d05eb6d65d98 | /Python/django/dcourses/dcourses/wsgi.py | f2a120b5da59cd8a1dc970b197a936a7e48bcebf | [] | no_license | loyti/GitHubRepoAssingment | a9e876cf63cccf4f617bdcba374010237a1902f0 | ee9ee4478fc4d89635cb245d324848587f8cd129 | refs/heads/master | 2023-01-22T11:48:44.131695 | 2019-01-14T21:07:05 | 2019-01-14T21:07:05 | 94,840,928 | 0 | 2 | null | 2023-01-12T09:46:12 | 2017-06-20T02:25:47 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for dcourses project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"brice@loyti.com"
] | brice@loyti.com |
6c6d5f913ad89423170d7e4e728f2d9b67184ad4 | 5bb8b4c7faeebd16da16ecbcd4a98aabaf688e8f | /data_tools/walker/src-cikm/build_graph2/citations.py | 2438338b186b181a26af7fd8e16ccbc3d15dfd74 | [] | no_license | xiaoqinzhe/vrdetection | 014fc2b61c9b30dd2699fdba41089b18b7f060be | 604a812a21a98d72ba8e23a716eb72153bdaa7c4 | refs/heads/master | 2023-07-04T07:44:12.141404 | 2021-08-01T06:21:17 | 2021-08-01T06:21:17 | 150,063,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #coding:utf-8
import json
file_path = '/mnt/hdd2/dblp/dblp_ref.json'
citation_file_path = '/mnt/hdd2/cikm/citation.txt'
with open(file_path) as ifile, open(citation_file_path, 'w') as ofile:
for line in ifile:
paper = json.loads(line)
if 'references' not in paper:
continue
outpu... | [
"xiaoqinzhe@qq.com"
] | xiaoqinzhe@qq.com |
91ffcd83defc9e9403a8e76012c3754f335db4fa | 8661aca3cd633d3f50cfd19d4d5e2c864ca5e71c | /Ex009.py | fa77ecda8d0ce94d40879d21b8736c706e3499a1 | [] | no_license | hianp/Exercicios_Curso_em_video_Py | 043cfba7e7fb558a6f4d972acd5367c9f15718e2 | 51a3e71504bb8db6debd0fa7992b929d712f4b2f | refs/heads/main | 2023-03-21T14:20:43.509963 | 2021-03-10T23:47:01 | 2021-03-10T23:47:01 | 335,655,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | n = int(input('Digite um número: '))
print('A tabuada do número {} é:'.format(n))
print('{} x 1 = {}'.format(n, n*1))
print('{} x 2 = {}'.format(n, n*2))
print('{} x 3 = {}'.format(n, n*3))
print('{} x 4 = {}'.format(n, n*4))
print('{} x 5 = {}'.format(n, n*5))
print('{} x 6 = {}'.format(n, n*6))
print('{} x 7 ... | [
"noreply@github.com"
] | hianp.noreply@github.com |
b1ab45a954411d59a7b80dd55ea11ce04a3a0914 | 745492fbba92ce62fb19daf2b94ede4db76d3efa | /Day 44/38. Count and say.py | 712306e774a026bec47eee1de332527a9dbc5bb3 | [] | no_license | MantieReid/100-days-of-code-round-2 | 8d0256cff32c0e332811a179638ea8d1af272a85 | dd07b4de3d62f2e986626981a9ea6511b8f8b167 | refs/heads/master | 2020-12-03T01:21:47.524895 | 2020-04-20T01:47:24 | 2020-04-20T01:47:24 | 231,173,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | class Solution:
def countAndSay(self, n: int) -> str:
s = '1'
for _ in range(n - 1):
s = ''.join(str(len(group)) + digit
for group, digit in re.findall(r'((.)\2*)', s))
return s
| [
"mantiereid2@gmail.com"
] | mantiereid2@gmail.com |
9611fd8e79e725c836099ca0e2b297efab9883de | 2847f70cb61e57c036ebf3853f85b82350d39241 | /site_settings/models.py | 03da250c68902c7996bbe00f436698cfeac7a65c | [] | no_license | SDupZ/sdup.nz | 6f020c3f074062edf6df734ee75996a50459df42 | a84c8bcbc14e3a086c263c38630555764e0acb71 | refs/heads/master | 2021-01-20T05:13:12.960616 | 2017-06-12T10:28:22 | 2017-06-12T10:28:22 | 89,761,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from datetime import datetime
from django.db import models
from filer.fields.image import FilerImageField
class HomepageSettings(models.Model):
created = models.DateTimeField(db_index=True, auto_now_add=True)
modified = models.DateTimeField(db_index=True, auto_now=True)
jumbotron_image = FilerImageField(b... | [
"smdupnz@yahoo.co.nz"
] | smdupnz@yahoo.co.nz |
c4149668fc54104349962cc2f172eb9e34b861d5 | 2b45da1be780556426e707da7fa73756cea02ba5 | /main_app/migrations/0002_auto_20210203_0736.py | bf9af9023dd9521919d04226bd38535e1daeda50 | [] | no_license | abonilla1/offThePace | 7e350efc22ad5ba1531bb8c7085d1f08bb9a6e8d | d3debd4ef6703919b7cddfd5e102d9b3decac413 | refs/heads/main | 2023-03-10T21:41:34.665850 | 2021-02-10T11:31:02 | 2021-02-10T11:31:02 | 335,526,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | # Generated by Django 3.1.6 on 2021-02-03 07:36
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main_app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Race',
f... | [
"amariabrown015@gmail.com"
] | amariabrown015@gmail.com |
66cc1a4ea3850ef7dfca7e84bf4c5b041a488acf | 87752d226647cf42e925c0264a2355d8ea513be2 | /gen_tests.py | 14e6091043381f999fff252fb0743c163f9143ce | [] | no_license | AlbertoEAF/BSS | 401d7d5af12d004c0ec6fcc11807e1ec95f97a49 | a683c01acb83a94268380fa6d11a035953ab26b8 | refs/heads/master | 2021-03-27T20:46:14.280319 | 2014-10-02T03:24:33 | 2014-10-02T03:24:33 | 23,039,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | #! /usr/bin/python3
from os import listdir
from os.path import isfile, join
import os
import subprocess as sub
import re
from ConfigParser import *
from color_codes import *
from parse_run import *
def raw_string(s):
if isinstance(s, str):
s = s.encode('string-escape')
elif isinstance(s, unicode)... | [
"albertoeafworks@gmail.com"
] | albertoeafworks@gmail.com |
2a8fdd258e6761431797bfe4ce7c1e78c398dc5a | cb6d7c967c0f5068e5a2add3723b612839ba07b0 | /user/views.py | 81db221b1bb82cc957687f083bcf73fcac9c225d | [] | no_license | ChanoPark/sj_chat_backend | 97eb7580767ce00cb85ba703c827a57315888e9e | 7165c942b8b1e37281dcc8b76382275caf6b36d1 | refs/heads/main | 2023-02-26T19:22:20.524187 | 2021-02-03T05:35:58 | 2021-02-03T05:35:58 | 332,686,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,899 | py | from django.contrib.auth.models import User #기본유저모델
from django.forms.models import model_to_dict #모델을 딕셔너리형태로 반환
from rest_framework import status
from rest_framework.response import Response # json형태로 반환하기 위함
from rest_framework.decorators import api_view, permission_classes, authentication_classes
#api_view: 어떤 메소드... | [
"koc081900@korea.ac.kr"
] | koc081900@korea.ac.kr |
849d980540c6fa535a1182553e06d3b90c074b5a | 711c11d0111a40055ba110e7089a231c2ba42b8e | /toontown/toon/DistributedToonUD.py | b4b001783dd576ab652bc7227ed27b1ab9f1b375 | [
"Apache-2.0"
] | permissive | DeadMemez/ProjectAltis-OldAcornAcres | 03c8dc912ecccae8456d89790f6b332547b75cc3 | e8e0087389933795973e566782affcaec65a2980 | refs/heads/master | 2021-01-19T13:59:07.234192 | 2017-08-20T14:41:45 | 2017-08-20T14:41:45 | 100,869,782 | 0 | 2 | null | 2017-08-20T15:14:35 | 2017-08-20T15:14:35 | null | UTF-8 | Python | false | false | 10,675 | py | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectUD import DistributedObjectUD
from otp.avatar import DistributedAvatarUD
class DistributedToonUD(DistributedAvatarUD.DistributedAvatarUD):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedToonUD")
d... | [
"tewtow5@gmail.com"
] | tewtow5@gmail.com |
7d51d7a2ed6f5210cb3d90865585ac7981656575 | 5950c456b9b347d67c8f9bdbbc99060d4a3bc6d4 | /152.Maximum Product Subarray.py | 23d3e4c7ff1bc1a4a41b9d8506da482772ff4210 | [] | no_license | redrumshinning/Leetcode | c24541eab864281ff07315ca81c5cccb9da559e0 | 5ded4c79f567639042bcf6eb71ece910f54a5af9 | refs/heads/master | 2020-03-26T13:05:10.825896 | 2019-07-31T09:34:41 | 2019-07-31T09:34:41 | 144,922,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | class Solution(object):
def maxProduct(self, nums):
"""
动态规划
nums会有负数,所以在保存最大值时如果遇到负数不做保存的话,后面如果有
另一个负数,最大值就不对了,所以同时保存最大值和最小值
:type nums: List[int]
:rtype: int
"""
maxvalue = minvalue = nums[0]
globalmax = nums[0]
for i in range(1,len(n... | [
"1184761736@qq.com"
] | 1184761736@qq.com |
08c9f961074cb25d9eab1cf25d4fdfef08792002 | 70f66599f8e4f3294a14f317af20d54c8fde440c | /beyondhealthhack/beyondhealthhack/wsgi.py | ef92a34382d0d77f5851333b0a69d1da7eed97d1 | [] | no_license | Jh123x/Beyond-health-hack-2021 | b91bad078e83028adc0459c7e13434fb7ae75ec4 | c8208bb4989cce8ada9766b7de0b719f536f9d96 | refs/heads/main | 2023-06-22T11:53:11.390969 | 2021-07-14T14:55:18 | 2021-07-14T14:55:18 | 382,859,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for beyondhealthhack project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJA... | [
"wenjh1998@gmail.com"
] | wenjh1998@gmail.com |
b44921c2444b6b4af3d4aedf5fafaa97c2468da0 | 0666f52326b56aadf6c3e63bcd7e5c5adf8f4cd2 | /cs106a-hw1-karel2/server.py | 13915f312d905d407646730238cab1bf74b99bbc | [] | no_license | aashidham/benuku_code_sample | 19b62aaf181801a30bf7fad6c8da8158bb1702f7 | ec84ceddade22ee9c72d7896a9b909e531a1ea40 | refs/heads/master | 2020-07-04T11:56:17.271419 | 2016-08-17T21:38:30 | 2016-08-17T21:38:30 | 65,943,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | from werkzeug.wrappers import Response, Request
from werkzeug.serving import run_simple
import eventlet, socketio
import posixpath, urllib, os, mimetypes, json, sqlite3, signal, subprocess
from operator import attrgetter
import time, subprocess
proc = None
sio = socketio.Server()
@sio.on('connect')
def connect(sid, ... | [
"aashidham@gmail.com"
] | aashidham@gmail.com |
ab203dead3895fbe4a0ffe442a2e8d8ab56f1073 | 65ca2789de0a95a7371454a22d8f76256669eafc | /loss.py | aed0aa0f430b6db6a86e037c11639a873cf6f4f4 | [] | no_license | yyy11178/CRSSC | 0f5c1c7414068b40d301f1c60db5844788bc5643 | 97c2f217f3cf5b1af1e20e807c6bc6ee50342a88 | refs/heads/master | 2022-03-03T23:16:20.264106 | 2019-11-15T06:01:04 | 2019-11-15T06:01:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,852 | py | # -*- coding: utf-8 -*-
import torch
import torch.nn.functional as F
from utils.utils import print_to_logfile
torch.manual_seed(0)
torch.cuda.manual_seed(0)
torch.cuda.manual_seed_all(0)
def std_loss(logits, labels, indices, T_k, epoch, memory_pool, eps=0.1):
ce_losses = label_smoothing_cross_entropy(logits, l... | [
"fg_nust_3@163.com"
] | fg_nust_3@163.com |
fb3c8d03e35d9a16bcaa330a45d50fdb01bb1c19 | f500caaa13d7471956c04b153ea6cfc841623af6 | /homeassist/util/cache.py | 4526fa71a6e674eae6e118b5abbc3ec34a2e3e1b | [] | no_license | little-young/home-assist | 66ce97f3b573af8ac6d648a096842dc6f19d7ec5 | ab8f703b75c30e7f9bb8b70ffb1a81c7589019c5 | refs/heads/master | 2022-11-25T17:17:58.749991 | 2020-07-30T15:42:03 | 2020-07-30T15:42:03 | 278,770,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | from time import time
from homeassist.util.error import Error
CACHE_MEM_DICT = {}
CACHE_TIME_DICT = {}
def check_db(db):
if db not in CACHE_MEM_DICT:
CACHE_MEM_DICT[db] = {}
CACHE_TIME_DICT[db] = {}
def delete(key, db=0):
"""删除键为key的条目"""
check_db(db)
if key in CACHE_MEM_DICT[db]:
... | [
"xiaoyang.wang@luckincoffee.com"
] | xiaoyang.wang@luckincoffee.com |
76773f8a01b7a8807b6f82164ffad3f9efad41d6 | 6dd08121190d58eb9c934c6f631768fa1b56f7b2 | /assignment2/cs231n/optim.py | dae457a240b33995d83e7e227d66443cfd9287ba | [] | no_license | naineshhulke/CS231n-2019-Assignments | 414460d509d67af2b17cdb83fbb2413a8d187142 | 1f0c0120c87bdf0439c50249bcc4de3c01aba4a9 | refs/heads/master | 2022-12-11T11:10:54.769042 | 2019-10-22T11:18:35 | 2019-10-22T11:18:35 | 185,601,578 | 0 | 1 | null | 2022-12-08T05:17:51 | 2019-05-08T12:27:38 | Jupyter Notebook | UTF-8 | Python | false | false | 6,649 | py | import numpy as np
"""
This file implements various first-order update rules that are commonly used
for training neural networks. Each update rule accepts current weights and the
gradient of the loss with respect to those weights and produces the next set of
weights. Each update rule has the same interface:
def updat... | [
"thenainesh@gmail.com"
] | thenainesh@gmail.com |
c4765a14009d0d9a9af8c24c57ca868d88a1d5ba | 479898d0162fd9b00a43dfcc5f3a9db899ea8c09 | /bin/threatcrowd.py | 14e652b6f324cb66df2a5e5bf6b8839aa9dfa65c | [
"MIT"
] | permissive | Tmvrdummy11/osweep | bf09bc1b4960856d477a7f0c093e7c4194650a68 | 1d987ef95854df637d7222932f88331365c0e71c | refs/heads/master | 2020-04-12T13:01:58.349172 | 2018-12-19T23:45:54 | 2018-12-19T23:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,288 | py | #!/opt/splunk/bin/python
"""
Description: Use ThreatCrowd to quickly identify related infrastructure and
malware. The script accepts a list of strings (domains, IPs, or email addresses):
| threatcrowd <IOCs>
or input from the pipeline (any field where the value is a domain, IP, and/or
email address). The first a... | [
"theemailaddressishare@gmail.com"
] | theemailaddressishare@gmail.com |
53bd21551303a9812df6895c3a5bcf7d5342dedb | d772869033c47a666622e9ee518bb306db5451a5 | /unified/modules/main/categories/crm/entities/deal.py | 0bcaee514289e3195334ae924481bbb68f1f6ee0 | [] | no_license | funny2code/unified_api | 920f1e19b2304e331b019f8a531d412b8759e725 | ffa28ba0e5c0bd8ad7dd44a468e3d1e777bba725 | refs/heads/main | 2023-08-31T16:00:17.074427 | 2021-10-04T04:09:45 | 2021-10-04T04:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | from dataclasses import dataclass
@dataclass
class Deal:
deal_id: str = None
account_id: str = None
name: str = None
close_date: str = None
description: str = None
stage_id: str = None
value: str = None
probability: str = None
owner_id : str = None
contact_id: str = None
c... | [
"baidawardipendar@gmail.com"
] | baidawardipendar@gmail.com |
4d271fa9f696c201b66ded9d03285d14b12361db | 178a2253f431bc580b4d913ce25e229e1d4570f3 | /users/forms.py | 59a158eeedc57db18e58e66f02d82b64e376266f | [] | no_license | 2501070055/jinciAPP | 39340dd761f2af6330eecb3ceb289b0cb8c1774f | 24eacd74f803e8769fbaeffe97a5950b4dc093b1 | refs/heads/main | 2023-07-16T01:12:16.385701 | 2021-08-31T02:28:26 | 2021-08-31T02:28:26 | 401,547,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,575 | py | import datetime
import logging
import random
import re
from django import forms
from django.contrib.auth import login, authenticate
from django.core.cache import cache
from django.db import transaction
from django.utils.timezone import now
from users.choices import SexChoices
from users.models import User... | [
"noreply@github.com"
] | 2501070055.noreply@github.com |
643abe60ca6014563cdd023652e73a2d29a6797e | cc22c017e3b7a127218755f7183c377235eb76dd | /persona.py | 6844c9aa40e6c868a6d8ba7b0a6efdc7332d0d23 | [] | no_license | iandrade90/python-crud-pool-conn | 17efb74115e77cbb9211211fd0895dd2a5b6d9d6 | 139f40b51c2d159823ca4be9e4fcc619b275fe32 | refs/heads/main | 2023-04-15T12:47:33.718000 | 2021-04-27T01:49:54 | 2021-04-27T01:49:54 | 361,946,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | class Persona():
def __init__(self, id_persona=None, nombre=None, apellido=None, email=None):
self.__id_persona = id_persona
self.__nombre = nombre
self.__apellido = apellido
self.__email = email
def __str__(self):
return (
f'ID persona: {self.__id_person... | [
"ivandandrade90@gmail.com"
] | ivandandrade90@gmail.com |
5514cf98695a998af222480eea475c9dc957363c | abf2ee47a829fdb6557edc1a7a13bc5a0d204485 | /crowd_counting/crowdcounting/application/picture_lib.py | f9fb68523866aec464c3cf675c1bd51692e1bb52 | [
"MIT"
] | permissive | buyeah1109/Crowdedness-Detector-with-3D-Visualization | 5a208699a32255de599ecca6541b78788b73d97b | 8aa2db813ee4abff58d06fc2cfee3a3a5f34558b | refs/heads/main | 2023-02-24T21:12:45.173928 | 2021-01-31T06:13:14 | 2021-01-31T06:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | import numpy as np
from PIL import Image
import os
rootdir = os.path.join('./data/npy')
def fetch(loc, floor, section):
for (dirpath,dirnames,filenames) in os.walk(rootdir):
for filename in filenames:
if os.path.splitext(filename)[1] == '.npy':
name = os.path.splitext(file... | [
"z1054276327@gmail.com"
] | z1054276327@gmail.com |
20c4b3f39164a03f9e109ad879f4ffeb710248ed | c8103407fde3e0462ef77441f8421303ce79ebf3 | /backend/tips/__init__.py | a562431ec09ae4540dab5d178a0736c190f76175 | [
"MIT"
] | permissive | snvfyy/satia | d4f5cb991c85cbe880ec7d8872bc21eb8cb4ed76 | 5142046345b99d595aa49d3bbf79f1619abf5591 | refs/heads/master | 2022-05-02T03:51:32.234579 | 2018-10-24T17:55:21 | 2018-10-24T17:55:21 | 153,897,419 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | def load_fire_tips():
fire_tips = []
with open("./tips/fire_tips", "r") as f:
for line in f.readlines():
fire_tips.append(line)
return fire_tips
| [
"vlad.sabi18@gmail.com"
] | vlad.sabi18@gmail.com |
832cce96b7f9dfa6dbddcb796fe9a8b2301cf122 | 2065098a18b5ecc3e08b6f1634a59c54b2a6dcd6 | /item/migrations/0011_item_tag.py | f83793352c43d578b67bea0a8429f66853a9c5bb | [] | no_license | JongtaeKim93/point_mall | 03a83b0f913b3db56fa9048b0a3b7ed3085830b5 | abd0862297a6ed946913f0441f0fac6c41f23567 | refs/heads/master | 2022-12-23T17:54:36.722102 | 2019-08-29T08:01:48 | 2019-08-29T08:01:48 | 198,540,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # Generated by Django 2.2.3 on 2019-08-20 02:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('item', '0010_tag'),
]
operations = [
migrations.AddField(
model_name='item',
name='tag',
field=models.Ma... | [
"minahn93@gmail.com"
] | minahn93@gmail.com |
abd3bcdbedfbf53aa74ec49c4c5efae200ede1c3 | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /tools/perf/core/results_processor/command_line_unittest.py | 5dd1f9abc72545c59b4f8dfebf02d90dec2e566e | [
"Zlib",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"MIT",
"APSL-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | Python | false | false | 7,545 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unit tests for results_processor.
These tests mostly test that argument parsing and processing work as expected.
They mock out accesses to the operating ... | [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
8d3e9d28c7d3cbb3972f10322e33431fd9210f4f | 982cee5d250b972e2a8c2aaa9ad9648661435119 | /src/my_session.py | 535077020f45a49b4bc9fa9e1db4b777ac29f0f3 | [] | no_license | yewberry/mycollector | ac9d6f0663a11d0d1223845805732fce731351dc | 6bd7585bff6541753f6c8b90b9f24c15709a2b41 | refs/heads/master | 2021-01-20T02:37:29.674866 | 2017-09-01T10:05:51 | 2017-09-01T10:05:51 | 89,429,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
import os
import cPickle
from my_glob import LOG
from my_glob import Singleton
class MySession(object):
__metaclass__ = Singleton
def __init__(self, file_path=""):
LOG.info(u"session path:{}".format(file_path))
self.file_path = file_path
self.session = {}
... | [
"yewberry@163.com"
] | yewberry@163.com |
9b2b62d6c9e2308e570b19de28085ae1f34c35a9 | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/api/resources/subscription.py | 62e5a4c74c86c9613ca6bd0c1ba0aeca5007fa3d | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 455 | py | from apps.base.models import FactServicesStorefrontSubscription
from tastypie.resources import ModelResource
class SubscriptionResource(ModelResource):
class Meta:
queryset = FactServicesStorefrontSubscription.objects.all()
list_allowed_methods = ['get']
detail_allowed_methods = ['get']
... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
1c460f138444384b52eda73ccc1a7db8da23d76b | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3999/codes/1635_2442.py | 7d4cb10f6eb2bb08c1ebeeb9ad94276bb7866760 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | # Teste seu código aos poucos.
# Não teste tudo no final, pois fica mais difícil de identificar erros.
# Use as mensagens de erro para corrigir seu código.
num=int(input("Digite um numero: "))
if (num%2==0):
mensagem="par"
else:
mensagem="impar"
print(mensagem) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
cdf3d09aaf600bff0fb8404dcd1901d6d23bd172 | c6b3abd156c09326c3a6e5da9e420eed6a5ffd8e | /Test/parameter_text.py | a4b8ac7fb51c882f8ec266a775559df5b60f0bb8 | [] | no_license | andoniVT/ESA_Final | 4c36230fd3b5e1232869ce366cb0fc15c68ed7ec | 065669df965589d00f84c2be873ada935bb0e3a9 | refs/heads/master | 2021-01-10T13:46:30.146613 | 2015-10-29T18:54:10 | 2015-10-29T18:54:10 | 43,454,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,397 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Created on 15/11/2014
@author: andoni
'''
import re
import Test.settings as settings
import Test.corpus as corpus
from Test.term import Term
from Test.manager_rule import Manager , Pattern
import Test.commentPreprocessor as CP
class ParameterText(object):
def ... | [
"andoni.valverde@ucsp.edu.pe"
] | andoni.valverde@ucsp.edu.pe |
5b443bc248f4ba4e33ec6a112ee23731ed68ef18 | c0eaa927a308c95f66c3d3be881d69f21eca024c | /Main/urls.py | b6ded82991322f4145371ee802796e85ae80d996 | [] | no_license | gitRobV/Main | 45d96de24e6a55cefe1fdf676bcce9a4cd9a490b | d75ec66176f0eeb5717be4d3ead723434a2971d0 | refs/heads/master | 2020-12-03T09:16:27.405098 | 2017-06-28T01:28:27 | 2017-06-28T01:28:27 | 95,613,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | """Main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"robertv1979@gmail.com"
] | robertv1979@gmail.com |
34b224ca169154804d42c83f0596df550b7665ef | 96e9da624caaa4d93fe6c8807bf8876c9e38729b | /agents/utils/parsing.py | 76018c275957536f0fca77ffae100dd39c40ee9e | [] | no_license | APodolskiy/TextWorld_Challenge | 89c3da5b8601795ec3c733c1dcc4bdc9c1c9f6ba | 74a6de102edb697304b5f5ecb47115d187171c10 | refs/heads/master | 2020-04-22T23:27:34.622316 | 2019-07-11T07:36:30 | 2019-07-11T07:36:30 | 170,742,519 | 1 | 0 | null | 2019-07-11T07:36:31 | 2019-02-14T18:59:54 | Python | UTF-8 | Python | false | false | 1,949 | py | from pathlib import Path
from pprint import pprint
from random import shuffle
from typing import List
import gym
import textworld.gym
def parse_recipe(recipe: str):
dir_pos = recipe.find("Directions:")
ing_pos = recipe.find("Ingredients:")
description = [s.strip() for s in recipe[dir_pos:].split("\n")[1:... | [
"dimich3d@ya.ru"
] | dimich3d@ya.ru |
105f39188ea14f446671389556da928dc7a2a49f | d5fb21eec872bde734b967f31ae822a22316ce8b | /samplesite/bboard/migrations/0001_initial.py | 314b155cf0ee449eb546856667590acfcab560d0 | [] | no_license | isys35/lessons_django3_dronov | 27cea948ce0d4af1ff8fa3a2ba09b1f4b6b6e04c | c14f68854968b36bae3584172b9479f44c519306 | refs/heads/master | 2023-06-11T03:17:30.877993 | 2021-07-02T11:45:10 | 2021-07-02T11:45:10 | 317,238,079 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # Generated by Django 3.1.3 on 2020-11-30 13:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bb',
fields=[
('id', models.AutoField(auto_... | [
"isys35@mail.ru"
] | isys35@mail.ru |
611e284cb8350ee5e0530de97ff2121e728b6f84 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/279/66340/submittedfiles/testes.py | 7ccd166e96f0a4767cbe69f6d5511f7efefae093 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
print("andre bezerra de barrros ")
print("24")
print(11+1037)
print((9*35+160)/5)
print(3.14159*(10/2)*(10/2)*30)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
08e5f8478bb5c283fa2e2c074c5942fd8ce543c0 | 35d094f33d0c2f840298b6a38113701f7c22e92a | /load/bin/record-index-quotes.py | c7a4073f454d0e05df2c0a984620dd2ddb0f32ec | [] | no_license | sqt-aliu/etl | e40e0879f820d5523b408c9aed4ff2b1944cfe3e | 63e0c5dda81e1a849b10c724661c8cfa6b7f832f | refs/heads/master | 2020-04-05T13:39:42.120815 | 2017-11-07T01:59:22 | 2017-11-07T01:59:22 | 94,945,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,144 | py | #!/opt/anaconda3/bin/python -u
import getopt
import os
import pandas as pd
import sys
from sqlalchemy import create_engine, exc
from datetime import datetime, date, timedelta
from dateutil.relativedelta import relativedelta
from urllib.parse import urlencode
from urllib.request import urlopen
from urllib.error import ... | [
"allenliu@htsc.com"
] | allenliu@htsc.com |
b42508610856a9da00e6b77138872e63aab1b223 | 50f04c633f36e9d64c40c4f1b434ed0c24e447c7 | /argparse-examples/positionalarg.py | 047332844d22ec1332227b4bb8bc6c545fec0f22 | [] | no_license | sarahchou/python-practice | 883ba7dedd60b2cc18d5d73ef7d3cbb74f09dede | 2a3d10144b74460d8ec513e3c7d49bdb48107596 | refs/heads/master | 2022-11-11T10:06:12.944579 | 2018-06-11T22:14:06 | 2018-06-11T22:14:06 | 136,985,077 | 0 | 1 | null | 2022-10-20T08:48:36 | 2018-06-11T21:54:46 | Python | UTF-8 | Python | false | false | 305 | py | #Introduction to positional arguments
import argparse
parser = argparse.ArgumentParser()
# parser.add_argument("echo", help="echo the string you use here")
parser.add_argument("square", help="display a square of a given number", type=int)
args = parser.parse_args()
# print args.echo
print args.square**2
| [
"chou.s@husky.neu.edu"
] | chou.s@husky.neu.edu |
142149509d7a5bb8e78ae7e37ec76a01b767a1bf | bfb1ebb52db5018f328e4b33003073d547b777d0 | /sql_queries.py | 347cd9e0aa01f2f81321b9bc2fb323d0ecc42817 | [] | no_license | mrpythonita/Data-Modelling-with-Postgres | 96ab888bfdca8a0879187d01bf8145993ccef117 | e4c562fd7239141a01aeefdd1eed9792efc58c74 | refs/heads/main | 2023-02-23T11:51:11.128289 | 2021-01-26T21:01:25 | 2021-01-26T21:01:25 | 333,214,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays"
user_table_drop = "DROP TABLE IF EXISTS users"
song_table_drop = "DROP TABLE IF EXISTS songs"
artist_table_drop = "DROP TABLE IF EXISTS artists"
time_table_drop = "DROP TABLE IF EXISTS time"
# CREATE TABLES
songplay_table_create = ("""
CREATE TABLE... | [
"noreply@github.com"
] | mrpythonita.noreply@github.com |
ca8c94fb16c3dcc6a3fee1dfea471e6a033318b8 | 46ee99adf99352b7879c5b2bdbb669f33549cc7c | /runner.py | 7d450ece39fe91252134ce0ec89ba0e639b08c1b | [] | no_license | webclinic017/TBDStructure | d85a01ec04a95a85bb82f2571b5fec898246d9f4 | 9b9b02088c7dcc5786f985dd17292e184b5ce6c2 | refs/heads/main | 2023-03-21T01:21:29.665270 | 2021-02-06T01:28:36 | 2021-02-06T01:28:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,199 | py | import sys
import traceback
from PyQt5.QtWidgets import QApplication
from multiprocessing import Queue, Process
from roboticks.data import DataHandler
from roboticks.portfolio import Portfolio
from roboticks.execution import ExecutionHandler
from db import UserDB, PriceDB
from strategies import STRATEGY
try:
fro... | [
"ppark9553@gmail.com"
] | ppark9553@gmail.com |
fffb6afe04ae24bc0ad2edd767d297c6d60f611e | f56de46df70081cc7f7479b5c9177cba88725c24 | /stage8_state.py | 667a78babed37880e9d5b71ff05db620a4443e2d | [] | no_license | DongGyu96/2DGP | 7418397da1166f1f4ecc05a56737e6d152e30fd2 | 7f3d0384381fcc6ad8df621538e972b5bd55d8b9 | refs/heads/master | 2021-01-24T08:15:54.878516 | 2016-12-22T13:02:14 | 2016-12-22T13:02:14 | 68,904,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,354 | py | import game_framework
import main_state
import math
import stage7_state
from pico2d import *
from Ball_Object import Ball
from Block_Object import Block
from BGM_Object import BGM
name = "Stage8_State"
image = None
text_image = None
circle = None
blueball = None
redball = None
blueball_effect = None
redball_effect = N... | [
"crow4079@naver.com"
] | crow4079@naver.com |
ae09bb1661be801f7980a94afbbefdc6ad13a5f0 | 995377be6b76ba82972a8d6a06723ff534a11704 | /mysite/urls.py | fba60b92ee343dae4317be3d364e35117125c3e2 | [
"MIT"
] | permissive | ChechonsOrganization/mysite-django3byexample | 8a5bdd0e31625bc2aee167901f1f5e10453c9894 | f8c0a341df30599c35d52e5205242b0e5906150c | refs/heads/master | 2023-03-21T15:27:32.042118 | 2021-03-10T13:35:45 | 2021-03-10T13:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"sergio.04.ramirez@gmail.com"
] | sergio.04.ramirez@gmail.com |
78cd02f35eb33e0dca1c10049960dc96d060c161 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006597.py | f32e3be699fb19351abe7424a78bedb56216f820 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
50231bfaaa346862a809d5b0b867c22d6adfb0e0 | 450525bb5cb613c3b1b331ad6a48259c53d93f4b | /array/flip.py | 0b17f47423cc6a8132ac8d7be6da579c952eef69 | [] | no_license | peterdjlee/ds_algorithms | 61dcf4e3af2db8332841462f901cab9a6df4d0cb | 87827ad4c51c3ddf5822877a2f4803f99db5d0cc | refs/heads/master | 2020-05-25T16:52:17.685132 | 2019-11-10T05:04:20 | 2019-11-10T05:04:20 | 187,895,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | # "Flipping an Image" from Leetcode
# Given a binary matrix A, we want to flip the image horizontally,
# then invert it, and return the resulting image.
# To flip an image horizontally means that each row of the image is reversed.
# For example, flipping [1, 1, 0] horizontally results in [0, 1, 1].
# To invert an... | [
"peterdjlee@gmail.com"
] | peterdjlee@gmail.com |
bebb7bc514d382106d8ed6f452d956b5a09201d4 | 72e68181ea99ed967a565975ae5d9119e486ea91 | /employee.py | 111655c82ee5cee19bea3686a0564e166337bc39 | [] | no_license | lmac02/HW4-ill | 71fcc48d7e1352a0a3d375c6eb90aaf4a858eba0 | 61983eb5985dd8aeab51fb903dbe749247e8e190 | refs/heads/master | 2020-04-11T01:13:44.921464 | 2018-03-12T22:12:32 | 2018-03-12T22:12:32 | 124,317,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from person import person
from person import make_routingNumber
from person import make_ssn
import random as r
from datetime import datetime as dt
class employee(person):
def __init__(self):
person.__init__(self)
self.employee_permissions = True
def ShowCustomerInfo(self, other):
print( 'Custome... | [
"noreply@github.com"
] | lmac02.noreply@github.com |
7cad58a9f69a867abfe4d091be275e040d48a0d4 | d44c05216e554e0d0b279fd6d7e6bcfe4755c399 | /pieces/bing.py | f1f67c4eae56d7f2a037325cfcff38965780b8e7 | [
"MIT"
] | permissive | east-before-dawn/Check-Chess-Cheer | bef5c53dc0e5b88c96c5fcfde9fba55cfef773fd | 6c7562d1358bf12946693221b5414d9fbb676841 | refs/heads/main | 2023-06-09T17:10:02.293679 | 2021-06-15T11:08:47 | 2021-06-15T11:08:47 | 401,147,724 | 1 | 1 | MIT | 2021-08-29T21:41:08 | 2021-08-29T21:41:08 | null | UTF-8 | Python | false | false | 1,446 | py | from NormalPiece import NormalPiece
class Bing(NormalPiece):
def __init__(self, x, y, color):
NormalPiece.__init__(self, x, y, color)
"""
找该棋子的图片路径
"""
def get_image_path(self):
if self.selected == True:
if self.color == 'red':
return "images/R... | [
"389041637@qq.com"
] | 389041637@qq.com |
75bbbe754d344cb243580cb495baebe07914d27a | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_9/alhada001/question1.py | a7d1ab9e4c2362dd2297a16531f5457babdf6f3d | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | #Adam Alhadeff
import math
file = input("Enter the marks filename:\n")
f = open(file, "r")
length = len(open(file).readlines())
names = []
marks = []
line = f.readline()
count = 0
for i in range(length):
split = line.split(",")
names.append(split[0])
marks.append(split[1])
count += 1
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
48cf3ed92a3e10d96e85fb1b15ba0340b11f90da | 9dba8607dce414f9905700d7a4ac44668de5e1f1 | /puente_quintanavides/combinaciones/def_hip_elscp_resumidas_xci.py | da24fbbb055eb1ffb3374131c83a39767b1d825f | [] | no_license | anaiortega/XCmodels | c0463ffe38531578aee281456e88528882255cd7 | e9b8c2f996a21b8aa3314242f3cc12b0e391b5df | refs/heads/master | 2023-08-16T22:44:01.168775 | 2023-08-14T18:15:10 | 2023-08-14T18:15:10 | 141,140,177 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | \combinacion["ELSCP001"]{ descomp("1.00*G1 + 0.70*TC1V1")}
\combinacion["ELSCP002"]{ descomp("1.00*G1 + 0.70*TC1V1 + 0.20*NV")}
\combinacion["ELSCP009"]{ descomp("1.00*G1 + 0.70*TC1V1 + 0.70*TC3V2")}
\combinacion["ELSCP010"]{ descomp("1.00*G1 + 0.70*TC1V1 + 0.70*TC3V2 + 0.20*NV")}
\combinacion["ELSCP021"]{ descomp("1.0... | [
"l.pereztato@gmail.com"
] | l.pereztato@gmail.com |
3cfe9f806a69dac658f48ef9028306aaaa9e5724 | 67954b4bfce1395d571bf4f298f71f04167156c1 | /manoeuvre/test.py | b13e08e0e60992264b88f9768c38a900d28ede85 | [] | no_license | seym45/erc2018 | 90cf4257a541c701940f9985f3fd1e2df326b988 | 0ab9cc3132597d626c2cea999ca65e19510c054e | refs/heads/master | 2020-03-26T22:06:55.342243 | 2018-09-08T19:17:53 | 2018-09-08T19:17:53 | 145,432,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,524 | py | a = 'imei:864893030415379,tracker,180819162419,,F,102419.00,A,2348.89374,N,09024.74758,E,,,,0,0,0.00%,,;imei:864893030415379,tracker,180819162429,,F,102429.00,A,2348.89374,N,09024.74758,E,,,,0,0,0.00%,,;imei:864893030415379,tracker,180819162439,,F,102439.00,A,2348.89374,N,09024.74758,E,,,,0,0,0.00%,,;imei:8648930304153... | [
"seym45@gmail.com"
] | seym45@gmail.com |
11814138337f2db2d0f27136c20633ef680bac49 | 07d1e4d5f55e00bae1376d6adf56070b8458aa52 | /src/debug.py | 2c69a113197ac8050dd0b220d9cebc258b0069cd | [
"MIT",
"BSD-3-Clause"
] | permissive | GRobled0/CenterNet | 0bc85ee7ad11f69eb9477ce0fec11397c3f333a1 | 740ecf06a96897b3545249bbb239264394283565 | refs/heads/master | 2023-02-11T15:02:10.692191 | 2021-01-05T20:16:22 | 2021-01-05T20:16:22 | 294,961,676 | 0 | 0 | MIT | 2020-09-12T14:38:15 | 2020-09-12T14:38:14 | null | UTF-8 | Python | false | false | 5,979 | py | import _init_paths
import os
import cv2
import csv
import pandas as pd
import numpy as np
import kalman
from opts import opts
from detectors.detector_factory import detector_factory
import datasetmaker as dm
from camera_params import cal_params as params_1
from camera_params_realsense import cal_params as params_2
... | [
"grobled0@hotmail.com"
] | grobled0@hotmail.com |
ee135d519ec0726e6868d0dedee7b7549765574d | 95e475d1d8141c0ed59225d9dbb08f066e018545 | /OpenCV/DrawingShapes.py | 488edecafaec533fe61892f7bd1be144815ee0ea | [] | no_license | kk13332488/Deep-Learning | 296a81888a17e6b7ffe96d72e965a04d17c70967 | c72d6453483dba0bdd591a499e6009dcd3f81139 | refs/heads/main | 2023-05-31T10:48:08.663865 | 2021-07-02T05:17:33 | 2021-07-02T05:17:33 | 362,121,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import numpy as np
import cv2
def drawing():
img = np.zeros((512,512,3), np.uint8) #Generating Space
cv2.line(img, (0,0), (511,511), (255, 0, 0), 4) #img, pt1, pt2, color, thickness
cv2.rectangle(img, (384, 0), (510, 128), (0, 255, 0), 3)#img, vertex1, vertex2, color, thickness
cv2.circle(img, (447, 6... | [
"kk13332488@gmail.com"
] | kk13332488@gmail.com |
afe6fbf10498b11d0c161994d33a51a850a6036e | 1fa3016c1b67178910b477fd5885cc0fff17e923 | /Learning Python/2D Array.py | 000cb06dc25ee81a85c884fc6a4a04e61e55c5d2 | [] | no_license | Charnub/python-code | 9f1c952075ed725b8561a2115acb30872ba0b797 | 3e35510756e8635e26fc3b71396a0c8856385b69 | refs/heads/master | 2021-04-15T09:26:34.691921 | 2018-03-22T18:09:51 | 2018-03-22T18:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import random
aScores = [["Jane", 0], ["Bob", 10], ["Ben", 14]]
for i in range (0,1):
for j in range (0,2):
print(aScores[i][j])
| [
"noreply@github.com"
] | Charnub.noreply@github.com |
fe75ca185adaf37639a4e3782095a41d9b93f1ab | f5eba932cba302389943cc1beed77352ce484b73 | /isolate_by_range/isolate_atoms_by_z_range_atom_numbers.py | c9e30d883f995fbdd0cf3738b5637c056cf575db | [] | no_license | mikexstudios/wagcode | 06c74332e8cad42e6b04bac121fd86f7d75a9e2d | 3e925052f17a9c9cf256d3e1ab985265d39e13ff | refs/heads/master | 2020-12-24T15:41:07.849300 | 2009-07-22T10:24:23 | 2009-07-22T10:24:23 | 246,507 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | #!/usr/bin/env python
'''
isolate_atoms_by_z_range_atom_numbers.py
------------------------
Given an XYZ file and a z range, isolates those atoms.
This version adds the output of atom numbers. Used these numbers
to get charges from fort.56 file.
'''
__author__ = 'Michael Huynh (mikeh@caltech.edu)'
__website__ = 'http:... | [
"mike.huynh@gmail.com"
] | mike.huynh@gmail.com |
5783ce1e2789f35719b925425e95f886b574fd59 | 76d8f9d741d4e0bbd15a2c29fa77d041c01ea9bf | /exercise/keras/trafficsign.py | a422aaf4c134f2d7e34383236a64a9a9fb67fcf1 | [] | no_license | LevinJ/Behavioural-Cloning-P3 | d92bf3500797019a3fcf038a5c0e817f445e7a39 | fff8993ba2671c9664ab65899db952e2f5de37da | refs/heads/master | 2020-06-22T03:16:27.869561 | 2016-12-19T00:19:06 | 2016-12-19T00:19:06 | 74,758,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,848 | py | from utility.dumpload import DumpLoad
import numpy as np
from sklearn.preprocessing import scale
import pandas as pd
import os
from sklearn.preprocessing import MinMaxScaler
from keras.models import Sequential
from keras.layers import Dense, Activation
from sklearn.preprocessing import OneHotEncoder
from keras.optimize... | [
"jianzhirong@gmail.com"
] | jianzhirong@gmail.com |
ca2a6787fbbbc2183e4852f837cd9b38f57a2152 | ca1182f1b43126bc55736725ae9219f30aec6d84 | /venv/bin/pip3.6 | 7b2bdc1104d2f79da1bb4837699daf22ae6ec0ad | [] | no_license | jesusCDev/Instagram-Bot-With-Selenium | c1501865d9b4563cde39beeffd0bbac2727fe46b | b19ad8f276b74f38b0fa51dc771385dd56e80f10 | refs/heads/master | 2022-04-08T15:36:09.917401 | 2020-01-03T01:35:35 | 2020-01-03T01:35:35 | 104,346,246 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 433 | 6 | #!/home/jesuscdev/Programming/Pycharm/InstagramBot-With-Selenium/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"jesuscdev@gmail.com"
] | jesuscdev@gmail.com |
b19a3f67cbb8d044b2a5ea9cd8fbb25fe0f96ee7 | 1ec3811f4cafe29f9165f78d059a192ec05a03e1 | /app/main/controller/user_controller.py | 848bc1d4bda58756eba8ea81b7656adda60a7b39 | [] | no_license | IcySkype/FlaskRestPlus | 87f964fecc428ace90b99b471e9608f24ac5fd46 | 2db2faf68d6b9c71907bf2b5cbcbbe932f4331ac | refs/heads/master | 2020-04-28T10:12:47.540299 | 2019-03-13T03:11:52 | 2019-03-13T03:11:52 | 175,193,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | from flask import request
from flask_restplus import Resource
from ..util.dto import UserDto
from ..service.user_service import save_new_user, get_all_users, get_a_user
api = UserDto.api
_user = UserDto.user
@api.route('/')
class UserList(Resource):
@api.doc('list_of_registered_users')
@api.marshal_list_with(_use... | [
"skytrizero@gmail.com"
] | skytrizero@gmail.com |
b246bc922d4bf8d4371629aadf578c161d4a5220 | b5a214062f140389527479802d98d414d8e41dc6 | /bindings/python/tests/cindex/test_comment.py | d8f3129ac51e7f5643327d177424ac5d821fbf7c | [
"NCSA"
] | permissive | Codeon-GmbH/mulle-clang | f050d6d8fb64689a1e4b039c4a6513823de9b430 | 2f6104867287dececb46e8d93dd9246aad47c282 | refs/heads/master | 2021-07-18T07:45:29.083064 | 2016-11-01T13:16:44 | 2016-11-01T13:16:44 | 72,544,381 | 29 | 5 | Apache-2.0 | 2020-04-30T11:36:08 | 2016-11-01T14:32:02 | C++ | UTF-8 | Python | false | false | 957 | py | from clang.cindex import TranslationUnit
from tests.cindex.util import get_cursor
def test_comment():
files = [('fake.c', """
/// Aaa.
int test1;
/// Bbb.
/// x
void test2(void);
void f() {
}
""")]
# make a comment-aware TU
tu = TranslationUnit.from_source('fake.c', ['-std=c99'], unsaved_files=files,
... | [
"akyrtzi@gmail.com"
] | akyrtzi@gmail.com |
f13a77c853df1627ee0607c358aa576706d35efe | 1760630328334270695d88596332d6b7be25def9 | /solutions/005_smallest_multiple/smallest_multiple.py | 03233411c9b01b846833f4359232ca520ca2869a | [] | no_license | ZekeMiller/euler-solutions | 1320aea8ebcde9f9ca0b971086820f8b4591f6bc | 472e9609cea9b87642ca90bf58dcd1361ddfd736 | refs/heads/master | 2021-06-02T20:45:15.248518 | 2019-11-12T20:49:28 | 2019-11-12T20:49:28 | 131,333,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | from functools import reduce
from operator import mul
def genPrimes( max ):
primes = [2]
for i in range( 3, max, 2 ):
if 0 not in [ i % k for k in primes ]:
primes += [ i ]
# for k in primes:
# if i % k == 0:
# print( i, k )
# break
... | [
"zfm6866@rit.edu"
] | zfm6866@rit.edu |
08af56622c50f5c76d675410fd3e23b7fb5c8bca | b401baaea0bd296a4ee7aa7acb6d054ea5bc93cc | /babyjesus/babyjesus/wsgi.py | ee247676f00f013423c8aa79f1f91e75bf762561 | [] | no_license | Adamhunter108/aliases | 4ff6f060c3b4020d1097ec3f8e854e3e6ce29925 | abaca4e87a163d8a68989b2d767042d3da0fdc7d | refs/heads/main | 2023-08-27T02:22:34.146353 | 2021-10-11T21:21:20 | 2021-10-11T21:21:20 | 367,797,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for babyjesus project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"61752774+Adamhunter108@users.noreply.github.com"
] | 61752774+Adamhunter108@users.noreply.github.com |
992f7cf55c4bffc77e2110b339c9a3d091ef44f9 | d726a06a4fe344de854312cc2ae93558adefd206 | /pynet/datasets/primede.py | c26d45a1beb3a35e83cd5fbd315ba72c66df1ad0 | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | CorentinAmbroise/pynet | 6f52f296b4ab5c651c341715786cb131391eabf1 | c353e5f80e75f785a460422ab7b39fa8f776991a | refs/heads/master | 2023-03-29T13:10:10.391193 | 2021-02-10T17:39:14 | 2021-02-10T17:39:14 | 278,072,885 | 0 | 0 | NOASSERTION | 2020-07-08T11:37:51 | 2020-07-08T11:37:51 | null | UTF-8 | Python | false | false | 14,409 | py | # -*- coding: utf-8 -*-
##########################################################################
# NSAp - Copyright (C) CEA, 2020
# Distributed under the terms of the CeCILL-B license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
#... | [
"antoine.grigis@cea.fr"
] | antoine.grigis@cea.fr |
a291c9eac13c4ace0db60d7b2a34622f71668b2c | ad7c11f673c290eeb2fa8e3a97c06878553d0035 | /plotterWsvgPreview.py | 24fd751e6305cd868e80d9a820c4f0f09f4b227f | [] | no_license | jefftrevino/sol118 | c05a1cc26facfa31cb0fc19de8de26bbc1a11464 | 82c0e463e74d4aca3edcce8d9e3dd4c38141d051 | refs/heads/master | 2021-01-12T06:21:21.485247 | 2017-01-10T01:10:24 | 2017-01-10T01:10:24 | 77,346,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | import svgwrite
from matplotlib import pyplot
from shapely.geometry import Polygon, LineString
from shapely.affinity import scale, rotate
from chiplotle import (
hpgl,
instantiate_plotters
)
class Drawing:
def __init__(self, geoms=None):
self.geoms = geoms or []
self.scale_ratio = 1
... | [
"jeffrey.trevino@gmail.com"
] | jeffrey.trevino@gmail.com |
0c6f4a15555b5ae5f9e16ca3aed6a1cfae5f982f | 4513fae798d527f55501f42b856c3412766062a9 | /products/migrations/0001_initial.py | 54683f5691c93f6953b3730aff1863d5f81ec3fc | [] | no_license | bearadamsj/dj1 | c4ac78c74e68cd4051116ea630a23cde8800394b | 2bc55b9449c7cd64d65a1a7f785933fe9b612903 | refs/heads/master | 2023-03-28T14:17:10.795041 | 2021-04-01T00:51:13 | 2021-04-01T00:51:13 | 353,528,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # Generated by Django 3.1.7 on 2021-03-19 05:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"zhu11&dmin@bitzer.cn"
] | zhu11&dmin@bitzer.cn |
21b67cd73c3425afe749638e23831431e4628084 | 0f07107b016d2aee64788966b9f0d322ac46b998 | /moya/docgen/theme.py | 39c3d707e1310f7b2799f5a59c83826bd99563b2 | [
"MIT"
] | permissive | fkztw/moya | 35f48cdc5d5723b04c671947099b0b1af1c7cc7a | 78b91d87b4519f91dfdd2b40dab44e72f201a843 | refs/heads/master | 2023-08-09T09:20:21.968908 | 2019-02-03T18:18:54 | 2019-02-03T18:18:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,610 | py | from .. import iniparse
from fs.path import dirname, pathjoin
class Page(object):
def __init__(self, doc_class, settings):
self.doc_class = doc_class
self.settings = settings
def __repr__(self):
return "Page(%r, %r)" % (self.doc_class, self.settings)
def get(self, context, settin... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
6da97c918d990c76993a7fb6019a95481f022014 | cf0943d5560b32afe03c551aeb4d71ba7b4fd563 | /catstuff/plugins/musicbrainz/main.py | e006f96e924a21f81943132ad2cc8bb9f1d813c1 | [
"MIT"
] | permissive | modora/catstuff | 96d87a1922d99398ad4dbb7c656ecf90e2e3bf3c | 7a4ea67e26774e42e90d0c71a4b2c299fe506d73 | refs/heads/master | 2021-09-01T09:02:32.896399 | 2017-12-26T05:07:19 | 2017-12-26T05:07:19 | 114,436,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,368 | py | raise NotImplementedError("BROKEN")
import catstuff.core.manager
import os
import musicbrainzngs
default_version = '0.1'
__dir__ = os.path.dirname(os.path.realpath(__file__))
__plugin_file__ = os.path.join(__dir__, "musicbrainz.plugin")
__mod__, __build__, _ = catstuff.core.plugins.import_core(__plugin_file__)
__ver... | [
"swubro@gmail.com"
] | swubro@gmail.com |
9458f3ce00791ddc49646c8c8aa298f325f5846a | 11f7fa68ea8d18ae6ef35e739f092630a3755f60 | /python/list/invetList.py | 05423038078ad59c1ec1a8ba6229fcb243bdd719 | [] | no_license | Edgar3g/date_struct | d064c2d47dc81359d0365d4b3ff12fbcfaa93ead | 00705a1846e21d6ede06ae2fbebdc34d11716f46 | refs/heads/master | 2023-04-25T04:06:58.193313 | 2021-05-06T13:47:30 | 2021-05-06T13:47:30 | 337,095,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | def inverter_lista(lista):
tamanho = len(lista)
limite = tamanho // 2
for i in range(limite):
aux = lista[i]
lista[i] = lista[n - i]
liata[tamanho] = aux
def inverter_lista2(lista):
nova_lista = []
tamanho = len(lista)
for i in range(tamanho):
nova_lista.append(l... | [
"dikengeofficial@gmail.com"
] | dikengeofficial@gmail.com |
70e757c0fdeae8986311446c704fac3633df52cf | a9fc0a578d6cbc3104a7a08f0f009e5a37c42f74 | /src/bag3_testbenches/measurement/pnoise/base.py | 2409b0c936c02c056038f5107408efacf0067e8f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | zhaokai-l/bag3_testbenches | f832e3336a2ffe486f118d16822d8297e47f61dd | 334f0f0ab4eae2931c3ede5471b152329840bf86 | refs/heads/master | 2023-06-27T11:41:20.749692 | 2021-07-25T23:48:48 | 2021-07-25T23:48:48 | 297,793,219 | 1 | 0 | null | 2020-09-22T23:04:12 | 2020-09-22T23:04:11 | null | UTF-8 | Python | false | false | 2,913 | py | from typing import Any, Union, Sequence, Tuple, Optional, Mapping, Iterable, List, Set, Dict, Type
import abc
import numpy as np
from bag.simulation.data import SimData, AnalysisType
from bag.design.module import Module
from bag.simulation.core import TestbenchManager
from bag.simulation.data import SimNetlistInfo, n... | [
"zhaokai_liu@berkeley.edu"
] | zhaokai_liu@berkeley.edu |
4693d1d06b71c1fb2a188430faad444dcb9116db | 2f6f7c056df8ed13273866cc4ed5bcc0e49c4d93 | /catch_all/catch_rsvp | 248edc70e7d6f21a36287d148c164e0c2bd13c1f | [] | no_license | ssem/honeypots | 8e5eccc614536d05d977a2b5fa93839f06f5cec7 | 7f137f69e88f671d69f3de91b30e160b7ebb0419 | refs/heads/master | 2021-01-18T21:34:03.110770 | 2016-04-18T20:25:02 | 2016-04-18T20:25:02 | 31,721,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | #!/usr/bin/env python
import os
import sys
import struct
import socket
import select
import argparse
class Catch_All:
def __init__(self):
self.socket = socket.socket(socket.AF_INET,
socket.SOCK_RAW,
socket.IPPROTO_RSVP)
def __del_... | [
"ssem@tacnetsol.com"
] | ssem@tacnetsol.com | |
b960c2fd6d1c30aa4ebce4aebd86b7586a91c0b3 | 03d733b0c6ed233ecfd47d984acce8b779bf345b | /Exercícios/Mundo 1/ex010.py | dd68b19f265ff4a91f76b8fa1b954710f332b28c | [
"MIT"
] | permissive | gslmota/Programs-PYTHON | ccbc7aa758dfeb7ce0a011654fee62a8dd0f563d | cf6f98ded31e1bc32997ad6887d96e60975c3cad | refs/heads/master | 2022-11-29T08:54:48.535215 | 2020-08-09T23:44:06 | 2020-08-09T23:44:06 | 274,794,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | # Arrendondamento Número
import math
numero = float(input('Digite um número: '))
nbaixo = math.floor(numero)
print('O número {} tem como {} como parte inteira.'.format(numero, nbaixo)) | [
"gabrielsavio81@gmail.com"
] | gabrielsavio81@gmail.com |
a2222b7c61da1124e7c78d8cba9b669f8bf5bd15 | 64baaa5ecb17f5c67095269ac5ad4a7e346c5e32 | /testDaemon.py | f6486738ba5b18dfa71f8e5ca66bb581400ab89c | [] | no_license | chaewonk/clover | 666b23dfd1ec1b46111a4a0b5c983ddc9cde0780 | 690cb0782e0041f4dfe213b3792aa60eea0bb17c | refs/heads/master | 2020-12-31T00:09:35.322612 | 2017-06-14T12:03:54 | 2017-06-14T12:03:54 | 86,558,482 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,512 | py | # -*- coding:utf-8 -*-
import wave
from select import *
from socket import *
from time import ctime
import pyaudio
from pyfcm import FCMNotification
push_service = FCMNotification(api_key="AAAAkXdjqxM:APA91bHgGK9xOi7tTf0ch6tOoxU30hNevDohrkNcyUhLuiHqNgifO4jDDYUSgrVCS_h5VB9JUV1ffxRFa5x-4pshglFyoO2wFtTfT2yfA5UkDIP5iy... | [
"rocky92.lim@gmail.com"
] | rocky92.lim@gmail.com |
e14f43ea5025e2ed22934b1c5b74a03a9f91f38d | 579e3d7310f8b25afc694f647a0b7e5e91329a21 | /neuralphys/models/rpin.py | 2973633e11850b4a073d8f64dcf96c818d3d5c61 | [] | no_license | Alexadlu/RPIN | cd3514312410e4386ed12f435f1c0300e054fb21 | eebb8f64a1dd566585566e378ffb05aa5616ae18 | refs/heads/master | 2022-11-26T22:29:43.849778 | 2020-08-06T01:19:38 | 2020-08-06T01:19:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,098 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torchvision.ops.roi_align import RoIAlign
from neuralphys.utils.config import _C as C
from neuralphys.models.layers.IN import InterNet
from neuralphys.models.backbones.build import build_backbone
class Net(nn.Module):
def __init__(self):
... | [
"macshqi@gmail.com"
] | macshqi@gmail.com |
78e8a604cecf27fe811b0c948ad111c099ce963d | e54e1a63bffbe913f5e5018ace56cfa3eab1a72b | /practice/Leetcode/1253_reconstruct_a_2_row_binary_matrix.py | 2b71d9f4f15e8a18ca410c4daa4699f6e1846cec | [] | no_license | rmodi6/scripts | 5e27a46ce8970cbf601f132a53164c273f1812ea | 7cc47eecac00e6bd0b3ec74d7eed8ec3e0e77a84 | refs/heads/master | 2022-02-14T20:41:28.765751 | 2022-01-20T06:59:40 | 2022-01-20T06:59:40 | 168,207,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # https://leetcode.com/contest/weekly-contest-162/problems/reconstruct-a-2-row-binary-matrix/
import numpy as np
class Solution:
def reconstructMatrix(self, upper: int, lower: int, colsum: List[int]) -> List[List[int]]:
if upper + lower != sum(colsum):
return []
ans = np.zeros((2, len(... | [
"modi.ruchit6@gmail.com"
] | modi.ruchit6@gmail.com |
c208f338b0b8e717f7788e70ab415ccb06596ec2 | be6ce691a3667edf152859f16804e06aaa486a03 | /solution1/deprecated.py | f70d197db4f26a45a6e6cf1f3aaa93a6efa255a6 | [] | no_license | mik-laj/airflow-deprecation-sample | d9b7d068013884177fec833e234914c6a1ec8be3 | ae1f93ac6ab85cec4c57dcb62f956fec73d88bbe | refs/heads/master | 2020-04-23T00:13:41.579998 | 2019-07-30T13:17:29 | 2019-07-30T13:17:50 | 170,771,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | import warnings
from solution1.new import *
warnings.warn("solution1.deprecated has moved to solution1.new. Import of "
"solution.new will become unsupported in version 2",
DeprecationWarning, 2)
| [
"kamil.bregula@polidea.com"
] | kamil.bregula@polidea.com |
55845668b67565b8b7fe585c190c0dac8611d35d | 097c6263e0f30f54ce2deb8d4a6e4c2d8e5c675d | /app/routes.py | 850e06abf30295eeba4ea219d8f1e6fbdd850562 | [] | no_license | Abhay-1812/microblog3 | 1b5d15026ea22ef05cbfe457abd760cca322a069 | 82ba815b0346e2adf96f9cb6ede0bbaefb338748 | refs/heads/main | 2023-05-25T09:20:25.122622 | 2021-06-03T08:09:26 | 2021-06-03T08:09:26 | 373,429,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,145 | py | from app import app
from flask import render_template,url_for,flash,redirect
from app.forms import LoginForm
from app.models import User
from flask_login import current_user, login_user
from flask_login import logout_user
from flask_login import login_required
from flask import request
from werkzeug.urls import url_par... | [
"dhillonabhay1@gmail.com"
] | dhillonabhay1@gmail.com |
4f11e5a9b9a6bb26ab4f1092072e1ee5fbba1ab3 | 6407cca09a68be7ff28ad8ce31fa43af5d099eb3 | /oldbkp_mao_data/TrafficModels.py | ed28f706a7aa1debf781fa3b45465c1b133c7a7a | [] | no_license | hannnni/lkw_algo | 34936fdda7b6e10112845358ea03a6a17ecf1389 | f6cbd5a14cafe0203097499fd3b836a8cf326c42 | refs/heads/master | 2021-01-18T14:11:10.944867 | 2014-11-11T22:21:58 | 2014-11-11T22:21:58 | 26,492,296 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39,002 | py |
import os
import string
import random
import csv
import numpy# as np
import scipy
import pygame
import math
global NetworkFileName
#, signalPlanFileName
#filename = 'networkTest.csv'
NetworkFileName = 'NetworkTestFeld.csv'
#signalPlanFileName = 'temporarySp.csv'
"""
Should predefine link Number or should be read from... | [
"johannes@vonoswald.de"
] | johannes@vonoswald.de |
98a0eb413768739d94890ec9443376e800d155f7 | 82c2c1ac7a727bb68454e61f3b0ad6399a49126e | /utils/json.py | 206423b90cf4b6c71ea36b69bbe2693d7b59fe6f | [] | no_license | pradoslaw/coyote-ws | d2e9f4fb793e1ddcab4b65138fb17ff36c92ee66 | b3a14597b3cd795ff70e90c779191e4bb2f5f3c2 | refs/heads/master | 2023-05-09T16:22:27.683405 | 2021-06-10T18:15:40 | 2021-06-10T18:15:40 | 51,928,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from json import loads
def is_valid_json(message):
try:
obj = loads(message)
except ValueError:
return False
return obj | [
"adam@boduch.net"
] | adam@boduch.net |
0212f9e5951c9f222ca5a846a070bf81530f2a1c | 47c175daf97051e1f5c37b161f16abbd5f5a506e | /modules/forward_attention.py | 1572b09366af7b47ef3fe8cd017f1bbae7507555 | [
"BSD-3-Clause"
] | permissive | nii-yamagishilab/self-attention-tacotron | 947d1d2eb8bc25f70331fbc401bf44c93ef92673 | 0ebd96114feab5a499964402a8ab7e402f0083b4 | refs/heads/master | 2021-07-11T06:13:18.202669 | 2020-06-19T03:04:42 | 2020-06-19T03:04:42 | 156,176,608 | 116 | 35 | BSD-3-Clause | 2020-06-19T03:04:43 | 2018-11-05T07:21:46 | Python | UTF-8 | Python | false | false | 6,383 | py | # ==============================================================================
# Copyright (c) 2018, Yamagishi Laboratory, National Institute of Informatics
# Author: Yusuke Yasuda (yasuda@nii.ac.jp)
# All rights reserved.
# ==============================================================================
""" """
impo... | [
"yusuke.007.yasud@gmail.com"
] | yusuke.007.yasud@gmail.com |
2a563fa6b7c7f2004a33e6eab407557501b546a2 | dbc67a3fcf38da11350d6155a7da0592314d5f5c | /functions.py | 6b8d37738c8033733339a7d2ef44fb41c380ad0b | [] | no_license | cforsythe/Steganography | b5e97fa1307ff3b4e83cb0ff508e1201e8a5d129 | 9f72e46d5e26b10e08e2202eb0e631ba3abf6230 | refs/heads/master | 2021-05-31T15:01:19.860162 | 2016-04-02T06:14:05 | 2016-04-02T06:14:05 | 113,824,556 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,737 | py | #Resources
#https://docs.python.org/2/tutorial/inputoutput.html
#https://docs.python.org/2/library/functions.html
#https://docs.python.org/2/library/stdtypes.html
#use ord() to get ascii value
#http://www.greenteapress.com/thinkpython/thinkpython.pdf
from PIL import Image
#This function opens a file and reads it the... | [
"louispromero@student.hartnell.edu"
] | louispromero@student.hartnell.edu |
92ea114b1907807cc47d45d2b77ee51981cafab8 | 887f2e664c6d92f17e784f57022333a2fb859d06 | /analysis/plotMove.py | 252a91a4c6be6dc9ba8b647cac05970a426f3080 | [] | no_license | ctorney/dolphinUnion | 1968e258c6045060b2c921bd723d0ef0daea0147 | 9d7212d172a8a48a36fc4870fcdb04d66130bb76 | refs/heads/master | 2021-01-19T04:40:57.286526 | 2017-08-17T20:44:58 | 2017-08-17T20:44:58 | 46,424,670 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,332 | py | import numpy as np
import pandas as pd
import os, re
import math
import time
from scipy import interpolate
from scipy import ndimage
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
import matplotlib.animation as ani
HD = os.getenv('HOME')
FILELIST = HD + '/workspace/dolphinUnion/tracking/solo/fileList... | [
"colin.j.torney@gmail.com"
] | colin.j.torney@gmail.com |
a418b63acbacdf11e8ce1f9516014528f1ca8df7 | 7ac10d2874e99844846a36281b7b19183e823983 | /node_app/commands/Spotify/Play.py | 0bf022536fb3cc4f10b94d1fff78eaff5032bb06 | [] | no_license | raspi-chromecast-box/WebServer | b50319080a49a5f3f23ef5daeb0ba6fae033a8ec | e6150bd74b136e3c76fc0696a6f2ef5da288746d | refs/heads/master | 2023-02-09T02:44:13.901951 | 2020-04-14T03:15:57 | 2020-04-14T03:15:57 | 244,017,758 | 0 | 0 | null | 2023-01-23T22:21:59 | 2020-02-29T18:10:34 | Python | UTF-8 | Python | false | false | 4,822 | py | #!/usr/bin/env python3
import http.client as http_client
import time
import os
import sys
import json
import pychromecast
from pychromecast import Chromecast
from pychromecast.controllers.spotify import SpotifyController
import spotify_token as st
import redis
import spotipy
def string_to_bool( input_string ):
input_... | [
"raspiccbox03@gmail.com"
] | raspiccbox03@gmail.com |
be0fa3968a416b2196ac451acf973eb9d1af14be | 329bc425fb085596bf2bc385abcb8e8d581a64b8 | /Simple-eval.py | 577a171307b1935c86c9fbdf5e82e7932df0ebd4 | [] | no_license | aoeu256/dumb-pythonproblems | c9929dafe4d0fcff5bb08f2b4bab3ebfd7f0555e | 5955fd0a1b593e0cf8c481404405eed071ed93b1 | refs/heads/main | 2023-04-11T19:51:25.004086 | 2021-05-03T13:43:48 | 2021-05-03T13:43:48 | 363,941,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | def arithmetic_arranger(problems, answer=False):
outputS = [[], [], [], []]
if len(problems) <= 5: return "Error: Too many problems."
for prob in problems:
[a, op, b] = prob.split(" ")
assert op in '+-'
assert a.isdigit()
assert b.isdigit()
outputS[0].append(a)
line2 ... | [
"noreply@github.com"
] | aoeu256.noreply@github.com |
986d1d6dde1c0148d0569a83ed87756fdccbf521 | b6f9a54c9b237e45df67170c7dfdf26e73d8ab19 | /Monitor.py | b4b6935ba5909a7f853e487fdea240645f620b1d | [] | no_license | nfrjy/python | 094822483f6f95ef9465ceeb71935a5335113d5d | 53de810ce26cf73103dc9be72ee694434017e7aa | refs/heads/master | 2021-01-10T07:08:30.151757 | 2020-01-20T07:08:09 | 2020-01-20T07:08:09 | 45,826,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,903 | py | #!/usr/bin/python
#codeing:utf-8
from typing import Union
import psutil
import os
import smtplib
import configparser
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.audio import MIMEAudio
from email.mime.application ... | [
"58209376@qq.com"
] | 58209376@qq.com |
57ce4e23c369d0ac1c8990a08dd6f14bffa13f86 | ef3a7391b0a5c5d8e276355e97cbe4de621d500c | /venv/Lib/site-packages/spacy/tests/lang/en/test_exceptions.py | 6285a94089db310ac5481689b6030d62f9ea8679 | [
"Apache-2.0"
] | permissive | countBMB/BenjiRepo | 143f6da5d198ea6f06404b4559e1f4528b71b3eb | 79d882263baaf2a11654ca67d2e5593074d36dfa | refs/heads/master | 2022-12-11T07:37:04.807143 | 2019-12-25T11:26:29 | 2019-12-25T11:26:29 | 230,090,428 | 1 | 1 | Apache-2.0 | 2022-12-08T03:21:09 | 2019-12-25T11:05:59 | Python | UTF-8 | Python | false | false | 4,097 | py | # coding: utf-8
from __future__ import unicode_literals
import pytest
def test_en_tokenizer_handles_basic_contraction(en_tokenizer):
text = "don't giggle"
tokens = en_tokenizer(text)
assert len(tokens) == 3
assert tokens[1].text == "n't"
text = "i said don't!"
tokens = en_tokenizer(text)
... | [
"bengmen92@gmail.com"
] | bengmen92@gmail.com |
ba703162cf0be9cf266b4d9d5e3a39f149d6d0ae | 277abbfee6a3755b34a25135dc32399df497f916 | /construct_payload.py | 3cc577f69bf686f1616123dccdbabff2e7cd7579 | [] | no_license | mahersamawi/cs460FinalProject | a9b34ab458bf11be8238640833e497160dc0b7eb | 1d6fc91064c6651c616b2a5b4d156c469ca494d2 | refs/heads/master | 2021-01-23T08:15:07.172565 | 2017-05-07T21:37:16 | 2017-05-07T21:37:16 | 86,488,622 | 2 | 1 | null | 2017-04-30T19:58:10 | 2017-03-28T17:33:33 | Python | UTF-8 | Python | false | false | 439 | py | import subprocess
payload_files = [
'attack_server.py',
'dos.py',
'messenger.py',
'setup.py',
'encryption.py',
'victim_node.py'
]
subprocess.call('zip tmp.zip ' + ' '.join(payload_files), shell=True)
with open('tmp.zip', 'r') as f:
raw = f.read()
subprocess.call('rm -rf tmp.zip', shell=T... | [
"calvin.pelletier@gmail.com"
] | calvin.pelletier@gmail.com |
4bff47136dc598c93846a18cfc7873b43bbf4eef | d31c5d6fa72d058d0f6de6aca5b3ab0822b0deaf | /tfrecord_reader.py | 10e5abc8b57fc3e0d25437bc5fff7a86042334e9 | [] | no_license | you359/TFRecordGenerator | deaf14584416c73325893de984b3a65da02d35d7 | 3580926e052268cc22260fd3c28594bc3c623180 | refs/heads/master | 2020-04-07T12:22:32.556446 | 2018-11-20T10:17:01 | 2018-11-20T10:17:01 | 158,365,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | import tensorflow as tf
import glob
def _parse(record):
features = {
# 'image/encoded': tf.FixedLenFeature([], tf.string),
'data/encoded': tf.FixedLenFeature([], tf.string),
'data/height': tf.FixedLenFeature([], tf.int64),
'data/width': tf.FixedLenFeature([], tf.int64),
'dat... | [
"you359@koreatech.ac.kr"
] | you359@koreatech.ac.kr |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.