blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93db1965da7b6efb5ec2b81be3c712e4fccf59a2 | 17192928ecbca9a66ea00036e8a96f2a8d0b81b0 | /workshops/programacion_python_ESO/pong_v0b.py | ccc25a926889afd683c4ea4af6c36f99cadaa1bc | [
"CC0-1.0"
] | permissive | vicente-gonzalez-ruiz/YAPT | 3ebd893d4205278a1aa2f859f2630cda215ed4ae | 19c9800f12098d725f5d9277714fa4d8b0b9e412 | refs/heads/master | 2023-08-08T23:13:38.022338 | 2023-07-28T08:16:26 | 2023-07-28T08:16:26 | 73,827,591 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 4,705 | py | import pygame
import threading
import time
from empty_display import EmptyDisplay
import lib.colors as Color
WIDTH = 0
HEIGHT = 1
class BallPosition:
x = 1
class Ball(pygame.sprite.Sprite):
def __init__(self,
color,
width,
height,
initi... | [
"vicente.gonzalez.ruiz@gmail.com"
] | vicente.gonzalez.ruiz@gmail.com |
1c180ef08be3a1b5de480328ea4ffdb1327129a5 | 2e7a740bfa64475c8e8a36b7b9b588f905e6fbae | /fbprep/convert_to_linked_list.py | e3cfbf7623cb9877900ca84d9833961beddf039f | [] | no_license | steph-meyering/DSandAlgorithms | 4fdb17a7e7432856859f50e52d78058061faa292 | 540f5958d8b84a6574c8fc5c0ee0779370c35e6d | refs/heads/master | 2023-03-15T15:36:31.772227 | 2021-04-28T00:43:42 | 2021-04-28T00:43:42 | 254,006,896 | 0 | 0 | null | 2023-03-03T15:09:55 | 2020-04-08T06:42:39 | Python | UTF-8 | Python | false | false | 783 | py | # def convert_to_linked_list(root):
# head, _ = dfs(root)
# return head
# def dfs(root):
# if root is None:
# return None, None
# head, prev = dfs(root.left)
# next, tail = dfs(root.right)
# root.left = prev
# root.right = next
# if head is None:
# head = root
# if tail is None:
# tail = ... | [
"stephane.meyering@gmail.com"
] | stephane.meyering@gmail.com |
7dd82ad7b8efdfa97922d5161038f9805e99e879 | 2beb11caac290bb67811df76cf501a1c37f947ed | /cfrPython/src/cfrMNIST/mnist_deep.py | 56d29c425e15ff11f076dc68a63adf1b4e96bc47 | [] | no_license | cfrcfrrr/JavaDemo | 4763975d93db10815999d8b94d33b2bcfe95ed1f | ed9f47a56826ac02a88a74e33793e27c11c696a5 | refs/heads/master | 2020-03-29T13:48:56.781742 | 2018-11-18T03:38:11 | 2018-11-18T03:38:11 | 149,983,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,047 | py | # Copyright 2015 The TensorFlow 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 applica... | [
"33483958+cfrcfrrr@users.noreply.github.com"
] | 33483958+cfrcfrrr@users.noreply.github.com |
05b2d8aa80a938aba52bdf7ca4afbcb77177ee21 | 71707d97f1a61f77d1b6ba17568a8cfe4ffa0e65 | /15 英鎊比.py | b90e6e57276eead1fb45b32a65a31ddec09ddfd7 | [] | no_license | vivian2943/01 | b0dbb42d1ba8678e28759cc906b8d740a7e529ef | 26742b9ffe9cb6750d7a3f97e7def6434a606e2e | refs/heads/main | 2023-06-04T16:28:47.978530 | 2021-06-22T12:40:23 | 2021-06-22T12:40:23 | 372,204,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | rate = input('輸入英鎊比率:')
e = input('輸入薪水:')
earnings = float(rate)*int(e)
print(str(earnings)+'台幣')
| [
"noreply@github.com"
] | vivian2943.noreply@github.com |
0f702ff15d1d5b9145082f6402c50e7a282d49a8 | 5b3d8b5c612c802fd846de63f86b57652d33f672 | /Python/eight_kyu/make_negative.py | 1ced2d2e37e6381d69e9df3fff51514a55f71b75 | [
"Apache-2.0"
] | permissive | Brokenshire/codewars-projects | 1e591b57ed910a567f6c0423beb194fa7f8f693e | db9cd09618b8a7085b0d53ad76f73f9e249b9396 | refs/heads/master | 2021-07-22T18:50:25.847592 | 2021-01-25T23:27:17 | 2021-01-25T23:27:17 | 228,114,677 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # Python solution for 'Return Negative' codewars question.
# Level: 8 kyu
# Tags: FUNDAMENTALS and NUMBERS.
# Author: Jack Brokenshire
# Date: 11/04/2020
import unittest
def make_negative(number):
"""
Make a given number negative.
:param number: an integer value.
:return: the integer as a negative nu... | [
"29889878+Brokenshire@users.noreply.github.com"
] | 29889878+Brokenshire@users.noreply.github.com |
75d55fc725194a32fcecd23a78c767b5279c1bb5 | 96f6390a000254f942a68ab4bc349f1403a35ae3 | /recipes/migrations/0002_rename_daily_recipe.py | 41f3af48beca1a13ad67abd06e4667ca174df5fb | [] | no_license | tak-ka3/django_Restframework | c8e91c2582bd6cb903e9339cdc243fe37d632348 | 8d8458a229fb63fcab711e3f4adb1e37bfb08d56 | refs/heads/main | 2023-05-23T17:22:34.657803 | 2021-06-13T04:57:11 | 2021-06-13T04:57:11 | 376,421,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # Generated by Django 3.2.3 on 2021-06-13 01:13
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('recipes', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Daily',
new_name='Recipe',
),
]
| [
"hi.ta9.23.333@gmail.com"
] | hi.ta9.23.333@gmail.com |
be5c1b5992e68428d06e14747e5ee74245b52472 | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/elimination-game/365996335.py | a8932065ba6959fe4df1131bf0761ece4fd6de2d | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | # title: elimination-game
# detail: https://leetcode.com/submissions/detail/365996335/
# datetime: Mon Jul 13 18:50:53 2020
# runtime: 52 ms
# memory: 13.7 MB
class Solution:
def lastRemaining(self, n: int) -> int:
return (2 * (n // 2 - self.lastRemaining(n // 2) + 1)) if n > 1 else 1
| [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
c1ad3f14fa4ee87e676d126d504d451079462174 | 6831b5a2e1b31094c8edc5ec68157efb838a6051 | /processing/scripts/__init__.py | 49217b24c3360ffa0d7cfe741599bd7cd1059716 | [] | no_license | optionalg/backend | c7f60518a72b6b953d7797b20eb03df8d8cedfca | 905888926cd57a1120f65ab94b9db9491ad9bfd9 | refs/heads/master | 2020-03-18T08:00:10.479204 | 2017-04-25T19:00:12 | 2017-04-25T19:00:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,331 | py | import logging
import click
from helpers.topics import get_static_topics, transform_topic_name
from main import app
from processing import db, Tweet
@app.cli.command()
def cli_update_sentiment_and_region_classification():
click.echo("Running update_region_and_topic_classification")
update_sentiment_and_regi... | [
"floris.kint@gmail.com"
] | floris.kint@gmail.com |
099cbf71916f59418e98d995adba9f81835ae2f0 | cc3e56faea644ddd001e237d6d2f0f607e288dba | /Scripts/bugs.py | 842072e45834df63243376636148ed542dc32ff5 | [] | no_license | ChristopheBunn/Udacity-Data-Scientist-Nanodegree | 4b4d10f6ac3713f3068a1753703a03a5fecf992f | 7d2dc8cb063f8ef7915d903e7d98fa659fd362c2 | refs/heads/master | 2022-12-22T00:23:29.348577 | 2020-01-21T21:24:58 | 2020-01-21T21:24:58 | 208,598,058 | 1 | 3 | null | 2022-12-08T06:53:45 | 2019-09-15T13:26:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,078 | py | import pandas as pd
bugs = pd.read_csv('ml-bugs.csv')
print(bugs)
print("\nbugs is of type {}".format(type(bugs)))
num_total = bugs['Species'].size
print("\nThere are a total of {} bugs.".format(num_total))
species = bugs.groupby(['Species'])['Species'].count()
print("\n{} Species:\n{}".format(num_total, species))
c... | [
"christophe.bunn@gmail.com"
] | christophe.bunn@gmail.com |
989b4a490afd630ec9d6eb1ab26d1e0490707b00 | 6a4680f5a0130edd3dc7bfd4f085e97ab0819fff | /linearregression/linearregression.py | ed6da1ddc71282d6b1eb7c481f854821b0ac42f4 | [] | no_license | shristiparajuli/linearregression | 3c14cdbc55f65ef1ab8c870d5b1f7094611cd09c | 2cb0ed822e34f5f0a85f1c206113e19d0b0ccd34 | refs/heads/master | 2022-12-21T08:01:40.556499 | 2020-09-28T09:02:44 | 2020-09-28T09:02:44 | 299,247,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | import pandas as pd
import numpy as np
import sklearn
from sklearn import linear_model
from sklearn.utils import shuffle
import matplotlib.pyplot as plt
import pickle
from matplotlib import style
data = pd.read_csv("C:\\student-mat.csv", sep=";")
data = data[["G1", "G2", "G3","studytime", "failures", "abse... | [
"noreply@github.com"
] | shristiparajuli.noreply@github.com |
1dc16a63a83e65662628b2453ff91ff337eff28d | 3de21fc587c02f2702bd5770f11a31d5558a4666 | /django_ac22/apps/avisos/forms.py | f0f90b51cfdad481b5d8887b01638b45daf0f108 | [] | no_license | juanros13/ac22 | 8c20d59de62d596a73d6d7190f551ef3accf2b8e | d8ecf0686f3d8a57a747503b231b46277db71a6e | refs/heads/master | 2020-04-16T11:24:07.344404 | 2016-09-22T23:51:39 | 2016-09-22T23:51:39 | 65,859,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # -*- encoding: utf-8 -*-
from django import forms
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.contrib.auth.forms import UserCreationForm, AuthenticationForm
from django.contrib.auth import authenticate
from django.forms.widgets import Select, Textarea
fro... | [
"juanros13@gmail.com"
] | juanros13@gmail.com |
0cc92092dbd744015e475b3cd777349197c893ed | acbaf0ac316ceffad927da213c6a4cd02bf91549 | /Django/Craiglist/MyApp/urls.py | 30e0fdf65523a78b4f36737abd2f0e47b34a70c4 | [] | no_license | Rohyth/Python | be4a177b454c46d77e6c1b5b894e3cf78d136280 | 8e4dbbed704ccc3efe85fae4349e4b164b66ae3e | refs/heads/master | 2022-12-22T02:40:30.511768 | 2021-05-08T19:45:28 | 2021-05-08T19:45:28 | 254,495,454 | 0 | 0 | null | 2022-12-08T10:00:56 | 2020-04-09T22:56:34 | Python | UTF-8 | Python | false | false | 172 | py | from django.urls import path
from MyApp import views
urlpatterns = [
path('', views.home, name='home'),
path('new_search', views.new_search, name='new_search'),
]
| [
"Rohitratawal@gmail.com"
] | Rohitratawal@gmail.com |
9e6d98b674fe76be7f90c72ef6ee93503565d747 | aa731f3e006a75079dde2471351d49b7ef93e8d6 | /setup.py | d8d1f68ec2dd02bc91d2667878389e5df1db2ae2 | [
"MIT"
] | permissive | c1au6i0/pokerpy | 0e40f38104c2e2e536283b266a0c320f5418bf68 | 5846ebe323f13e5852c48b18c052b2f3f14a1efe | refs/heads/master | 2022-11-13T13:14:05.218000 | 2020-07-11T04:12:49 | 2020-07-11T04:12:49 | 259,125,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="pokerpy-c1au6io-dottorDav", # Replace with your own username
version="0.0.0.9",
author="Claudio Zanettini, Davide Colella",
author_email="claudio.zanettini@gmail.com, dottordav@gmail.com ",
... | [
"claudio.zanettini@gmail.com"
] | claudio.zanettini@gmail.com |
9d970a6420fe907b2979185d2b48aa7ae78262f1 | 5c61990fc1a79f389111a3e449c1fadf65fc1b8c | /portnet_reports/indicateurs_financier/__init__.py | b8f88826d9a9cd5ecc4a5bc263880c787dbaefa2 | [] | no_license | brahim94/portnet | 3befb64009fd014b74e01151cc429a613d3d2f11 | f1120ce4806ba2fd7e26132ca918d1ce8b9ad32c | refs/heads/master | 2023-04-14T07:17:40.956207 | 2021-04-27T16:37:48 | 2021-04-27T16:37:48 | 356,211,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | import financial_indicator
| [
"brahim-ayad@hotmail.com"
] | brahim-ayad@hotmail.com |
4a16bae85cdddfd2118cbf68bd4399070109330e | 1520f013535ebcb19578083059316194b236eff1 | /zoo/inception/inception_v2_c.py | a84e6ff36802158a80029605530de20d232064df | [
"CC-BY-4.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | koyo-jakanees/keras-idiomatic-programmer | ed12bb67dbc6c866148db44c2952ecf83b024ac1 | 0669dff3a14c41b8aedd2605b21a9c6b546e17a3 | refs/heads/master | 2020-09-23T01:39:35.056403 | 2019-12-02T00:27:55 | 2019-12-02T00:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,117 | py | # Copyright 2019 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | koyo-jakanees.noreply@github.com |
81b9658d7beef3f5af94d215949d0df32e66dc26 | df8ec66b10e97956f80ec52503dd456372c03c4a | /plotter/objects/selections.py | b4d32bd707d2c9a8132f64b9d47eda95be2cf1ba | [] | no_license | amlyon/plotter | 3670820faf9864501b666f2e157e435a8285a766 | 5a3295fbf5d0875fd4a1c53164ac45e92d3ccd05 | refs/heads/master | 2022-11-17T02:27:42.072710 | 2020-07-07T20:19:25 | 2020-07-07T20:19:25 | 270,580,472 | 0 | 0 | null | 2020-06-23T14:55:25 | 2020-06-08T07:56:20 | Python | UTF-8 | Python | false | false | 10,048 | py | from collections import OrderedDict
class Selections(object):
def __init__(self, channel):
self.channel = channel
self.base = None
self.selections = OrderedDict()
if self.channel == 'mmm':
self.selections['pt_iso'] = ' & '.join(['l0_pt > 25' ,
... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
7efb8ef9da9d77a2dea29542cdfeae246c6ad6d6 | a2b6bc9bdd2bdbe5871edb613065dd2397175cb3 | /Cookbook/Array/最小路径和.py | 8fcbf61420a03b424278ab65480d35b31e907523 | [] | no_license | Asunqingwen/LeetCode | ed8d2043a31f86e9e256123439388d7d223269be | b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee | refs/heads/master | 2022-09-26T01:46:59.790316 | 2022-09-01T08:20:37 | 2022-09-01T08:20:37 | 95,668,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | '''
给定一个包含非负整数的 m x n 网格 grid ,请找出一条从左上角到右下角的路径,使得路径上的数字总和为最小。
说明:每次只能向下或者向右移动一步。
示例 1:
输入:grid = [[1,3,1],[1,5,1],[4,2,1]]
输出:7
解释:因为路径 1→3→1→1→1 的总和最小。
示例 2:
输入:grid = [[1,2,3],[4,5,6]]
输出:12
提示:
m == grid.length
n == grid[i].length
1 <= m, n <= 200
0 <= grid[i][j] <= 100
'''
from typing import List
cla... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
d62c8c6b220fb81051692a7991dc7c594ab69286 | 2a229d37b001b3714ce3b246e1e89bf8ac2a0130 | /scripts/arcpy_geom/Vertex.py | 5d17ea1285527dbd4497f7acfdae0160a4adaad3 | [] | no_license | glennvorhes/CurveFinderHelper | 86e85dd4a3f2c810660b53b9317c76f930010010 | e6a2feccf909f49e5ce2c9a070e5b50fa2a33e28 | refs/heads/master | 2021-06-02T04:54:11.241563 | 2021-02-06T16:25:54 | 2021-02-06T16:25:54 | 95,932,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | import math
class Vertex:
def __init__(self, x, y, z=None, m=None):
self.x = x
self.y = y
self.z = z
self.m = m
@property
def kw(self):
return {
'X': self.x,
'Y': self.y,
'Z': self.z,
'M': self.m
}
def ge... | [
"gavorhes@wisc.edu"
] | gavorhes@wisc.edu |
1c8f9228323474b915e9a7d5edc370244f52c75d | 6aa706a8644d0c758366d5cf3e01051664612f07 | /ex22/ex22-challenge.py | 3ce5b6dd3e5419ea3b4dd5759f68fb96095d4592 | [] | no_license | dspina79/lp3thw | d792aa38278ab3b6b8829e7e54f191f64d9e2bc1 | 2968d12c40fb9f5e00ceca38ed41d50615d7af5f | refs/heads/main | 2023-03-07T13:28:34.855956 | 2021-02-19T15:17:05 | 2021-02-19T15:17:05 | 322,066,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | # Basic Revew
# Just come code to highlight previous lessons learned
from sys import argv
script, arg1 = argv
def read_file(f, num_lines_to_read):
num_lines_total = get_num_lines(f)
f.seek(0)
print(f"There are {num_lines_total} total lines.")
line_num = 1
while line_num <= num_lines_total and li... | [
"dspina79@gmail.com"
] | dspina79@gmail.com |
77fe34446a2c183a54a1da6a8e62c8415843b819 | 5cd02f24090472ab94f942ccf780835df4d5fd46 | /pi-dashboard/pi_dashboard/asgi.py | 5b656e44266c47d54f7421a51dcbe325ab7d36eb | [] | no_license | saenzjonathan11/CSCE-462-Raspberry-Pi-Documentation | 48e817c0533c66ef78e8899074193a229defff23 | 8d427886719e1b6aed174cc4e3301f9a47f1602c | refs/heads/master | 2021-05-18T12:50:32.232566 | 2020-05-13T12:30:08 | 2020-05-13T12:30:08 | 251,249,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
ASGI config for pi_dashboard 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"saenzjonathan11@gmail.com"
] | saenzjonathan11@gmail.com |
6ccaf0b7923ddbcf05dbd74de253ca863a8a52de | 57db61160494659af43ee255d1e6ab2af6617114 | /ultron-api/contact/admin.py | 92b8324a11994ac12b4367be09b970e401577cbe | [] | no_license | gloompi/ultron-studio | fc667d563467b386a8dec04a6079e7cdcfedc5a7 | ec2ae8051644df2433b931c7e0228e75eaf20990 | refs/heads/master | 2023-06-25T19:22:45.119315 | 2019-12-08T05:53:02 | 2019-12-08T05:53:02 | 226,545,035 | 0 | 0 | null | 2023-06-10T00:22:15 | 2019-12-07T16:44:16 | JavaScript | UTF-8 | Python | false | false | 205 | py | from django.contrib import admin
from .models import Contact
class ContactAdmin(admin.ModelAdmin):
list_display = ('id', 'title')
# Register your models here.
admin.site.register(Contact, ContactAdmin) | [
"gloompi@gmail.com"
] | gloompi@gmail.com |
533b7742f803c5e8623281c3f038e47250afcebd | f7fcdb32ba79620a140def0d16aa37784750d781 | /P-Divisors.py | 9cd4671af22ca43597ee8beaccb8ccd3d158a36c | [] | no_license | Msarkis/python | b87888558dbae66823c73356645b89e6a1582af6 | a10689ff9d6064796a8f6c57e735e1102ce760fb | refs/heads/master | 2022-07-18T23:06:37.172593 | 2020-05-22T16:39:03 | 2020-05-22T16:39:03 | 263,748,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | """
FROM PracticePython.org
Exercise 4: Divisors
Create a program that:
1. asks the user for a number
2. prints out a list of all the divisors of that number.
"""
ask_num = 30
print("The divisors of " + str(ask_num) + " are ")
y=[]
i = 1
n= 0
while (i < ask_num):
y.append(i)
i = i+1
f... | [
"noreply@github.com"
] | Msarkis.noreply@github.com |
aca820fb2f94f242539ff4b7b1b2ab02fbc5a555 | 148072ce210ca4754ea4a37d83057e2cf2fdc5a1 | /src/core/w3af/w3af/plugins/attack/db/sqlmap/tamper/charencode.py | 6d1a46727fed80594ad45d9e5cbf3e7aa2e118f8 | [] | no_license | ycc1746582381/webfuzzer | 8d42fceb55c8682d6c18416b8e7b23f5e430c45f | 0d9aa35c3218dc58f81c429cae0196e4c8b7d51b | refs/heads/master | 2021-06-14T18:46:59.470232 | 2017-03-14T08:49:27 | 2017-03-14T08:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | #!/usr/bin/env python
"""
Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/)
See the file 'doc/COPYING' for copying permission
"""
import string
from lib.core.enums import PRIORITY
__priority__ = PRIORITY.LOWEST
def dependencies():
pass
def tamper(payload, **kwargs):
"""
Url-encodes all ... | [
"everping@outlook.com"
] | everping@outlook.com |
38b2275bab017121700f29468db3da539f3d450e | bab33c23fc02dc171395b34c5c88fcf83a95cb96 | /test/Transforms/test_Transforms.py | ec1905520dfce9a46bb05990c38fae7639a0f5b3 | [] | no_license | heliy/nornir-imageregistration | a623ad00c0c253bcc925306920824affaa414810 | 368bc245ef2c7be630f0cdc8c448adb62b797d5a | refs/heads/master | 2020-05-07T16:59:02.268951 | 2018-02-27T01:22:57 | 2018-02-27T01:22:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,922 | py | '''
Created on Mar 18, 2013
@author: u0490822
'''
import os
import unittest
from nornir_imageregistration.transforms import *
from nornir_imageregistration.transforms.rbftransform import \
RBFWithLinearCorrection
import numpy as np
### MirrorTransformPoints###
### A simple four control point mapping on two 20... | [
"james.r.andreson@utah.edu"
] | james.r.andreson@utah.edu |
b75bb8a8354bc94be4833f4eef3a1d81adafe76e | 3095db2b8eb39c560c1ea5918492b015a975e2c5 | /sample_ros_time_domain_uwb/catkin_ws/devel/lib/python2.7/dist-packages/pkg_timedomain_uwb/msg/_msg_timedomain_uwb.py | cbaa92a3d5ae56f98bb572bf23f9c5b9d956c770 | [] | no_license | jungwonkang/qdrone_all | 7a1b689a4576452749eeb971a1a98d9911c4bb48 | 6d3c4e12450c43f427d0203aa3632e83c0085ed2 | refs/heads/master | 2021-06-12T12:41:11.179182 | 2021-03-08T17:42:59 | 2021-03-08T17:42:59 | 157,916,901 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,713 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pkg_timedomain_uwb/msg_timedomain_uwb.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import std_msgs.msg
class msg_timedomain_uwb(genpy.Message):
_md5sum = "58322... | [
"kctown99@gmail.com"
] | kctown99@gmail.com |
3bba74f04259265887d2ec648d851419eac34d2e | 40578c9f7370d2905ed66cbec9ebd7998ea0d462 | /test-old-chart.py | 9e295988705f4aa6b0aea16c62cfe0a2e9619ead | [] | no_license | boonleng/rats | 1f6d63eadab005cc7a5966ea90c32f07575e8922 | 8bea912ab8ac3f6c7a23ae902c545aeaaf65f5a6 | refs/heads/master | 2021-10-10T05:29:55.312987 | 2019-01-07T05:28:55 | 2019-01-07T05:28:55 | 103,794,888 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | import data
import chart
stock = data.file('NVDA')
# Some global variables
K = 130 # Number of days to show
sma_sizes = [10, 50, 200] # SMA window sizes
L = K + max(sma_sizes)
s = stock.iloc[-L:]
view = chart.showChart(s)
view['figure'].savefig('blob/NVDA_test.png')
| [
"boonleng@ou.edu"
] | boonleng@ou.edu |
5d86860ca2ec5fa6bbeab18e86e8b56a4012a878 | db2ae028c001fb47c21fa8024d2e9abb6214da3c | /apply_ng_correction_to_ninv.py | af04e2b6a1b631a4bd73c3d2fcc885bf915bad1b | [
"MIT"
] | permissive | tbs1980/mice-number-crunch | b98211a443cabb9246cbd2c8020f219a186dcd37 | 0e1fc8997709a66f69e1ad74cc5e23b2753a378f | refs/heads/master | 2021-01-10T02:48:05.064646 | 2015-12-04T14:21:50 | 2015-12-04T14:21:50 | 36,322,850 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | import numpy as np
import healpy as hp
import matplotlib.pyplot as plt
input_data_path = "/resource/data/MICE/maps/"
res = "512"
# read the g_ninv
g_ninv_file_name = input_data_path + res + "/mice_v2_0_shear_g_ninv.fits"
g_ninv = hp.read_map(g_ninv_file_name)
# read the G_ninv
G_ninv_file_name = input_data_path +... | [
"tbs1980@gmail.com"
] | tbs1980@gmail.com |
c512c3d28683e706f9ec457ece4dd43b632b1478 | 8fbe8c1512b1139540b1620f7372d57c9ad58663 | /gpxjoin.py | 6505f8f9310e58b3035dd8c9991c97dd1b49fbf2 | [] | no_license | uskudnik/gpxjoin | d1f3013b47fb122d14bc2c551390522738612e66 | 0892f3812642897bf0448c2e0cd2d8bdfebc51ac | refs/heads/master | 2020-04-10T16:43:12.721578 | 2012-05-19T20:10:14 | 2012-05-19T20:10:14 | 4,380,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | #!/usr/bin/env python
# encoding: utf-8
"""
gpxjoin.py
Licensed under MIT License.
Copyright (c) 2012, Urban Skudnik <urban.skudnik@gmail.com>
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 wit... | [
"urban.skudnik@gmail.com"
] | urban.skudnik@gmail.com |
89953cc562f5821db41a06a6c2c67cef8e4197ab | 67cfe3567f0a961123c561538624be28044ec852 | /backend/girltalk_15424/urls.py | d6ab5c8e6f4bb8b2bb8d6c9afad9be43542c8a78 | [] | no_license | crowdbotics-apps/girltalk-15424 | b732f7f6fc04fedd1acd99a2acfd129af71cc010 | 770efb300bc8297faea15e7b6a94c7a755fa8cf7 | refs/heads/master | 2023-02-04T02:55:52.708635 | 2020-04-04T05:21:02 | 2020-04-04T05:21:02 | 252,916,119 | 0 | 0 | null | 2023-01-26T16:28:35 | 2020-04-04T05:20:13 | JavaScript | UTF-8 | Python | false | false | 1,914 | py | """girltalk_15424 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Clas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d1ca6c351122bf427bc8a5012370cfc1a2fa3cc8 | 6570bfdb26a41d99620debec5541e789b3c613f3 | /Others/Mercari/binary.py | c7514cc5228a9257b4679b4b065a41dd9d90ea3f | [] | no_license | ameet-1997/Competitive_Coding | bc30f37ae034efe7bb63f71241792fc53c323a50 | a9824430cf0458516ddd88655c1eca1f42ff3f0a | refs/heads/master | 2021-05-10T14:07:15.209770 | 2018-01-22T19:22:13 | 2018-01-22T19:22:13 | 118,500,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | n=input()+1
while'11'in bin(n):n+=1
print n
| [
"ameetsd97@gmail.com"
] | ameetsd97@gmail.com |
1dcceb03a81d2043094a05404cce1de425ad775d | 4ff90da76cb447db065896a06573258a27fc8878 | /itchat/components/login.py | 709b8307350c9a7bc7e422e7fe610d2d585d68f0 | [
"MIT"
] | permissive | wosenbo/ItChat | 9455c79a57f7b5d5f03be86d652b428eb248299f | 36a3a027bb8dc19f0ceb4b8a44e943a60b2286ef | refs/heads/master | 2021-01-12T09:18:38.605240 | 2017-04-07T01:18:53 | 2017-04-07T01:18:53 | 76,820,262 | 0 | 0 | null | 2016-12-19T02:13:56 | 2016-12-19T02:13:56 | null | UTF-8 | Python | false | false | 12,311 | py | import os, sys, time, re, io
import threading
import json, xml.dom.minidom
import copy, pickle, random
import traceback, logging
import requests
from .. import config, utils
from ..returnvalues import ReturnValue
from .contact import update_local_chatrooms
from .messages import produce_msg
logger = logg... | [
"i7meavnktqegm1b@qq.com"
] | i7meavnktqegm1b@qq.com |
537c25b232e64293c8f21c5c30fb20a3296bc9fe | a69f551e9dcc118e730c4e85e096993535fa0c70 | /Codeforces/1200/A. Sweet Problem.py | c3db0f24cb1b06012a87541db57a2091ee919690 | [] | no_license | DHaythem/Competitive-Programming-Solutions | ef30c9418f47e522b8f5096f6077c487ed247500 | 5c4e6b78ee9657ee46abd1fce082ef11acd6a13c | refs/heads/master | 2021-07-07T16:29:55.013246 | 2021-03-18T22:12:03 | 2021-03-18T22:12:03 | 229,136,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | #https://codeforces.com/contest/1263/problem/A
t=int(input())
for _ in range(t):
l=list(map(int,input().split()))
l.sort()
if l[0]+l[1]<l[-1]:
print(l[0]+l[1])
else:
print(sum(l)//2)
| [
"noreply@github.com"
] | DHaythem.noreply@github.com |
d0f83f7d1e095a684adc028c82436ae2a547ae84 | 53fd34c6f4544c999fb44a19bfb09ac5379d3381 | /.c9/metadata/environment/manage.py | 96e162979620a446001118d73186f2a4b83a5225 | [] | no_license | pazcm/django-blog | de1290983f8a7ee722e5b462319d4810ff1821c2 | 889186f53725191a73b19ba29b9e2a94f84f54d1 | refs/heads/master | 2020-07-30T10:15:10.268024 | 2019-09-23T21:27:29 | 2019-09-23T21:27:29 | 210,188,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | {"filter":false,"title":"manage.py","tooltip":"/manage.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":0,"column":0},"end":{"row":0,"column":0},"isBackwards":false},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"fi... | [
"ubuntu@ip-172-31-88-117.ec2.internal"
] | ubuntu@ip-172-31-88-117.ec2.internal |
dca21316cca42b67e54b9d630d8524b9ddf48686 | 28e54666a9d30fee0bfba30e7f0206cb38943ef4 | /문자열/3. Longest Substring Without Repeating Characters.py | 6f607115d43068bd404276fd7ea22d4c2b68b5eb | [] | no_license | SunghyunChoi/Algorithm | 804808b16b1c70f1b52ee55b2a927fd663ea8b48 | 736fd18c1bc6e6c2fed72b01ae67075f8bf0683f | refs/heads/master | 2023-06-05T11:22:17.411474 | 2021-06-24T14:31:23 | 2021-06-24T14:31:23 | 299,884,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | class Solution:
# @return an integer
def lengthOfLongestSubstring(self, s):
start = maxLength = 0
usedChar = {}
for i in range(len(s)):
if s[i] in usedChar and start <= usedChar[s[i]]:
start = usedChar[s[i]] + 1
else:
maxLe... | [
"chltjdgus99@naver.com"
] | chltjdgus99@naver.com |
598e66cd794150397c8cf73002b440126b93541a | 951fc0da7384b961726999e5451a10e2783462c4 | /script.module.ATFTV/addon.py | 08dc093ce00ace1411bebb0134af1dcc39de1c05 | [] | no_license | vphuc81/MyRepository | eaf7b8531b2362f0e0de997a67b889bc114cd7c2 | 9bf8aca6de07fcd91bcec573f438f29e520eb87a | refs/heads/master | 2022-01-02T15:07:35.821826 | 2021-12-24T05:57:58 | 2021-12-24T05:57:58 | 37,680,232 | 6 | 10 | null | null | null | null | UTF-8 | Python | false | false | 7,622 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2016,2017,2018 RACC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This... | [
"vinhphuc_81@yahoo.com"
] | vinhphuc_81@yahoo.com |
17f77bc38e3f754124901201d5eb455d4e1664d0 | fb668e010cf15aae811a2951afc6628e5021c9c3 | /trademarks/migrations/0004_convert_userreaction_word.py | 17f756be3d954cd0980b46b396edc43b9453420a | [] | no_license | niggin/Trademarks_Deployment | ef36f5f321623352d1d8a3bae5f23e50920caa06 | bca70184e64abf3d5e42c595c2bb8cc2a3825daf | refs/heads/master | 2021-01-19T16:59:39.101234 | 2014-12-08T11:19:17 | 2014-12-08T11:19:17 | 17,259,621 | 0 | 0 | null | 2014-12-01T08:55:12 | 2014-02-27T18:34:19 | Python | UTF-8 | Python | false | false | 3,374 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models imp... | [
"rubik303@mail.ru"
] | rubik303@mail.ru |
b4bcab68b3b7a21477735f4d6559fe1ff0a17484 | 20588b6ea02e4ea2b7ad61d4bd77de31bd940256 | /Librera/librera/apps.py | d4b5a445632b54d876b47b5971ba6f78b31fab8f | [] | no_license | antoniogomez093/Librera | 7629787f47c4a80bcd22ff784010f0d219d27b79 | 23a87181758548695df5a5637253eab853205c03 | refs/heads/master | 2020-04-30T06:15:59.798258 | 2019-03-20T03:56:42 | 2019-03-20T03:56:42 | 176,647,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class LibreraConfig(AppConfig):
name = 'librera'
| [
"antoniogomez093@gmail.com"
] | antoniogomez093@gmail.com |
fda56427bc53e80b66f30c189b2cf682de401ada | bf720a2b404dbab0b08838a805fd8d37f1017b38 | /noaaTideSoapHL.py | 70f57ec46135c9c818fd537fd9e5b66ecacac0ce | [] | no_license | ChadChapman/tidesProject | 6f5b53ceecdfe0737370b5cbc37b7212d784cc39 | 3ccaa6a149953699c20edc81475e48cea512c1e3 | refs/heads/master | 2021-01-01T20:40:41.023931 | 2017-08-04T23:50:22 | 2017-08-04T23:50:22 | 98,911,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from zeep import Client
client = ("https://opendap.co-ops.nos.noaa.gov/axis/webservices/highlowtidepred/wsdl")
client.service.submit_order(user_id = 1, order = {
'stationId': '9446484', #first Tacoma station id found with quick search
'beginDate': '20060920 00:00',
'endDate': '20060922 23:59',
'datum':... | [
"noreply@github.com"
] | ChadChapman.noreply@github.com |
c70e076147bb1a64bc5b42f37dd0777575a12e34 | 0b076ae5b9962844549a0590975b7963c38f6627 | /youdaoledu2/login.py | 0fda8666ece497c0b20e46ecae8dcd76a95f6354 | [] | no_license | 1111xu/yread-Android-UI | 7c6c171481acc605529411f4220419318436e924 | 24051e74bd7c5030d9dc6b2e4efb5f7367776f2c | refs/heads/master | 2022-09-03T18:27:55.017909 | 2020-05-21T11:26:09 | 2020-05-21T11:26:09 | 258,079,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,014 | py | # coding=utf-8
import logging
from youdaoledu2.open import appium_desired,webdriver
from youdaoledu2.First_start import First_start
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions
from selenium.common.except... | [
"wb.xurunze@cn.net.ntes"
] | wb.xurunze@cn.net.ntes |
3040be782248c917cdc83a55505739f977559922 | bf2d010229aece071359662f4fef44e48ba57951 | /dynamic_range_parallel_pipeline.py | 6432414ec8f72d79b72df4a68b82b80d29b6a4bc | [] | no_license | Osrip/CriticalEvolution | b97398f74e2fc5b54c9ab92765b08ce3bf97257e | f77cae8acc626cb4c6d64d5a44fdf00310309c2e | refs/heads/master | 2021-06-24T03:44:03.283017 | 2021-04-03T13:09:42 | 2021-04-03T13:09:42 | 215,332,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,763 | py | import os
from multiprocessing import Pool
import argparse
import train
import copy
from automatic_plot_helper import detect_all_isings
from automatic_plot_helper import load_isings_from_list
from automatic_plot_helper import load_settings
from automatic_plot_helper import all_sim_names_in_parallel_folder
import time
i... | [
"jan.prosi@hotmail.com"
] | jan.prosi@hotmail.com |
6853de685212b455aebebb14ca3cee9e2f0e9813 | b42a9da792bbc79ce22c06ef1d5019263e48eac4 | /settings.py | 4c917651914189b203f15460b589a8188cca5804 | [] | no_license | foolishwolf/spider4dianping | 5fe39c7a1fd173d57299aae4c52829dbe4bc5c60 | b409dfbdfd5e64513a4200bd516df54916cb61d1 | refs/heads/master | 2021-01-10T11:45:50.160988 | 2015-10-18T05:35:23 | 2015-10-18T05:35:23 | 44,080,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # -*- coding: utf-8 -*-
# Scrapy settings for dishRec project
#
# For simplicity, this file contains only the most important settings by
# default. All the other settings are documented here:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
#
BOT_NAME = 'dishRec'
SPIDER_MODULES = ['dishRec.spiders']
NEWS... | [
"xuruihan1990@163.com"
] | xuruihan1990@163.com |
2638d539fd17db3f9a443926f3c761356f6d33a5 | f007cce421676dbfb2e12237ce1769698b84ffdd | /repo_dependencies.py | 775c755781b28795f9bd6094b148fe97994c4a1b | [] | no_license | slatex/lmhtools | 0222582f2430e0621dce10c50de0edd856ecad9c | c744baa23616dcadc373ef494d95e4c5bd3b58da | refs/heads/master | 2021-06-10T13:09:36.195041 | 2021-05-13T15:14:58 | 2021-05-13T15:14:58 | 184,758,704 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,339 | py | #!/usr/bin/env python3
"""
Script for fixing the repository dependencies in META-INF/MANIFEST.MF
"""
import os
import re
import lmh_harvest as harvest
TOKEN_MHINPUTREF = -1
TOKEN_MHGRAPHICS = -2
re_mhinputref = re.compile(
r"\\n?mhinputref\s*"
r"(?:\[(?P<params>[^\]]*)\])?\s*" # parameter
... | [
"jfschaefer@outlook.com"
] | jfschaefer@outlook.com |
2de100b76ac7bc9504f4c7ba8c897b2f81c28b72 | 58affdc32985e377e0c8c78c2d49871fad7da600 | /Dimuon/test/genSimCrab/crabConfig_GenSim_CIToMuMu_M300_L16000_LL_Con.py | 6af19953ea1b319e9481b2f68c1f21fbffd5e385 | [] | no_license | jarvislam1999/Pythia8-dilepton | 86d764f43c295a30f600b6ef623b41c38623a043 | 5bd749bdc0463176a0c0e7da21f3f336697ad648 | refs/heads/master | 2020-03-25T05:32:15.570262 | 2018-08-03T18:43:38 | 2018-08-03T18:43:38 | 143,452,501 | 0 | 0 | null | 2018-08-03T16:57:06 | 2018-08-03T16:57:06 | null | UTF-8 | Python | false | false | 1,023 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'Dimuon_GENSIM17_M300to800_CI_L16000_LL_Con_13TeV_Feb5'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = True
config.JobType.pluginName = 'Priv... | [
"ek7121@wayne.edu"
] | ek7121@wayne.edu |
dac3f89e9ff6dcef5bdf7d2f7588c8933dd9afa1 | c5291e50a3c72c885922378573a0ad423fcedf05 | /elastic/MainApp/__init__.py | a45576712bb6d54a6826b931b0fc69c4e1e0d94d | [] | no_license | raghurammanyam/django-projects | bcc3ed6285882af437a2995514cef33760fb063e | dd20ae354f7f111a0176a1cc047c099bd23e9f05 | refs/heads/master | 2022-12-12T19:22:31.698114 | 2018-12-09T09:41:45 | 2018-12-09T09:41:45 | 137,443,359 | 0 | 0 | null | 2022-11-22T03:01:07 | 2018-06-15T05:08:15 | Python | UTF-8 | Python | false | false | 51 | py | #default_app_config = 'MainApp.apps.MainappConfig'
| [
"manyamraghuram@gmail.com"
] | manyamraghuram@gmail.com |
5eb44788937ca1fbf4a8a624dde9701a7a41231b | 8ac22dadac75a6968209997eae693db312deeef3 | /tenant_customer/__init__.py | 108c3893fe1910b15d16abd89dfadfd2b7dfad02 | [
"BSD-2-Clause"
] | permissive | smegurus/smegurus-django | 9b7c420d35806850da7e3ce66cffccfbc263bea2 | 053973b5ff0b997c52bfaca8daf8e07db64a877c | refs/heads/master | 2022-11-29T08:43:43.596459 | 2019-01-09T01:47:03 | 2019-01-09T01:47:03 | 159,753,141 | 1 | 0 | BSD-4-Clause | 2022-11-22T01:37:38 | 2018-11-30T01:52:03 | HTML | UTF-8 | Python | false | false | 65 | py | default_app_config = 'tenant_customer.apps.TenantCustomerConfig'
| [
"bart@mikasoftware.com"
] | bart@mikasoftware.com |
54b620345c53ba0b5b2b5bdff024aa2eff3d165c | 94c050f223ca8b6bb84154d742a532b6b8e6a608 | /backend/domain_auth/models.py | 316bdb7ad6eb4bfba83cf8c9afeea7b0755d4b50 | [] | no_license | AryamannNingombam/Webloom-Task | 83c38cd72f62d9d5ec613f7c854056e013fdd205 | cdbe4e664c96c4d9a55159ce9a1ca2e61f4efd53 | refs/heads/master | 2023-07-14T14:46:25.820728 | 2021-08-27T10:59:24 | 2021-08-27T10:59:24 | 397,211,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
# this model is there to check if the user
# has verified his account or not, if not, he cannot log in
# . an email is sent to him to verify his account
class UserVerified(models.Model):
id = models.AutoField(prim... | [
"aryamannsingh9@gmail.com"
] | aryamannsingh9@gmail.com |
1c29c68135ad71f0956060a5adc6f9ee554ac33e | 284a2d79bb38a9f1a87f429300d10f0458231667 | /zoo.py | 0ce741bde0e8468e25e55ed29ec7b1566fb743ff | [
"MIT"
] | permissive | tollefj/ABSA-PyTorch | 69dca912eea28563a98477883109dff0682ce40d | a88c08a0f1161031fd2e4f7231e079385e4b8680 | refs/heads/master | 2022-09-06T07:59:04.649378 | 2020-06-04T10:41:31 | 2020-06-04T10:41:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | from models import LSTM, TD_LSTM, IAN, RAM, TNet_LF, LCF_BERT, AEN_BERT
import torch
models = {
'lstm': LSTM,
'td_lstm': TD_LSTM,
'ian': IAN,
'ram': RAM,
'tnet_lf': TNet_LF,
'aen_bert': AEN_BERT,
'lcf_bert': LCF_BERT
# default hyper-parameters for LCF-BERT model is as follws:
# lr: ... | [
"tollefj@gmail.com"
] | tollefj@gmail.com |
1139cbb6126257f41ecf599562d900110ee97fa1 | 7ac0577053bbb8cf83a9d5feb4c7d0b325a2dd28 | /zip、lambda和map.py | d99f276d8eab87cc9059c5ecb56ffdf709138f56 | [] | no_license | QiangBB/python_learning | 1007aa9807fbe4a7f2ddc5f843e9c3290581ef21 | 573378070b28ea057a413f75b64e56bf61b7cef9 | refs/heads/master | 2020-06-20T13:17:49.190903 | 2019-07-16T06:34:37 | 2019-07-16T06:34:37 | 197,134,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | #zip
a=[1,2,3]
b=[2,3,4]
print(list(zip(a,b)))
for i,j in zip(a,b):
print(i,j)
#lambda
def fun1(x,y):
return x+y
print(fun1(1,2))
fun2=lambda x,y:x+y
print(fun2(1,2))
#map
map(fun1,[1],[2])
print(list(map(fun1,[1],[2])))
| [
"752865241@qq.com"
] | 752865241@qq.com |
8dafbf450ae3b49c12a5ec6091ee4839c11488fa | f3aebc85f9d001226207900c6320c3ce9b1e96e2 | /ROS_Tuts/Tut3_ROS_Service/src/add_two_int/scripts/add_two_ints_client.py | eb1eea7cb4dd42b6127f9df8a2b91e78f27f7297 | [] | no_license | m-loay/ROS_Tutorials | 0f3f006c8e4c24d7f52409404214ae10b4e31dbe | 3f376eee3b85849b82d73ddb87560ef1c2cf5730 | refs/heads/main | 2023-04-27T19:50:28.054313 | 2021-04-30T03:06:33 | 2021-04-30T03:06:33 | 349,783,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/usr/bin/env python3
import rospy
from rospy_tutorials.srv import AddTwoInts
if __name__ == '__main__':
#select service name
nodeName = "add_two_ints_client"
#select service name
serviceName = "/add_two_ints"
#Init Node with its name
rospy.init_node(nodeName)
#Send a Log msg in termi... | [
"mohamed.loay.ali@gmail.com"
] | mohamed.loay.ali@gmail.com |
0b6b413ca12cd9ea166c27c6d69de41cbdbbae3c | 021ba3c7a50090deb289ae6d592e36e7edf369f3 | /open_parser/search.py | e3f6fb5da1e95449d24afe2d111e7f39a040bc80 | [
"BSD-3-Clause"
] | permissive | nikitcha/open_parser | b23dc2782c666bb9e29796d665c6f1467aaff9f3 | 0716a4938715856493ef213446d7e69c84a4c2ea | refs/heads/main | 2023-09-04T10:40:21.442405 | 2021-10-22T14:18:07 | 2021-10-22T14:18:07 | 415,002,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | import sys
from open_parser import Biorxiv, Nature, PNAS, PLOS, RoyalSociety
engines ={'biorxiv':Biorxiv, 'nature':Nature, 'pnas':PNAS, 'plos':PLOS, 'royal_society':RoyalSociety}
def search(term, journal):
jname = journal.lower()
if jname in engines:
parser = engines[jname]()
parser.search(term... | [
"nikitcha@yahoo.com"
] | nikitcha@yahoo.com |
6b93c25a26b7b34f934e5ad0a9bb905b0bbda736 | 3b9e1f87b68f2859fb38dda8cd0f95761a5e8c74 | /issubstring.py | 2325208bcac41effc6c5c026cd2a840179838cb3 | [] | no_license | Bhavdeep21/hacktoberfest2021 | ce36178e556305b974445343450e5cea392add9c | c9890c4464bf0d1cd91a78e41d58c9b1317f41c2 | refs/heads/main | 2023-08-24T13:27:54.822998 | 2021-10-30T11:28:55 | 2021-10-30T11:28:55 | 422,652,823 | 0 | 1 | null | 2021-10-30T11:28:56 | 2021-10-29T17:02:02 | C++ | UTF-8 | Python | false | false | 650 | py | # a string is substring of other.
# Returns true if s1 is substring of s2
def isSubstring(s1, s2):
M = len(s1)
N = len(s2)
# A loop to slide pat[] one by one
for i in range(N - M + 1):
# For current index i,
# check for pattern match
for j in range(M):
if (s2[i ... | [
"noreply@github.com"
] | Bhavdeep21.noreply@github.com |
ec6aeb30c25573caf0925da3c3ed23837c47509c | c5347ba3bbd2f4f2c7eefa50b2be2cdef94fa8d1 | /src/plugin/binkit/functions_match_viewer.py | e51dfe5ede3784977760930618561dbc7c858513 | [] | no_license | ohjeongwook/binkit | ebc1d58db6ff6950a632cbc8f98ce7078475670f | cfd183d5fa2860f78071d35424d55cae8ca80e60 | refs/heads/master | 2022-12-23T16:43:59.812706 | 2020-10-05T01:34:57 | 2020-10-05T01:34:57 | 266,231,657 | 68 | 9 | null | null | null | null | UTF-8 | Python | false | false | 9,088 | py | import thread
import traceback
import idaapi
import idc
import ida_bytes
from PyQt5 import QtGui, QtCore, QtWidgets
from client import *
from Queue import Queue
from threading import Thread
def sync_worker(queue):
syncers = {}
while True:
commands = queue.get()
queue.task_done()
if not ... | [
"oh.jeongwook@gmail.com"
] | oh.jeongwook@gmail.com |
2c4efdd70a087ebee39af990a0fae554ea083000 | 52c990629932dcc5f13b4753af23c7d395bb4b1b | /STOCK/WIG/tests.py | f47315a3f7882846ef334f67f64ccd8b36345ff8 | [] | no_license | Strzelba2/STOCK | 4a0158534cf3a231df59ead0873d1ac50d6b1ee8 | b1904057a40f74f54abd7629fd8726807229c44c | refs/heads/main | 2023-03-14T17:19:04.662137 | 2021-03-21T19:45:08 | 2021-03-21T19:45:08 | 313,441,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.test import TestCase
from .WIG_udate import UPDATE_SCRAP
from .models import CompanyData , Quotes,Wares,WaresData
# Create your tests here.
| [
"artur_strzelczyk@wp.pl"
] | artur_strzelczyk@wp.pl |
077564b3952bc54b073286c6b30b9b5496fcc8eb | 10491a5bcced9a444e20f11de625c0eeac370833 | /JWTConfig.py | 759e9825464fa0f8c8ac2cbfa72b23d523e9d4c2 | [] | no_license | webclinic017/Otacon | 4c5caa48a44f0be3d3ad13d850dbf81cb8b5bbdd | 610f66b5286cb884a65fbea070359c3049af7d75 | refs/heads/master | 2022-04-11T06:44:23.981621 | 2019-06-19T11:15:58 | 2019-06-19T11:15:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | from flask_jwt_extended import (
JWTManager, jwt_required, get_jwt_identity,
create_access_token, create_refresh_token,
jwt_refresh_token_required, get_raw_jwt
)
from flask import jsonify,session
from mongoConnection import MongoDB
from Config import Configuration
import ast
import JsonEncoder as json
impor... | [
"mfaizan@codexnow.com"
] | mfaizan@codexnow.com |
de03b8c94f8b5b3b9f58ebb303e721051a4875f7 | 13909b445f71750b2f59c18d1f8c28625f63d11d | /001_Most Frequently Used Words in a Text/build2.py | 8fba8a6d2aa8d48077e374b9f4c161ccce0019fa | [] | no_license | kaivantaylor/Code-Wars | 26d66ecc741556a6959532ec7528cb2e39779ce5 | d4a2f46159dec818208c643d0dfcced236752c56 | refs/heads/master | 2022-02-15T02:49:53.412692 | 2019-08-31T06:19:01 | 2019-08-31T06:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | import string
def top_3_words(text):
txtsplt = text.split()
#print(txtsplt)
dict = {}
for x in txtsplt:
x = x.lower()
#print(lower_x)
x = x.strip(string.punctuation)
#print(x)
if x in dict:
dict[x] = dict[x] + 1
else:
dict[x] = ... | [
"38149120+speedykai@users.noreply.github.com"
] | 38149120+speedykai@users.noreply.github.com |
853dd81191ac5d776ca0be57819da47923026a97 | 10b04efdf156b7fe6e1ed20f72f21435d1284c78 | /client_errors/urls.py | b584ba45d9fd7856bf21c6191233439cdd148c6d | [
"MIT"
] | permissive | sorensen/django-client-errors | 0b512fef6070053732b4c92a74858c7dbf428bff | 3f60cf863dd358d09eead873d86368b0c97660d5 | refs/heads/master | 2021-01-25T08:54:52.688919 | 2012-08-03T18:34:25 | 2012-08-03T18:34:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py |
from django.conf.urls.defaults import patterns, include, url
_PREFIX = '__error__'
urlpatterns = patterns('client_errors.views',
url(
regex = r'^%s/media/(.*)$' % _PREFIX,
view = 'media'
),
url(
regex = r'^%s/client/$' % _PREFIX,
view = 'error',
name = 'client_... | [
"mail@beausorensen.com"
] | mail@beausorensen.com |
f16b930bc98b0cd76057efb34b5997ae34cc6883 | c2506832377a0b7d68f70fe0b0e9bfc1b784c046 | /reports/open-changesets-by-owner-newbie.py | f77fc7768b6edbb3884056be5e938967c07aa5fd | [
"LicenseRef-scancode-public-domain"
] | permissive | nemobis/gerrit-reports | 44e852c515620d529fa92ca7bb3d828531dd51ab | 84577888454d3e2a1e6979d295bf1fb2db93cf8b | refs/heads/master | 2020-12-24T13:00:14.943350 | 2015-02-02T11:48:49 | 2015-02-02T11:49:27 | 12,793,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | #! /usr/bin/env python
# Public domain; MZMcBride; 2013
import ConfigParser
import os
import sqlite3
import wikitools
config = ConfigParser.ConfigParser()
config.read([os.path.expanduser('~/.gerrit-reports.ini')])
database_name = config.get('gerrit-reports', 'database_name')
wiki_api_url = config.get('gerrit-report... | [
"federicoleva@tiscali.it"
] | federicoleva@tiscali.it |
1d27bbb460fe161649bc2030c097b1b42ea69426 | c00572d792ce674fbdf72f54963bad1e300524e8 | /python/code/diff/diff.py | ac6a6a0572ca436b1697e66fc47c06e0daec1c2e | [] | no_license | lovebugss/notes | 4165a18b7e9a69c418859aa6c40b36911670c6ef | ff5be4cb35a500b1c5b8ee96fb3a033a3e334f12 | refs/heads/master | 2021-07-11T16:25:17.214007 | 2020-07-02T00:15:30 | 2020-07-02T00:15:30 | 160,685,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | """文本对比工具
目前支持 并集, 差集, 交集
Usage:
diff.py <file1> <file2> [-t <type>] [-o <output>]
Options:
filename: 文件名
-t : 类型 ins uni dif
"""
from docopt import docopt
from difflib import Differ,HtmlDiff
import sys, difflib
def read(path):
with open(path, 'r') as f:
return f.readlines()
def m... | [
"renjianpeng@goclouds.cn"
] | renjianpeng@goclouds.cn |
bc687d5bb4cf86f031a3ecd8470bf3c53f0497b8 | 4fd3f6c6ce06199d554101f796c0f6fc7eca074f | /0x04-python-more_data_structures/4-only_diff_elements.py | 383927b3db341ed3619e6a785f0868335cd45a56 | [] | no_license | Joldiazch/holbertonschool-higher_level_programming | 64f453aaf492b5473319a1b5e7e338bc7964fa7b | c9127882ffed3b72b2a517824770adafa63a9042 | refs/heads/master | 2020-09-29T03:12:47.497695 | 2020-05-15T04:05:13 | 2020-05-15T04:05:13 | 226,935,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | #!/usr/bin/python3
def only_diff_elements(set_1, set_2):
return set_1 - set_2 | set_2 - set_1
| [
"jluis.diaz@udea.edu.co"
] | jluis.diaz@udea.edu.co |
9e59a3cd7de02ea03e9b64c87de384f8e393ea5a | 293b12bf3dc8902c904b1ce7740724c4c5f0e7fd | /librapp/librapp/settings_test.py | 20e60ef31b336945b9671b922ac9a39c98d7d1c3 | [] | no_license | rabinutam/librapp_api | 0fb12d8f2e04fa499bf604280daec30ec8496f88 | 3c15bd19ffab5e4c9673f78b310122f48932c2df | refs/heads/master | 2023-01-04T03:22:03.281319 | 2016-07-11T03:48:02 | 2016-07-11T03:48:02 | 62,640,316 | 0 | 0 | null | 2022-12-26T20:14:55 | 2016-07-05T13:46:57 | Python | UTF-8 | Python | false | false | 4,410 | py | """
Django settings for librapp project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# B... | [
"gautam.prabin@gmail.com"
] | gautam.prabin@gmail.com |
fcdbcd844b3f96af28ce889e505fa5cfa7b6bae6 | 4b640f91e6cbfaa8a85b31e513db2acfb951f89b | /dynamic page without database/travello/App/models.py | 5be04be88f6fdf153a31fa25fa98083a872726b0 | [
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | rawanvib/Django | 7558084d500045b954480e503a1b2ff102ad9bee | 0471190897874efb475d1d2ee6680cf23590811a | refs/heads/master | 2023-04-20T16:00:20.798926 | 2021-05-13T05:03:09 | 2021-05-13T05:03:09 | 356,786,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | from django.db import models
# Create your models here.
class Destination:
id: int
name:str
img : str
descrip:str
price:int
offer:bool | [
"vibharawan12@gmail.com"
] | vibharawan12@gmail.com |
17e52a019c6e9ba4667dc4e73fa5a384e804e5d3 | e24b25b92ee5a6041a807bddf35316858544d0b8 | /hw01/templates/ultra.py | b3dfe299056db3fbed74faf5fee48525d1fcafdf | [] | no_license | isa43461/ADA | 970cae4a66b28f744a3615bb7f430c910375cd11 | f66dec6691bdf152a3320443da20a64046b45095 | refs/heads/master | 2022-11-12T05:08:52.137380 | 2020-06-23T23:12:43 | 2020-06-23T23:12:43 | 253,364,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from sys import stdin
def solve(num, n):
ans = None
# ...
return ans
def main():
n = int(stdin.readline().strip())
while n!=0:
num = [ int(stdin.readline()) for _ in range(n) ]
print(solve(num, n))
n = int(stdin.readline().strip())
main()
| [
"noreply@github.com"
] | isa43461.noreply@github.com |
fc9d27bcb01c7fe4e3ef1115a053ef8ac3b732cd | 1925c535d439d2d47e27ace779f08be0b2a75750 | /microsoft/implement_rand10_with_rand7.py | 0f89680adba0923d2798aa8ebf8bb297ca0fc640 | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 736 | py | # Given a function rand7 which generates a uniform random integer in the range 1 to 7, write a function rand10 which generates a uniform random integer in the range 1 to 10.
# Do NOT use system's Math.random().
# Example 1:
# Input: 1
# Output: [7]
# Example 2:
# Input: 2
# Output: [8,4]
# Example 3:
# Input: 3... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
82723bfb1a14e8ec87516d1c338ac304371d2d50 | 4f5d128cdc02d513067c4b55895ab93705ed6b3d | /plugin_manager/launch_window/views.py | 6da9fcdbbcdf6a26138f09314fd87e772140f717 | [
"MIT"
] | permissive | ahharu/plugin-manager | 3e2834ce0e616fe1e8197afbe96ef4a5a1fd6bb9 | 43d5e2c6e25ed8f50eedf7fd876fbc04f75d94bb | refs/heads/master | 2021-01-10T14:53:28.352401 | 2016-10-05T10:30:01 | 2016-10-05T10:30:01 | 47,773,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | from django.views.generic.edit import CreateView, UpdateView, DeleteView
from django.views.generic.detail import DetailView
from django.core.urlresolvers import reverse_lazy, reverse
from django.contrib import messages
from django_tables2.views import SingleTableView
from plugin_manager.core.mixins.views import Multip... | [
"alex.ruiz@scytl.com"
] | alex.ruiz@scytl.com |
a7c6d4cd74e48c1c702c3b7e8fe87d9224d65306 | 22125054e91da837a611ab7e441df7b957ccc550 | /part_1/readable/main.py | 3ec7b593fdd99fb76b5504505b40d1ebe3a5af3f | [] | no_license | ixxnafri/Enterprise-Networking | 9184b77763ab5d3e5426690d6e26cefcee1ac842 | b8c36db172d8983e0a946c86e4db4c73b87a1697 | refs/heads/master | 2020-04-19T21:25:33.377092 | 2019-01-31T01:18:03 | 2019-01-31T01:18:03 | 168,440,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | #! /usr/bin/env python
import pandas as pd
import matplotlib.pyplot as plt
data = pd.read_csv("q1_out.txt",delimiter="|",usecols=[2,5],names=['action','prefix'],dtype={'action':'str','prefix':'str'})
counted = data.groupby(['prefix'])['action'].count().reset_index(name='count').sort_values(['count'],ascending=True)
... | [
"ixz@wirelessprv-10-193-58-164.near.illinois.edu"
] | ixz@wirelessprv-10-193-58-164.near.illinois.edu |
c5bc8947d0baa64518eee129fd2101da1f01cf22 | c4b813eca5045d636cd2bea0f41960904e5bc3b3 | /using_asyncio/chapter03/05future.py | f22f298ba89c44d76f8a59802f3744edf9ec22c5 | [
"MIT"
] | permissive | renyalvarado/Using-Asyncio-in-Python---Exercises | 21ae336cd016f57f0c7b4a146656dea7f9f26d68 | f558eb72fd30ed88aa8ccf88c2b601bd7c3995dc | refs/heads/main | 2023-04-18T13:06:43.030345 | 2021-04-30T20:56:40 | 2021-04-30T20:56:40 | 341,087,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | import asyncio
async def main(f: asyncio.Future) -> None:
await asyncio.sleep(1)
f.set_result("I have finished.")
loop = asyncio.get_event_loop()
fut = asyncio.Future()
print(f"fut: {fut.done()}")
loop.create_task(main(fut))
loop.run_until_complete(fut)
print(f"fut: {fut.done()}")
| [
"renyalvarado@gmail.com"
] | renyalvarado@gmail.com |
e1689a0347c11a71ab603021ca919b53a381eec6 | 8ba51848f957ff090d18956157cccba7a94f0f27 | /simulateCircuitsScript.py | 813d65de57d4e3b372acd10b2d60fd7d2647f978 | [
"BSD-3-Clause"
] | permissive | achoora/qubit-efficient-entanglement-spectroscopy | 1dba6e48891bfe17d0f7b6922972767b330d9c57 | 9a3bbc178b84ea08b43e76081a3f38864a8bf498 | refs/heads/main | 2023-07-15T17:25:46.919943 | 2021-08-25T20:16:21 | 2021-08-25T20:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,581 | py | """
This file runs simulations of various entanglement spectroscopy circuits using
qiskit and saves and plots the results.
See https://arxiv.org/abs/2010.03080
Authors:
Justin Yirka yirka@utexas.edu
Yigit Subasi ysubasi@lanl.gov
"""
"""
This file is an example of how to use the module entSpectroscopy.py.
Most of t... | [
"noreply@github.com"
] | achoora.noreply@github.com |
fc27042eaae21fea6ee015e954980fd672a2c584 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.11.40/8/1569575464.py | 03f7325643668c7c922036efc5b29701c3522051 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | import functools
import typing
import string
import random
import pytest
class Leaf0:
def __init__ (self, value):
self.value = value
class Node0:
def __init__ (self, left, right, value=None):
self.value = value
self.left = left
self.right = right
## Lösung Teil 1.
def Leaf(Leaf0):
def __init... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
f0b978319c8d6d217612f9f4b4e7602292c72ea1 | 3a0a437b8b9ec11a6852bd75c6305f63463183db | /base/excepts.py | 68228285c23d8ec85c6566ca68feac8b2aa8c322 | [] | no_license | vanshin/mss_core | 2ca827a48d670c6ec52a96ae919716d9d624250a | 83e9c0792860654e4f863e96dcb3bff464c7c3b6 | refs/heads/master | 2021-06-25T12:09:23.594977 | 2019-04-19T04:54:37 | 2019-04-19T04:54:37 | 88,000,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | class BaseError(Exception):
def __init__(self, code, msg):
self.code = code
self.msg = msg
class ParamError(BaseError):
def __init__(self, msg='参数错误'):
BaseError.__init__(self, '4001', msg)
self.msg = msg
class ServerError(BaseError):
def __init__(self, msg='服务错误'):
... | [
"kfx721@hotmail.com"
] | kfx721@hotmail.com |
47a9b1d27f0c09c17766ed65797f6e07b8e706b2 | 20fda4969798cfacd45904e3d2a39520ef4798e3 | /Talker.py | 92177df1399ad8ee8a55205622c4de6a0481b00d | [] | no_license | pilad0hwtts/Hakaton_AnaSantin | 987bda5370a240f29f8077c1e51258d8fef85332 | df57bcba5675856aa8c091e5f1fcc1ffe804a133 | refs/heads/master | 2020-04-08T01:32:06.254134 | 2018-11-24T07:33:03 | 2018-11-24T07:33:03 | 158,898,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | import random
class Talker():
def __init__(self):
self.message = ""
self.helpNeeded = False
self.denied = False
self.messageList = ["Попробуй выпить воды", "Сделай несколько глубоких вдохов", "Выйди на улицу и подыши свежим воздухом"]
self.currentCountToNewAdvice = 0
d... | [
"pilad0hwtts@yandex.ru"
] | pilad0hwtts@yandex.ru |
8c529afc2e397516fb9ea02350c43786e5f6cf38 | 4dd9c9d1ff9e93c1d61251e59969fea3b4b2b243 | /utils/test/test_BitWriter.py | 812788bec6fcab09cece34b8b30368bd2a6db3a6 | [] | no_license | wildmb/pdfproto | 674685bc5fccb24ef7ccc655c51d5347ded6740b | 45aec1280ded5d492781772f8bd09555f082a97c | refs/heads/master | 2021-01-01T17:16:02.328742 | 2013-05-14T04:02:53 | 2013-05-14T04:02:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | #!/usr/bin/env python
# standard library imports
import random
# third party realted imports
import pytest
# local library imports
from pdfproto.utils.BitWriter import BitWriter, BitWriterError
class TestBitWriter:
def _rand_data(self, data_len):
return map(lambda _: random.randint(0, 255), xrange(da... | [
"yu.liang@thekono.com"
] | yu.liang@thekono.com |
b38f73829c9287f18fdff9690765e16ee7d82575 | ad5b63cd791a75ea4104628497e6c61ba4c38dde | /Medium/largestDivisibleSubset.py | 22af70dda89fb3bd2c1f02c4a8b98d250319421d | [] | no_license | tranphibaochau/LeetCodeProgramming | 81f7d985ea5c3d4f36dcc4cfd7d6dc6bbc470751 | 22881c43c9acd206803b2ada0ea5b52d5816f94d | refs/heads/master | 2022-12-09T11:47:52.523064 | 2022-11-28T22:22:31 | 2022-11-28T22:22:31 | 228,126,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | class Solution(object):
def largestDivisibleSubset(self, nums):
if len(nums) == 0:
return []
EDS={}
for i, n in enumerate(nums):
EDS[n] = [1, i]
nums.sort() #sort the list, takes O(n.log(n))
largest = 1
max_n = nums[0]
for i, n in enume... | [
"tranphibaochau@gmail.com"
] | tranphibaochau@gmail.com |
56b31469f1e6aca7e3c73ce6778ea1b9eb222d08 | 2058cf7a85076745b3b0f0fe18165abe006d9d8c | /mesh.py | 3aad572ad1d0784bd09638faaeb9ba36b047dab1 | [] | no_license | skyfalldec99/xiaozhumao | 9f62970facea9e72f7bfba4fd94ab9c113d19c4f | f019431e503f48fcec299bf30822c20b87850a81 | refs/heads/master | 2020-12-13T23:26:03.263991 | 2020-01-17T14:39:53 | 2020-01-17T14:39:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | import meshio
import os
import easygui as g
import numpy as np
def gettxt():
title = g.msgbox(msg="选择的存放节点和单元信息文件的文件夹为",title="hjx有限元程序",ok_button="OK")
file_path1=g.diropenbox(default="*")
print('选择的存放节点和单元信息文件的文件夹为:'+str(file_path1))
c=str(file_path1)+'\\eles7.txt'
d=str(file_path1)... | [
"noreply@github.com"
] | skyfalldec99.noreply@github.com |
7164ffb11701800d47c326e3f9b8921d3ebf3fe3 | 6fbdfacc22a31c805687d937177a0f8d1c010acc | /towhee/engine/pipeline.py | 8adbd698f5dbbe5f7755af4f4855b63183d27103 | [
"Apache-2.0"
] | permissive | claireyuw/towhee | 79a94c346969f80371d02e6469941091c775ae11 | 9debfd92ff4a946f67b22fa8a5f99b5b1e1a2f8b | refs/heads/main | 2023-08-05T08:45:04.694405 | 2021-09-17T11:19:48 | 2021-09-17T11:19:48 | 407,728,256 | 1 | 0 | Apache-2.0 | 2021-09-18T01:58:14 | 2021-09-18T01:58:13 | null | UTF-8 | Python | false | false | 3,173 | py | # Copyright 2021 Zilliz. 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 applicable law or agree... | [
"noreply@github.com"
] | claireyuw.noreply@github.com |
dfafd504fae4b05424e5b3f67f5709f7c631bad4 | 44f89fec54a8a8a87a77c3102eac84787b61703e | /djangoApp/asgi.py | bb0599fd36cb32172b5162d8720bc5a179e59428 | [] | no_license | kashyapthakkar/Wisdome-Pet-Medicine-Django | 89e51299b18535484934d79f744e60831f048564 | 6e295da4a402230498e564f11fb4886a430c9195 | refs/heads/master | 2022-04-10T00:42:21.417163 | 2020-03-27T01:12:44 | 2020-03-27T01:12:44 | 250,409,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
ASGI config for djangoApp 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefaul... | [
"noreply@github.com"
] | kashyapthakkar.noreply@github.com |
cc311648169c4a5d06d4625c3ead1b2421359e8b | e89d68ded29b1ffabefeec2cc0e5c437fd1d3572 | /recipes/migrations/0003_recipe_videofile.py | 80a6693965dd0b68ec7eb10efa20256b421d5312 | [] | no_license | Jeanca7/choppingboard.ie | 808db82bd1e41e71fbebf6a22b97a6abb7807e13 | 0eebe35582e5b8d7b491865a412ebb98433ee15c | refs/heads/master | 2022-12-10T08:33:45.261560 | 2019-03-05T11:37:22 | 2019-03-05T11:37:22 | 159,159,817 | 0 | 1 | null | 2022-12-08T01:19:17 | 2018-11-26T11:37:39 | JavaScript | UTF-8 | Python | false | false | 422 | py | # Generated by Django 2.0.8 on 2018-11-29 10:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recipes', '0002_remove_recipe_video'),
]
operations = [
migrations.AddField(
model_name='recipe',
name='videofile',
... | [
"jsepulvedadominguez@gmail.com"
] | jsepulvedadominguez@gmail.com |
7e4e28d2c13d17fdd64f8dd33933b84f8a9c95db | cbcdf195338307b0c9756549a9bffebf3890a657 | /django-stubs/core/cache/backends/base.pyi | 52f2910b56950d0d0b50af70cb6a198f97a8879f | [
"MIT"
] | permissive | mattbasta/django-stubs | bc482edf5c6cdf33b85005c2638484049c52851b | 8978ad471f2cec0aa74256fe491e2e07887f1006 | refs/heads/master | 2020-04-27T08:38:22.694104 | 2019-03-06T09:05:08 | 2019-03-06T09:05:24 | 174,178,933 | 1 | 0 | MIT | 2019-03-06T16:18:01 | 2019-03-06T16:18:00 | null | UTF-8 | Python | false | false | 2,590 | pyi | from collections import OrderedDict
from typing import Any, Callable, Dict, List, Optional, Union
from django.core.exceptions import ImproperlyConfigured
class InvalidCacheBackendError(ImproperlyConfigured): ...
class CacheKeyWarning(RuntimeWarning): ...
DEFAULT_TIMEOUT: Any
MEMCACHE_MAX_KEY_LENGTH: int
def default... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
0165d25c1c0c68a71343c15d575f22e270017e69 | e29734c2b3543a05a28b6bc460c3248ea37aaf5c | /apps/course/migrations/0015_auto_20190424_1717.py | 36961cbabe8320fc898752c336f25bbec6d02e5d | [] | no_license | simida0755/PopularBlogs | fda6dbe06751dde013ba57f73c708fd7106a49ee | 3a86989232206d0727223306c0e2d2c62d35fa9b | refs/heads/master | 2020-05-21T15:54:09.853341 | 2019-05-13T02:15:28 | 2019-05-13T02:15:28 | 186,101,555 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generated by Django 2.0.2 on 2019-04-24 17:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('course', '0014_auto_20190424_1716'),
]
operations = [
migrations.AlterField(
model_name='course',
name='image',
... | [
"simida027@163.com"
] | simida027@163.com |
77f2701c9a194550da4676ee6d1b88a87d897bc8 | 3a53855cba33cd0d4ecb53bfe7a0b5e7d393e045 | /org_tree/urls.py | f2916a8fd4a800a262dc872d1bbd41c8baef65b5 | [
"MIT"
] | permissive | drogina/orgtree | ff6459329a2a52312c8174b692fb7c2439892fc0 | 4f159bdb3d7f88f1085cba27266c9f5fb94e3a5b | refs/heads/master | 2021-05-09T04:49:23.967560 | 2018-02-07T15:41:30 | 2018-02-07T15:41:30 | 119,288,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | from django.conf.urls import url, include
from rest_framework import routers
from api import views
router = routers.DefaultRouter()
router.register(r'employees', views.EmployeeViewSet)
urlpatterns = [
url(r'^', include(router.urls)),
]
| [
"osxserver@test.com"
] | osxserver@test.com |
82bbbe9b40505d1dc9a8185d84f30a264647c3a4 | 6c90a52d5be46fe4bd920acef07b2e53d2e4b42c | /runner.py | 52b14e24661e02f9b9948a2cb41441de6ec05b45 | [] | no_license | amoretti86/supervind | fb3f335f0400011af937fc0e5d29e98688ed885c | 6444b88acf0c51e32b54206619cb6bcb438bdd26 | refs/heads/master | 2021-04-26T23:25:05.347404 | 2018-03-05T04:58:46 | 2018-03-05T04:58:46 | 123,989,516 | 0 | 0 | null | 2018-03-05T22:55:18 | 2018-03-05T22:55:18 | null | UTF-8 | Python | false | false | 12,926 | py | # Copyright 2018 Daniel Hernandez Diaz, Columbia University
#
# 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 applicabl... | [
"dh2832@columbia.edu"
] | dh2832@columbia.edu |
1525d9b4f6ff4a840598d8256cd0387f45f3099c | df17ab9d9d931c36a7aa23d5f365ad9459538d05 | /quiz01_answer/A.py | 1ee132843768cd04d201d012bb7c898b54515fab | [] | no_license | itsss/SASA_OOP | 1cdec9150e27ef92e5fcd7292726c66d785b6cef | 1b63fefef631ef869f3ca93c6c952f2fa59f014b | refs/heads/master | 2020-03-27T01:17:39.841618 | 2018-11-07T05:11:54 | 2018-11-07T05:11:54 | 145,697,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | '''
문제 A: [PYTHON] N개의 정수를 입력 받아, 역순으로 출력하기
사용자로부터 N개의 정수를 띄어쓰기로 구분하여, 역순으로 띄어쓰기로 구분하여 출력하시오.
입력
N개의 정수가 띄어쓰기로 구분되어 입력됨.
출력
N개의 정수가 역순으로 띄어쓰기로 구분하여 출력.
입력 예시
1 2 3 4 5
출력 예시
5 4 3 2 1
'''
a = list(map(int, input().split()))
a.reverse()
for i in range(len(a)):
print(a[i], end=' ') | [
"itschool@itsc.kr"
] | itschool@itsc.kr |
b4c03ba1f9e19aba9a78c79a81a3245394c1b6f4 | f31138ffa1a509bd8d65f276f0ab9f4c270bb719 | /arya_backend/routers/upload.py | ddedad6325f92aee864d0d38fdbe2dbdd5ed24b9 | [] | no_license | rychanya/arya_backend | abd032899c81b2d775448eb507466efbc2c159e6 | 24b13f796ae4f7e60abc05bc75a1314093c6a9f9 | refs/heads/master | 2023-08-24T12:39:41.002150 | 2021-08-05T22:36:01 | 2021-08-05T22:36:01 | 368,568,176 | 0 | 0 | null | 2021-08-05T22:02:49 | 2021-05-18T14:51:12 | Python | UTF-8 | Python | false | false | 1,020 | py | from bson.objectid import ObjectId
from fastapi import APIRouter, BackgroundTasks, Security
from arya_backend.db import upload_QA
from arya_backend.dependencies import get_current_user
from arya_backend.models.auth import User
from arya_backend.models.upload_QA import Payload, Upload
from arya_backend.parser import pa... | [
"rychanya@gmail.ru"
] | rychanya@gmail.ru |
d37a597b320a15c5c87894ea94cac78585063d3e | a11a5cf77b160bb968442bf59a542a2eb30af755 | /mooniverse/urls.py | 55aa96f85678c6c5d2d3785e8bfc2431673ce4bf | [] | no_license | kevinmarceloph/mooniverse-proto | a093ffa265b131154696b5ba5bcb96f2628906bb | 0771de0a6b8381dc20a46d36edc79c9d78926835 | refs/heads/master | 2016-09-05T10:26:01.086778 | 2015-01-26T00:45:09 | 2015-01-26T00:45:09 | 29,838,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | from django.conf import settings
from django.conf.urls import patterns, include, url
from django.conf.urls.static import static
from django.contrib import admin
admin.autodiscover()
urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) + patterns('',
url(r'^dj-admin/', include(admin.site.url... | [
"kevin@marcelo.ph"
] | kevin@marcelo.ph |
3082426d6af77afdbb12ae27aa6ad62c7a17533f | 5321e51ef751ff443cd2016585541afe4cba45a3 | /shop/admin.py | e7c4047e3ea3eb4ece57b07bcf5c3bc028795aaf | [] | no_license | kang-hyun/onlineshop | 853d6864454263e1634a6ede5cac7901eca64c26 | 809c82b1aa838df8c43539f714da8208b0aa0640 | refs/heads/master | 2023-05-14T13:43:47.337140 | 2021-05-25T04:55:02 | 2021-05-25T04:55:02 | 370,564,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | from django.contrib import admin
from .models import *
# Register your models here.
class CategoryAdmin(admin.ModelAdmin):
list_display = ['name','slug']
prepopulated_fields = {'slug':('name',)}
admin.site.register(Category, CategoryAdmin)
class ProductAdmin(admin.ModelAdmin):
list_display = ['name','slu... | [
"gusrn8959@naver.com"
] | gusrn8959@naver.com |
38ce8da96e7d15f553c74ea7daf37229603d5bb9 | 415bc146c18c339e11800fc14172146d25ee3685 | /fcc-api/opif-file-manager/test/test_download_api.py | 71998fc956cf7c2bbf55108c8f28cfd76472d971 | [] | no_license | ngrayluna/deepform | 901af90db5ed22e3b26d4f34bb348427c9e080da | acb57a0ab529fe9e2251c9dd29763f912515745b | refs/heads/master | 2021-04-23T00:54:51.440736 | 2020-05-03T01:10:16 | 2020-05-03T01:10:16 | 249,885,245 | 0 | 0 | null | 2020-03-25T04:16:25 | 2020-03-25T04:16:25 | null | UTF-8 | Python | false | false | 912 | py | # coding: utf-8
"""
OPIF Manager API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.9.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
impor... | [
"daniel.fennelly@gmail.com"
] | daniel.fennelly@gmail.com |
625c6de37d103930bacb03c6a8b19227b91476c9 | af0f9ecc34551da6db81722c76b2470f297599d8 | /luko_ws/src/speech_recognition/src/mic_array.py | c7388ca3ed0232da4e692e2b3b66aa8300af8dec | [
"Apache-2.0"
] | permissive | roastedpork/luko | 5997c6c53431d5d01c9c5a84609518189667c12c | e4c780f55a0329a13f37bb996a8253c83e8c80c0 | refs/heads/master | 2021-09-06T17:17:01.712839 | 2018-02-08T21:33:56 | 2018-02-08T21:33:56 | 108,414,121 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,880 | py | import pyaudio
import Queue
import threading
import numpy as np
from gcc_phat import gcc_phat
import math
import wave
SOUND_SPEED = 343.2
MIC_DISTANCE_6P1 = 0.064
MAX_TDOA_6P1 = MIC_DISTANCE_6P1 / float(SOUND_SPEED)
MIC_DISTANCE_4 = 0.08127
MAX_TDOA_4 = MIC_DISTANCE_4 / float(SOUND_SPEED)
class MicArray(object):
... | [
"al2114@ic.ac.uk"
] | al2114@ic.ac.uk |
2b9bee86ebd1b08f2a0f0400abf395c09608c7e8 | 5de3f612df0dbda712b39403dbafb0617e597651 | /build/pal_behaviour_msgs/catkin_generated/pkg.installspace.context.pc.py | 8706a70930366093c2aaea8520ef1c40fd260a4a | [] | no_license | AdriiTrujillo/tiago_public_ws | 1bd62d51c2eb694d07db83738f7bebd582d8126c | 6eaeabd1ec177df837b81fd9f42887318128766b | refs/heads/main | 2023-04-03T13:09:09.749190 | 2021-04-01T10:05:43 | 2021-04-01T10:05:43 | 350,026,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs;actionlib_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') ... | [
"adrii.trujillo@gmail.com"
] | adrii.trujillo@gmail.com |
019289dc74206da27191b5df98bffab987e960b5 | 838830ebb91be6baaf0e79eaea7bf1b4e0513f17 | /put_user_entry.py | 333dd9314bc90c61d2d26ed71f7cc13222cdbff4 | [] | no_license | mgrechukh/nssdb-master | 9c92d8b0685c2fc45051e0dedc0f368640db33c8 | aacbca4a2c0fe64d9db0d13ce7980d1eb0480f5a | refs/heads/master | 2021-01-17T16:41:21.953547 | 2016-07-27T23:00:43 | 2016-07-27T23:00:43 | 63,964,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | #!/usr/bin/env python
# templates
passwd="%s:x:%s:0::/home/%s:"
shadow="%s:%s:17004:0:99999:7:::\x00"
# proof of concept: create files suitable for libnss-db from scratch by given password and username
import bsddb3
from passlib.hash import sha512_crypt
def useradd(_n, uid, name):
dbpwd = bsddb3.btopen("passwd.db... | [
"mgrechukh@satelliz.com"
] | mgrechukh@satelliz.com |
7a7b7ac0f8c14cc1a4756aa69a85c707f0d0cb51 | 2826bdf11463b199f20be351f514bcb16f35d04e | /.history/ftp_20210407055256.py | b44e9d312cd6276dfc7c23b78b965740f32bf6a1 | [] | no_license | Roarcannotprogramming/Sec_Client_Server | 9efdb7e4c3e729cd6b5052b0ca0e23c14459ebc0 | 38f491e0e643e372c546eca73f9cf16c36513568 | refs/heads/master | 2023-04-11T12:40:12.780834 | 2021-04-17T15:53:47 | 2021-04-17T15:53:47 | 353,070,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,984 | py | import socket, ssl, os, sys
"""
00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
0x00 | version | hb | request | unused | path length |
0x04 | ... | [
"z1991998920@gmail.com"
] | z1991998920@gmail.com |
73211ed950fbe7d9cfd91911fe33abe1ca433104 | 8dbb928b8ef4c92f3c9b12ebbe2412594f737df1 | /disco_aws_automation/disco_alarm.py | 5953df3890087ebe44923d69b2c23d7ae2971a2d | [
"BSD-2-Clause"
] | permissive | Angakkuit/asiaq | f2ccdf7a262c6311c94026160d9d041769003328 | f6c19d3784a0e43733eef5bbd04d908870a2ec27 | refs/heads/master | 2021-01-24T22:27:31.690862 | 2016-03-24T02:33:06 | 2016-03-24T02:33:06 | 54,143,584 | 0 | 0 | null | 2016-03-17T18:52:37 | 2016-03-17T18:52:37 | null | UTF-8 | Python | false | false | 3,411 | py | '''Contains DiscoAlarm class for orchestrating CloudWatch alarms'''
import logging
from boto.ec2.cloudwatch import CloudWatchConnection
from .disco_sns import DiscoSNS
from .disco_alarm_config import DiscoAlarmConfig
from .resource_helper import throttled_call
# Max batch size for alarm deletion http://goo.gl/vMQOr... | [
"isukhanov@wgen.net"
] | isukhanov@wgen.net |
5be0509d53a356e848c58073847ec594a6815bd9 | 96287732427a69744be3cd5501e78403ec770429 | /TestCases/S3/output/strcmp.tac | 1ccb0714b7fa7cc60e85c78b284af14236dafb6e | [] | no_license | darknessnone/decaf_PA3_2018 | f853f63038adfe288ac838f3f603bf51ac683cc5 | 554f13e19d45ecf817f027c110dd2a5df9d85973 | refs/heads/master | 2020-04-08T07:07:54.808332 | 2018-11-28T06:35:23 | 2018-11-28T06:35:23 | 159,128,046 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | tac | VTABLE(_Main) {
<empty>
Main
}
FUNCTION(_Main_New) {
memo ''
_Main_New:
_T4 = 4
parm _T4
_T5 = call _Alloc
_T6 = VTBL <_Main>
*(_T5 + 0) = _T6
return _T5
}
FUNCTION(_Main.compareString) {
memo '_T0:4 _T1:8'
_Main.compareString:
parm _T0
parm _T1
_T7 = ... | [
"noreply@github.com"
] | darknessnone.noreply@github.com |
d952c125838bb94b58e87ab7fe246a91cb0f636e | 0f644cec7bfacd9a680126d63a53dd4e2b3eb7b1 | /networkx/classes/tests/test_graphviews.py | f6e69bd5e29365a2dddbdc997724d497b9f0ff4a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maniacs-oss/networkx | 604df07a2323e5511da597bc162bceea518bfff9 | 4affa3a48bb8d4e4ce8ab0dd73ec1b1a2ae477ae | refs/heads/master | 2021-01-19T00:09:11.614153 | 2017-08-16T20:39:50 | 2017-08-16T20:39:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,787 | py | from nose.tools import assert_in, assert_not_in, assert_equal
from nose.tools import assert_raises, assert_true, assert_false
import networkx as nx
from networkx.testing import assert_edges_equal
# Note: SubGraph views are not tested here. They have their own testing file
class TestReverseView(object):
def setup... | [
"noreply@github.com"
] | maniacs-oss.noreply@github.com |
e221a1d2fe9e2a114d41425d4623d173129c5983 | c3ab0c8014f96c67ce4efb186b35e15e12fd483c | /decagon-pytorch/tests/decagon_pytorch/test_convolve.py | 8d0bdf7b915145600ae27ddd89568ed073c8c1b9 | [] | no_license | yangYlin/decagon-pytorch | 3bff14866ee84d170c0f4f3ffce8e6834d86bb55 | 3e57509efef50ae9d9113e824957585942c81016 | refs/heads/master | 2022-10-13T15:04:21.886411 | 2020-06-12T10:12:58 | 2020-06-12T10:12:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,421 | py | import decagon_pytorch.convolve
import decagon.deep.layers
import torch
import tensorflow as tf
import numpy as np
def prepare_data():
np.random.seed(0)
latent = np.random.random((5, 10)).astype(np.float32)
latent[latent < .5] = 0
latent = np.ceil(latent)
adjacency_matrices = []
for _ in range... | [
"yuuto.0902.toko.mcas@icloud.com"
] | yuuto.0902.toko.mcas@icloud.com |
8f1a593498c67a5f2e79f4e502f58f638ac7aad2 | 75dcd22937caa082524b6a974e1b3734c3b5f4c0 | /CLI_automation_project/aws_cli.py | cae31feb10459b54bd0e4f5104564717fb374761 | [] | no_license | KunalKumarJaiswal/CLI_automation_project | 9b110be860be02c027e7ec31fadbe7d30dedc335 | 1d305ae9b780304c8dbaf38a3a25182fcabc7a57 | refs/heads/main | 2023-01-10T20:57:47.971152 | 2020-10-30T11:54:49 | 2020-10-30T11:54:49 | 310,178,606 | 0 | 0 | null | 2020-11-05T03:17:58 | 2020-11-05T03:17:57 | null | UTF-8 | Python | false | false | 1,776 | py | import os
def load_cmds_aws():
print("""
Press 1 to login using access key
Press 2 to setup EC2 instance
Press 3 to check current EC2 instances
press 0 to exit AWS menu
""")
aws_a=input()
if int(aws_a)==2:
create_ec2()
if int(aws_a)==3:
check_running_ins... | [
"noreply@github.com"
] | KunalKumarJaiswal.noreply@github.com |
d156167ce165ac16bab92f480187ddf3da7430eb | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/b2e3e8c0718142d4cb0387f46cd77c15b67cc1e9-<get_random_string>-bug.py | 9b873176526ac647a2e151598420e0deb76c070d | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | def get_random_string(length=8, choices=(string.ascii_letters + string.digits)):
'\n Generate random string\n '
return ''.join([choice(choices) for i in range(length)]) | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
9d9bec682b8409ccc2d18ac3c64f1c22b5a01199 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2551/60603/312775.py | 3038d6419acf664fc4ed2b489ef7cb65c0727f17 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | def change(a,b):
for i in range(a-1,b):
li[i]=0 if li[i]==1 else 1
def que(a,b):
return sum(li[a-1:b])
n,m = [int(x) for x in input().split()]
li = [0]*n
for i in range(m):
s = [int(x) for x in input().split()]
if s[0]==0:
change(s[1],s[2])
elif s[0]==1:
print(que(s[1],s[2... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
51999790613f281e419c5b219103e0886aa44ba0 | a569c668bd8d1a5e3dbde715bc893300bf0847e5 | /app/worker.py | 76ff8a7f1bed8c7bddf561139a3485a82428b73e | [] | no_license | teopeurt/flask_redis_queue | ac05d8a291e50e68545745639f58254c3e35f8fa | 0f541c3a4b2311b3e2e5fee26fb12969dae77996 | refs/heads/master | 2021-01-10T03:00:27.717150 | 2016-03-21T22:23:54 | 2016-03-21T22:23:54 | 54,426,292 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | import os
import redis
from rq import Worker, Queue, Connection
listen = ['foo']
redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')
conn = redis.from_url(redis_url)
if __name__ == '__main__':
with Connection(conn):
worker = Worker(list(map(Queue, listen)))
worker.work() | [
"don@pigstycoders.com"
] | don@pigstycoders.com |
b0b638794415687755cbdb2be2b4c90db79e1c55 | bc2cdb1e438efaf67131e975ac4db80b4dc43385 | /src/public/message/migrations/0003_pushmessage.py | a4cc7fb3829a923d5a18ec9f447e1971018bd4f1 | [] | no_license | Shadow-linux/ops-for-study | cf4d55409ebc6f27d454bea60886cd154c994484 | 115b567948d25a64e423a6cdc89bc8337896afe2 | refs/heads/master | 2023-01-14T13:35:56.880896 | 2019-09-23T05:01:31 | 2019-09-23T05:01:31 | 209,781,758 | 2 | 0 | null | 2023-01-04T10:55:45 | 2019-09-20T12:08:11 | Python | UTF-8 | Python | false | false | 1,062 | py | # Generated by Django 2.0.1 on 2019-04-17 21:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('message', '0002_auto_20190416_1144'),
]
operations = [
migrations.CreateModel(
name='PushMessage',
fields=[
... | [
"liangyedong@qipeipu.com"
] | liangyedong@qipeipu.com |
1d33194bec7731fe3ff67d062b92dded4e6ce2c0 | e08adb1bdef5426e5756c7739d501b74c926efa7 | /tests/base.py | 327193a7d69bced8a63606b48eca240b931ec96c | [
"Apache-2.0"
] | permissive | sassoftware/python-debpkgr | ba962a09f223b06b283c22485d860f7fb37b322f | 7d2c9a1ce160aeba671dea0825f6f13916e7cb86 | refs/heads/master | 2022-08-29T17:10:05.496937 | 2022-08-25T17:55:02 | 2022-08-25T17:55:02 | 83,701,285 | 7 | 5 | Apache-2.0 | 2019-02-15T15:17:18 | 2017-03-02T16:43:47 | Python | UTF-8 | Python | false | false | 2,104 | py | #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under ... | [
"bc.smith@sas.com"
] | bc.smith@sas.com |
16a9374b8c7244cdc0cd714adb4f32636af432e4 | 68b8aaeb6d2c73a652d4e833e432d041c90bc017 | /scripts/vis_poly.py | 6bbb950dc85ad664894ac7cc7a803ad08fdb6679 | [] | no_license | xibaomo/fx_poly2tri | 96c5c8767f65a8c21c39117a4a224b98f229e666 | 7d8bbed7763697c25f9c40d2a3cbb2844abca4f2 | refs/heads/master | 2020-12-03T14:20:21.987769 | 2020-01-02T09:41:03 | 2020-01-02T09:41:03 | 231,351,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | #!/usr/bin/env python
import matplotlib.pyplot as plt
import pandas as pd
import sys, os
import pdb
def plot_origin_polys():
with open('polys/poly.cli','r') as f:
x=[]
y=[]
for line in f:
line = line.strip()
if line.find('polygon:') >=0:
if len(x) >0... | [
"fxua@gmail.com"
] | fxua@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.