blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3e6845295b7789eac872006c5106f6f4a6dc2a7 | d12ef690860a96681e182b3004508f884bb76a3a | /Capitol xarxa especial/Prova entre edificis agost/2 Sensor/boot.py | fdcfb5c900705eefdd73da95fb6346df3dc6f576 | [] | no_license | mponsnieto/TFM_LinealLoRa | 82e8d526802e033bf1baed0437fabfccf5a133c4 | 3b6ea27d28795bf7048f277651d1a4d97ed3ecc2 | refs/heads/master | 2022-12-27T16:21:38.275852 | 2020-10-02T09:19:14 | 2020-10-02T09:19:14 | 215,236,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | import pycom
import comunication as comu
import machine
from machine import Timer
import ubinascii
from network import LoRa
import socket
import time
pycom.wifi_on_boot(False)
Hello_received=False
end_discover=False
CONFIG_MODE=0
DISCOVER_MODE=1
LISTEN_MODE=2
NORMAL_MODE=3
ALARM_MODE=4
CHECK=5
stop_config=False
pycom.w... | [
"39553140+mponsnieto@users.noreply.github.com"
] | 39553140+mponsnieto@users.noreply.github.com |
18672c97e8686dac670a15533a8de81df46a0211 | 9851e82ad8916809d2e444524c6c30fb78cb7636 | /deeplab-v3plus/decoder.py | bf9b3ee763de92f3cc174c4c0df8112043eec47f | [] | no_license | qixuxiang/jittor-models | 7cb207b7a8fc91983684bb91fc11f1e37778c226 | 3877d083cc1132466f61a37a2ea7115b46169c22 | refs/heads/master | 2021-04-07T11:51:46.353591 | 2020-03-20T15:39:47 | 2020-03-20T15:39:47 | 248,672,890 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | import jittor as jt
from jittor import nn
from jittor import Module
from jittor import init
from jittor.contrib import concat
class Decoder(nn.Module):
def __init__(self, num_classes):
super(Decoder, self).__init__()
low_level_inplanes = 256
self.conv1 = nn.Conv(low_level_inplanes, 48, 1, ... | [
"1223790892@qq.com"
] | 1223790892@qq.com |
e8518de3fd37b928d126d13d14cc0fe03395fbf7 | b838c392fec9934d73b6b605d672667bf1d5e3fd | /backend/application.py | 88743c87cdba3245e549229a5b6501dfa63b214f | [] | no_license | hmisonne/Canoo_SWOPS_test | 25ddcdb624cfeb8542206e3c055a5b4fba95f328 | 01c1556c60680674d51f8047f9c3c5afe8b91a03 | refs/heads/main | 2023-04-10T14:23:43.977490 | 2021-04-23T20:15:16 | 2021-04-23T20:15:16 | 360,990,095 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,834 | py | from flask import Flask
from flask import render_template, abort, redirect, url_for, request, jsonify
from flask_cors import CORS
import json
import uuid
app = Flask(__name__)
CORS(app)
# Configure "database" as json file
database_path = "data.json"
app.config['JSON_DATA'] = database_path
def read_json():
path ... | [
"helene.misonne@gmail.com"
] | helene.misonne@gmail.com |
717a09c9a3903bc090fb8be8b8623d3a1c28bc44 | 1953ad2d8cc8a36e29d3d48e5458aeb69bf17bdd | /[2580]스도쿠.py | 7dbe81b3611bcf036b36808e2602ec5b3bda8560 | [] | no_license | wookkl/backjoon-problemsolving | 8b75ac4575ffdc15615bc5672f1d5358ac3016a4 | fbe7e051c7513f52b2ac26472dfc34955013549d | refs/heads/master | 2023-04-10T22:33:49.614340 | 2021-04-25T00:50:47 | 2021-04-25T00:50:47 | 219,535,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import sys
def backtrack(idx):
if len(zeros) == idx:
for i in board:
print(str(i).replace(",", "")[1:-1])
sys.exit(0)
i, j = zeros[idx]
bin_nums = bin(box[(i // 3 * 3) + j // 3] | rows[i] | cols[j])
bin_nums_str = bin_nums[2:][::-1]
bin_num_list = list(bin_nums_str + "0... | [
"wjddnr315@gmail.com"
] | wjddnr315@gmail.com |
f3147f9501947da3c33d94954141d5999d4b481e | 003419fc3396bd8fe4b9a92689890b43793c2766 | /accounts/forms.py | 5d5d788614954ddae7c0eec9337934058bb906fb | [] | no_license | Code-Institute-Submissions/F1Experiences | 82d218865a3e2e2f2b7c10c09267b4bdd1d43677 | f18a2960eb0efcd699d94c0982b08c54bb1ec6c8 | refs/heads/master | 2023-01-23T03:25:57.556856 | 2020-12-10T14:46:16 | 2020-12-10T14:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | from django import forms
from .models import UserProfile
# User Profile Form
class UserProfileForm(forms.ModelForm):
class Meta:
model = UserProfile
exclude = ('user',)
labels = {
'default_phone_number': 'Phone Number',
'default_town_or_city': 'Town or City',
... | [
"filleryben@gmail.com"
] | filleryben@gmail.com |
46691ee0ff111b983af457bc01fe09ae5a1b1391 | a5a6d753ebebec4ef31115424c932cbc167da83f | /models/resnext/paths.py | f382ef7737dfbb5bad6ea5da64078fa183756b11 | [
"MIT"
] | permissive | XixiJin/depth-distillation | 3bdf897eaa6b9dd725c6e1370e8d3d8572c23f23 | fd53bceda4f317a5ed3832a2932a1eeb7eeb456b | refs/heads/master | 2023-04-12T20:36:54.199498 | 2021-05-10T03:21:11 | 2021-05-10T03:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | resnext_101_32_path = 'resnext_101_32x4d.pth' | [
"vinthony@gmail.com"
] | vinthony@gmail.com |
1340eb68406fbef4445d5ace94fbe286d31eeb2b | 06fb976887431bb1091080e29fcd96e3a03c234f | /scripts/train_vae.py | 238990d5876de0e5831fdd201f052fefafa9f450 | [] | no_license | fbkarsdorp/seqmod | ec07538dda41967cfcefcaafc8676bff6f301f89 | 41be103717635187d8bc7862f1b8b24e4b844321 | refs/heads/master | 2021-08-23T01:52:27.485158 | 2017-12-02T08:46:36 | 2017-12-02T08:46:36 | 112,826,621 | 0 | 0 | null | 2017-12-02T08:39:57 | 2017-12-02T08:39:57 | null | UTF-8 | Python | false | false | 8,411 | py |
import os
import argparse
import torch
from torch.autograd import Variable
from seqmod import utils as u
from seqmod.misc.loggers import StdLogger, VisdomLogger
from seqmod.misc.optimizer import Optimizer
from seqmod.misc.preprocess import text_processor
from seqmod.misc.dataset import PairedDataset, Dict
from seqmo... | [
"enrique.manjavacas@gmail.com"
] | enrique.manjavacas@gmail.com |
406dade01726b26edabf919479ca847bdec288ba | d4dcdeac84a06abc6e94ccf053c22d9edf83f316 | /user/migrations/0001_initial.py | 4569390e09a2eaa007e9a47b4cae38cd6ae6da15 | [] | no_license | maliha3/Onlinevotingnew | 29b721a8ace5938b488d53dce406d6f5cc8f9a4b | af365e59e9741a7f5e6897710daf6244c4cab86c | refs/heads/master | 2023-05-31T02:02:14.604024 | 2021-06-14T17:53:30 | 2021-06-14T17:53:30 | 376,911,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | # Generated by Django 3.1.7 on 2021-05-23 14:59
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='CandidateInfo',
fields=[
('... | [
"malihazaman@Malihas-MacBook-Pro.local"
] | malihazaman@Malihas-MacBook-Pro.local |
02fb7d52b9f2d4dd06d435b3711339f8d9111826 | baf3996414315ffb60470c40c7ad797bf4e6897f | /02_ai/4_cv/1_ml_mastery/1_cv/code/chapter_20/07_model_3vgg_data_aug.py | 02800ffcce5e2f90d1d314cb9dac9b719e6d5e41 | [
"MIT"
] | permissive | thiago-allue/portfolio | 8fbbecca7ce232567aebe97c19944f444508b7f4 | 0acd8253dc7c5150fef9b2d46eead3db83ca42de | refs/heads/main | 2023-03-15T22:10:21.109707 | 2022-09-14T17:04:35 | 2022-09-14T17:04:35 | 207,919,073 | 0 | 0 | null | 2019-11-13T18:18:23 | 2019-09-11T22:40:46 | Python | UTF-8 | Python | false | false | 3,497 | py | # baseline model with data augmentation on the cifar10 dataset
import sys
from matplotlib import pyplot
from keras.datasets import cifar10
from keras.utils import to_categorical
from keras.models import Sequential
from keras.layers import Conv2D
from keras.layers import MaxPooling2D
from keras.layers import Dense
from ... | [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
740163f70861011f0c99560d2f172914c821fc10 | 2ede45b74dd6346e676f64c6b04cfc8026eb5cb7 | /workout/views.py | f71947ae0f520f1981630e669b76a64c76748813 | [] | no_license | slwilson10/workout-log-python | 8733de1a86b0e0db1050a7760035c8172ba18f68 | ea21647b548691cba5d0ecb4b1d5fc8ff16ff544 | refs/heads/master | 2021-06-06T05:37:29.044137 | 2016-07-20T21:12:49 | 2016-07-20T21:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | from django.shortcuts import render, redirect, get_object_or_404
from django.http import HttpResponse
from django.forms import ModelForm
from django.forms import TextInput
from django.forms import modelformset_factory
import json
import time
import datetime
from datetime import date
from datetime import timedelta
from ... | [
"slwilson10@gmail.com"
] | slwilson10@gmail.com |
f6ed215d47602e6c764da70b1276d4d60228f50f | fd317ad4cec75d2cae42990bc7afce7aad06fb6b | /convert.py | e54912884da3bdf27a5c22a9438b0661d4c4b9b6 | [] | no_license | hgjazhgj/GenshinGachaExport | d593daacc6ce2b782f745f895d72ecad19b9a7e3 | 8d31f61f79621406ea563be0b49dca23065246e9 | refs/heads/main | 2023-04-06T04:29:44.697846 | 2021-04-13T06:23:09 | 2021-04-13T06:23:09 | 351,501,405 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | def convert(olddata):
gachatype = {
i["key"]: i["name"]
for i in olddata["gachaType"]
}
return {
gachatype[i]: [
{
"time": k["time"],
"name": k["name"],
"type": k["item_type"],
"rank": int(k["rank_type"]),
... | [
"979449732@qq.com"
] | 979449732@qq.com |
0a53bfc8eba8bfd699ec945922c8db79949e6ed7 | eedf1d63e217560eb76d19e8fee29d1e6613c8c9 | /WireRouting/Recursive/wireRoutingv4.py | f85d23077b7893e4c31ece912020ba6a52591e39 | [] | no_license | jtadley/Python | 2b446eb8a871226469770a87196f6b2e88cfb5b3 | 831d591c2906712efdaaf144a9e936642876c578 | refs/heads/master | 2021-09-24T08:38:01.130036 | 2018-10-06T03:36:45 | 2018-10-06T03:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | #2d array of 0's and -1's, find shortest path from top left to bottom right without using -1 squares (only 0's)
class Route(object):
ls = []
WIDTH = 0
HEIGHT = 0
def __init__ (self, ls):
self.ls = ls
self.HEIGHT = len(ls)
self.WIDTH = len(ls[0])
self.ls[self.HEIGHT-1][self.WIDTH-1] = 1
def print_ls(self... | [
"noreply@github.com"
] | noreply@github.com |
c2327e33c9697abff1f3b6a790d5b7ecb8df9aab | b5d7e814aac471eeabc6a0d23c74e5154e793f93 | /Python/mysit/blog/migrations/0001_initial.py | a2fce39aa34c554b7db7b0c6e859653d3a907447 | [] | no_license | SelmerZhang/Code | b4064758c141c0c9db112b97a55986f52fac998a | 84fb3245f12177e7294523dfea2938933ae9e813 | refs/heads/master | 2022-11-17T00:04:55.380889 | 2018-06-09T12:07:47 | 2018-06-09T12:07:47 | 138,289,233 | 0 | 1 | null | 2022-11-04T14:54:45 | 2018-06-22T10:23:03 | Python | UTF-8 | Python | false | false | 563 | py | # Generated by Django 2.0.4 on 2018-06-07 02:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Ariticle',
fields=[
('id', models.AutoField... | [
"33535338+BobbyLiukeling@users.noreply.github.com"
] | 33535338+BobbyLiukeling@users.noreply.github.com |
6a6c28212d9e9aabe4376c6f3ca2a32bf4e73053 | f6f4c87a1f2e750530a7d691da43514d84f99f5c | /hw20/a/q3/q3.py | 6ee2af17e499595428e05652bd352713f2bf63d4 | [] | no_license | sarthak77/Basics-of-ML-AI | e941c6653bca95278cc62ee7ba229e8eaf4e309b | cb2ba9d271da919846211cf8496e29aff6beaa46 | refs/heads/master | 2020-07-25T10:33:54.420972 | 2020-01-09T19:25:57 | 2020-01-09T19:25:57 | 208,257,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,409 | py | #Import modules
import numpy as np
from numpy import linalg as LA
import matplotlib.pyplot as plt
from sklearn.metrics import mean_squared_error
from sklearn.svm import SVC
import keras
from keras import regularizers
import keras.optimizers
import keras.initializers
from keras.models import Sequential
from keras.mo... | [
"sarthak.singhal@students.iiit.ac.in"
] | sarthak.singhal@students.iiit.ac.in |
14b60918aa149d8e4c934cdf5c83f24517e5689e | 03dacfab20ffb93eeb675f78005824bf68b72e7c | /Python/Algorithms/DP/子序列和子串问题/354 H_俄罗斯套娃信封问题.py | e78bb23ffa6ace70bf74d60bfd6ad1d2b37790e4 | [] | no_license | RuiWu-yes/leetcode | e343a55ebd7a3cacd400d6d2605fdbd2345a28d3 | bfc5641445c505f2b41155c61bdf65f3e601554f | refs/heads/master | 2023-07-14T07:27:42.525472 | 2021-08-01T08:57:00 | 2021-08-01T08:57:00 | 342,442,765 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,892 | py | # -*- coding: utf-8 -*-
# @Author : ruiwu
# @Email : ryanwoo@zju.edu.cn
# @Title : 354 俄罗斯套娃信封问题
# @Content : 给定一些标记了宽度和高度的信封,宽度和高度以整数对形式 (w, h) 出现。
# 当另一个信封的宽度和高度都比这个信封大的时候,这个信封就可以放进另一个信封里,如同俄罗斯套娃一样。
# 请计算最多能有多少个信封能组成一组“俄罗斯套娃”信封(即可以把一个信封放到另一个信封里面)。
# @Explain : 不允许旋转信封。
from bisect import bi... | [
"10028560@qq.com"
] | 10028560@qq.com |
d2c23d335c2736d5322ef3b4deda597efefd0245 | 776d37b9eb05d226835235b53664b4073579e6da | /jumpcutter_gui_threaded.py | c259ba4717cdb7f1831d70874f91d09c2b18de57 | [
"MIT"
] | permissive | Jurkiabef/jumpcutter | 5cce183306ead52ae6198172a281f2262ddc3d99 | 0b95a75bd04e7c6bf2c3c81699b0bd1983415754 | refs/heads/master | 2023-07-15T05:45:50.267754 | 2021-08-25T22:37:17 | 2021-08-25T22:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,580 | py | import PySimpleGUI as sg
import subprocess
import sys
import threading
print(sg.version)
help_text = \
"""
Jumpcutter GUI
This is a front-end GUI for a command line tool named jumpcutter.
jumpcutter is a command line based tool written by Carykh. You'll find the repo here:
... | [
"PySimpleGUI@PySimpleGUI.com"
] | PySimpleGUI@PySimpleGUI.com |
1f64e33aa07cb9bcf3c6005cda9b8c494c15722b | a8fba716c34185c0975a00b4e48b8c6cb4b797a0 | /run.py | 2bf2086f0243534332e97e9d4e70fc763ceb0d94 | [] | no_license | nDerroitte/INFO0948-2-Project2 | f8e644a3d070f336b33d76ae52ca81ed9f880ff7 | de2d91de6ef6ef8a1c65adee9dadc0cea88af9ab | refs/heads/master | 2020-05-17T18:53:46.640777 | 2019-05-02T19:19:40 | 2019-05-02T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | from argparse import ArgumentParser, ArgumentTypeError
from channel_coding import *
from source_coding import *
if __name__ == "__main__":
usage = """
USAGE: python3 run.py <options>
EXAMPLES: (1) python run.py
- Launch the P1 of the project
"""
# Using argparse to sel... | [
"natan.derroitte@gmail.com"
] | natan.derroitte@gmail.com |
7bcd560bebb1283c59e23d59d05a885eb20133a7 | a7e406b98b6e2013377a80a9fcfdd56af202e952 | /API_Python/piano.py | bcfeb1ec2aa9b9e1a697e16962c19197665d75fa | [] | no_license | markbradley27/psoc_2_pi | d16ee9d46d87f62910ba5e4d6f9ef5645d30a610 | ae69fd10038113d2c38fee6e889c58e71bbb75f2 | refs/heads/master | 2020-12-11T01:41:41.203942 | 2014-11-29T04:22:55 | 2014-11-29T04:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | from rpisoc import *
RPiSoC('COM16')
def main():
try:
#note_freqs = [1046.5, 1174.7, 1318.5, 1396.9, 1568, 1760, 1975, 2093]
midi_notes = [ 84, 86, 88, 89, 91, 93, 95, 96]
# C D E F G A B C
buttons = []
for ... | [
"embedit@embeditelectronics.com"
] | embedit@embeditelectronics.com |
1fc505b30b25839f84b4d04880eee6453651ad2d | 31d333d955fb9fd696a7d8116fab32e608d8ae7a | /tests/sorting/shellsort_test.py | 6fdc1603403524c464587ee7653675ca4360210f | [] | no_license | emanuelvianna/algos | 64fcab915dcc442964ea3ceb08e0162fd42c5efe | 6d7fedbe6cbb8ece50e7379cebd4da024f7c571d | refs/heads/master | 2020-05-20T19:24:13.272634 | 2015-11-25T14:04:06 | 2015-11-25T14:04:06 | 28,549,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | import unittest
from algo.sorting.sorting import sort
from algo.utils.test_utils import ExtendedTestCase
class ShellSort(ExtendedTestCase):
def test_two_elements_list(self):
numbers = [9, 8]
sorted_numbers = sort(numbers, algo="shellsort")
self.assertEquals(
[8, 9],
... | [
"emanuel.vale@catho.com"
] | emanuel.vale@catho.com |
c8010df76d66ff672475150ab58ae383e01eade6 | d41ef3f569e15b6822ba4a5e939d9510fb45684d | /004_NUMBA.py | af7b9b95657132d7a493664006b33313d1c5e5ab | [] | no_license | agusphd/BIGDATA | 6e765cf5c365aa326e77ce1d23765b01d9163a38 | 287c143546268bad94ebf9494276305e72884b84 | refs/heads/main | 2023-06-17T20:24:54.204392 | 2021-07-17T10:37:06 | 2021-07-17T10:37:06 | 386,820,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import time
import numpy as np
from numba import njit
## Matrix Multiplication
@njit()
def matrix():
N = 200
X = np.random.random((N,N))
Y = np.random.random((N,N))
Z = np.zeros((N,N))
for i in range(len(X)):
for j in range(len(Y[0])):
for k in range(len(Y)):
Z[... | [
"noreply@github.com"
] | noreply@github.com |
8a67dce70e82e8ad319719012b64e34d491a5123 | 5fe56c01b532b6d77faf3981f0e8b36b6e3daa30 | /homelink/utils/redis_queue/fifo_redis_queue.py | c35bd95e63ed63963d1416c047ce992ad4e08e56 | [] | no_license | LuCheng-Jiang/Lianjia_crawl | f0ac3a2295ef250b41e9586029c24541df4f22ed | 59630942d7efa5a55d3e5d6cf5ea60703ab9e703 | refs/heads/master | 2022-11-30T01:46:59.792882 | 2020-08-05T03:53:13 | 2020-08-05T03:53:13 | 285,173,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from .base import BaseRedisQueue
FifoRedisQueue = BaseRedisQueue | [
"kwenlsj@163.com"
] | kwenlsj@163.com |
f9bb693d51cc4b385881ed29cc3172278c228763 | a747fdf537f7caa7d932555511f14b1e7e448a28 | /getData.py | 8358823aada2c2739aa71b527f20245c92aa8e6e | [] | no_license | aliana17/FileMaker | a350ee959f72c64a4f18d7389202d21b17883dbd | 7de92fc73fc19c22af0ee4eda51e0698489970e5 | refs/heads/master | 2022-12-24T10:12:05.809909 | 2020-09-30T18:30:55 | 2020-09-30T18:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | #!/usr/bin/python
# Import modules for CGI handling
import cgi, cgitb
import os,sys
import json
f = open(os.path.join(sys.path[0], "Dockerfile"), "w+")
# Create instance of FieldStorage
form = cgi.FieldStorage()
# Get data from field
app_type = form.getvalue('app_type')
port = form.getvalue('port')
cmd = form... | [
"ec2-user@ip-172-31-36-173.ap-south-1.compute.internal"
] | ec2-user@ip-172-31-36-173.ap-south-1.compute.internal |
063eade1f7e9963b0e3c93f0c5309df57eb59a5f | 97e63609c39bbd2e2382e159f32dbfef07fa6d35 | /ranker/migrations/0002_auto_20150401_2236.py | 4b398f471ddc812d6b8c4dadce7d1e5e1fa2dc4c | [
"MIT"
] | permissive | cmaclell/humanranker | 228d2f9ad814fcc540676a0f9ae14fe51ed6939c | 5a5d2de6c8975506106b8531d38952edc687ae9e | refs/heads/master | 2021-01-21T01:51:56.889057 | 2016-03-29T13:54:36 | 2016-03-29T13:54:36 | 33,196,639 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ranker', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
name='judge',
options={'ord... | [
"maclellan.christopher@gmail.com"
] | maclellan.christopher@gmail.com |
22c07331e1b110b09e94605b96187b0a4ec40108 | c1960138a37d9b87bbc6ebd225ec54e09ede4a33 | /Week 11/ArnieMartin_CircuitPlayground_Single_Mouse_Button_Advanced.py | 318bd949acb9fb6b6f28b56d917f96a7274d3b7d | [] | no_license | apalileo/ACCD_PHCR_SP21 | 76d0e27c4203a2e90270cb2d84a75169f5db5240 | 37923f70f4c5536b18f0353470bedab200c67bad | refs/heads/main | 2023-04-07T00:01:35.922061 | 2021-04-15T18:02:22 | 2021-04-15T18:02:22 | 332,101,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py |
# more advanced-ish use of single onboard button to control LMB and RMB
# works with CPX and CPB, copy adafuit_hid to /lib
import board
import time
import digitalio
import busio
import adafruit_lis3dh
import usb_hid
from adafruit_hid.mouse import Mouse
killswitch = digitalio.DigitalInOut(board.SLIDE_SWITCH)
killswit... | [
"55570902+apalileo@users.noreply.github.com"
] | 55570902+apalileo@users.noreply.github.com |
7271d39c3c5bbf772f4b944007a85e91aace4837 | e0c780fc21305ca54abf40dbfb539a3b4f639978 | /machine learning/aa.py | f9bf00301e9d5ca9eed37743bf842a6eedc4a82d | [] | no_license | englishta/python | 307229182482b1f6d62d7d75376b8f4cad32bdf9 | d804cf77124089409db48d6808ff085285b664e8 | refs/heads/main | 2023-05-20T01:52:59.506422 | 2021-06-11T09:24:42 | 2021-06-11T09:24:42 | 352,003,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | #信頼区間を計算し仮説を判定する関数
#H0:交代後も母平均に変化なし(µ=µ0)(帰無仮説)
#H1:µ>µ0 (対立仮説)
#interval_t関数の戻り値:True=帰無仮説が妥当だ、False=帰無仮説を棄却
def interval_t(alpha, x, mu):
import numpy as np
from scipy.stats import t
x_bar = np.mean(x) #標本平均
s2 = np.var(x, ddof=1) #標本不偏分散
N = np.size(x) #標本サイズ
T = (x_bar-mu)/np.... | [
"1999ju373@gmail.com"
] | 1999ju373@gmail.com |
17ed3108058069d076537b341fdefe18423acf0f | 12d71cd47a2167d550bab93fa3c11b4da1c5d6a7 | /mpp-backend/api/models/accounts/nested_serializers.py | 799e2039a1e1dba842f5f26cab9c16aee0e73a93 | [] | no_license | dieptran43/Medicine-Data-Portal__Data-Reporting-Tool | 69596c3a6606111debcc070227f3eadb27c45c7a | 2d32bb4a05adaca1235d1bb3d1e6c0fa74cef6b3 | refs/heads/master | 2023-02-14T01:26:54.494022 | 2020-12-06T07:14:29 | 2020-12-06T07:14:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,076 | py | from rest_framework import serializers
from rest_framework import status
from rest_framework.response import Response
from api.models.password_email import send_password_email
from api.models.custom_exception import MyCustomException
from api.models.accounts.user_model import User
from api.models.accounts.partner_mod... | [
"kaushikjadhav01@gmail.com"
] | kaushikjadhav01@gmail.com |
1372421eb457f6c1605a40a6b532a777e7e0f7a6 | 2fd120b8c705ebd91bc4f02531686a5ef4e044c8 | /app/models/__init__.py | d114462bfb5f9d8b059c3d1f90a2dfc381f544d1 | [] | no_license | ColeRutledge/api | 5002f13deaebb83d00d0cceac4673e1bf6e50fdc | 4c63c6012043eb544904b125e1ea0e0a6125b5e7 | refs/heads/master | 2023-06-12T23:26:52.061572 | 2021-07-08T19:32:53 | 2021-07-08T19:32:53 | 286,605,350 | 0 | 0 | null | 2021-03-20T05:04:50 | 2020-08-11T00:16:19 | Python | UTF-8 | Python | false | false | 74 | py | from .models import db, User, Posting, Search, AvgMktSalary, MarketMetric
| [
"ColeRutledge@gmail.com"
] | ColeRutledge@gmail.com |
e1416e532a38b29cf7d655d00880ec3b1c4203b9 | 001ad668d86a890eb93f7893e0b74eee826eed39 | /hack/api/models.py | 4966eb42eece364b0853e56c7fb300c947f9164c | [] | no_license | justin-robinson/clthackathon2017 | 3597c2f5881f10aa86121b3286517219a540ea62 | ac9dad03646c69d6796cdb74afe2a977705521be | refs/heads/master | 2021-08-09T00:24:06.182974 | 2017-11-11T18:21:01 | 2017-11-11T18:21:01 | 110,302,289 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,838 | py | from django.db import models
class Patient(models.Model):
PatientId = models.AutoField(primary_key=True)
FirstName = models.CharField(max_length=150)
MiddleName = models.CharField(max_length=150, null=True)
LastName = models.CharField(max_length=150)
UserName = models.CharField(max_length=150)
... | [
"jurobn@amazon.com"
] | jurobn@amazon.com |
4990033e617defa29b6372f1d0f2bf4f5815621c | 330ab616639d215b09835daf3e7b0b3f6082a784 | /migrations/versions/d4595623292d_second_migration.py | 876b8aea5ff2c10044a56781409bdb4367aaa8b3 | [] | no_license | shenmj053/flaskr | bcb48b58db6605b473af49adcd49127916eb9ae3 | 8dfaad51175dd4206a1f9858c9d2024a223df847 | refs/heads/master | 2021-01-21T13:15:19.425633 | 2016-05-21T09:41:16 | 2016-05-21T09:41:16 | 55,611,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,185 | py | """second migration
Revision ID: d4595623292d
Revises: None
Create Date: 2016-04-23 22:50:28.566982
"""
# revision identifiers, used by Alembic.
revision = 'd4595623292d'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - please adjust! ... | [
"shenmj053@163.com"
] | shenmj053@163.com |
3f089398f77c342d517ecee9100b241f4bfdf4a7 | baf0964cd29e45c3653f7a6efde419b2be89cfbf | /final_SFT/crvFitWin.py | b72021c42325adeb93965a7ffe73f19b2d80b599 | [] | no_license | Yasara123/Grade-Prediction-System | fd45f96290c331577688fc40e3d42540fe7a80f7 | b443efa4dff9a2fafc5a6b8c7b59b7207ee37363 | refs/heads/master | 2021-01-10T14:40:11.388273 | 2015-11-01T06:10:44 | 2015-11-01T06:10:44 | 45,329,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,958 | py | __author__ = 'Yas'
__author__ = 'Yas'
#!/usr/bin/python
import MySQLdb
import matplotlib.pyplot as plt
import numpy as np
import matplotlib.pyplot as plt2
import warnings
import unittest
def f(student,testNo):
# Open database connection
db = MySQLdb.connect("localhost","root","sri","marks" )
# prepare a c... | [
"aydissanayake.12@cse.mrt.ac.lk"
] | aydissanayake.12@cse.mrt.ac.lk |
5cf7b767feb83ff070dc27e7b42b96cfa520a9e4 | 311a481289b51164c24a99402c976398f0c70536 | /scheduler.py | 82c10d7e415e00eb266667c0b322e68bf414c552 | [] | no_license | ebaraza10/whatsapp_bot_django | b230d3e1248d51730b6c073e264cf8fc2692b7f6 | bea8b59940b00c721b5833e1fe2156b9116b95b2 | refs/heads/master | 2023-09-03T06:42:32.744021 | 2019-11-21T16:31:50 | 2019-11-21T16:31:50 | 426,306,309 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | from decouple import config
from twilio_func import *
from datetime import datetime
from datetime import date
from datetime import time
import apscheduler
import pytz
from apscheduler.schedulers.blocking import BlockingScheduler
import gspread
from oauth2client.service_account import ServiceAccountCredentials
from date... | [
"elijah.oridi@busaracenter.org"
] | elijah.oridi@busaracenter.org |
2024a70cdc86792524b733189ffaf5cf90cd0319 | 54daa21a860eef30658827e82d691e6576d4d836 | /accuracy_measurement.py | 6c2c7c5c0811100453736eac9f662d917dc41723 | [] | no_license | coolis/IMDB_decade_prediction | b8691c529706fdc95165139f754ef6608b6e4fff | 110c1a641c14e1449af4e50466c9756cb3cd2064 | refs/heads/master | 2019-01-01T15:51:55.736928 | 2014-12-04T02:33:51 | 2014-12-04T02:33:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,351 | py | import config
import parse_movies
import naive_bayes
import utils
import numpy as np
import os
import operator
#test the data
def findMovie(data, sample):
result = []
for d in data:
for s in sample:
if d['title'] == s:
result.append(d)
return result
def probability_dis... | [
"wayne.liwen@gmail.com"
] | wayne.liwen@gmail.com |
c654e9f7cc4f33885bfae3f42f824afc9f3e7d71 | b4eb1d845a65108b34a313bfefd1134234d7fafb | /functions/run_through_list.py | c25f162f010bcc3b94665ba73a331a19dfb96d93 | [] | no_license | ThePaperFish/bunch | 99bd63b2fea60ef52ca7862a9a1a104f78f7fe46 | 19a05ad6b0aa0cdb2f43ac0e73d9855aeaf1cb0d | refs/heads/master | 2020-04-29T21:30:35.249724 | 2019-05-16T08:35:01 | 2019-05-16T08:35:01 | 176,415,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import os
dir_path = r'C:\Users\tlchong\Downloads'
txts = os.listdir(dir_path)
contents = []
for txt in txts:
f = open(dir_path + "\\" + txt , "r")
try:
content = f.read()
content = content.split('\n')
contents += content
except:
pass
f.close()
contents.sort()
count = 0
new_contents = [contents.pop()]... | [
"lego_0603@hotmail.com"
] | lego_0603@hotmail.com |
923566395d4a882cc743b1da1e0b7fa2ee445a70 | d8f163af91bd056484679884f5ad8cbd7bdfd8fd | /wallpost/app/app.py | 548a560c36f565210394f9a748065ab165bcec77 | [] | no_license | wzuo/sticker-wall-aio | d33680e04224c272efaba50d338a17ab12a5bb2c | ee29cf43e7e4d15847c5d8d25e07ae3bee53492a | refs/heads/master | 2020-05-20T17:35:24.512156 | 2017-03-09T22:48:32 | 2017-03-09T22:49:27 | 84,495,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,421 | py | # -*- coding: utf-8 -*-
import json
import random
import string
from aiohttp import web
from datetime import datetime, timedelta
from functools import wraps
from jsonschema import validate, ValidationError
from sqlalchemy import select, and_
from .db import sticker, user, token, require_postgresql_conn
from .schemas i... | [
"sokolowski.k@outlook.com"
] | sokolowski.k@outlook.com |
a87dad2e1f08d43309dab8c0452b7418794aeec9 | dcc944d0d90e5f6456f00fb889ab97c68731d584 | /iteration1.py | 9bc6fcfd9202ba2208f6d83c55ddde3e13ca5cbc | [] | no_license | botul/python | 52ef40260dcbae55cb64c6c97348d91246614881 | fc05177709b97f2adccc1c6b34df4bb2e1462d58 | refs/heads/master | 2021-05-09T00:16:24.909421 | 2019-10-29T21:23:43 | 2019-10-29T21:23:43 | 119,736,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | iteration = 0
count = 0
while iteration < 5:
for letter in "hello, world":
count += 1
print("Iteration " + str(iteration) + "; count is: " + str(count))
iteration += 1
| [
"pawel.botulinski@gmail.com"
] | pawel.botulinski@gmail.com |
f8c78e5af120f651de618a5e55c3e920c1c4c3fd | 91cbf36bebeb313e2e33c425269c77f2b9368505 | /lab02/src/script.py | 1505008f5809e0784f898ae8b6ac325470966b07 | [] | no_license | KepAlex-404/MND_Gryshyn | 2fcc8fd6756f99a7c4a0d6cf395179a361345f09 | 173dd8f579de3c77e7db4a223a30cd3922e89756 | refs/heads/main | 2023-04-30T15:26:10.811295 | 2021-05-24T18:58:40 | 2021-05-24T18:58:40 | 340,737,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,696 | py | from math import sqrt
from random import randint
import pandas as pd
from numpy.linalg import det
class Romanovsky:
m = 21
average_y = []
dispersion_y = []
f_uv = []
sigma_uv = []
r_uv = []
deviation = 0
r_value = 0
romanovsky_table = {(2, 3, 4): 1.72, (5, 6, 7): 2.13, (8, 9): 2.3... | [
"agrishin@artdock.studio"
] | agrishin@artdock.studio |
00051cc642527a98c8476450fd6ae12de2255c5b | 202bd5443ebd61c6ec2654f385ebcf2d1869d029 | /complete Python Bootcamp - Jose Portilla/statement test l37/evenLetters.py | fd598c2fc5d758b96863c8afa6618fa4b7e72754 | [] | no_license | barbixxxa/python | a3ac92546710211cb2626e5ce73515eafd78826a | a400529ae47b359af798ee267ec901b9d8d39793 | refs/heads/main | 2023-06-01T04:12:33.400878 | 2021-06-20T21:05:54 | 2021-06-20T21:05:54 | 112,033,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | st = 'Print every word in this sentence that has a even number of letters'
ls = st.split(" ")
l = [i for i in ls if len(i)%2 == 0]
print l | [
"eduuardomuller@gmail.com"
] | eduuardomuller@gmail.com |
9d01e66f647965d123823224278de34331718f3a | 4e67c2edd71493a98a3f13e5b2073c1d05b1b656 | /Semestre 02/ProjetoIntegrador2/Aula 08.27.2020/Metodos_lista.py | 75d15a7c7e7bd102bbd084a1482db9446b15b851 | [] | no_license | felipellima83/UniCEUB | 05991d7a02b13cd4e236f3be3a34726af2dc1504 | dbc44866545b5247d1b5f76ec6e9b7778e54093e | refs/heads/master | 2023-07-08T19:04:19.830473 | 2021-08-12T12:33:49 | 2021-08-12T12:33:49 | 249,958,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | lista = [ ]
t_lista = int(input("Quantidade: "))
for i in range(t_lista):
n = int(input("Digite o número: "))
lista.append(n)
print(lista)
print(len(lista))
print(sum(lista))
print(max(lista))
print(min(lista))
pesquisa = int(input("Qual: "))
if pesquisa in lista:
posicao = lista.index(pesquisa)
print(p... | [
"felipellima83@gmail.com"
] | felipellima83@gmail.com |
4d6701a19e1e877d1b091856633036b54f0b92a0 | 4fd3f842df20a489c1fac18d8e34f9aa4971d45b | /randomizer.py | 736a16fb6d9de720e38d0c432c1a80ea45dfa8d0 | [
"MIT"
] | permissive | brianhouse/ART212 | 7e73135c68d203f0e486785ed0834a6f2d346812 | d3805199e0439b5475af1d9cc595d35e6f56cf43 | refs/heads/master | 2022-06-28T19:55:33.424581 | 2022-04-29T18:06:03 | 2022-04-29T18:06:03 | 232,667,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #!/usr/bin/env python3
from random import shuffle
with open("students.txt") as f:
students = [line.strip() for line in f.readlines()]
while True:
shuffle(students)
i = 0
print("-----")
while True:
wait = input()
print(students[i].strip())
i += 1
if i == len(stude... | [
"email@brian.house"
] | email@brian.house |
342b2b11b0890dc05a1974e7b6bcc3a3d4d54c02 | 25bf0d5ed033006074eaec207358d11943ba9936 | /spider/eastnews/eastnews/middlewares.py | 9693b0fe2196f59059d1711169982f4cae36adcd | [] | no_license | wanglanfeng/Distributed-crawler | 0c7f90ea684da14ad7c33e8824f00b5df04e4745 | 36ce154562d022ebf1b06e507824786cb670d358 | refs/heads/master | 2020-03-16T23:41:00.866080 | 2018-02-24T11:37:20 | 2018-02-24T11:37:20 | 133,087,133 | 1 | 0 | null | 2018-05-11T20:46:47 | 2018-05-11T20:46:47 | null | UTF-8 | Python | false | false | 1,906 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class EastnewsSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy ... | [
"hepansos@126.com"
] | hepansos@126.com |
84eb73b720c06c5905ba2c8dab271fb8ace0e255 | e0290ea0f4257aa5f5c414bc5f925e1592cd0833 | /accounts/backends.py | 9a6d005ed6c794bae87874bba8cb6e532f2f04cd | [] | no_license | ameer810/latestplease | 17fa6a4f2037d18a5c572c2153fad2b3b8de4b6c | a89c46516aba228d9bd8342aa3b3c5babd23f920 | refs/heads/master | 2023-03-05T20:15:58.024820 | 2021-02-12T10:02:46 | 2021-02-12T10:02:46 | 338,280,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | from django.contrib.auth.backends import ModelBackend
from django.contrib.auth.models import User
from django.db.models import Q
class EmailBackend(ModelBackend):
def authenticate(self,request,username=None,password=None,**kwargs):
try:
user = User.objects.get(
Q(username__iexa... | [
"ameersaad810gmaile.com"
] | ameersaad810gmaile.com |
9d724cfc2420a5c9cc79e43dc2261e351895d5bc | 4241b3b6c4fea6dd1109a276303dd0f74ca9c6ee | /PycharmProjects/untitled/123.py | 6ffdbc9ac78e6236e2c5109f06feebe02bdacebd | [] | no_license | bioceqq/lxml | c2d4cab77a4cbc0d3e9388b04d2507d93605129d | 06c64e887c3bc129195273e43bc812edb87da8c0 | refs/heads/master | 2020-03-22T21:35:02.710497 | 2018-07-12T10:27:18 | 2018-07-12T10:27:18 | 140,697,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | import pymysql.cursors
# import numpy as np
# import pandas as pd
# 连接数据库
connect = pymysql.Connect(
host='localhost',
port=3306,
user='root',
passwd='vipqq',
db='qq',
charset='UTF8'
)
# 获取游标
cursor = connect.cursor()
#打印所有数据
# sql = "select * from urls"
sql_insert ="""insert into urls(id,url... | [
"18700469957@163.com"
] | 18700469957@163.com |
77a6774121e2e9f8042473a6de4f53847502d70c | dc7a874112625b4155889e40c2dd91098b1ab7ae | /python_training/2.py | 79604e990b13e77ac8e589ca5362da92ae6e302a | [] | no_license | edwincervantes/Python_Training_CPT | 15a4d8f966fb309cb80d78f70e8784ca7a312528 | 854179aa9eec292d3399ab9e646dbb07e6ca90d7 | refs/heads/main | 2023-06-19T13:48:02.767955 | 2021-07-09T15:20:11 | 2021-07-09T15:20:11 | 384,279,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | name = input("What is your name?")
print("Hello {}".format(name))
| [
"noreply@github.com"
] | noreply@github.com |
a9779e5b1ed498d9f7d0cd9baa510c64c44414b5 | 8ef3537ace8eefa7cc6c5794b271fd9d860fde51 | /Ejercicio7.py | 8f93d66f54209ed7c0919ad7a2a0b9df7b4be1b5 | [] | no_license | Dome2207/PYTHON | efb6f961b93579229a8cb96b8bf6481228e3e38a | df7f6265086e2dfd1e77854170b5199cdc0f2b9b | refs/heads/main | 2023-06-29T10:46:26.619395 | 2021-08-02T02:48:16 | 2021-08-02T02:48:16 | 378,510,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | "Funciones si sentido"
def vocales(letra):
for car in letra:
if car in('a','e','i','o','u'):
print(car)
"Llamada a funcion"
oración =input("Ingrese oración: ")
vocales(oración.lower()) | [
"86170885+Dome2207@users.noreply.github.com"
] | 86170885+Dome2207@users.noreply.github.com |
33ae7c9f65c1462e20cf31b50507a4e2a51c791e | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Advanced Corporate Actions/FPythonCode/FCorpActionPayoutViewer.py | aba8a545dc56d44c822c7b513a9f647546083cb7 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | """ Compiled: 2020-09-18 10:38:49 """
#__src_file__ = "extensions/advanced_corporate_actions/./etc/FCorpActionPayoutViewer.py"
import acm
import FUxCore
def SelectFirstItem(objList, itemList):
if objList:
firstItem = objList[0]
itemList.SetData(firstItem)
def RemoveItem(objList, itemList, item):... | [
"81222178+nenchoabsa@users.noreply.github.com"
] | 81222178+nenchoabsa@users.noreply.github.com |
0950fd4826dade797628563d1bc43cbc412d6018 | 7234e6c72eb3f09c4a66dbe91f00fdf7742f010f | /algo/dp/medium/longestArithmeticSequence2.py | 50004a01f60d588e9b4155d465a095777a44c4e1 | [] | no_license | srinathalla/python | 718ac603473e7bed060ba66aa3d39a90cf7ef69d | b6c546070b1738350303df3939888d1b0e90e89b | refs/heads/master | 2021-06-13T06:11:42.653311 | 2021-02-19T06:01:41 | 2021-02-19T06:01:41 | 150,374,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | from typing import List
class Solution:
def longestArithSeqLength(self, A: List[int]) -> int:
dp = {}
for i in range(1, len(A)):
for j in range(i):
dp[i, A[i] - A[j]] = dp.get((j, A[i] - A[j]), 1) + 1
print(dp)
return max(dp.values())
s = Solut... | [
"srinathb10j.ik@gmail.com"
] | srinathb10j.ik@gmail.com |
dcc164125e6ea5dd71926c26fa07b1b568aee004 | c05f927ed1dd6b950999eb41b3aabf9817fe04ab | /clustering/clean.py | 64e13997f5b0154d46636c92ff0f6a6c07170044 | [] | no_license | airblair94/DataScienceExamples | 745706ea1f0c34f70f5f1f65fc231765c04f0829 | 358306c0a2dd6c499b8446547fd49e10fc1930ef | refs/heads/master | 2020-12-03T05:21:02.613781 | 2014-04-20T13:58:56 | 2014-04-20T13:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,210 | py | import numpy as np
import get_data as gd
"""
This file is going to be used to clean my data set, so that I get rid of
missing values and then puts it in a new cvs named "clean_communities.csv".
The functions in here can be continually improved and worked on as I want
to increase the complexity of my cleaning.
At this... | [
"bsmith8108@gmail.com"
] | bsmith8108@gmail.com |
21ecb6ad5260e1f62409aa9b3cf713e04421a798 | 3be0e3b05c664339f6a308e4d0f973488c6f1316 | /app/func/celery.py | f4914359d07c43eb24fd4746c19e3728bad0d488 | [] | no_license | brandonejhall/Good_Shout-v2 | 13136361e535fa159f9189dbc910212989952156 | fba3666d3709f7e563aa4d6e9cd0f0a3bb5fa56f | refs/heads/master | 2023-06-29T09:37:40.568074 | 2021-07-28T23:29:54 | 2021-07-28T23:29:54 | 384,258,178 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from celery import Celery
celery = Celery('func',
broker='redis://localhost:6379/0',
backend='rredis://localhost:6379/0',
include=['func.fixtures_task'])
if __name__ == '__main__':
celery.start() | [
"brandonejhall7@outlook.com"
] | brandonejhall7@outlook.com |
c17b10b518d979feca78ccbe1e9788aeba9bd12a | 37a776779a43662ed9bb6523f1f42fd3dc215610 | /TTHAnalysis/python/tools/treeReaderArrayTools.py | f35c73164ab905d806528e773e44aa78dd865187 | [] | no_license | ashrafkasem/cmgtools-lite | 818b3bc42ee3b5944074b45bc74248b8c32fa514 | 14d0a465aa5cfaa2036a38fcc2589cda159c6f72 | refs/heads/80X | 2022-12-31T02:07:00.683384 | 2017-01-25T10:19:40 | 2017-01-25T10:19:40 | 109,703,088 | 0 | 0 | null | 2017-11-06T14:06:09 | 2017-11-06T14:06:09 | null | UTF-8 | Python | false | false | 4,008 | py | import types
import ROOT
def initTree(tree):
tree.entry = -1
tree._ttreereader = ROOT.TTreeReader(tree)
tree._ttreereader.SetEntry(0)
tree._ttrvs = {}
tree._ttras = {}
tree._leafTypes = {}
tree._ttreereaderversion = 1
tree.arrayReader = types.MethodType(getArrayReader, tree)
tree.va... | [
"gpetruc@gmail.com"
] | gpetruc@gmail.com |
0af3834982b72c9cdf345b6aff6ffd9e7ccea915 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02716/s014491177.py | f6f24c53a93fa9d93bb64a4642c8896800c4707e | [] | 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 | 508 | py | import sys
sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))
from collections import defaultdict
def resolve():
N = ir()
A = lr()
dp = defaultdict(lambda: -float('inf'))
dp[0, 0, 0] = 0
for i in range(N):
for j in range(max(i//2-1, 0)... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
64ffc4b3cb4a4036695446ad74e2d4fe57655390 | 38e657d0bae1180fb1e2dd11442324dedf9a3886 | /Assignment 4/problem4_1.py | 198e516c333ab5b6b8a55452b3a942e5a5fd5685 | [] | no_license | abhishek12414/Python-Programming--A-Concise-Introduction | df1cbce6cb9fb89d858e0cb16ddecce4b04b1d53 | f155521f8ce250bca1b947989767326bfa4c9efc | refs/heads/master | 2021-01-21T20:42:54.989710 | 2017-05-24T09:02:09 | 2017-05-24T09:02:09 | 92,271,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #%%
def problem4_1(wordlist):
""" Takes a word list prints it, sorts it, and prints the sorted list """
#pass # replace this pass (a do-nothing) statement with your code
print(wordlist)
wordlist.sort(key=str.lower)
print(wordlist) | [
"abhishek12414@gmail.com"
] | abhishek12414@gmail.com |
bfb26558c8d4426d10ad050db99ba001fa79afe6 | c727d96f9ee57a186ac2f6a069e7863017131d9b | /mypy_boto3_builder/structures/waiter.py | 573b3a99a0ef983c7359c5cc3713e46a8412d8b4 | [
"MIT"
] | permissive | ayobuba/mypy_boto3_builder | 66438be3c9fce1e6215a58692b69496250eda433 | 9315adca025a5831ab1c2c00d3ed8602a21e8c74 | refs/heads/master | 2022-11-08T12:38:00.596915 | 2020-06-09T23:10:30 | 2020-06-09T23:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | """
Boto3 client Waiter.
"""
from dataclasses import dataclass, field
from typing import List
from botocore.waiter import Waiter as Boto3Waiter
from mypy_boto3_builder.enums.service_module_name import ServiceModuleName
from mypy_boto3_builder.import_helpers.import_string import ImportString
from mypy_boto3_builder.se... | [
"volshebnyi@gmail.com"
] | volshebnyi@gmail.com |
cc7e17b2e6254b35b420eb6e05e73bae6094f2a1 | 1f8e0b2e1d3228ddaff1779355c11f5a7c1678cc | /3. teema/Kasutajad.py | e26a0c2b1e26800dd09e95b3950361e1b0260d02 | [] | no_license | marko-arula/oop_alused | 77f247c91afc6cea6f65361e03295098bae530a3 | 641b2ebe5221576776400a8971247a3e53f59e3f | refs/heads/master | 2023-03-19T08:24:17.104327 | 2021-03-17T11:24:22 | 2021-03-17T11:24:22 | 337,350,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | class Kasutajad():
kasutajanimi = ""
roll = "tavakasutaja"
def __init__(self, e, p, ssl):
self.eesnimi = e
self.perenimi = p
self.sisselogimiskatsed = ssl
def kirjelda_kasutaja(self):
print("Kasutaja eesnimi on " + (self.eesnimi))
print("Perenimi on " + self.peren... | [
"marko.arula@khk.ee"
] | marko.arula@khk.ee |
82af48fccc9096280acbe89abfb53c04c91273d4 | 0ad9ecc5eac65ef751143fb2a8c288557a09a227 | /tst.py | 7342e7544c419ccfda1cdf201c10a5a93c14c9ac | [] | no_license | Jalonzpa/homebot_code | 91cdab0ea40ff1235760fea1c1b96e11b21a998b | fcd94c1cdc63bfa5b7f9990aad26bf963d3570da | refs/heads/master | 2021-01-19T00:55:05.784697 | 2019-04-04T21:18:15 | 2019-04-04T21:18:15 | 87,219,996 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | import time
import config
import os
os.system("clear")
done = False
meal = input("What are we having for supper tonight?\n")
number = 0
with open("instructions.txt") as f:
lines = f.readlines()
lines = [line.rstrip('\n') for line in open("instructions.txt")]
if meal == "chicken":
for i in config.chicken:
... | [
"jalonzpa@gmail.com"
] | jalonzpa@gmail.com |
17bf34d40b87147ab0b785d25d68b728ef486590 | e7c0e8819b272c1ab925e768256cf5b69c79c70d | /Practice/str_format.py | 14e93a5532c9869f61b6851cf11c5584871feaa6 | [] | no_license | thangduong3010/Python | 590c22ab2d49e4d88847d091200089aeff9b1eb5 | b44b850defe128e68661ce1dd039d8f52405451f | refs/heads/master | 2020-12-29T02:20:47.720541 | 2017-01-15T07:23:47 | 2017-01-15T07:23:47 | 28,970,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py |
print("{0:.3f}".format(1.0/3))
print("{0:_^9}".format("hello"))
print("{name} wrote {book}".format(book="A Byte of Python",name="Swaroop" ))
print("a"),
print("b") | [
"thangduong.hanu@gmail.com"
] | thangduong.hanu@gmail.com |
f4dedda6f2c20e5144d1b97512e5284b93ef78cc | 0fe4f2449512f6516ecf53d385b8713ab2261058 | /Ising1D/Ising1D_RBMSym.py | c0fe36701f28b21994537ba2e42c95736094736e | [] | no_license | caoyingkang/MacroEntangle | bd05167ac1ba3fedbf78e97411fb00616d16e4f6 | 3a0e09221ca3051ce85efd22b1c827faada6de7e | refs/heads/master | 2023-04-19T23:28:56.215424 | 2021-04-29T15:57:27 | 2021-04-29T15:57:27 | 305,377,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,748 | py | import netket as nk
import numpy as np
import matplotlib.pyplot as plt
import json
import os.path
import time
import argparse
import itertools
from scipy.linalg import eig
pauli = [np.asarray([[0, 1], [1, 0]]),
np.asarray([[0, -1j], [1j, 0]]),
np.asarray([[1, 0], [0, -1]])]
pauliKron = [[np.kron(paul... | [
"cyngkng@pku.edu.cn"
] | cyngkng@pku.edu.cn |
6ea8a04a65fd9fbffe28282644ccef7289a8c7cb | 0ffc73e80fe92827ec7a139276bd1031faff2807 | /movies/views.py | dbc2ea6bc7598d6e1e89c733181fc929b0b133c0 | [] | no_license | Dianashafee/drf-api | 1174b055485100d508389636d4d3d335b790128c | da84ea738e6c095cad65542c1df3a13c220b5f50 | refs/heads/master | 2023-02-11T14:24:36.235037 | 2021-01-10T20:02:29 | 2021-01-10T20:02:29 | 328,383,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py |
from django.shortcuts import render
from rest_framework.generics import ListAPIView, RetrieveAPIView, RetrieveDestroyAPIView, RetrieveUpdateDestroyAPIView
# from .serializer import MoviesSerializer
# from .models import Movies
# from .models import Movies
from .serializer import MoviesSerializer
from .models import M... | [
"diana.shafee1997@hotmail.com"
] | diana.shafee1997@hotmail.com |
40af79b75cab8173476323d51adc0815ce1381c9 | d233fcee06d17041960c062ec9853eab94ad8b4d | /coremltools/converters/mil/mil/ops/tests/test_reduction.py | 84e95b36a1a0157ffafd0f5e34d95ec4e7564e25 | [
"BSD-3-Clause"
] | permissive | a-canela/coremltools | cc0f8983fcf1d331c0ef411a40c2f8853332501b | 8de6079ae05379f96cb0d0844f168432e5b7b524 | refs/heads/master | 2023-01-20T22:02:40.726573 | 2020-11-25T00:48:48 | 2020-11-25T00:48:48 | 315,738,064 | 1 | 0 | BSD-3-Clause | 2020-11-25T10:41:25 | 2020-11-24T19:54:01 | Python | UTF-8 | Python | false | false | 10,918 | py | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
import scipy
from coremltools.converters.mil import testing_reqs
from coremltools.converters.mil.mil ... | [
"noreply@github.com"
] | noreply@github.com |
e8b7d6030ac165ccd099aa8848e58445778c627b | 994d6c917f4978918d7db694cd5d18cce41a038f | /website/views.py | ab6c3a7c3d07becae3a671fec63ef99bbf19095a | [] | no_license | evelynaworiosuna/EvelynDjango | a685d3019154dd5c91966bf3b1c941b6b24441d5 | 7317fa0ea23306d19a2b10ecfeb48127f838c44a | refs/heads/master | 2022-09-17T17:45:07.637294 | 2020-05-25T14:00:32 | 2020-05-25T14:00:32 | 266,799,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | from django.shortcuts import render
from django.core.mail import send_mail
from .models import Busines
from .forms import BusinesForm
# Create your views here.
def addlisting(request):
if request.method == "POST":
form = BusinesForm(request.POST or None)
if form.is_valid():
form.save()... | [
"ronaldatuhura@yahoo.com"
] | ronaldatuhura@yahoo.com |
3071816eb9c7a9c8db7e0cfba4e83a6853395b3f | bc6113b91de8b39552180e34b3ce97d1e6d9a5db | /fronteracrawler/classifier/classifier.py | b56101d8cf03b69bbcdad901a2993b322e32dcd3 | [] | no_license | zanachka/frontera-crawler | 10e5e0db3c707f4176b94d5dc270107affa450d1 | 2305cff9386abc36bfc6734920b4286a1634b03f | refs/heads/master | 2021-05-29T05:00:36.253735 | 2015-07-29T12:56:27 | 2015-07-29T12:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | from __future__ import division
from nltk import word_tokenize
import sys
class TopicClassifier(object):
def __init__(self):
self.topic = {}
self.threshold = 0.0
self.exclude_set = set()
@classmethod
def from_file(cls, prob_dict):
obj = cls()
fh = open(prob_dict)
... | [
"sixty-one@yandex.ru"
] | sixty-one@yandex.ru |
532002ea7365f246f6908a10f10c229be455793f | ebfb91896497dfcaa4a22b79cfcb81d32bdeed4c | /arango/fetch_topology.py | d1c91dde7442d2ccd2d8ca1963d375b03d1cba85 | [] | no_license | charlesferir/TFE | 8744b515a76e3cdcc2c3f04068bfa78d8d7b9271 | 8b2d1220e0daa31dd105b1053906caef82040260 | refs/heads/main | 2023-03-22T11:49:52.059321 | 2021-03-19T09:52:18 | 2021-03-19T09:52:18 | 316,713,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | from pyArango.connection import *
import sys
import json
if len(sys.argv) != 5 or sys.argv[1] != '-host' or\
sys.argv[3] != '-port':
print("usage: python fetch_topology.py -host '<host ip>' -port '<host port>'")
exit(1)
# connect to Arango database in jalapeno
arangoURL = 'http://' + sys.argv[2] + ':' + sys.argv[4... | [
"charlesferir1@gmail.com"
] | charlesferir1@gmail.com |
94ec792eec28d686c1efe1f01e3600908c92cddd | 4449f8d5c4072d976c8f9678e5acbb74b737c2b3 | /Backend/env/Lib/site-packages/pyfcm/baseapi.py | 95ecb0ee5df780c5bba6a3a4be0d49991bb9fa3b | [] | no_license | SooryaSRajan/AlzAssistance | 716b1928bbf98c376dbc446fbbb63df34919892e | 393342a54d0e7e656546d95045fb35f948f236c8 | refs/heads/main | 2023-04-11T15:59:38.211763 | 2021-04-18T17:00:32 | 2021-04-18T17:00:32 | 359,061,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,309 | py | import json
import os
import time
import requests
from requests.adapters import HTTPAdapter
from requests.packages.urllib3 import Retry
from .errors import AuthenticationError, InvalidDataError, FCMError, FCMServerError, FCMNotRegisteredError
class BaseAPI(object):
"""
Base class for the pyfcm API wrapper ... | [
"soorya.s27@gmail.com"
] | soorya.s27@gmail.com |
6f2e34ab25826ec442ea4cefdebcbc9ffdaecd92 | 0977935b47818236ed0f9c433c9bdbc749c40e06 | /16.py | 80feb2989a415ba9c52cdfebb1d47d548a482e4e | [] | no_license | ArturioArmani/smth | 11c056989501c33923c826e581f6b32ae5020057 | 5bc6def1325fb28c6b3058b29bb358fbdd7652ae | refs/heads/master | 2020-03-21T05:25:03.067167 | 2018-06-21T11:04:41 | 2018-06-21T11:04:41 | 138,159,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import datetime
def printTimeStamp(name):
print('Пікула Руслан Погорілий Артем: ' + name)
print('Час компіляції: ' + str(datetime.datetime.now()))
d = int(input("Довжина поля: "))
sh = int(input("Ширина поля: "))
Sa = d * sh / 100
Sg = d * sh / 10000
print("Площа поля в: \n" + str(Sa) + " Арах\n" + str(Sg) + " Гект... | [
"40405559+ArturioArmani@users.noreply.github.com"
] | 40405559+ArturioArmani@users.noreply.github.com |
d5b36533b86e2e386538d1e81c4dcd407fa84e4e | b0d0dbb0742e3925bc8adab9bb7b7ee458972ad6 | /analayze.py | 13faa7de5dd2d27767b804c06edf05fc13229fab | [
"Apache-2.0"
] | permissive | miyosuda/dendritic_bp | 0cd0e23da0db7ba7460f7b209a92362f9f0f28fe | fd831b6ad9ae1993a14ba970408b80abfd45f0b1 | refs/heads/master | 2020-04-05T12:47:53.112472 | 2019-04-12T00:46:59 | 2019-04-12T00:46:59 | 156,880,868 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from model import Layer, LAYER_TYPE_BOTTOM, LAYER_TYPE_HIDDEN, LAYER_TYPE_TOP, LowPassFilter
from option import Option
# TopとBottomだけを接続して分析するためのコード
class Network(ob... | [
"miyoshi@narr.jp"
] | miyoshi@narr.jp |
9b4e59544521b52b741f023a2e2fbdb682e2c0cf | 7c7d6fd4ec20a70c9777c3b223f849375d0d12b8 | /openstack_bench/log_parser/parser_engine.py | 0b45655afe16fcdd64d913f634942ae46e4f7ffc | [] | no_license | cyx1231st/nova-scheduler-bench | bed87d657005a229c385fcc01486f719212e4dce | 15bbf3da985a585c0aa8ad9d92ac00b06492904c | refs/heads/master | 2020-04-06T07:18:49.962284 | 2016-11-28T07:05:41 | 2016-11-28T07:05:41 | 54,956,592 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,479 | py | from collections import defaultdict
from state_machine import LeafInstance
from state_machine import NestedInstance
from state_machine import ParseError
class EngineHelper(object):
def __init__(self, ident):
self.ident = ident
self.instances_by_service_host = \
defaultdict(lambda: def... | [
"chengyingxin@gmail.com"
] | chengyingxin@gmail.com |
520a25c1f72bd58895f8cb21582f01ebfc6330b0 | 9823f97702e383848fa4e82aa64d0366c71f9cbb | /Twitter/urls.py | 56e1d73d11eca02ce7de179be7ab7cb8225744f4 | [] | no_license | 18smlee/Twitter | 496d91bbba0bbd82ad8d7653ea7de6dcb2bea1e3 | ab57de7dfcf8ae64474182db2a8ad8a5060dca2a | refs/heads/master | 2023-01-24T12:03:16.071354 | 2020-12-01T20:08:51 | 2020-12-01T20:08:51 | 316,809,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | """Twitter URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"smlee18@sas.upenn.edu"
] | smlee18@sas.upenn.edu |
b794c2df5ea3e950d2a988e2baa61785911770f8 | 2dd560dc468af0af4ca44cb4cd37a0b807357063 | /Leetcode/378. Kth Smallest Element in a Sorted Matrix/solution1.py | 85aed3e0043f6c962b512d91df8783c990105928 | [
"MIT"
] | permissive | hi0t/Outtalent | 460fe4a73788437ba6ce9ef1501291035c8ff1e8 | 8a10b23335d8e9f080e5c39715b38bcc2916ff00 | refs/heads/master | 2023-02-26T21:16:56.741589 | 2021-02-05T13:36:50 | 2021-02-05T13:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | class Solution:
def kthSmallest(self, matrix: List[List[int]], k: int) -> int:
lo, hi = matrix[0][0], matrix[-1][-1]
while lo <= hi:
mid = (lo + hi) >> 1
loc = sum(bisect.bisect_right(m, mid) for m in matrix)
if loc >= k:
hi = mid - 1
e... | [
"info@crazysquirrel.ru"
] | info@crazysquirrel.ru |
b1e61aa29bf8bf16cbd57d74c0b21174dccee983 | 15e0f04f97386d12b9bfbe3b3274d3b0a97ba8d9 | /wolle24/settings.py | 7ea858b97f37a6b1fb02e794e936c0cc070fa5ee | [] | no_license | SinanKale/wolle24 | bbd7600ddd1dd90337c51db8922a376c0185ddd2 | 531acfbe9c69d731d480cf09d6708130dba54af5 | refs/heads/main | 2023-01-29T05:40:20.509648 | 2020-12-14T15:15:41 | 2020-12-14T15:15:41 | 321,386,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | # Scrapy settings for wolle24 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middleware... | [
"sk324@hdm-stuttgart.de"
] | sk324@hdm-stuttgart.de |
594cb89122060755edaea1bddb92d4c4d8c68789 | 9cbf2a7cdfadd736c3f0fa2e19dc2045a12b9a76 | /flask_app/controllers/controller_user.py | 0eb2c503dc3ab67a4ba47cdf2d695231489f2a2a | [] | no_license | JamesArbogast/pokemon_project | 03939b16deab1fa77c01c4cc503b295352e75984 | 9a54aa2bfddaffce2a86afb7e337ed6c010947d1 | refs/heads/master | 2023-05-31T23:58:44.317065 | 2021-06-27T21:17:18 | 2021-06-27T21:17:18 | 380,010,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | from flask_app import app
from flask import render_template, redirect, request, session, flash
from flask_app.models.model_user import User
from flask_bcrypt import Bcrypt
bcrypt = Bcrypt(app)
@app.route('/user/create', methods = ['POST'])
def user_create():
is_valid = User.validate_user(request.form)
if not i... | [
"jamesarbogast52@gmail.com"
] | jamesarbogast52@gmail.com |
2be02ad6ace018b870e0afdd24ec610ac5251685 | 6b33ef25c9cd87a68822866dcf3abee81152a22f | /paper results/measure_invariance.py | 9701f26c9b5ae0a372261a1e3e1733bda53583a4 | [
"MIT"
] | permissive | matteo-ronchetti/IKA | 1612219ba11521a362ef95127cad2372e4222343 | 29d1752a059c3ab7659b332b72bf8c1506e7dd20 | refs/heads/master | 2020-06-26T16:02:05.446796 | 2019-09-22T14:04:51 | 2019-09-22T14:04:51 | 199,680,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,988 | py | import argparse
import math
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from tqdm import tqdm
from architectures.layers import Exp
from architectures.hardnet import HardNet
from ika import IKA
from ika import distance_matrix as torch_distance_matrix
from scipy.spatial import ... | [
"mttronchetti@gmail.com"
] | mttronchetti@gmail.com |
75a43550f40dedcf44011d9aab9f4c0af8902225 | 4c5084775d3a295b560a1e051d79654b01e73553 | /mudkip/vitepress.py | 57188f6d10cf4e15345137c4a40178f1ffaf46e7 | [
"MIT"
] | permissive | vberlier/mudkip | 9e137781a342f45669413027636abffb6882d069 | 7640c7594cbcfb39b333e04b7f523bb67c7db303 | refs/heads/main | 2023-03-19T16:26:28.951654 | 2022-08-10T20:28:12 | 2022-08-10T20:39:00 | 175,518,458 | 9 | 2 | MIT | 2023-03-06T20:25:05 | 2019-03-14T00:14:56 | Python | UTF-8 | Python | false | false | 3,384 | py | import re
from os import path
from docutils.frontend import OptionParser
from docutils.io import StringOutput
from docutils.nodes import SkipNode
from docutils.writers import Writer
from sphinx.builders import Builder
from sphinx.util.osutil import ensuredir, os_path
from sphinx.writers.html import HTMLWriter
from sph... | [
"berlier.v@gmail.com"
] | berlier.v@gmail.com |
cc493fb92bbfb4fdc2252fe33d972fc90f0350c5 | a726c622c0f5ed999546a25a507105891a495e35 | /GOIAP_v_1.0/GOIAP/apps/user/forms.py | 85a0b090166da695c0e7a1b33b9fc77654be5388 | [] | no_license | Elkin77/GOIAP_v_1.0 | f65f1994c47670514a983eb268db7603f91b3080 | fb9e989f4ed0126d188acbbf42b18e533e58bac2 | refs/heads/master | 2021-08-22T09:07:31.394630 | 2017-11-29T21:16:48 | 2017-11-29T21:16:48 | 106,444,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from django import forms
class login_form(forms.Form):
user=forms.CharField()
password=forms.CharField() | [
"brayan@Brayan-Ubuntu"
] | brayan@Brayan-Ubuntu |
f82f93476ef385f99c254391317ada6109f05985 | 19eb083a19c19423fdea86a7893db06470333118 | /Multi-variate Linear Regression/multiRegression.py | 4dbfbe59325a00d72bc3dc54d0eb23443197e758 | [] | no_license | syedroshanzameer/Machine-Learning | bc6351bc497e189bdc1b8115de3a3cf05cf2ff39 | 30fb90f6ff5747cf7951e56900dd102ecb912306 | refs/heads/master | 2021-04-09T15:13:40.474959 | 2018-03-29T11:30:10 | 2018-03-29T11:30:59 | 125,676,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 11 22:34:18 2018
@author: Roshan Zameer Syed
ID : 99999-2920
Description : Multivariate linear regression and backward elimination
"""
# Reading the dataset
import pandas as pd
data = pd.read_csv('Advertising.csv')
# Feature and response matrix
X = data.iloc[:,[1,2,3]].... | [
"RSyed9564@muleriders.saumag.edu"
] | RSyed9564@muleriders.saumag.edu |
e8937677ed1449ab35310cecf64433fe455a1935 | 835abbf0309503caddba77f4ed94ea3209e8784f | /kurs_dla_sredniozaawansowanych/itertools_groupby.py | 7404c6c1405458b65739d460cc96b78a58e667c3 | [] | no_license | rafal-mizera/UDEMY | 46873a01223a31b36de84fcfd13a5b9b1cf262e8 | d463613ecd470dae4f17ce59d2f815f70942ea07 | refs/heads/master | 2023-07-19T12:14:44.818156 | 2021-09-01T16:14:37 | 2021-09-01T16:14:37 | 402,125,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | import os, itertools
def scantree(path):
for el in os.scandir(path):
if el.is_dir():
yield el
yield from scantree(el.path)
if not el.is_dir():
yield el
listing = scantree(r"C:\\Users\RMZ\PycharmProjects")
listing = sorted(listing,key= lambda x: x.is_dir())
for... | [
"rafalmizera11@gmail.com"
] | rafalmizera11@gmail.com |
832e028c7ad828d2d87b6bb33b4b24dac9c6e59e | 61ae24531f4e71f5e80c5dfd369a2ccc976d7ebf | /passwords/models.py | 009f38bb2faffc8f0f97314fd27be3bab0b8a286 | [] | no_license | pegadro/password-manager | 3c2bb0f7a31893afdfd8cd8a114a606cff602966 | 872f4bdaf8e4183f2321261ce77c4ab2f108669f | refs/heads/main | 2023-06-18T21:10:34.539868 | 2021-07-09T19:38:52 | 2021-07-09T19:38:52 | 384,526,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import uuid
class Password:
def __init__(self, app, user, password, notes, uid=None):
self.app = app
self.user = user
self.password = password
self.notes = notes
self.uid = uid or uuid.uuid4()
def to_dict(self):
return vars(self)
@staticmethod
def sche... | [
"pegadro.alvarado@gmail.com"
] | pegadro.alvarado@gmail.com |
95eabb1e1b4de13bde9a876a9ce29e32ce73da2c | b538eb21fa8a0cac0377a09a3cc0c95c5eb7873e | /nexus-ingest/nexus-xd-python-modules/tests/kelvintocelsius_test.py | b0e1ff5173e4d05cd226807920c57d3ac0b2f2bb | [
"Apache-2.0"
] | permissive | dataplumber/nexus | 37a94ecb693bf0f30d9c946bf1e628b62474a14b | f25a89e85eba098da9c6db1ff3d408dae8a6b310 | refs/heads/master | 2022-12-09T23:59:03.144471 | 2018-04-03T17:59:08 | 2018-04-03T17:59:08 | 65,325,873 | 23 | 5 | Apache-2.0 | 2022-12-07T23:56:28 | 2016-08-09T20:27:26 | Jupyter Notebook | UTF-8 | Python | false | false | 1,616 | py | """
Copyright (c) 2016 Jet Propulsion Laboratory,
California Institute of Technology. All rights reserved
"""
import importlib
import unittest
from os import environ, path
import nexusproto.NexusContent_pb2 as nexusproto
import numpy as np
from nexusproto.serialization import from_shaped_array
class TestAvhrrData(u... | [
"francis.greguska@jpl.nasa.gov"
] | francis.greguska@jpl.nasa.gov |
314814bbb19da642399d6b9f3f2570f2382c15b5 | 4295e91cae53e496d559a3a9c6c7f37d88177a2e | /examples/ircbridge.py | cd0b4288458956289332086add3e4c234f9b5f02 | [
"MIT"
] | permissive | erdnaxe/galene-bot | ae8614cd2da63f63d2db2bfad661bfee5dfab907 | ff04d4eb4a709e862456776122a11795dd76cc75 | refs/heads/main | 2023-03-30T16:33:41.392875 | 2021-04-05T14:52:06 | 2021-04-05T14:52:06 | 354,534,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,101 | py | #!/usr/bin/env python
# Copyright (C) 2021 Alexandre Iooss
# SPDX-License-Identifier: MIT
#
# IRCClient based on PyIRC by Benjamin Graillot, MIT licensed
# <https://gitlab.crans.org/esum/pyirc>
"""
IRC double-puppeting bridge.
"""
import asyncio
import re
import sys
from galene_bot import ArgumentParser, GaleneBot
... | [
"erdnaxe@crans.org"
] | erdnaxe@crans.org |
28a7bee8efd3110015091bc05c2ac9f11deccd98 | d1cb5b13bf134f51cb03a292870f1486a4aab840 | /abc/151/c2.py | 45f16ae37f5f00b9e910e67906b870dc4a650654 | [] | no_license | tanimutomo/atcoder | 73717646cff68b6bc3b42a0e1e3e48a1d61c2cb6 | cc270a2794aa351eedc78707db379f4f803439d6 | refs/heads/master | 2021-06-28T20:27:37.648870 | 2020-11-29T12:13:08 | 2020-11-29T12:13:08 | 193,248,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | import numpy as np
n, m = [int(i) for i in input().split()]
ans = [input().split() for _ in range(m)]
ans = np.array(ans)
ps = ans[:, 0]
ss = ans[:, 1]
sub_ps = np.unique(ps)
cnt_c, cnt_w = 0, 0
for sp in sub_ps:
indices = np.where(ps==sp)[0]
s_sp = ss[indices]
if np.all(s_sp == 'WA'):
continue
num_ws = ... | [
"tanimutomo@gmail.com"
] | tanimutomo@gmail.com |
bba5185e1527c987b8a110492757358c57107247 | 0b03bcfd56949941afa3109864090e33cfe60cd0 | /HW3/code/formationControlObs.py | 9b7299ffa855a072933f811867f431b6c8da8f5d | [] | no_license | swapnesh-wani/swarm_robotics | a2a06fd89a31c117345dc59188f96ea46f6dab6e | 9302ddae223ec27265a5b39ea25141310c082cb2 | refs/heads/master | 2020-04-29T01:29:51.156027 | 2019-03-15T02:55:08 | 2019-03-15T02:55:08 | 175,731,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,431 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import animation
import time
def show_animation(data, edges, obs,T, dt, n_ver):
fig = plt.figure()
ax2 = fig.add_subplot(122, autoscale_on=True,xlim=(-1,15), ylim=(-1,15))
plt.title("Animation of the Robots")
plt.xlabel("Position x")
... | [
"sw3909@nyu.edu"
] | sw3909@nyu.edu |
c04acce25630ba2428d0ebcd3095b7bceebd7a59 | c75ec82316ed5322c5844912ce9c528c24360b9f | /nsd1909/py02/day02/jiecheng.py | 966d2d9c92ecc9d5f7c1468b18df28cbad74f5c0 | [] | no_license | MrZhangzhg/nsd2019 | a94cde22f2e4bd648bb9e56ca63827f558f3c083 | 54f6d2c7b348a69f13ad5f38f2fbdc8207528749 | refs/heads/master | 2021-08-22T17:38:27.697675 | 2020-02-22T08:36:21 | 2020-02-22T08:36:21 | 183,539,489 | 21 | 24 | null | 2020-05-17T12:07:55 | 2019-04-26T02:06:16 | HTML | UTF-8 | Python | false | false | 385 | py | def func(n):
if n == 1:
return 1
else:
return n * func(n - 1)
# 5 * func(4) # 不能直接返回,需要将func(4)的结果与5相乘,得到的结果再返回
# 5 * 4 * func(3)
# 5 * 4 * 3 * func(2)
# 5 * 4 * 3 * 2 * func(1)
# 5 * 4 * 3 * 2 * 1
if __name__ == '__main__':
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
449c14d1b83774771ed881e02416f9d0bce91bbe | b03801515c0dea94ffda3f244773dcb298b08f04 | /dbaas/physical/tests/test_base.py | 58badb5e89097dc9107b9cc8a28e5a930e59a55c | [] | no_license | pombredanne/database-as-a-service | 6c2e2fd3e10ff21a628c6a8e5eb2998a68bcbf81 | 1292af36b5518f81aaf766125187f433fef51d73 | refs/heads/master | 2020-12-25T21:56:13.221172 | 2013-11-05T20:57:06 | 2013-11-05T20:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import os
from django.test import TestCase
from drivers import BaseDriver
from . import factory
CONNECTION_TEST = 'connection-url'
class FakeDriver(BaseDriver):
def get_connection(self):
return CONNECTION_TEST
class En... | [
"silvano@corp.globo.com"
] | silvano@corp.globo.com |
e74df41324bf408c52edbd9569d9f6f510c665e1 | bcbc7d81e0b31ea23d3ea0fb73b23cb3c0feb742 | /project2/structures/QueueLinkedList.py | dd2ae5b17f28580997c1d87a9bebaaa5390adfec | [
"MIT"
] | permissive | jurayev/algorithms-datastructures-udacity | 4e7558d5f7b932ddd8801659db7ce0ce0689d26c | e29149d8fdf65c27a8ceed205b6640e6a4c36e5a | refs/heads/master | 2022-07-19T12:32:53.530326 | 2020-05-27T17:18:47 | 2020-05-27T17:18:47 | 259,418,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | class LinkedListNode:
def __init__(self, data):
self.data = data
self.next = None
class Queue:
def __init__(self):
self.head = None
self.tail = None
self.num_elements = 0
def enqueue(self, data):
new_node = LinkedListNode(data)
if self.head is Non... | [
"yuriy.jurayev.d@gmail.com"
] | yuriy.jurayev.d@gmail.com |
43114d2f7132bdd755e261c108c200afc4f4c9a5 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/surface/compute/instances/set_iam_policy.py | b9eea24fbd21a269b6f8e9fd753b33d2e48e35d9 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 717 | py | # Copyright 2015 Google Inc. All Rights Reserved.
"""Command to set IAM policy for an instance resource."""
from googlecloudsdk.api_lib.compute import iam_base_classes
from googlecloudsdk.calliope import base
@base.Hidden
@base.ReleaseTracks(base.ReleaseTrack.ALPHA)
class SetIamPolicy(iam_base_classes.ZonalSetIamPol... | [
"joe@longreen.io"
] | joe@longreen.io |
15eb945f14b81379026156ad81640eb4e6951ec3 | 02b37f5f702ae164de31f6fc36f826607a5f713e | /manage.py | e68e1157d6f290fa3927fc5333e90167c76a47b3 | [] | no_license | Sovushka-sever/test_replica | e671aa4f20da6efd18ea947fa298e40b9d4ee457 | 8b15013b725e2f4772e904002dd359aa6a4a3716 | refs/heads/master | 2023-08-24T16:47:38.271279 | 2021-10-04T05:37:42 | 2021-10-04T05:37:42 | 412,221,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'my_library.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"sovushka.sever@gmail.com"
] | sovushka.sever@gmail.com |
072e7d70cfa5476d174f32f6af01f900b7a29b8d | 98710ccdecc22ab06a4ba22f885af5595cba38ee | /Chatbot-restroBuddy/Chatbot/restaurant_info.py | 38b8fa2a222b73a0e228c43abaf0144188f1d9cf | [
"Unlicense"
] | permissive | anshul7300/Chatbot-using-NLTK | f63f33951da40c42fa0369855bfc7e6d517dfa93 | e5ffa641652810c2be3700f06900f015042f7078 | refs/heads/main | 2023-07-16T08:42:09.837933 | 2021-09-04T10:31:58 | 2021-09-04T10:31:58 | 403,025,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,737 | py | import re
import pandas as pd
from sklearn.feature_extraction.text import CountVectorizer
import nltk
from collections import Counter
import seaborn as sns
import dictionary
import matplotlib.pyplot as plt
from nltk.probability import FreqDist
import numpy as np
import sqlite3
conn=sqlite3.Connection('Resta... | [
"noreply@github.com"
] | noreply@github.com |
83f250eef89c845604d934322e6abf1d7bd2c2d6 | d2b04d1c5a5d67a68224d11a3be8a67d30bb6404 | /index.py | 787211487921c0306a90f86dd7521047014f7982 | [] | no_license | IrfanMumtaz/python-practice1 | fc1194f0c094cbe1d1ec2918811d13f52f4cd094 | 7baef438f38a6c68ee2d008910700ccd87d77c6e | refs/heads/master | 2020-03-21T09:21:10.143120 | 2018-06-23T12:01:18 | 2018-06-23T12:01:18 | 138,395,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | table = int(input("Please enter number to print table: "))
tableRange = int(input("Please type range to print table: "))
for i in range(tableRange):
y = i + 1
print(table, "x", y, "=", y*table)
# star = int(input("Please enter number to print table: "))
# for i in range(star):
# i = i+1
# print("*"*i)
| [
"im.irfanmumtaz21@gmail.com"
] | im.irfanmumtaz21@gmail.com |
c53f1d529dac752b3e565295ef318f0becffcc69 | 33d46ff7311fed5990c289b8723684ead51ed0e3 | /settigs.py | 3b60bf0f1e928a8901767cbec32fac5da46e0477 | [] | no_license | kilu1312as/Wsspammer | 2ed44705f167e01c54e340bf90d1e1399acd1457 | 49f13d5b3a9bf71dc48616a83702016e59448795 | refs/heads/master | 2022-12-07T21:34:28.716518 | 2020-09-06T11:41:45 | 2020-09-06T11:41:45 | 293,262,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,188 | py | import sys
from PyQt5 import QtWidgets
from PyQt5.QtCore import Qt, pyqtSignal, QThread, QObject, QRunnable, QThreadPool, pyqtSlot
from PyQt5.QtWidgets import QInputDialog, QApplication
from PyQt5 import QtWidgets, uic, QtCore, QtGui
import webbrowser
import pyautogui as pag
import keyboard
import pyperclip
import open... | [
"60524047+kilu1312as@users.noreply.github.com"
] | 60524047+kilu1312as@users.noreply.github.com |
71ba4f507651adad9a4a6bea16e4fb6403802870 | dbc4a65c17645fe2b77d4acd22d6c53ace261f89 | /Numpy_bs/boolSetopSorting.py | 3bc13b81a4446580efc48bf257a421f0260eef06 | [] | no_license | felipeguth/basics | 52fba5e94c4ebeda53a881a4f3f806e10a000c98 | 40669c03324e44a36466d760e0b6af923e0fafd0 | refs/heads/master | 2023-08-15T10:30:59.759551 | 2021-08-20T18:21:43 | 2021-08-20T18:21:43 | 203,874,748 | 0 | 0 | null | 2023-07-22T14:17:41 | 2019-08-22T21:16:55 | HTML | UTF-8 | Python | false | false | 2,257 | py | import numpy as np
# We create a 5 x 5 ndarray that contains integers from 0 to 24
X = np.arange(25).reshape(5, 5)
# We print X
print()
print('Original X = \n', X)
print()
# We use Boolean indexing to select elements in X:
print('The elements in X that are greater than 10:', X[X > 10])
print('The elements in X that... | [
"felipeguth@gmail.com"
] | felipeguth@gmail.com |
19b8bad12ca06aa46842267e1530a1532d13ae81 | 1ef56dcfef70ee14df8956eedd171f74406594af | /erp/biz/contact_unit_biz.py | 44cf2026076d3860ea2709dc3884f82a98010696 | [] | no_license | journeyends/webtest | 6c54ff19e01cd0cd99a34bcae55dd5701abf132f | 2a24c6d7c52aa627edfbba3dd5eb9ccc16abe9fb | refs/heads/master | 2020-04-17T07:38:52.873722 | 2019-03-21T09:36:50 | 2019-03-21T09:36:50 | 166,378,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from erp.idal.i_contact_unit_dal import I_contact_unit_dal
class Contact_unit_biz:
dal = I_contact_unit_dal().instance()
def getList(self, condition={}, user_info={}):
dal = Contact_unit_biz.dal
return dal.getList(condition=condition, user_info=user_info)
| [
"songliyang@goldmantis.com"
] | songliyang@goldmantis.com |
9c97389a9de5ea9c3f054a8cc24a3d65143ec055 | 3da991a057cd81de802c40da2edd640878685258 | /test/test_op_normalization.py | c706451847070bc4b6095de92fb86e51b8490ca8 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | sjx0451/pytorch | 9f5b1c0c7c874f9da72c0190dc131944ba828ab7 | 3544f60f7602081398ee62bc5d652a87f4743dab | refs/heads/master | 2022-12-01T22:30:29.888370 | 2020-08-13T23:45:58 | 2020-08-13T23:48:31 | 287,421,291 | 2 | 0 | NOASSERTION | 2020-08-14T02:06:11 | 2020-08-14T02:06:11 | null | UTF-8 | Python | false | false | 4,347 | py | import torch
from torch.testing import FileCheck
from torch.testing._internal.common_utils import \
(run_tests)
from torch.testing._internal.jit_utils import JitTestCase
from torch.testing._internal.common_device_type import \
(instantiate_device_type_tests, skipCPUIfNoLapack, skipCUDAIfNoMagma)
# Information... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c37245a49b478ec6a022b242f8ec3e5421cdb29e | 24edd5485864a7dafab6e9b3257b47f8fd20fe14 | /main.py | 0762d8a9c740761b8bc4e01b6987c6ac346cf20a | [] | no_license | OtavioAMota/DPV | 523ab9ec36f3f8e7c696b5b368a5c6f32ee47f1c | a4df4118711fcd3e56f52a682b9e309cf6a7dbb7 | refs/heads/main | 2023-05-13T09:28:51.595828 | 2021-06-09T01:13:50 | 2021-06-09T01:13:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | import dlib
import cv2
import os
import glob
import sys
def main():
#treinamento()
#treinamento_pontos()
#detecta_pl_IMG()
#detecta_pl_com_pontos()
detecta_pl_VID()
def treinamento():# algoritmo SVM (Support Vector Machine)
op = dlib.simple_object_detector_training_options()#funç... | [
"noreply@github.com"
] | noreply@github.com |
d91ca4161a07129e9b9b27f17cd0465ab467fa7e | 5ec7a72cab10dd39e0cc877caa1cb97c3cd9f3de | /garuda/models/dq/operation.py | ba1d5125ca3eb27edc83cce8bc6439db91f6ad76 | [] | no_license | raufer/spark-dsl | a1d311263fe48f64859c04cd63a79f48d8cd8fa4 | a0fbf9561ba4567bc5d40bf2c7d289e214712aa6 | refs/heads/main | 2023-04-11T19:29:11.661273 | 2021-01-26T18:34:23 | 2021-01-26T18:34:23 | 367,982,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | import logging
from pydantic import BaseModel
from pydantic import validator
from garuda.dsl.mappings.operations import DSL_OPERATIONS
from garuda.models.dq.argument import Argument
from typing import List
logger = logging.getLogger(__name__)
class Operation(BaseModel):
"""
An operation represents a a Boo... | [
"raufer92@gmail.com"
] | raufer92@gmail.com |
54f06389354ae813a6703f1f9a9cf471bced6ecc | ed72ebc692ebf6f290eef1595dedd726b9e0b2b1 | /modules/dspin_router_tsar/caba/metadata/dspin_router_tsar.sd | 4c777b9cdd21e45776a4c293ebd7b325d128090b | [] | no_license | walafc0/tsar | 10e2065fbe7ae7d2dff830dff38dee4297a212eb | 1ce34d8e5eddabd4ecb3f43174cbb281835cc3dd | refs/heads/master | 2016-09-05T12:25:14.989283 | 2015-08-18T16:02:14 | 2015-08-18T16:02:14 | 40,981,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | sd | # -*- python -*-
Module('caba:dspin_router_tsar',
classname = 'soclib::caba::DspinRouterTsar',
tmpl_parameters = [ parameter.Int('flit_width'), ],
header_files = ['../source/include/dspin_router_tsar.h',],
implementation_files = ['../source/src/dspin_router_tsar.cpp',],
ports = [
Port('caba:bit_in', 'p_resetn',... | [
"devel@walafc0.org"
] | devel@walafc0.org |
d95c6bbb680ffabfc8506dc91f975b9f5b5dc3c3 | fb4143a12ae1b5f238ebcaaff229e4766009da63 | /srodowisko_programisty/lista2/zad4/repo1/250349/.svn/pristine/d9/d95c6bbb680ffabfc8506dc91f975b9f5b5dc3c3.svn-base | af365dfe9714fafa3a8063241c56a3ec9b617325 | [] | no_license | wroblewskiwojciech161/Studies | 315d78a558670088a99add1f4f6504b815294708 | 9a0369bb2691f3485339d55aaeef57cc82997c68 | refs/heads/master | 2023-05-24T22:54:07.228782 | 2021-01-07T08:15:31 | 2021-01-07T08:15:31 | 275,675,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,759 |
import re
"""Klasa implementująca strukturę węzła"""
class Node(object):
def __init__(self, value):
self.value = value
self.left = None # lewy potomek
self.right = None # prawy potomek
"""Klasa implementująca strukturę BST"""
class BinarySearchTree(object):
def __init__(self):
... | [
"wroblewskiwojciech161@gmail.com"
] | wroblewskiwojciech161@gmail.com | |
c11c3116864d5ac9805e39e4c0379455ab221940 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_11_01/aio/operations/_private_endpoint_connections_operations.py | 083296317b9947180f059bbc703508241d77a482 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 21,670 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | noreply@github.com |
b144228187596f1edc5c58b3f36ef545c970274c | 718ecd03a6a6e543b157630136e14807b5268d75 | /ProyectoSemestral/api/urls.py | 7f9ad231ce35fb700501ffcb8d63cc4f43f3c42e | [] | no_license | nanolite96/Proyecto_django_006D | 54bc802ffa9e9b800a2f60999c58e87496b8dfe4 | 4a6d07294d209f0dfa8525806427820b7da3b1d0 | refs/heads/main | 2023-06-26T04:07:42.713923 | 2021-07-15T17:11:10 | 2021-07-15T17:11:10 | 386,362,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.conf.urls import url
from rest_framework import urlpatterns
from api import views
from rest_framework.urlpatterns import format_suffix_patterns
urlpatterns = [
url(r'^api/trabajos/$',views.TrabajosViewSet.as_view()),
url(r'^api/contactos/$',views.ContactoViewSet.as_view()),
url(r'^api/trabajo_c... | [
"hernan.naveas.1996@gmail.com"
] | hernan.naveas.1996@gmail.com |
87de666bcb565d0b8dd868a9aaaec9d9bc729301 | 8c4ef6dc06a26ee311d6e3a28ede182d558536f8 | /ProblemSets/Lecture1/interpolation.py | 8c4b9cb509478e1925f6463aa903d8cd726530e4 | [] | no_license | terrytwu/OSE2019 | 3517921bedd52a201a683a3b93123044095d4386 | 00eac675fea808eeb61f050b4dacab4810788c0d | refs/heads/master | 2022-01-29T15:20:26.902269 | 2019-07-20T18:26:05 | 2019-07-20T18:26:05 | 197,962,896 | 0 | 0 | null | 2019-07-20T17:38:08 | 2019-07-20T17:38:08 | null | UTF-8 | Python | false | false | 1,831 | py |
import TasmanianSG
import numpy as np
from parameters import *
import nonlinear_solver_initial as solver
#======================================================================
def sparse_grid(n_agents, iDepth, sIdx):
grid = TasmanianSG.TasmanianSparseGrid()
k_range=np.array([k_bar, k_up])
ranges=np... | [
"noreply@github.com"
] | noreply@github.com |
5f71c85aa75c1c24a9575b6d06e38e32013a64e6 | 86a3219fd7a43a940c10995fbb9ad4c622f69247 | /packager/media/origin/origin.gyp | 4a5c34e3b0526c9f61b6d7a7b5cdc7a37fc53cce | [
"BSD-3-Clause"
] | permissive | briandbl/shaka-packager | 847cf39c401ca968230d88d0b322f5ed2fbdfe80 | 28385c0fc050339ed769a302d0a63106195ef7e5 | refs/heads/master | 2021-06-27T01:40:12.052137 | 2017-09-14T17:31:16 | 2017-09-14T18:37:42 | 103,604,567 | 1 | 0 | null | 2017-09-15T02:27:45 | 2017-09-15T02:27:45 | null | UTF-8 | Python | false | false | 524 | gyp | # Copyright 2017 Google Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file or at
# https://developers.google.com/open-source/licenses/bsd
{
'includes': [
'../../common.gypi',
],
'targets': [
{
'target_name': 'origin',
... | [
"vaage@google.com"
] | vaage@google.com |
a974564e4633b66fd3e67c21fe786bebd1a32d67 | 9e5422e3446f685e6ffcff02181054a019ac6aa9 | /nlp_files/server.py | ad35259415acea1ea8bf315199d4f3d32c4cbe27 | [] | no_license | MuhammadTausif/nlp_project | ee878c1987bf302ed427ac0ee8292c0276d1ef19 | d58d5c3a1619d937e068acc2f6e08ffe0ecffc09 | refs/heads/master | 2020-04-17T13:49:44.394949 | 2019-01-23T08:53:31 | 2019-01-23T08:53:31 | 166,631,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | from SimpleWebSocketServer import SimpleWebSocketServer, WebSocket
from halogen import login, singup
from main_function import get_answer
class ChatServer(WebSocket):
def handleMessage(self):
# echo message back to client
message = self.data
message_array = message.split(',')
... | [
"tausifasia@gmail.com"
] | tausifasia@gmail.com |
b6382d8cb2f00689b80c9aafbc16f6f28d613107 | 4178bf7b90b74a3da7edf4d648503bfd0655a1e3 | /test/r2rml/INVERSETC-0004/test_inversetc0004.py | 2c7b184289ab8f68b1bc2e371b939038844e10cb | [
"Apache-2.0"
] | permissive | oeg-upm/yatter | 07d6745e1b9e1c10b2c61f3737cfaffe68809b48 | da6e9c02e810619c58b95071a1be3e6122a90625 | refs/heads/main | 2023-07-08T03:27:10.914523 | 2023-06-22T06:07:40 | 2023-06-22T06:07:40 | 349,481,694 | 7 | 2 | Apache-2.0 | 2023-07-02T10:33:41 | 2021-03-19T16:08:16 | Python | UTF-8 | Python | false | false | 1,020 | py | __author__ = "David Chaves-Fraga"
__credits__ = ["David Chaves-Fraga"]
__license__ = "Apache-2.0"
__maintainer__ = "David Chaves-Fraga"
__email__ = "david.chaves@upm.es"
__name__ = "INVERSETC-0003 based on YARRRMLTC-0005"
import os
from ruamel.yaml import YAML
import yatter
from rdflib.graph import Graph
from deepdi... | [
"dachafra@gmail.com"
] | dachafra@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.