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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ac9bc16c5b9c55548c1e3086c76e5d5c24087f17 | f82c7ca704a45f8abbb2f011373f615d66281a4b | /gl.py | a9edddddc321691beeafeeedb946c00401f73755 | [] | no_license | virtualmonkey/COMGRAPHICS-PROJECT-SR1 | 5ee918316f194685918c18ad4fc6ceb371a14c70 | a42674b41f53c1a78e43fd7af59959b71c245260 | refs/heads/master | 2022-12-22T04:45:29.252327 | 2020-08-31T00:04:42 | 2020-08-31T00:04:42 | 291,558,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,566 | py | from utils.gl_encode import dword, word, char
from utils.gl_color import color
from utils.gl_math import deg2rad, substract, norm, dot, length, cross, V2, V3, inverse, multiplyMatrices, matrixDotVector
from obj import Obj
from math import sin, cos, tan
import numpy
def baryCoords(A, B, C, P):
# u es para la A, v ... | [
"luis212urbina@gmail.com"
] | luis212urbina@gmail.com |
0081531cf06b5fefb7557716aa7af8baf820ea87 | 4d74b68e913d4817f068b84b58cd376b94bb212c | /test_app/service.py | 6054cd2610a0615db9cd6f5f29c8122d5aaf401e | [] | no_license | klsgmbh/semkibardoc | e2971ecbddbaca52b859ee6b22b957bdeb839f0f | 6d73d2c1cc030ca783dc36821c149240fffcc5bf | refs/heads/main | 2023-06-19T04:33:52.623637 | 2021-05-20T11:20:59 | 2021-05-20T11:20:59 | 369,182,794 | 0 | 0 | null | 2021-07-08T10:29:41 | 2021-05-20T11:21:35 | Python | UTF-8 | Python | false | false | 31,131 | py | from typing import Dict
from flask import Flask, json, Response, request, render_template, url_for, flash, redirect, jsonify
from flask_cors import CORS
import pymongo
import datetime
from werkzeug.exceptions import abort
from bson.objectid import ObjectId
from markupsafe import Markup
from typing import Dict, Any, L... | [
"cfillies@hotmail.com"
] | cfillies@hotmail.com |
e7fcb285d53d6f4d65be79067f7513d736747e03 | d29319a750e3ccf34a8042034e5b8b967d351500 | /setup-hdfs-cluster.py | fba2b1d5ee1c0fd82c36a8c1df88fbef4de00570 | [] | no_license | abhikrlalu4/hadoop-automation | d4133cd951e567d3e0e478a6733ee3519ada39d4 | aff5f2d34b98e2b349912027047b0a9b9c9c9260 | refs/heads/master | 2022-12-19T09:14:47.331644 | 2020-10-01T06:09:29 | 2020-10-01T06:09:29 | 198,208,829 | 0 | 1 | null | 2020-10-01T06:09:31 | 2019-07-22T11:19:27 | Python | UTF-8 | Python | false | false | 467 | py | #!/usr/bin/python2
import commands as sp
import cgi
print("content-type: text/html")
print("")
form = cgi.FieldStorage()
nm = form.getvalue("nm")
ns = form.getvalue("ns")
sj = 1
mj = 1
print("<form action='setup-hdfs-ansible.py'>")
while mj <= int(nm):
print("MN {0} : <input name='mip{0}' /><br />".format(mj))
... | [
"noreply@github.com"
] | abhikrlalu4.noreply@github.com |
b8b448ac43197371663a166bf106f253761e0218 | abad591b88d03426459385c9b7264fea8dd76227 | /show/list_format.py | 6f9d8ef810fb077ce31cddf5fc2b6c908a244b36 | [
"MIT"
] | permissive | moChen0607/fbx_sdk_python_sample | 5f1eaf9be58ae3dce2605c96df0a522169cf3cab | 084f178a800711a96ff3fbaa8d1e6ced09bb9536 | refs/heads/master | 2020-12-09T05:34:30.748187 | 2019-11-29T07:31:09 | 2019-11-29T07:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from fbx import *
def list_writer_format(manager):
print('# Writer Format List')
for formatIndex in range(manager.GetIOPluginRegistry().GetWriterFormatCount()):
description = manager.GetIOPluginRegistry().GetWriterFormatDescription(formatIndex)
print(formatIndex, description)
def list_reader... | [
"segur.opus@gmail.com"
] | segur.opus@gmail.com |
fef6b5cbd6467df66736475fcd841be9bc0cc929 | 84c4514c0d9588026f1f203c2d351df226170f75 | /python/itertools/permutations.py | bfacc64c73bf1bbc3b0ce55bba4154f974d6fe6c | [] | no_license | hiromichinomata/hackerrank | eafc1a902353f6bdac508f67cfa7eebdbfb2811f | bffca0f56c92b752706b5a9fb4c814f44ea5d14e | refs/heads/master | 2022-12-01T15:39:25.811250 | 2020-08-08T01:44:10 | 2020-08-08T01:44:10 | 264,445,214 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from itertools import permutations
s, num = input().strip().split()
s = sorted(s)
num = int(num)
for i in permutations(s, num):
print("".join(i))
| [
"git@hiromichinomata.com"
] | git@hiromichinomata.com |
2a367782311033dcdeabc9862217c3edab6d258c | 6e9e6568d1a6f245055d41bd55723f303129481f | /ur5_config.py | 923c34fd4b01189f377d41d672dc17c8cddf7274 | [] | no_license | olivier-stasse/Fast-Robust-ROA | 28ea3038f5474d1b7fa400736382356ecbd6dc61 | a580a337fd53557647ce375168b00cc16ef3af61 | refs/heads/main | 2022-12-30T07:02:08.084965 | 2020-10-21T12:33:42 | 2020-10-21T12:33:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,026 | py | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
import math
import torch
from torch.autograd import Variable
from torch import autograd
import scipy
from scipy.linalg import solve_lyapunov
from scipy.integrate import ode, odeint
from sklearn import linear_model
from sklearn.line... | [
"eberthie@pl521-pro.paris.inria.fr"
] | eberthie@pl521-pro.paris.inria.fr |
9ef3470be5f71f3def8a0a7e2517499cc9ce79cc | 2de81ff580f7f3f6be21295b073319e51e78c187 | /django/firstproject/music/migrations/0001_initial.py | 3e80475a2a31092b270162abe4a22311bb479fbd | [] | no_license | HungSoma/hello | 2f3c8ac7b3acebec41f0d9636c33b3b0ac8d1e9a | a1d0f04af9cc3d219ec959ba4c5665530219b08a | refs/heads/master | 2021-10-07T23:06:47.056813 | 2021-10-01T10:09:03 | 2021-10-01T10:09:03 | 96,621,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-20 17:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateM... | [
"hung.keima@gmail.com"
] | hung.keima@gmail.com |
88debbcbaff7c8e5584e550db2b91aecbf1f0e90 | 3f83f18d399a2a1938792fbb0670657362daa6c5 | /prog18.py | 4545aefc0a43d88ce342934183cd66c1ffc0ab03 | [] | no_license | gangiramya/gangi-ramya | 8afe519ee5f4867b93784f7da5b4034764a4dfb0 | 2f9740774801a9be19799a61c85083fc730d23a5 | refs/heads/master | 2020-03-24T16:47:00.115303 | 2018-09-07T04:40:30 | 2018-09-07T04:40:30 | 142,836,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | lower = int(input(" "))
upper = int(input(" "))
for num in range(lower,upper + 1):
sum = 0
temp = num
while temp > 0:
digit = temp % 10
sum += digit ** 3
temp //= 10
if num == sum:
print(num)
| [
"noreply@github.com"
] | gangiramya.noreply@github.com |
48d288fc03a7305d4c91c7d0cfe0a7ba93bd7d10 | 9248be4c1dea9986fc24c0268fd1c929be5292e8 | /Exercise-6/File2.py | be79fbfac4c077f867b5d1975c59c9f48f3b3499 | [] | no_license | AjayMistry29/pythonTraining | 915e405269fceed14a44250ccb3fb0699ece5fe3 | 9d199c0d9b005f80430bba22c3f2435d1117588b | refs/heads/main | 2023-02-25T01:50:20.961509 | 2021-02-02T01:20:45 | 2021-02-02T01:20:45 | 323,121,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | Print ("Exercise 6 Practice File 2")
x=2
y=3
z= x+y
print ("Sum:", z) | [
"ajay.mistry92@gmail.com"
] | ajay.mistry92@gmail.com |
031bd40aa9a9c28250ccc1192a3f969684984e84 | bbb2924fe4b9fdaa8e62ede06b72ff174c976611 | /srv-kemenn/usr/share/kemenn/kemenn_appserver.py | cf8cffce160c34bf78e1d5873bca25b044036f25 | [
"MIT"
] | permissive | Kemenn/srv-kemenn | 32ba38676af2a620924d61475116df3ca4820998 | 50a0a395d63ea37b5ac703eb2472c31d2f0d510e | refs/heads/main | 2023-07-11T14:09:30.143033 | 2021-08-13T13:30:49 | 2021-08-13T13:30:49 | 394,976,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,847 | py | #! /usr/bin/env python3
#coding: utf-8
import os
import sys
import socket
import select
import threading
import config_manager
import get_remote_mac
from time import sleep
from ast import literal_eval
from datetime import datetime
DEEP_CONFIG = "/etc/kemenn/kemenn"
class KemennServer(threading.Thread) :
""" Il s... | [
"xavier.lanne@gmx.fr"
] | xavier.lanne@gmx.fr |
41a1b9370280f5dc59f8487269267ace974eddbe | 28ee723aeaf1ca70ad81a413c73307df69588709 | /lost_children_backend/settings.py | b3d4303c2b493796040a8b51d49b666ea2552d98 | [] | no_license | armaaar/lost_children_backend | 1d047d27449a27d885a804b6e7b60149ea991ea0 | b010894183cc03c07917b23de14edb661196215a | refs/heads/main | 2023-06-28T11:51:57.153384 | 2021-08-01T16:18:16 | 2021-08-01T16:18:16 | 387,202,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,739 | py | """
Django settings for lost_children_backend project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""... | [
"ahmedrafik_maaar@outlook.com"
] | ahmedrafik_maaar@outlook.com |
16db4fc999d70029f8e94677713d54ff4f1cca36 | f4335e8e7d3010506f570167bbba18156d3a4674 | /stubs/django/core/management/commands/diffsettings.pyi | 1bf6f90fade7e0b8e54afff184eba3267ee5ee24 | [] | no_license | rtpg/typehangar | 133686ea45ad6187b768290aeebda9cbcae25586 | 790d057497c4791a38f9e3e009b07935b4a12f45 | refs/heads/master | 2021-01-19T04:49:17.940793 | 2017-01-16T13:54:14 | 2017-01-16T13:54:14 | 69,260,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | pyi | # Stubs for django.core.management.commands.diffsettings (Python 3.5)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
from django.core.management.base import BaseCommand
def module_to_dict(module, omittable: Any = ...): ...
class Command(BaseCommand):
help = .... | [
"raphael@rtpg.co"
] | raphael@rtpg.co |
f53c34d522ce127ea9ffd7f59b9415003c740850 | a89634f4b861a01200e768430ccb15ff7b9c23be | /lmsclient/external_tool.py | 99bb8e7d3e42656c3831de68d9cf23241fc6422a | [
"MIT"
] | permissive | IllumiDesk/lmsclient | 77867da69a21345fb0bf5f958f3c85f9ee23c00e | b876088fad24c0fc3cfe1a1ac90fcf8d6664755b | refs/heads/main | 2023-04-22T22:52:35.017246 | 2021-05-06T22:59:19 | 2021-05-06T22:59:19 | 364,778,908 | 0 | 2 | MIT | 2021-05-21T04:37:56 | 2021-05-06T03:58:19 | Python | UTF-8 | Python | false | false | 236 | py | import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class ExternalToolException(Exception):
"""Canvas client exception
"""
pass
class ExternalTool:
"""Assignment class
"""
pass | [
"noreply@github.com"
] | IllumiDesk.noreply@github.com |
e468552fe67dcb111020cfc2ebd9623c74e0c240 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03720/s960059730.py | c3987b6c50c512aecd596e019b24702590445f5d | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | import sys, re
from math import ceil, floor, sqrt, pi, factorial, gcd
from copy import deepcopy
from collections import Counter, deque
from heapq import heapify, heappop, heappush
from itertools import accumulate, product, combinations, combinations_with_replacement
from bisect import bisect, bisect_left, bisect_right
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ebc2b2f35a2cdd443a7a0d01c3eabad23b0b996b | 1b6ef3d85b923c3a4361c9e62772e7497e4c21b8 | /qupy/comm/server.py | a4406bc91df13a9932a048789dbc9734b027b0b2 | [
"MIT"
] | permissive | MechaMonk/qupy | 70096bf0fa489bfd06dce4c71c73af79281b2aa7 | 219563523c975d1d5ae2aa47bbd02862c906ab43 | refs/heads/master | 2022-11-21T04:41:46.165475 | 2020-07-27T19:35:19 | 2020-07-27T19:35:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | import threading
import queue
import logging
from qupy.comm import common
from qupy.comm.common import CommBase
from qupy.interface.errors import InterfaceIOError, InterfaceTimeoutError
from qupy.framing.errors import FramingDecodeError
log = logging.getLogger(__name__)
class CommServer(CommBase):
def __init... | [
"marcinbor85@gmail.com"
] | marcinbor85@gmail.com |
22bc39075c47997e273a0e9f9de0cdee35ca1299 | 91f023d744710386c6d2baec138e4a2496ee8969 | /crppdmt/templatetags/selected_option_text.py | 94897729ded18355eb8155bb0e227cf8a4b80778 | [] | no_license | miquel-corral/crppdmt | 4ae653393e26a55175a5a4f05950a44b262bfc93 | a44088a4476fca96891733a243de414be5952bb0 | refs/heads/master | 2020-05-05T13:13:31.121093 | 2015-11-02T15:08:23 | 2015-11-02T15:08:23 | 34,043,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | #annoyances/templatetags/data_verbose.py
from django import template
register = template.Library()
@register.simple_tag
def selected_option_text(bound_field, field_value):
"""
Returns field's data or it's verbose version
for a field with choices defined.
Usage::
{% load data_verbose %}
... | [
"miquel.corral@gmail.com"
] | miquel.corral@gmail.com |
cc23354f1ac1be52b795119e99c44df6f9b9a574 | 0b793bce2da8c3d09b7956c0672ddbffd46feaed | /hackerrank/algorithm/lonly_integer.py | 49cc044edcb98b61afa115495f50c34b58c36815 | [
"MIT"
] | permissive | knuu/competitive-programming | c6c4e08fb231937d988bdc5a60a8ad6b31b97616 | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | refs/heads/master | 2021-01-17T09:39:02.647688 | 2020-11-07T03:17:22 | 2020-11-07T03:17:22 | 27,886,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from collections import Counter
_ = int(input())
for key, val in Counter(input().split()).items():
if val == 1:
print(key)
| [
"premier3next@gmail.com"
] | premier3next@gmail.com |
e8f56efacae6ebed48b265ae2ae07847dcfaeb1d | 9b87fc7054bedaef1bbfe2842bfca12d5585119b | /nicegui/elements/custom_example.py | ab8af2bcd42916f997d1d55803d71709488c011e | [
"MIT"
] | permissive | TrendingTechnology/nicegui | cb08287c9b0cab7ae1a831ee623a056d8ecdee43 | 68fa24456497683417d2e613ec573673deacd7f7 | refs/heads/main | 2023-06-20T06:11:52.914008 | 2021-07-22T05:09:40 | 2021-07-22T05:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | from .custom_view import CustomView
from .element import Element
class CustomExampleView(CustomView):
def __init__(self, on_change):
super().__init__('custom_example', __file__, value=0)
self.on_change = on_change
self.allowed_events = ['onAdd']
self.initialize(temp=False, onAdd=... | [
"falko@zauberzeug.com"
] | falko@zauberzeug.com |
265aa2233c2e49b62c9acc7e76373be703449296 | a7b1c7fa063066c3cc38911506cde27958fa6117 | /students/migrations/0004_auto_20181024_1150.py | d5841a60ccadd81b39ed13d412cfd78df16ff0c7 | [] | no_license | averdalv/ProjectsReview | b8ce8ce0885201060b74b5568feaa247cd65ca68 | 74880293aa41594bc6f1e6e27c61f8103e61234d | refs/heads/master | 2020-04-08T07:55:02.589077 | 2018-12-16T19:31:05 | 2018-12-16T19:31:05 | 159,156,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # Generated by Django 2.1.2 on 2018-10-24 08:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0003_auto_20181024_0120'),
]
operations = [
migrations.AlterField(
model_name='project',
name='file',
... | [
"averdalv@gmail.com"
] | averdalv@gmail.com |
14a10e55275771b4e74208031a39ad3b4d5c1f3e | 76756c70d3c10f634b28d2ce227375cabd23bfde | /mainFile.py | 649bcf43c03033ecc860cf68b591f1876499576d | [] | no_license | Dirie/phishingDetector | 5c53a2bb93c14335b762d52d0a6dd556f53a3ebb | a6807fc06fabf519bf39729a94d31190b5ea4a25 | refs/heads/master | 2022-11-28T12:20:45.784322 | 2020-08-06T07:21:14 | 2020-08-06T07:21:14 | 285,502,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from PyQt4 import QtGui
import sys
import Login
class phishing(QtGui.QMainWindow, Login.Ui_frmLogin):
def __init__(self, parent=None):
super(phishing, self).__init__(parent)
self.setupUi(self)
self.btnlogin.clicked.connect(self.is_user_empty);
self.btnlogin.clicked.connect(self.is_p... | [
"cali@domain.com"
] | cali@domain.com |
60eb53d197cb183e5bf02a7d83bdb799a2e5481a | 077d6b770db06ff5fe6876de068a5c7bef4ceecc | /summary-subject.py | 5e36b3d5de2290eef752682130a5486c2502a3fa | [] | no_license | colinbitter/supervised-summary-subject | f6763c648c1ff1bc048db471bff861b328cfd513 | 3ef01780676da30677db3d46b1f87bc46182ba11 | refs/heads/main | 2023-08-04T00:07:12.812611 | 2021-09-25T13:10:10 | 2021-09-25T13:10:10 | 410,254,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,401 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.multiclass import OneVsRestClassifier
from sklearn.metrics import accuracy_score
from sklearn.metrics import f1_score
from sklearn.metrics import classification_report
from sklearn.metrics import hamming_loss
from sklearn.metri... | [
"noreply@github.com"
] | colinbitter.noreply@github.com |
0aa1a3cdca7247e50c5dbe1cb01e29717f3189ff | 73b6d21121781ee867adcb3ab64f667db10edc29 | /analysis/GerryFair/examples/test_script.py | 5754ee784d958d1fb000e4458080b73fea6d21f6 | [
"MIT"
] | permissive | lacava/fair_gp | 705638a8a09dacfdba6f58c98b2d2b33e613b6e4 | cab71a895a535e98b4b513817e4499d0ec239f04 | refs/heads/master | 2022-11-01T07:13:13.982976 | 2022-10-27T21:06:03 | 2022-10-27T21:06:03 | 259,475,474 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | import gerryfair
dataset = "./dataset/communities.csv"
attributes = "./dataset/communities_protected.csv"
centered = True
X, X_prime, y = gerryfair.clean.clean_dataset(dataset, attributes, centered)
C = 10
printflag = True
gamma = .01
fair_model = gerryfair.model.Model(C=C, printflag=printflag, gamma=gamma, fairness_d... | [
"williamlacava@gmail.com"
] | williamlacava@gmail.com |
300bbdd5879d53efdcedb5a9b9701e5b1241266e | 512d2096ba1c11b9c69c48d12cc96feb3f49b4b5 | /leetcode/reverse-int.py | 15f96ded1832c5beda7f27ef3f85cae3f205ffc3 | [
"Apache-2.0"
] | permissive | fedusia/python | 989c2e5fd862c8b0bd8f831b656beb43267c7a7f | 3e724c98307891ed9572ad9262e9da5f3179d5a2 | refs/heads/master | 2022-06-05T20:42:51.360974 | 2022-05-27T08:45:01 | 2022-05-27T08:45:01 | 63,549,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | class Solution:
def reverse(self, x: int) -> int:
max_int = 2 ** 31 - 1
if x > 0:
sign = 1
else:
sign = -1
x = abs(x)
tmp = 0
while x % 10 != 0 or x // 10 != 0:
x, r = divmod(x, 10)
tmp = tmp * 10 + r
if abs(t... | [
"fedusia@yandex-team.ru"
] | fedusia@yandex-team.ru |
3c3c941a259019f37b054f445ff9405029d3f447 | 7f9304191e554b361af67dc99e41f70be4f41934 | /sounds.py | a604c1ad1c0bbf8300113168cabec8bb26132284 | [
"MIT"
] | permissive | pnagaraja1/sounds | e7bafa0159d7fbb5cd06fad688dea80d9cca7207 | 21b0c37590bb2530f641bf2e8564d621f0edff72 | refs/heads/master | 2021-01-12T16:42:20.437317 | 2016-10-21T11:06:16 | 2016-10-21T11:06:16 | 71,433,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,322 | py | #!/usr/bin/env python
import time
from slackclient import SlackClient
import os, re
base_dir = os.path.dirname(os.path.realpath(__file__))
player = 'afplay'
text2voice = 'espeak'
sounds_dir = 'sounds'
filetype = 'mp3'
debug = True
bots_channel = 'build'
play_fixed = re.compile("FIXED")
play_cancelled = re.compile("C... | [
"preethi.nagarajan@nationstarmail.com"
] | preethi.nagarajan@nationstarmail.com |
842fe65675c8d70a6d95b0a82127f6d5a2ca2c7d | 392bb7216edb6516ecb363806bdf0cb232410ed1 | /turbgravfilaments/make_vlos_spectra.py | 50281f4ec57c549fca24231e6f6b9c09090fbd20 | [] | no_license | nickolas1/ramses_plot_scripts | 473685f295ce33581c8123da18e84bea9a4d3989 | 997e5ad2c4ef64ac2489c6b87fa0627f71a73aa5 | refs/heads/master | 2020-12-24T18:03:13.505726 | 2014-06-03T10:10:40 | 2014-06-03T10:10:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,123 | py | from __future__ import division
from yt.mods import *
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm
import gc
import sys
import h5py
import shutil
from astropy.io import ascii
from os.path import expanduser
# import ramses helper functions and get fig... | [
"moeckel@Sogdianus.local"
] | moeckel@Sogdianus.local |
3c157eceee38633e2f817d32924baa5ff9a5746f | 97e64bc54b94380ee9efd07aee7b1065a70ab258 | /Quote_pro/Main_apps/migrations/0001_initial.py | 697f4dd70b782149ea57530cfc996f038ce14fd1 | [] | no_license | cserakib/Django-With-Database-Reletion-Project- | 4387054c41c6ed624ec4f3c445f1d50422ed854a | cddf7854b0c8c53a9f8dc0cd242aa5cb9b585f69 | refs/heads/master | 2022-11-16T19:06:44.945702 | 2020-07-16T18:29:42 | 2020-07-16T18:29:42 | 280,230,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # Generated by Django 3.0.6 on 2020-07-16 17:51
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='QuoteCategory',
fields=[
... | [
"cserakib13@gmail.com"
] | cserakib13@gmail.com |
988284c9dece3ec333b6959abcce48647489d76f | 606a7f70a71d51c073af9580b3cc13debbeac986 | /clustering_example/logging.py | 5cfaad8e3b4394ffd2d91d66075caf7ee6fa731c | [] | no_license | Dimkarodinz/clustering_dbscan_example | 6478aba25c7fef26196a684e88ca2497ff5fde62 | 377960b1f50628dc8dec366634a46a09788be62a | refs/heads/master | 2020-03-26T08:12:03.155781 | 2018-08-14T08:22:13 | 2018-08-14T08:22:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | """
"""
import os
import logging
from django.conf import settings
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
log_path = os.path.join(settings.BASE_DIR, 'tmp/logs/clustering_example.log')
handler = logging.FileHandler(log_path)
def log_info(request, data):
user_agent = request.META.get('H... | [
"dimkarodin@gmail.com"
] | dimkarodin@gmail.com |
25e4a10195a5b94ecb830ef0b1d184c9feda747f | 58ffe83eb9828668c13242c6f98238f08655f561 | /app/notebooks/problang/transcript_utils.py | cdb2f5a88761411c4cf30c48af9b83fd05e1dcf8 | [
"Apache-2.0"
] | permissive | DanFu09/esper | f9dcc47cd5677dee8dffb1e066d69332471a0d6c | ccc5547de3637728b8aaab059b6781baebc269ec | refs/heads/master | 2020-04-04T21:31:43.549572 | 2020-01-16T01:14:13 | 2020-01-16T01:14:13 | 156,289,533 | 4 | 0 | Apache-2.0 | 2018-12-14T03:01:02 | 2018-11-05T22:05:07 | Jupyter Notebook | UTF-8 | Python | false | false | 7,054 | py | import numpy as np
import torch
from torch.utils.data import Dataset
import requests
from query.models import Video
from timeit import default_timer as now
from esper.prelude import pcache
import random
SEGMENT_SIZE = 200
SEGMENT_STRIDE = 100
def video_list():
r = requests.get('http://localhost:8111/videos')
... | [
"wcrichto@cs.stanford.edu"
] | wcrichto@cs.stanford.edu |
6851fd9b652a85c7a97f33750b2111ce66d7bbd5 | 8e9178909a692b1e66359e9e781eb3305b3b396c | /Send Reading List to Instapaper/Send Reading List to Instapaper.scptd/Contents/Resources/Python/instapaperlib/instapaperlib.py | ab0282132c0386aba39c580064720f5421a2dcaf | [
"MIT"
] | permissive | treese/ReadingListReader | d0cb5360f190d878b505068d3be3aeece3420102 | d9e56ec2225400994706ad9c2e9d4815fe4f509d | refs/heads/master | 2020-09-04T21:16:21.820076 | 2019-11-05T20:08:17 | 2019-11-05T20:08:17 | 219,894,121 | 0 | 0 | MIT | 2019-11-06T02:23:38 | 2019-11-06T02:23:37 | null | UTF-8 | Python | false | false | 6,440 | py | # encoding: utf-8
'''
instapaperlib.py -- brief simple library to use instapaper
>>> Instapaper("instapaperlib", "").auth()
(200, 'OK.')
>>> Instapaper("instapaperlib", "dd").auth()
(200, 'OK.')
>>> Instapaper("instapaperlibi", "").auth()
(403, 'Invalid username or password.')
>>> Instapaper("instapaperlib", "").a... | [
"jim.devona@gmail.com"
] | jim.devona@gmail.com |
e7e518d7da3898006f0baffbad506fe5b2ecc102 | 064b4d3d34112c27f651bbccf01ae4fd6c9ca568 | /s10/urls.py | 3990920fd269c647ca5b6ce0ca5de9c9870457f3 | [] | no_license | Ruweewang/s10 | fccb5a44d80e8d149c5795ca4a13d5c6f29080cb | fc30d890d20c6258b3293eaa1a877e03d38bbb54 | refs/heads/master | 2020-09-21T21:40:33.446769 | 2016-08-29T02:57:02 | 2016-08-29T02:57:02 | 66,806,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from django.conf.urls import include, url
from django.contrib import admin
from app01 import views
urlpatterns = [
# Examples:
# url(r'^$', 's10.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^$',views.index, name='index'),
u... | [
"15210669586@163.com"
] | 15210669586@163.com |
09cd7ee3cf66a19e3ba398bb1985e93fdd8b55df | 89e11c2b5dd4dfb37a819add1ca6ecdfbaf4d168 | /from-scratch/ch02/_and.py | 79787d79ab1fb10264c34bb3e80200e23b6a8972 | [] | no_license | seongjunme/study_DL | e281d84508b68a607fc7ccad0770d37bf24fb960 | f98e955fb55e8d323971057c14393cf34b35b327 | refs/heads/main | 2023-04-22T19:42:12.663098 | 2021-05-06T15:15:04 | 2021-05-06T15:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | import numpy as np
def AND(x1, x2):
x = np.array([x1, x2])
w = np.array([0.5, 0.5])
b = -0.7
tmp = np.sum(w*x) + b
if tmp <= 0:
return 0
else:
return 1
print(AND(0, 0)) | [
"sjman223@naver.com"
] | sjman223@naver.com |
98d420a5c5bd69ff1c889ec44a1d369d69531477 | 657ff7fa729c563b35b1a66b8a7a92bacec766dc | /notebooks/numba_cuda/icassp_numba_v2.py | 7870d0e9727df17efeb0f25ba1f8d4baedb98783 | [
"Apache-2.0"
] | permissive | sciai-ai/cusignal-icassp-tutorial | 1627cde8a1f79c8809b39ed60be8eed64a9e9010 | fa7547bbc3c8dddacf34d3e0f807d1cb33f6ffc7 | refs/heads/main | 2023-05-09T18:12:50.822400 | 2021-06-07T13:25:12 | 2021-06-07T13:25:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,220 | py | # Copyright (c) 2019-2020, NVIDIA CORPORATION.
# 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... | [
"mnicely@nvidia.com"
] | mnicely@nvidia.com |
ae28542d4ba037f8e24293fbbe754465b6f9bdaa | 2e64651e3bac803b1385a04475a0a652bb896588 | /leptonic_version_results/__init__.py | e040940e69d7f4880de8a00a92f622d20140cab4 | [] | no_license | ameli1/radiative_transfer-plasmoids | dd973cecdf219945b8772de7094e8946bdd07b20 | a97fdebe2bcc5132ea7ff89744663c21e7c9fdd9 | refs/heads/master | 2022-03-21T02:50:01.064049 | 2019-12-01T02:46:56 | 2019-12-01T02:46:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from pathlib import Path
import numpy as np
tables_dir = Path.cwd() / "leptonic_version_results"
electron_distribution = np.loadtxt(
tables_dir / "electron_distribution_plasmoid_1.txt")
co_moving_lumionsity = np.loadtxt(
tables_dir / "co_moving_nu_l_nu_plasmoid_1.txt")
electron_Lorentz_factor = np.loadtxt(
... | [
"ichristi231@gmail.com"
] | ichristi231@gmail.com |
5aa33e099c44fd86c8f93e35b7f0ef4261f9b501 | de20b4f2858c1368be496239376a2e3c1130e6d4 | /src/ap_python_sdk/__init__.py | 6b300563a0fd9762f9de3185bbd91accc5685ed0 | [
"MIT"
] | permissive | 2000charge/2k-python-sdk | e3c2a9f4176516a917c5c6f31d51b6bfbb062697 | ae96737b8021f5d2816ce73dd370544675e6b55d | refs/heads/master | 2021-06-16T18:05:19.460548 | 2017-05-30T14:14:47 | 2017-05-30T14:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # 2000Charge Python bindings
# API docs at http://2000charge.com/api/
# Authors:
# Marjan Stojanovic <marjan.stojanovic90@gmail.com>
# Marjan Stojanovic <nenad.bozic@smartcat.io>
# Configuration variables
api_key = None
api_base = 'https://api.2000charge.com/api'
api_version = None
default_http_client = None
# Resou... | [
"tech@2000charge.com"
] | tech@2000charge.com |
6310996c29f82720e743d2c1c5d7c036e79d4a73 | d93c91e904470b46e04a4eadb8c459f9c245bb5a | /banglore_scrape/proptiger/proptiger/spiders/proptigerresale.py | 47b05e9f213ad8c5615011068e0591a29f338475 | [] | no_license | nbourses/scrappers | 3de3cd8a5408349b0ac683846b9b7276156fb08a | cde168a914f83cd491dffe85ea24aa48f5840a08 | refs/heads/master | 2021-03-30T15:38:29.096213 | 2020-03-25T03:23:56 | 2020-03-25T03:23:56 | 63,677,541 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,099 | py | import scrapy
from proptiger.items import ProptigerItem
from scrapy.spiders import Spider
from scrapy.spiders import CrawlSpider, Rule
from scrapy.linkextractors import LinkExtractor
from scrapy.selector import Selector
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request
import json
from scrap... | [
"karanchudasama1@gmail.com"
] | karanchudasama1@gmail.com |
089621224702c3387b7a2e6eeb2a8051206f258d | 4bef2a02bb5a3bf96020435e76bb30cc50dd8968 | /UI.py | cd06fcc00ccf3ab629215c02e508c1383b9c4074 | [] | no_license | kewalkishang/CrytpoWatch | ead74765f08d332197c2473c4e746392d3caf7ed | 03168ebd6b4671b9bbf0cd84a5183b053c0bc682 | refs/heads/master | 2021-01-23T23:56:24.406293 | 2018-11-01T14:45:44 | 2018-11-01T14:45:44 | 122,744,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,156 | py | from CryptoNotifyer import GetCrytoNames,UpdatePrices
import tkinter as tk
import tkinter.messagebox
import threading
root = tk.Tk()
root.title("Crypto Watch")
#root.geometry("200x300")
root.minsize(100,100)
root.resizable(width=False, height=False)
va=[]
labels = []
window=[]
one=[]
sign=[]
threshold=... | [
"kewalkishang@gmail.com"
] | kewalkishang@gmail.com |
fc186f0a0bfdbfa4dec0cfe214a56d8b5d22473a | 846a9fd0e16e5a2beb8e1c33656eab201b65186c | /chase/tests/test_cpt.py | 176b5177f05fa07b28e492564bfaa2ca1ee9aef8 | [] | no_license | dmarkant/chase | 7604daa4ce6189f3324f0e3a88d5d5b1e774ba90 | 562a8b249e52e1c1a5276b7312c2e6f8a80b32ca | refs/heads/master | 2021-01-17T07:11:03.744377 | 2017-11-17T12:44:28 | 2017-11-17T12:44:28 | 35,096,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import unittest
import sys
sys.path.append('../')
import cpt
params1 = {'pow_gain': 2,
'pow_loss': 2,
'w_loss': 1}
params2 = {'pow_gain': 2,
'w_loss': 2}
outcome1 = 2
class TestCPT(unittest.TestCase):
def setUp(self):
pass
def test_value_fnc_1(self):
self.as... | [
"dmarkant@gmail.com"
] | dmarkant@gmail.com |
d86c5e0f0c0e05eb98ebda669f4041cc43c81e32 | e9e8dc70f8d31b954719b278d2b8946cef0292ec | /Practice/Python/Set_add.py | 9090beca737d33070dfccf6b578472534c027ed0 | [] | no_license | AriyanStClair/Hackerrank-Solutions | b280c328e981c0d873859cb5ad65c0725b631733 | 80547f52477b5db1d66d1922c9fa2bdc28ca0544 | refs/heads/master | 2021-06-21T06:35:28.163651 | 2021-03-16T20:28:05 | 2021-03-16T20:28:05 | 193,166,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # Find out how many distinct countries are inputted
n = int(input()) # how many elements to add to set
s = set()
for i in range(n):
s.add(input())
print(len(s)) # the length of s is the number of distinct countries
| [
"noreply@github.com"
] | AriyanStClair.noreply@github.com |
dab399d423b5645ffac3fc3055ee8ca346b1823c | 890b86a0f3a488cd2890e43e3729b869fba20925 | /test/test_coinlist.py | 6c4ae5fdcea002215259a0c942ec5c520139fc05 | [] | no_license | falcons78/rat_crypto_trader | b82c0833cd74dd1f7412cd8bc4b6d7e1da2e73f1 | d1853ba9c3738a9737bd78b982b3f0f439b4b572 | refs/heads/master | 2023-04-14T18:14:51.691578 | 2021-04-06T22:28:11 | 2021-04-06T22:28:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from rat.old_data.coinlist import CoinList
def test_coinlist():
c = CoinList(1616087237)
print(c.allCoins)
| [
"louis.outin@jungle.ai"
] | louis.outin@jungle.ai |
6d2a8eaa88f5318497d99331e7c2212c75a58c64 | 0736ea6d2ed7d26167e17cdbedc50825c051ce78 | /examples/labels-example.py | 97f78ff4a022eeedc69056007db24e6857c40d17 | [
"Apache-2.0"
] | permissive | wbeebe/pyqt | 2c25cf7b71513cd960b7bce9aa16df5e73c45f1d | bbaee3b965b54f93b9091d232e752762be1d0cb5 | refs/heads/master | 2021-06-27T15:54:33.157223 | 2021-03-08T15:34:29 | 2021-03-08T15:34:29 | 204,618,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,609 | py | #!/usr/bin/env python3
#
# Copyright (c) 2021 William H. Beebe, Jr.
#
# 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 app... | [
"wbeebe@gmail.com"
] | wbeebe@gmail.com |
9b689e5339e077980d365e6f2d860287cc62e3c4 | f69262312c39583f9d95d4952bc3813019ab83d6 | /Python/easy/1217_minimum_cost_to_move_chips_to_the_same_position.py | 6fece5ae2f940447490c87ea9bd33e508d73a856 | [
"MIT"
] | permissive | CalmScout/LeetCode | 7de7159071780a09185d3e6d6f8fe57f1b11870f | 3e863c4e4029bd3e101af27754de1417293fd300 | refs/heads/master | 2022-12-20T21:48:14.467733 | 2022-12-14T16:03:49 | 2022-12-14T16:03:49 | 134,153,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | """
We have n chips, where the position of the ith chip is position[i].
We need to move all the chips to the same position. In one step, we
can change the position of the ith chip from position[i] to:
position[i] + 2 or position[i] - 2 with cost = 0.
position[i] + 1 or position[i] - 1 with cost = 1.
Return the minimum ... | [
"popovanton567@gmail.com"
] | popovanton567@gmail.com |
40b75d9ecef4084943b57a8deaccba4b5b749250 | 6338c2a2158a3140382169b436d7b575bc29ab17 | /sentencias_if.py | c7ab9346ce47e2e5554e86689d48622e3948a7e3 | [] | no_license | epichardoq/DS-Course | 22990ddc24225f2989f52607536f0cbca50205d3 | 64302246b8466a02ab603edcccb00fff6a677a42 | refs/heads/master | 2022-04-07T22:02:45.252730 | 2020-03-20T03:12:34 | 2020-03-20T03:12:34 | 220,868,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | num= int(input('escribe un numero '))
if num<0: print (' numero negativo');
if num==0: print ('el numero es 0');
if num>0: print ('el numero es positivo')
| [
"noreply@github.com"
] | epichardoq.noreply@github.com |
61ed23078711e5937351f2eaac6536d7fbb3cad6 | ff127a05599424d36ad54ba17c350815649b4645 | /fwebdirscan.py | 1170b99666b9d38920f955de63bc08ae9efe21b3 | [] | no_license | chinaxianyu/fwebdriscan | d0585cb4fe4075de7a1aaf831983b8bf6bd10635 | 4d9b506605acbfc37ae96baaa8ef9b83156b5094 | refs/heads/master | 2021-01-20T09:07:31.774188 | 2017-05-04T05:38:04 | 2017-05-04T05:38:04 | 90,224,942 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
import requests
import sys
print("""
_____ _ _ _
| ___|_ _____| |__ __| (_)_ __ ___ ___ __ _ _ __
| |_ \ \ /\ / / _ \ '_ \ / _` | | '__/ __|/ __/ _` | '_ \
| _| \ V V / __/ |_) | (_| | | | \__ \ (_| (_| | | | |
|_|... | [
"chinaxianyu@ChinaXianYu@163.com"
] | chinaxianyu@ChinaXianYu@163.com |
d0420725d4828812d670eeea080ff2a3a04c0a4d | 2644617a98a2180c26eff04d1e507d59cc7bad14 | /Gráficos/timestamp_working.py | f6d2222b27b5fa83d72399915859fe4378028700 | [] | no_license | helioncneto/MineCap | b7b14d705d44be0ea375ce10bb1c922d16a261aa | 3d9681875000a5abab2edb4ffab5de5643ca1178 | refs/heads/master | 2020-04-20T01:29:14.170956 | 2019-12-12T17:58:19 | 2019-12-12T17:58:19 | 168,546,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,639 | py | import numpy as np
import Statistics
import matplotlib.pyplot as plt
def media_timestamp(n_min):
gm_classificado = []
gm_tempo = []
gm_proc = []
gic_classificado = []
gic_tempo = []
gic_proc = []
for z in range(1,n_min+1):
g_classificado = []
g_tempo = []
g_proc = [... | [
"helioncneto@gmail.com"
] | helioncneto@gmail.com |
8d12ea6102055c34798e687b5a6532f7642b276f | 1311696a180047135c825ffa283f9ac9750d4236 | /tests/data/stubs-ok/micropython-linux-1_12/websocket.py | 84603dedea90d09964895308d20f7dfc0ad0c2bf | [
"MIT"
] | permissive | Josverl/micropython-stubber | 71103afa842da02d5ad074b541d9bff7243ce23f | 68fe9113f4b4e611bb4c3d19f79c8ba0e7111f5e | refs/heads/main | 2023-08-31T00:51:22.200348 | 2023-05-31T07:48:54 | 2023-05-31T07:48:54 | 177,823,007 | 135 | 8 | NOASSERTION | 2023-09-11T21:25:19 | 2019-03-26T16:00:53 | Python | UTF-8 | Python | false | false | 546 | py | """
Module: 'websocket' on micropython-linux-1.12
"""
# MCU: {'ver': '1.12', 'port': 'linux', 'arch': 'x64', 'sysname': 'unknown', 'release': '1.12.0', 'name': 'micropython', 'mpy': 2821, 'version': '1.12.0', 'machine': 'unknown', 'build': '', 'nodename': 'unknown', 'platform': 'linux', 'family': 'micropython'}
# Stubb... | [
"josverl@microsoft.com"
] | josverl@microsoft.com |
300ce4db129e74a9da8738a57cee2832c02462d6 | 169cec95779811c817e3de851aa3b496595a708f | /week5/RandomWordGenerator/apps/RandomWordGenerator/apps.py | 5542b7b489bf80a720cc50c7aa6e1d3c74ee28d4 | [] | no_license | py2-10-2017/Hans_Utu | 78f8b97c1f01a53bf5371ac23f99c970886dbbc3 | 97be52c0a1c0edd351368cd3ee4494da59129b1c | refs/heads/master | 2021-05-15T03:15:27.493578 | 2017-10-17T05:58:16 | 2017-10-17T05:58:16 | 105,833,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class RandomwordgeneratorConfig(AppConfig):
name = 'RandomWordGenerator'
| [
"utuhans@gmail.com"
] | utuhans@gmail.com |
3d406bff4669acc765870ffc7cfd720aa3ae0e20 | 459cf34442e5edfada54a0e74499ded88dd9f520 | /recipe/forms.py | 1b4c692bf20d5b6d14205195270e76962a41fc18 | [] | no_license | olifirovai/FoodGram_project | f5ac8131e699a5477a0b17479d6ec107e84c9b55 | d27e681d8b03a6ab53a0d4c8339ccae7dcd495be | refs/heads/master | 2023-08-15T19:28:23.208149 | 2021-10-13T22:17:52 | 2021-10-13T22:17:52 | 360,272,094 | 0 | 0 | null | 2021-04-22T00:54:28 | 2021-04-21T18:43:07 | CSS | UTF-8 | Python | false | false | 473 | py | from django import forms
from .models import Recipe
class RecipeForm(forms.ModelForm):
picture = forms.ImageField(
required=True,
label='Add an image'
)
class Meta:
model = Recipe
fields = (
'name', 'directions', 'cook_time', 'picture'
)
label... | [
"golubtsovairinas@gmail.com"
] | golubtsovairinas@gmail.com |
91fe8bdac939808480646276789f56bc2fd0c450 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_227/ch149_2020_04_13_20_21_26_194548.py | 50b04d13c34b8c1459a9db8abfd23816a3214e2e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | salario_bruto=float(input("Qual o seu salário bruto? "))
numero_dependentes=int(input("Qual o seu número de dependentes? "))
if salario_bruto<=1.045:
INSS=salario_bruto*0.075
elif salario_bruto>=1045.01 and salario_bruto<=2089.60:
INSS=salario_bruto*0.09
elif salario_bruto>=2089.61 and salario_bruto<=3134.40:
... | [
"you@example.com"
] | you@example.com |
389f1d03a6b93bd616ee7051d80280f47c53bd64 | 505daab9ce894a4be77350fc4c71e8e7d2cb1648 | /heLab/models.py | d6873feae43ec0b6055cefab0dfad0a56a621b32 | [] | no_license | kushal-chaurasia/virtual-lab | ae6cbacb83afc3a7a9aa650369522d927579119c | 94906f661a619fe5fbfe368a719b93244307403e | refs/heads/master | 2023-01-28T21:34:35.870026 | 2020-12-07T09:35:13 | 2020-12-07T09:35:13 | 315,906,309 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | from django.db import models
# Create your models here.
class heLabQuizes(models.Model):
question = models.CharField(max_length=400)
option1 = models.CharField(max_length=400)
option2 = models.CharField(max_length=400, default="")
option3 = models.CharField(max_length=400,default="")
option4 = mode... | [
"kushaldazzle@gmail.com"
] | kushaldazzle@gmail.com |
02f45b019bebffdf7da42d633fc7e9cc433cee71 | c7519319515fc192ef1046ae731bcf37c8db1d74 | /Script/python/helloworld.py | 4a6179dc83f4490dddb41672cbfc07012e2de847 | [] | no_license | usamanada/sandboxforme | 66dadb09f5369149a89f3d9818e74e1f4a9a129d | 91c664c989e1971857f0199581a402bcb5ab9150 | refs/heads/master | 2021-01-10T02:06:56.140854 | 2013-08-21T03:52:31 | 2013-08-21T03:52:31 | 47,493,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/bin/env python
import sys
import re
def main():
print "Hello World" + "Getting better"
main() | [
"olofszymczak@6a71ca32-14e2-11de-8b5c-13accb87f508"
] | olofszymczak@6a71ca32-14e2-11de-8b5c-13accb87f508 |
98ea2ca1132b84e8951af893d6726390989a3207 | bd498e2e761528b6808bf594422dfae7845ca372 | /jyhton/Lib/test/test_sys.py | e88445bcabb11d726e17240e72d9ad7cfe9fd4bb | [
"Apache-2.0",
"LicenseRef-scancode-jython"
] | permissive | p4datasystems/CarnotKE | b777b254a93344e08c731d90f971ba72b7c8a253 | d6b0268aa1528052648bdf5467a5f003c050936d | refs/heads/master | 2020-04-06T14:58:45.548837 | 2016-10-28T13:31:57 | 2016-10-28T13:31:57 | 48,249,881 | 3 | 11 | null | 2016-10-28T13:31:57 | 2015-12-18T18:22:06 | Python | UTF-8 | Python | false | false | 9,870 | py | # -*- coding: iso-8859-1 -*-
import unittest, test.test_support
import sys, cStringIO
class SysModuleTest(unittest.TestCase):
def test_original_displayhook(self):
import __builtin__
savestdout = sys.stdout
out = cStringIO.StringIO()
sys.stdout = out
dh = sys.__displayhook_... | [
"phil.cannata@oracle.com"
] | phil.cannata@oracle.com |
96acef88bac936107e4d65c64c0f6929293a8933 | 888f519f9831cc8e172a81693dc318514d0b45fe | /bnv-ufo/particles.py | 4eb0deeafa342ddc420fe665bbdef60477465531 | [] | no_license | mattbellis/generate_private_MC_from_LHE_files | ca69093c19b16f79291f97c8dc4863f5dc4b73d5 | 16f4099a91488e4e030ceec62efbb157351d3793 | refs/heads/master | 2021-06-08T02:18:48.233276 | 2021-04-24T15:21:50 | 2021-04-24T15:21:50 | 151,903,566 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,968 | py | # This file was automatically created by FeynRules $Revision: 845 $
# Mathematica version: 8.0 for Linux x86 (64-bit) (November 7, 2010)
# Date: Tue 7 Feb 2012 13:57:29
from __future__ import division
from object_library import all_particles, Particle
import parameters as Param
ve = Particle(pdg_code = 12,
... | [
"matthew.bellis@gmail.com"
] | matthew.bellis@gmail.com |
06ee5f8ff46617f38f61ac547a3d6c951b8fb803 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/aio/operations/_virtual_wans_operations.py | fe0a31731f0cf1bff2e9d3a1a2d94cbec51a6e1a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 30,068 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
82e51e64046160ae3a53b71832b74c498694639e | af75993a85ea2b50d1df05fcd0f4276c0a062fdb | /leetcode/Defanging an IP Address.py | 8cbad6e189be4ff66cd676f737453742d66b220d | [] | no_license | MartinCastellano/training | 9c3a679f92aaef5125d4c25dbfbbc462377a870e | ef0c0b035592c7ff93bd2e5e439aae5770cea166 | refs/heads/master | 2022-10-30T07:42:47.154970 | 2020-06-10T00:01:34 | 2020-06-10T00:01:34 | 271,128,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | address = "255.100.50.0"
address = list(address)
for i in range(len(address)):
if address[i]=='.':
address[i]='[.]'
address = "".join(address)
print(address) | [
"noreply@github.com"
] | MartinCastellano.noreply@github.com |
1921637bf67204f6d4521f412444523581176738 | afb16c3188bf06af65ae0d998e114c72342bd8be | /note/demo/python_trace/demo2.py | 69e2891cccff56b373a8630dfd6f7efb23775614 | [] | no_license | onsunsl/onsunsl.github.io | aa75f399f1c647bc2e62314633bfe35187e59ad4 | 4ed2b1b9a2407afcbffdf304020d42b81c4c8cdc | refs/heads/master | 2023-05-26T12:33:11.167270 | 2023-04-01T10:18:05 | 2023-04-01T10:18:05 | 237,595,319 | 1 | 0 | null | 2023-05-23T20:13:11 | 2020-02-01T10:02:58 | Python | UTF-8 | Python | false | false | 490 | py | import os
from time import sleep
import signal
import sys
from traceback import extract_stack
def sigterm_handler(_signo, _stack_frame):
# Raises SystemExit(0):
f = open("./1.txt", "w")
f.write("sigterm_handler")
f.close()
sys.exit(0)
signal.signal(signal.SIGTERM, sigterm_handler)
try:
prin... | [
"onsunsl@foxmail.com"
] | onsunsl@foxmail.com |
e3bcf5984f2cde90d396e03b2e11d82015d67e8c | 3cedc7c1519d3b013aad9ec4e6a6ee7834da7589 | /python_code/多线程开发/E_多线程使用共享数据.py | 65fc69e75f8ee5a199ae857933d77ea27bd7330c | [] | no_license | hzrg/songqin_course | 53437100669ee93d2ac5ecae5de938b1a4007d7f | 05e422ce34a42fd6d3819722a19252f8005e79ed | refs/heads/master | 2022-02-09T13:27:59.871400 | 2019-06-13T06:08:45 | 2019-06-13T06:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | # coding=utf8
import threading
from time import sleep
# 存储支付宝账号余额
zhifubao = {
'jcy' : 2000,
'liming' : 5000,
'wangan' : 15000,
'zhaolei' : 6005000,
}
# 线程1 : 滴滴打车处理,参数是用户账户和扣款金额
def thread1_didi_pay(account,amount):
print('* t1: get balance from bank')
balance = zhifubao[... | [
"1174497735@qq.com"
] | 1174497735@qq.com |
231f09c691b4539775f1670f4e4f331c725c019c | 36b7f6d4376a031ed889835938b4dd1b849043d6 | /lib/gradient/gts/models.py | 4fec7f9d2d8a0b56e0537aae57c0cc3d3054502e | [] | no_license | electusmatari/electusmatari.com | c9898bae629269d7a09e5f5bfce94586b9f0c947 | 8a104f7c57eefccf5b656a294132e1eaf858bbbb | refs/heads/master | 2021-01-01T19:24:12.091511 | 2015-08-08T19:15:38 | 2015-08-08T19:19:57 | 13,191,804 | 1 | 2 | null | 2014-08-21T05:16:30 | 2013-09-29T12:10:43 | Python | UTF-8 | Python | false | false | 1,749 | py | from django.db import models
from django.contrib.auth.models import User
class Ticket(models.Model):
created = models.DateTimeField(auto_now_add=True)
createdby = models.ForeignKey(User, related_name="createdticket_set")
edited = models.DateTimeField(null=True, default=None)
editedby = models.ForeignKe... | [
"arkady@8b78aa87-fdc0-4a8b-ab22-a370a497df50"
] | arkady@8b78aa87-fdc0-4a8b-ab22-a370a497df50 |
4d2a3ab4f356b1581b21a231111a088874cc611e | afd2087e80478010d9df66e78280f75e1ff17d45 | /torch/onnx/_internal/diagnostics/infra/sarif/_suppression.py | c1dcb014809d994a4777917e5e1764388b48dff5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 1,249 | py | # DO NOT EDIT! This file was generated by jschema_to_python version 0.0.1.dev29,
# with extension for dataclasses and type annotation.
from __future__ import annotations
import dataclasses
from typing import Literal, Optional
from torch.onnx._internal.diagnostics.infra.sarif import _location, _property_bag
@datacl... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
9c621d3320ff8c2125bd3642737b1ed2f6f1baf9 | a7660dd6e6ea19bcab6512d160b1c539024ee7de | /set 2/challenge12.py | cee4a4586eb96cbc7afd92bca976b27a25fcc7a8 | [] | no_license | lzhou15/cryptopals | 5487f1701376cf7aa55a137e8d4f6ceda41b83ad | 02ce6aa45bc4cb390ca4336c183b5ceae714ceaa | refs/heads/master | 2020-07-25T18:41:45.262737 | 2017-07-03T18:41:58 | 2017-07-03T18:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,636 | py | #!/usr/bin/env python2
from helpers import *
from base64 import b64decode
import sys
suffix = b64decode(
('Um9sbGluJyBpbiBteSA1LjAKV2l0aCBteSByYWctdG9wIGRvd24gc28gbXkg'
'aGFpciBjYW4gYmxvdwpUaGUgZ2lybGllcyBvbiBzdGFuZGJ5IHdhdmluZyBq'
'dXN0IHRvIHNheSBoaQpEaWQgeW91IHN0b3A/IE5vLCBJIGp1c3QgZHJvdmUg'
'YnkK... | [
"mail@renewerner.net"
] | mail@renewerner.net |
7691802558073b399b3e21487c2b7faf90c162dc | b250b3f74b30ad29f65acab3040433473a259cc1 | /src/_23a.py | cdd79900dd2c709eacf9c37588896d815d22132b | [] | no_license | Abarn279/advent-of-code-2015 | 0cc6ce58ba443335fd9dcd451e327cec01fd3e96 | 8fbf0b2bc576556d5351d64b93c972a6f6ec8020 | refs/heads/master | 2021-06-28T09:11:28.905618 | 2020-11-30T22:02:10 | 2020-11-30T22:02:10 | 75,760,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | reg = {'a':1, 'b':0}
prog = '''jio a, +19
inc a
tpl a
inc a
tpl a
inc a
tpl a
tpl a
inc a
inc a
tpl a
tpl a
inc a
inc a
tpl a
inc a
inc a
tpl a
jmp +23
tpl a
tpl a
inc a
inc a
tpl a
inc a
inc a
tpl a
inc a
tpl a
inc a
tpl a
inc a
tpl a
inc a
inc a
tpl a
inc a
inc a
tpl a
tpl a
inc a
jio a, +8
inc b
jie a, +4
tpl a
inc... | [
"Abarn279@gmail.com"
] | Abarn279@gmail.com |
33bbbbb3595060ab7af06d1bab1aad0422559856 | be66612410e3436e25219329b1bf119fadf8fa27 | /airflow_dags/images/airflow-predict/predict.py | 899b59fa077ff86e96f5c56071681dd0c400a6b8 | [] | no_license | made-ml-in-prod-2021/lakuzne4 | 5692173dfcf9fc5572fa04de1afc390aec0366f2 | 74505320ade01f3b40dd2b2762be0c9cf08cc5c0 | refs/heads/main | 2023-06-06T12:12:19.254231 | 2021-06-21T15:32:12 | 2021-06-21T15:32:12 | 355,456,008 | 0 | 0 | null | 2021-06-21T15:32:12 | 2021-04-07T07:43:29 | Jupyter Notebook | UTF-8 | Python | false | false | 774 | py | import os
import pandas as pd
import pickle
import click
from sklearn.preprocessing import StandardScaler
PATH_DATA = "data.csv"
PATH_MODEL = "model.pkl"
PATH_PREDICTION = "predictions.csv"
@click.command("predict")
@click.option("--input_dir")
@click.option("--model_dir")
@click.option("--output_dir")
def predict(in... | [
"kuznetsov_l@inbox.ru"
] | kuznetsov_l@inbox.ru |
83f386bbed4fb997f0c8caa76f1c48e7b7d6dd2e | 50263f42107ac7c6662a3d1effb4ff53c61217f7 | /minsci/portal/reports.py | 7fd5e002e8f14e4836a4f10cb2a36b86ae092ba4 | [] | no_license | adamancer/minsci | c2b17a61e830a8a73c213b29803ee653bea4b5fb | c06760b98a51050656004b717ced5b494edb9a0e | refs/heads/main | 2022-07-30T09:44:37.682486 | 2022-07-08T02:49:22 | 2022-07-08T02:49:22 | 43,322,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | py | import csv
from .portal import get, get_simpledwr, encode_for_excel, timestamped
#from ..geobots.plss import TRS
def meteorites(**kwargs):
defaults = {
'format': 'json',
'schema': 'simpledwr',
'limit': 1000
}
kwargs.update(defaults)
offset = kwargs.pop('offset', 0)
records... | [
"mansura@si.edu"
] | mansura@si.edu |
d82bfd2add0ea481e86b72037a0ca92e2dc1a543 | e37ac04e17ac3d54e1a51781b16001f026a8f215 | /diverta/2019/D.py | cfbaa984589cb784b9f3e061d717d92dad3ef6a5 | [] | no_license | yasunariston/atCoder | 5fd702c96c9aba7113a9a6c8e92f106697a70869 | 56050d5c4e99ae436cd57878aab13f8551372ac6 | refs/heads/master | 2020-04-02T19:48:53.549710 | 2019-05-12T22:37:23 | 2019-05-12T22:37:23 | 154,747,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | N = int(input())
ans = N - 1 if N != 2 else 0
for i in range(2, int(N ** 0.5) + 1):
if N % i == 0:
a = N // i
b = i
if N // (a-1) == N % (a-1):
ans += a-1
if N // (b-1) == N % (b-1):
ans += b-1
print(ans)
| [
""
] | |
9491cccb3a1203f18678ca88d25a374d6c280612 | a06fd6b7b4e5fc2b1b5a46b4edd20a11f717a5ea | /netbox/extras/filters.py | d0a801b481f55cfc6f08e7f6c154b2c803fd170f | [
"Apache-2.0"
] | permissive | feiynagly/netbox | d9be722eaa5021cf39e82c19c3e4562dedd94254 | d364bbbaa6ee4f2a19015d07dd0de855628befb4 | refs/heads/master | 2022-12-04T04:41:29.052349 | 2021-05-11T07:13:56 | 2021-05-11T07:13:56 | 173,664,986 | 1 | 1 | Apache-2.0 | 2022-11-22T03:12:55 | 2019-03-04T03:10:07 | Python | UTF-8 | Python | false | false | 7,182 | py | import django_filters
from django.contrib.contenttypes.models import ContentType
from django.db.models import Q
from taggit.models import Tag
from dcim.models import DeviceRole, Platform, Region, Site
from tenancy.models import Tenant, TenantGroup
from .constants import CF_FILTER_DISABLED, CF_FILTER_EXACT, CF_TYPE_BOO... | [
"944867649@qq.com"
] | 944867649@qq.com |
663c0d797262e73970e5ee8757e1ca111c202072 | 122ff1c2e1303452a50109b19c244fe92fa4f510 | /assignment-13a/SSO_Software_Engineering/FlaskExtensions/FlaskAppClass.py | 8d821156825eca2f041f32b69e597df554c06880 | [
"MIT"
] | permissive | tjhm9c/tjhm9c | 74f1e294ad7152613b782dd3d81fbfb7ab5d9406 | 9afb947ea0e1a440a26b9be9f70bf6d6bcc43468 | refs/heads/master | 2022-12-09T15:29:14.530836 | 2020-05-14T01:53:44 | 2020-05-14T01:53:44 | 236,862,279 | 0 | 0 | null | 2022-12-08T10:22:09 | 2020-01-28T23:07:00 | HTML | UTF-8 | Python | false | false | 2,481 | py | from flask import Flask
from FlaskExtensions.LoginViewClass import LoginView
from flask_login import LoginManager, current_user, login_user, logout_user
from oauthlib.oauth2 import WebApplicationClient
from DatabaseWorkers.DatabaseManagerClass import DatabaseManager
from DatabaseWorkers.UserClass import User
impo... | [
"noreply@github.com"
] | tjhm9c.noreply@github.com |
87dd30cbbf7a7d0eeed6fcb6509b77758dc97dd5 | 6d7e44292e34bbc5e8cbc0eb9e9b264c0b498c5d | /test/integration/modules/test_sfp_stevenblack_hosts.py | 99bf85bb72792700d7c6ef1d966b35561c42aeaa | [
"Python-2.0",
"MIT"
] | permissive | smicallef/spiderfoot | 69585266dad860d3230d3ce7b801e34eeb359f90 | 6e8e6a8277ea251fdd62a0946268f5dfe9162817 | refs/heads/master | 2023-08-28T09:40:10.136780 | 2023-08-18T05:47:39 | 2023-08-18T05:47:39 | 4,165,675 | 10,620 | 2,130 | MIT | 2023-09-13T08:18:31 | 2012-04-28T07:10:13 | Python | UTF-8 | Python | false | false | 3,338 | py | import pytest
import unittest
from modules.sfp_stevenblack_hosts import sfp_stevenblack_hosts
from sflib import SpiderFoot
from spiderfoot import SpiderFootEvent, SpiderFootTarget
@pytest.mark.usefixtures
class TestModuleIntegrationStevenblackHosts(unittest.TestCase):
def test_handleEvent_event_data_affiliate_i... | [
"noreply@github.com"
] | smicallef.noreply@github.com |
e2a239c5515463b45af10777f1b8c4aac524beb7 | a88d2ed20126a1581cb9430d8b8e3612a59183b6 | /gallery/pictures/urls.py | f03b0421c1b526dc2ab6f2e06c5278b7409614d8 | [] | no_license | Mickeybab/Google-Photo-Like | 8bf486cb9da9d60fcf378846b30ae04306e03c6d | 9340bf04b6ab9328a6de0acdc1ea33262b54bc76 | refs/heads/master | 2020-08-10T05:38:10.509018 | 2019-10-13T17:40:33 | 2019-10-13T17:40:33 | 214,271,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from django.urls import path
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('add-album/', views.add_album, name='add_album'),
path('upload', views.upload, name='upload'),
path('album', ... | [
"enzo.perrot@epitech.eu"
] | enzo.perrot@epitech.eu |
5429336730859c3bf71a435d3f2b50b3bab5483e | 2d5c7eccef92f3cd71484607f0d595f7787053a2 | /p067.py | bbdc8a94b6df75d8be8acc1b1ae753f79e5bf803 | [
"MIT"
] | permissive | arpit0891/Project-Euler | 48a34f69e267d6bbcbf2ee30f3f88f4354df3afb | ab36b33c578578595bb518508fa2fe5862f4a044 | refs/heads/master | 2021-02-14T00:25:01.262715 | 2020-06-26T14:41:59 | 2020-06-26T14:41:59 | 244,749,988 | 1 | 3 | MIT | 2020-06-26T14:42:00 | 2020-03-03T21:56:34 | Python | UTF-8 | Python | false | false | 16,672 | py |
# We create a new blank triangle with the same dimensions as the original big triangle.
# For each cell of the big triangle, we consider the sub-triangle whose top is at this cell,
# calculate the maximum path sum when starting from this cell, and store the result
# in the corresponding cell of the blank triangle.
# ... | [
"noreply@github.com"
] | arpit0891.noreply@github.com |
28723fc459794d4a952e6401f1f4f5860563e16c | 5b8586e560f81780c2a71d4e427440211236c3f9 | /sugar/sweet_girl/urls.py | 2b2ddd1eed969aad6d51ce5efc7184f8bd87d8bb | [
"MIT"
] | permissive | Nazira06/sweet-sugar | 3dfcf93d3b87d8b1f981e6295047ec6d8c38736f | 9822390356effae379bff1ebcda276b5d6dee8ce | refs/heads/main | 2023-02-16T01:16:17.665538 | 2021-01-15T06:59:17 | 2021-01-15T06:59:17 | 329,504,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | from django.urls import path
from rest_framework import routers
from django.urls import include
from .views import *
router = routers.DefaultRouter()
router.register('service', ServiceViewSet, basename='service')
router.register('master', MasterViewSet, basename='master')
router.register('sertif', CertificatesViewSet, ... | [
"nazikkydyralieva@gmail.com"
] | nazikkydyralieva@gmail.com |
b89827e7bd2186efac21f3de64db0f0df6ff1c32 | c2296f56df3b934f824be07338e14bccf7c0e34f | /url_classification/data/movie_reviews/__init__.py | b3a85173320bf97854087bfab6ecbd94c0f6812c | [] | no_license | jayceyxc/MachineLearning | b190c141be714f4ef7d8b79fab1d0cddc6b7cfcb | 793179dab920725866c4fac4d2bae8e1a570d122 | refs/heads/master | 2022-04-16T21:39:05.652266 | 2020-04-14T07:51:04 | 2020-04-14T07:51:04 | 140,239,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@version: 1.0
@author: ‘yuxuecheng‘
@contact: yuxuecheng@baicdata.com
@software: PyCharm Community Edition
@file: __init__.py.py
@time: 2017/8/7 12:18
""" | [
"xinluomed_yuxuecheng@git.cloud.tencent.com"
] | xinluomed_yuxuecheng@git.cloud.tencent.com |
eb9405e1588269d4af97200b78229b24a71b5112 | 1ea706faf711ad35ec27f2226d66e98666ee2afd | /players/models.py | 362184041412f2dbd51e2e0e7ffd3999623e43b6 | [] | no_license | AlexMathew/fml | be23af994073f37d1585fb9ac94e8d9e37238d81 | fdc2e355f2c4762d0d4bdb76640acdbfa374785c | refs/heads/master | 2020-04-18T19:37:04.955533 | 2019-10-03T18:31:33 | 2019-10-03T18:31:33 | 167,716,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | from django.conf import settings
from django.db import models
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
class Player(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True)
created_at = models.DateTimeFiel... | [
"alexmathew003@gmail.com"
] | alexmathew003@gmail.com |
5890509499e0ddde8399adeddc1a626e3881d9ad | 80b3d35b86fd0d13b0578c9475a2438120e2f376 | /Ivanychev2018/code/lapprox/segments/normalize.py | 99ddf8db31763b7ca0c175dbeffadfe475221f68 | [] | no_license | Intelligent-Systems-Phystech/BSThesis | 183df1a44659637bbe319b56d6798b896344186c | ca1c39c4cfd58f5b3636eb5a6d620aad897bf822 | refs/heads/master | 2020-03-13T05:23:37.611824 | 2018-06-27T11:14:50 | 2018-06-27T11:14:50 | 130,982,969 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | from typing import Iterable, List, Optional
import numpy as np
import scipy
def shrink_segment(segment: np.ndarray, output_length: int) -> np.ndarray:
segment_indices = np.arange(segment.size)
interpolated_f = scipy.interpolate.interp1d(segment_indices,
segment... | [
"sergeyivanychev@gmail.com"
] | sergeyivanychev@gmail.com |
4a9b65222eff631aef06e11a36da2438650f3212 | 16e4dd2f0caca18c33ed62ba7827f578c03cfe45 | /tests/mds_test.py | 4f3d37312f566719bdd82e9ab0270652cb2c0e94 | [] | no_license | ahai-code/ML_Notes | 8d38c47e81d886d635caf190ec89a226448dfe9e | ee2d82dd21ed78ed26c28db2a44468ef0d91ca02 | refs/heads/master | 2022-12-30T11:34:39.003624 | 2020-10-19T06:24:55 | 2020-10-19T06:24:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | from matplotlib import pyplot as plt
import numpy as np
n = 200
r = np.linspace(0, 1, n)
l = np.linspace(0, 1, n)
t = (3 * np.pi) / 2 * (1 + 2 * r)
x = t * np.cos(t)
y = 10 * l
z = t * np.sin(t)
data = np.c_[x, y, z]
from ml_models.decomposition import MDS
mds = MDS(n_components=2)
new_data = mds.fit_transform(dat... | [
"193570096@qq.com"
] | 193570096@qq.com |
be878283310337243c0ea358f818787f6a12c994 | d04e63998891e83f7a5740c35507856a9bafe0ca | /ENV/lib/python2.7/site-packages/pip/_vendor/packaging/specifiers.py | 0425496da907dc0b37e81aac9bba7372be1ecf50 | [
"MIT",
"Apache-2.0"
] | permissive | crosick/zhishu | 70c8115ba74f174f5387314a46294db4889517f0 | 7dc644422ec9a46cb6b11aa63d286e402a42d6fc | refs/heads/master | 2021-01-10T13:12:23.663738 | 2015-12-12T16:14:00 | 2015-12-12T16:14:00 | 47,594,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,127 | py | # Copyright 2014 Donald Stufft
#
# 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, so... | [
"crmrc2014@gmail.com"
] | crmrc2014@gmail.com |
bc4b65ebdb6ee14010eca2df7ef43ad79f259952 | ab1219ddcc33c6162baa670b5cf84e9e6780dba2 | /benchmarks/bp09/tsuji_gauges/setrun_1-5.py | b5d502247dccbfd60e1885c95e5bd651f7b5e2a9 | [] | no_license | dhanyaj17/geoclaw-group | 1672ff47992f4901cb81ac6aebaf58ae122ad466 | 6acc142ce0ec14ca00944e1d2b96cf7080ad3db4 | refs/heads/master | 2020-12-11T04:01:02.844249 | 2013-01-14T01:30:14 | 2013-01-14T01:30:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,042 | py | ## Randy: This run took about 4 hours, as it is set up now.
"""
Module to set up run time parameters for Clawpack.
The values set in the function setrun are then written out to data files
that will be read in by the Fortran code.
"""
import os
from pyclaw import data
import numpy as np
#--------------------------... | [
"rjl@uw.edu"
] | rjl@uw.edu |
956947ecaac87ba3f23cbd03cc80c3e8caf319a4 | 9b96865c64b704fcdcfa30862779c30d266d40d0 | /plot.py | 95cecfda636c1b6b4b537b64fa26b036f3de936c | [] | no_license | lucasea777/mys | 910fa29a9c0f60af90d8898c86564ab092aee2c0 | 2e82720d0a61ee3871334275fb1383df981f7e79 | refs/heads/master | 2020-07-09T23:28:47.693640 | 2018-02-28T02:26:25 | 2018-02-28T02:26:25 | 94,264,993 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 899 | py | # http://matplotlib.org/1.2.1/examples/pylab_examples/histogram_demo.html
# http://bugra.github.io/work/notes/2014-06-26/law-of-large-numbers-central-limit-theorem/
import numpy as np
import matplotlib.mlab as mlab
import matplotlib.pyplot as plt
import g5
from random import random
def fd(x):
if 2<=x<=3:
re... | [
"lucas.e.a777@gmail.com"
] | lucas.e.a777@gmail.com |
5b790020d26b72bff49b53062649a522938f40a0 | 63bacb52d016cf7a237dacd79ba2861842c49ca9 | /zuora_client/models/amendment_rate_plan_charge_data.py | ae75c81b0fd08894b355d536105e55ada0a62f60 | [] | no_license | arundharumar-optimizely/zuora-client-python | ee9667956b32b64b456920ad6246e02528fe6645 | a529a01364e41844c91f39df300c85c8d332912a | refs/heads/master | 2020-07-05T23:09:20.081816 | 2019-07-30T21:46:47 | 2019-07-30T21:46:47 | 202,811,594 | 0 | 0 | null | 2019-08-16T23:26:52 | 2019-08-16T23:26:52 | null | UTF-8 | Python | false | false | 44,271 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"brian.lucas@optimizely.com"
] | brian.lucas@optimizely.com |
637e683e2262bb9da1eeb06e515e1be31b876e13 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /tools/swarming_client/named_cache.py | 87f3458856e823655bbdb2739e388255da1721b3 | [
"LGPL-2.1-only",
"BSD-3-Clause",
"MIT",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 11,791 | py | # Copyright 2016 The LUCI Authors. All rights reserved.
# Use of this source code is governed under the Apache License, Version 2.0
# that can be found in the LICENSE file.
"""This file implements Named Caches."""
import contextlib
import logging
import optparse
import os
import random
import re
import string
import ... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
339a5a47e174b614b35df6d7bf12fc967bbb73b2 | 986a8c9810289b1ef42ac6fa19adea27fd379d01 | /project/recipe.py | 89faa4f440b42f175fc3623e56c17bfe1bd6cae3 | [] | no_license | Pantsworth/SousChefBot | 63c59faa7b1781f8f7a0f543707d339f47a35662 | 54b18a37ca8d0b9549c3bd37d0c0b70905c3a938 | refs/heads/master | 2016-08-12T15:18:47.479181 | 2016-05-11T15:38:53 | 2016-05-11T15:38:54 | 43,648,415 | 1 | 0 | null | 2015-11-18T17:42:34 | 2015-10-04T18:56:25 | HTML | UTF-8 | Python | false | false | 2,233 | py | __author__ = 'Michael Nowakowski'
# Based on code from Adam Snyder, Kristin Amaddio, and Neal Kfoury
class Recipe:
def __init__(self, title='', servings=0, ingredients=None, instructions=None, photo_url=None):
self.title = title
self.servings = servings
self.ingredients = ingredients
... | [
"nski6m@gmail.com"
] | nski6m@gmail.com |
383a37dee48bfc5ca135277f4d42482cef0fecbf | 29953883186712aaac4ba1aaf6ff72b612b524da | /1.3v.py | e57d8c91ce36f55bf7647460b48bc8fc1e90304b | [] | no_license | isocketcc/--- | e898ff3817c941e0bd346ec8de3c2939a54c5ec9 | 02635d10be8b8dab2ca1700a953118dc3656a4e2 | refs/heads/master | 2020-03-10T13:32:03.652599 | 2018-04-13T13:05:34 | 2018-04-13T13:08:06 | 129,402,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,378 | py | # encoding = utf-8
from tkinter import *
from tkinter.filedialog import *
import tkinter.messagebox
import psutil
import sys
import os
import requests
import ctypes
import re
import urllib
import time
import threading
import _thread
from bs4 import BeautifulSoup
import sys
import re
import codecs
import os
import shut... | [
"moho12@163.com"
] | moho12@163.com |
d1028b9bdc7688aeb90a4c75848032401b89c776 | 0d13ac49c1c53abea52fb247a30485fa5c53e7ce | /node_modules/fsevents/build/config.gypi | 4b0e00bbc555ef8ee1a63b1824d44e535d263e22 | [
"MIT"
] | permissive | calebgekeler/Thinkful-working-example-useEffect-with-cleanup | 4a75e0ea18e81869d6d08567ea98e9702852f296 | cb76aac6eec3426f7dfc8c6406ea7a6cd7b0cd15 | refs/heads/master | 2023-04-28T10:06:25.992648 | 2021-05-04T18:46:59 | 2021-05-04T18:46:59 | 364,354,400 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,034 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"dcheck_always_on": 0,
"debug_nghttp2":... | [
"calebgekeler@gmail.com"
] | calebgekeler@gmail.com |
2ec762ec2bec58fd017b625804d792cf4d0fa23e | a5907dda4a31b08136ec426fe84273f15326d6b7 | /TrainingSystem/TrainingSystem/wsgi.py | e25e6ee8ef557a88eef46d306b5e0c74f4a75153 | [] | no_license | BelchieBen/DjangoTrainingBooking | c6f9b7375c303a1e4e7839316e489c245a2f2b22 | 10007373683d86dd590ac5c06cae3dfbb5034025 | refs/heads/master | 2023-05-30T03:03:31.094674 | 2021-06-11T13:20:31 | 2021-06-11T13:20:31 | 373,129,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for TrainingSystem 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"75249728+BenjaminBelchie@users.noreply.github.com"
] | 75249728+BenjaminBelchie@users.noreply.github.com |
07e201a71a3fbcd54516095ca4d00e428a563f24 | a552cd0cd0e3445f2119fcb9019a421983f43306 | /contest_volumes/volume_115/11565.py | 70fa756518de5e446f245b02bfd5e1984c6ccae7 | [] | no_license | yftsai/uva-online-judge | dbb3fd485efa27f391c11ceb31effc423cfa8b40 | cf204240502bbce89ab746c0f5be74e29d923ea3 | refs/heads/master | 2022-08-27T10:08:19.642502 | 2021-10-04T00:33:09 | 2022-08-07T06:12:03 | 50,548,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | # #easy
from math import sqrt
def search(a, b, c):
xm = int(sqrt(c))
for x in range(-xm, xm + 1):
ym = int(sqrt(c - x**2))
for y in range(max(-ym, x + 1), ym + 1):
z = a - x - y
if y < z and x * y * z == b and x**2 + y**2 + z**2 == c:
return (x, y, z)
... | [
"yifan.tsai@gmail.com"
] | yifan.tsai@gmail.com |
d0fe60462342ff39de01b1f8df7a2a0e91c55604 | 4fc21c3f8dca563ce8fe0975b5d60f68d882768d | /Darlington/phase1/python Basic 1/day 6 solution/qtn1.py | 79447fcdb8f1064021152620bb180e2fb9552ea6 | [
"MIT"
] | permissive | Uche-Clare/python-challenge-solutions | 17e53dbedbff2f33e242cf8011696b3059cd96e9 | 49ede6204ee0a82d5507a19fbc7590a1ae10f058 | refs/heads/master | 2022-11-13T15:06:52.846937 | 2020-07-10T20:59:37 | 2020-07-10T20:59:37 | 266,404,840 | 1 | 0 | MIT | 2020-05-23T19:24:56 | 2020-05-23T19:24:55 | null | UTF-8 | Python | false | false | 108 | py | #program to check whether a file exists
import os.path
open('abc.txt', 'w')
print(os.path.isfile('abc.txt')) | [
"darlingtonchibuzor64@gmail.com"
] | darlingtonchibuzor64@gmail.com |
b423b36ea5573d1d22e2a0f59e1c3156fb45c5db | 043943bfb61023c4310cf7c6b97fb673a7c9a8c0 | /recoverTree.py | cc8c467cac2c63b168c19f2b1e4e325f22104b3e | [
"MIT"
] | permissive | xiaochuan-cd/leetcode | 0416f4265e24b9a45934571b2cd04983acb8051e | 8da7fb9c1a8344f5f258936c8a7d6cd25d3b3393 | refs/heads/master | 2020-04-05T15:53:47.856891 | 2019-04-16T13:34:23 | 2019-04-16T13:34:23 | 156,988,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def recoverTree(self, root):
"""
:type root: TreeNode
:rtype: void Do not return anything, modify root in-place ... | [
"15008216625@163.com"
] | 15008216625@163.com |
4d352594e3d2b3e79f5ea48063fc2959abef8c5b | 3c31584c1b661195a567ffd2603d30cb2e270493 | /codeforces/864/D.py | 86f83b4c6f59f1a9df0e1846a628d8b628115a0c | [] | no_license | ku-nal/Codeforces | c7f621e35b5d4eea1ed11276ee8e91031252ca91 | df43c2fcbcfd1c9f96b6fe79c7abc9ddee054cb7 | refs/heads/main | 2023-04-10T19:00:40.559074 | 2021-04-27T15:15:51 | 2021-04-27T15:15:51 | 362,154,763 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | #===========Template===============
from io import BytesIO, IOBase
import sys,os
inpl=lambda:list(map(int,input().split()))
inpm=lambda:map(int,input().split())
inpi=lambda:int(input())
inp=lambda:input()
rev,ra,l=reversed,range,len
P=print
BUFSIZE = 8192
class FastIO(IOBase):
newlines = 0
def __init__(self, f... | [
"kunalmakwana18@gnu.ac.in"
] | kunalmakwana18@gnu.ac.in |
91987a56f188ecedb407c240b92f3f1af70abece | b4bd68667425c82cfa68a8ae29bd6ba8955429fb | /Xmas_2020-keep_it_simple/attack.py | cfe8a98823d978b1d8ada424e13228d34825e0f8 | [] | no_license | Sin-ctf/CTF-files | 4f223ec2854ed1328fbcc6fd752b37455c9f40b6 | ff3b41583773e9dd77998037d69961768f47450a | refs/heads/main | 2023-04-18T16:01:04.059855 | 2021-05-02T12:21:37 | 2021-05-02T12:21:37 | 324,801,059 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,276 | py | from cipher import *
import random
def generate_pairs(nb,key):
pairs = []
cipher = FEAL(4, key)
for i in range(nb):
plaintext = [random.randint(0,255) for x in range(8)]
ciphertext = cipher.encrypt(plaintext)
pairs.append([plaintext,ciphertext])
return pairs
def bit_array(array):
bit = []
for byte in arra... | [
"noreply@github.com"
] | Sin-ctf.noreply@github.com |
22fd9fdc426e9b3233f7744ac44a96fc688529bd | 30b31d3db7c53a675d205c894818fc8d70b8e020 | /advent2020/tests/test_shuttle_search.py | 91dd19984ed7cf7a33a9dfc0ed20d7e7a342f107 | [] | no_license | dereklavigne18/adventofcode | 0b5cfd85d564bcae42f0b9411429d84941f5b7f4 | 3b77e9e2aab191c753b05e1772ec7aabbb5dacd8 | refs/heads/main | 2023-01-31T06:48:35.207394 | 2020-12-17T22:24:31 | 2020-12-17T22:24:31 | 317,686,322 | 0 | 1 | null | 2020-12-17T22:24:32 | 2020-12-01T22:38:28 | Python | UTF-8 | Python | false | false | 2,774 | py | from typing import List, Tuple, Optional
import pytest
from advent2020.questions.shuttle_search import (
find_next_bus_after_timestamp,
find_timestamp_where_departure_sequence_is_met
)
# Subject: find_next_bus_after_timestamp
def find_next_bus_after_timestamp_provider() -> List[Tuple[int, List[st... | [
"dlavigne@wayfair.com"
] | dlavigne@wayfair.com |
c564693bedf70812ba7b06cdbdaed0631e1a2a30 | 8a48517050e7f1e74d094691f5ef72df1b97a8fa | /videomain/models.py | 1538174767a5aeab17f94225db9d42dfad900b75 | [] | no_license | Dkhanas/microsocial | 8a4fc827c01a275a7c49c2cb258f2995953a201e | 892baf2fd59bac04fc0497b6df77bf2410ae262d | refs/heads/master | 2021-01-19T00:58:28.063115 | 2017-11-21T09:25:41 | 2017-11-21T09:25:41 | 35,510,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | from django.utils import timezone
from django.db import models
class VideoMainPage(models.Model):
video_url = models.URLField()
checked = models.BooleanField(default=False)
last_active = models.DateTimeField(default=timezone.now, blank=True)
| [
"dkhanas@gmail.com"
] | dkhanas@gmail.com |
e029fc1511c8b0feb0d2d4b08757f31cec7d214b | 3171bd8116658ed3149e685236380cf00668ad15 | /机器学习与深度学习基础/Regression/2.7.save.py | 273dad78db2d262540eb6cbd88b200f410187d03 | [] | no_license | chaodongwen/DeepLearning | 9e9ab572c016a6a8e61798d65373fd7e7468c831 | 932daa1a6b9218b08d284139c49d9517a146e071 | refs/heads/master | 2020-05-09T16:15:58.529549 | 2019-10-20T15:50:35 | 2019-10-20T15:50:35 | 181,264,430 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import numpy as np
import pandas as pd
from sklearn import preprocessing
from sklearn.linear_model import LogisticRegression
from sklearn.preprocessing import StandardScaler, PolynomialFeatures
from sklearn.pipeline import Pipeline
from sklearn.metrics import accuracy_... | [
"noreply@github.com"
] | chaodongwen.noreply@github.com |
b12bded75660d1c0e16b9bd177d513f0d258c11a | 89c42884e6447377df4192aa7c126e470b473bc2 | /torch_patch.py | ed0c99ec80cf9e51e704274c9c9414d7794a9994 | [] | no_license | jhyuuu/ActiveSparseShifts-PyTorch | c32468db8475da2000423ef27b9fade5104e0472 | 218c6beb83956c8be53b07fe7919f6de27cebb74 | refs/heads/master | 2023-04-18T20:37:47.590283 | 2021-05-05T15:31:43 | 2021-05-05T18:54:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | from pathlib import Path
import re
import sys
from copy import deepcopy as copy
import subprocess
import torch
python_exec = sys.executable
torch_path = Path(torch.__file__).parent.resolve()
find_str_1 = '''
struct ArgumentDef final {
using GetTypeFn = TypePtr();
GetTypeFn* getTypeFn;
};
'''
patch_str_1 = '''
st... | [
"noreply@github.com"
] | jhyuuu.noreply@github.com |
2934883e1900768560f292e0b7e757f33cd0865d | 2325609fca716e9622e27954814e0d0002e2cfb5 | /app/usuario/migrations/0004_auto_20180926_0909.py | 90d2ebf7164b9a59ba87a9fc497483e91697ba48 | [] | no_license | humbertoandueza/agrosoft | 035503d9f103892d7c0b5262ddce3f989f6a0896 | b85bee438ec18caae90d368365ecfefe13232c7c | refs/heads/master | 2020-03-31T01:47:18.325401 | 2018-10-06T01:36:51 | 2018-10-06T01:36:51 | 151,794,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-09-26 13:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('usuario', '0003_auto_20180926_0903'),
]
operations = [
migrations.AlterField(... | [
"humbertoanduezaa@gmail.com"
] | humbertoanduezaa@gmail.com |
6bd2107161acad768cd7b1479f8da9833c4759ce | 6988ebf00a55f005a9a74922183550b0ff893d6d | /my_torchvision/ops/__init__.py | 3c9318534722e8acce7f66997507e2b117fc15de | [
"MIT"
] | permissive | ptklx/segmentation_models.pytorch | 8eb4467cee7f56d1bd4c7d9196cdc7aa6640bf62 | 16c68a7e6bff9644b97f340d67912c4785219818 | refs/heads/master | 2022-11-06T21:21:05.684091 | 2020-06-24T01:40:41 | 2020-06-24T01:40:41 | 274,543,431 | 0 | 0 | MIT | 2020-06-24T01:12:16 | 2020-06-24T01:12:15 | null | UTF-8 | Python | false | false | 751 | py | from .boxes import nms, box_iou
from .new_empty_tensor import _new_empty_tensor
from .deform_conv import deform_conv2d, DeformConv2d
from .roi_align import roi_align, RoIAlign
from .roi_pool import roi_pool, RoIPool
from .ps_roi_align import ps_roi_align, PSRoIAlign
from .ps_roi_pool import ps_roi_pool, PSRoIPool... | [
"noreply@github.com"
] | ptklx.noreply@github.com |
24e479bc14d88a4d856866a9475952562dcc6177 | da7a165522daea7c346693c5f32850017c482967 | /abc51-100/abc051/c.py | ad218ed2b388081ae9705ec0c52f82e5979ea0be | [] | no_license | SShayashi/ABC | 19f8750919208c5ff8935638dbaab941c255f914 | 3cbfee0c5251c1bb0df6306166d8d4b33bf7bb2c | refs/heads/master | 2021-05-04T21:06:10.720367 | 2020-07-11T13:59:16 | 2020-07-11T13:59:29 | 119,886,572 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | def m():
sx, sy, tx, ty = map(int, input().split())
X = tx-sx
Y = ty-sy
ans = ""
# 一周
ans += "U" * Y
ans += "R" * X
ans += "D" * Y
ans += "L" * X
# 左に一つずらして目的地まで
ans += "L"
ans += "U" * (Y+1)
ans += "R" * (X+1)
ans += "D"
# 右にずれて開始地点まで
ans += "R"
an... | [
"sshayashi0208@gmail.com"
] | sshayashi0208@gmail.com |
fe5015f07985d975b2088d2c47e3cb57f611eaca | 514b097620fd0dcdf13785fe287e545dc8144149 | /tmp/untitled.py | f0fda5380d25137bfc67a4a8aff281c9dab5b883 | [] | no_license | abdulrahmantkhalifa/abdutest | a268c90e048a4a993016c4e40657835dd8d9adbf | 1f7e0a287bd78fe3f82d613b1c5af81848db7d68 | refs/heads/master | 2021-01-10T14:44:23.320055 | 2016-03-28T17:57:48 | 2016-03-28T17:57:48 | 54,883,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | with open("wtv/wtv.xml") as f:
data = f.read()
print data | [
"tareka@codescalers.com"
] | tareka@codescalers.com |
56885449694b26c178a24c19fa7249dfae52be87 | 3ff74b6a25cb5349597695157349e6cf24ca1c08 | /inkslab/python/pos_tagging/tag_model.py | adb240ace53ce23026741a7a8feb09dd073c7dce | [] | no_license | BenSNW/inkslab | 7a1d360b243bcf036a0b9e1b07089e4717477a50 | 071e28250710a667fc89aa20fd8bfbb5b44e83d1 | refs/heads/master | 2020-03-27T01:05:16.784438 | 2018-08-22T11:10:46 | 2018-08-22T11:10:46 | 145,680,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | # -*- coding: utf-8 -*-
import pickle
import numpy as np
import tensorflow as tf
from inkslab.python.tf_model import TfModel
from inkslab.python.base.ac_scanner import AcScanner, TaggingScanReporter
from inkslab.python.dataset.dataset_utils import result_to_sentence
class TfTagModel(object):
def __init__(self):
... | [
"zhipeng.wang@transwarp.io"
] | zhipeng.wang@transwarp.io |
592b1efc03ac28506775fb3f256dacaabfc7b262 | 6b23a5285cdd3927612f0ebc5c477b2a50c541c4 | /src/pyicecream/app.py | 6be6de326f85339f5286d1c4890c1f08a0ab504d | [] | no_license | LeonB/py-icecream | 2b786e7483edad6f15e713846d5bce37526c0632 | 8a6610f14a3446575b1735306594549830d7bd92 | refs/heads/master | 2021-01-15T12:25:48.419752 | 2010-01-24T18:49:46 | 2010-01-24T18:49:46 | 343,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | from callback_method import *
class App(object):
def __init__(self):
self.boot()
@callback_method
def boot(self):
self.setup_config()
self.setup_logger()
self.setup_callbacks()
self.load_plugins()
@callback_method
def setup_config(self):
self.confi... | [
"leon@tim-online.nl"
] | leon@tim-online.nl |
d09bb46d44c6e14da5c2b5938e35183a1c3503db | f78d8ee407cb7492184fa5c5a85cf934b1d892d0 | /DecryptionModel.py | 5d28b6fbf179707bfdba151a45e13cbe73b97855 | [] | no_license | BastLast/DeepLearning | 9caf098be8ca49ac55492d535b689236fa992d96 | 99f04a7b31d1e87459c7de42464e918950fdc90f | refs/heads/main | 2023-08-21T18:26:49.702006 | 2021-10-10T20:20:44 | 2021-10-10T20:20:44 | 411,566,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | import torch
import torch.nn as nn
from torchvision import transforms
class DecryptionModel(nn.Module):
def __init__(self):
super(DecryptionModel, self).__init__()
self.flatten = nn.Flatten(start_dim=1)
self.relu1 = nn.PReLU()
self.linear = nn.Linear(9216, 9216)
def forward(se... | [
"bastien.last87@gmail.com"
] | bastien.last87@gmail.com |
bec9987287accd54c9f69ad3e5a3b4959dba332f | 32372ba063f332bf20300b6d75c8d985bcabacb8 | /src/pythermalcomfort/psychrometrics.py | efc2f5b4f06167557e9fae6d6986fee0cdce9c68 | [
"MIT"
] | permissive | jubin13/pythermalcomfort | 4685b94ee57b142100e98a8fa7f9b2278dbdbb71 | be51c027a4344ba558589e34e83e356002e6b8f1 | refs/heads/master | 2022-11-29T21:13:17.133683 | 2020-08-13T04:16:03 | 2020-08-13T04:16:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,843 | py | import math
from pythermalcomfort.utilities import *
c_to_k = 273.15
cp_vapour = 1805.0
cp_water = 4186
cp_air = 1004
h_fg = 2501000
r_air = 287.055
def p_sat_torr(tdb):
""" Estimates the saturation vapor pressure in [torr]
Parameters
----------
tdb : float
dry bulb air temperature, [C]
... | [
"federicotartarini@gmail.com"
] | federicotartarini@gmail.com |
cb46e9e19fae34da7ec6451e0dfeb1b3222bff77 | 4c34dca6c12dd36e9e8eb360a2cbbb3f39a50e20 | /scratchpad/scratch.py | 4698f26325561e0b97de44eeba25d723830a5498 | [
"BSD-3-Clause"
] | permissive | PlumpMath/m2py | a35e0265d9e3c46214c9560b46a9e59df63c9a9b | 4a8f754f04adb151b1967fe13b8f80b4ec169560 | refs/heads/master | 2021-01-18T20:16:37.973122 | 2015-01-30T11:29:15 | 2015-01-30T11:29:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
txt = """
>>> t = [1, 2, 3, 4, 5]
>>> map(lambda x: x**2, t)
[1, 4, 9, 16, 25]
>>> t
[1, 2, 3, 4, 5]
>>> zip(t, map(lambda x: x**2, t))
[(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)]
>>>
"""
def paste_run():
global txt
import re
from .utils import xclip
#tx... | [
"caiorss.rodrigues@gmail.com"
] | caiorss.rodrigues@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.