blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3a26154b540ac62dd14a20038162772e7a58a16 | 487758b0f371df3233c0651a042c26e7fc6b0765 | /tools/cbmc/patches/compute_patch.py | 7dcfcefcd401b058936944e6fecf3c40e3c6fa6d | [] | no_license | redpinesignalsinc/amazon-freertos | bcd30d43d759b905f4e47973d53db777e57b7117 | 22f470e30ee8c3cfe7861551dff4849212668f87 | refs/heads/master | 2020-12-22T04:54:16.742019 | 2020-01-28T07:39:15 | 2020-01-28T07:39:15 | 235,995,037 | 0 | 0 | null | 2020-01-27T10:45:52 | 2020-01-24T12:00:47 | null | UTF-8 | Python | false | false | 9,232 | py | #!/usr/bin/env python3
#
# Generation of patches for CBMC proofs.
#
# Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# 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... | [
"vinod.alibade@redpinesignals.com"
] | vinod.alibade@redpinesignals.com |
b8405ccbf1b037622cfb344604a81fcef9306518 | 1f5f8f95530003c6c66419519d78cb52d21f65c0 | /projects/golem_gui/tests/users/create_user/add_project_permission.py | 5ac16e37d8543470a90751eb0751b5bc624ee3b4 | [] | no_license | golemhq/golem-tests | c5d3ab04b1ea3755d8b812229feb60f513d039ac | dff8fd3a606c3d1ef8667aece6fddef8ac441230 | refs/heads/master | 2023-08-17T23:05:26.286718 | 2021-10-04T20:34:17 | 2021-10-04T20:34:17 | 105,579,436 | 4 | 1 | null | 2018-11-19T00:14:24 | 2017-10-02T20:05:55 | Python | UTF-8 | Python | false | false | 513 | py | from golem import actions
from projects.golem_gui.pages import common
from projects.golem_gui.pages.users import create_user
def setup(data):
common.access_golem(data.env.url, data.env.admin)
create_user.navigate_to_page()
def test(data):
project = 'project1'
permission = 'admin'
create_user.se... | [
"luciano@lucianorenzi.com"
] | luciano@lucianorenzi.com |
3f49e0b87034d1facf0d85d5bd8aa7183250ef3e | fa00de856cea27b4425474dcdc6cb8b4654b0278 | /seprjmvp/accounts/forms.py | c44674114929a9c92fa9641d962f19de5d609e75 | [] | no_license | faryabimm/se_prj_mvp | 03a7f90e12ea6d4c12dcb6304904b24e409ba0b5 | 092fccc9f62b4faa97e717d1d27ffae6184aa251 | refs/heads/master | 2020-03-19T18:41:27.915541 | 2018-06-10T15:24:25 | 2018-06-10T15:24:25 | 136,820,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
class SignUpForm(UserCreationForm):
name = forms.CharField(max_length=50, required=True, help_text='required')
email = forms.EmailField(max_length=254, required=True, help_text='required... | [
"faryabimohammadmahdi@gmail.com"
] | faryabimohammadmahdi@gmail.com |
2e1b14b5791d705897342227ca9a919f4399bccf | 73f1075c99338984795f4bd7bd7b9563ecc36d87 | /Binary_Search/74.Search_a_2D_Matrix.py | 033d554ced3b5db33c3e0b08155a2a7e62fb0138 | [] | no_license | grg909/LCtrip | 314bd173f87ec98ff13234bdd148c76482db2df7 | 96836da905526b47f0cdee8c0bb4790c4cdd6c79 | refs/heads/master | 2020-09-12T13:38:52.486189 | 2020-08-28T14:22:50 | 2020-08-28T14:22:50 | 222,442,472 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # -*- coding: UTF-8 -*-
# @Date : 2019/12/11
# @Author : WANG JINGE
# @Email : wang.j.au@m.titech.ac.jp
# @Language: python 3.7
"""
"""
# 思路1,把二维数组扁平化
class Solution:
def searchMatrix(self, matrix, target):
try:
n, m = len(matrix), len(matrix[0])
except:
return False... | [
"grg909@foxmail.com"
] | grg909@foxmail.com |
cc7b250a3c9f0394d2b4a95cc17b250ac8fc17f7 | bd2a975f5f6cd771393f994ebd428e43142ee869 | /new_render_data/input/p/script/abort/back20180419/CG/C4d/process/AnalyzeC4d.py | 8701fce3cb9979a4512eb94493a2858b24657c12 | [] | no_license | sol87/Pycharm_python36 | 1a297c9432462fc0d3189a1dc7393fdce26cb501 | fa7d53990040d888309a349cfa458a537b8d5f04 | refs/heads/master | 2023-03-16T10:35:55.697402 | 2018-11-08T09:52:14 | 2018-11-08T09:52:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,585 | py | #!/usr/bin/env python
# -*- coding=utf-8 -*-
# Author: kaname
# QQ: 1394041054
""" C4d analyzer """
# RUN:
# 1. From C4Dloader.py to loading RBAnalzer.py to do it.
# 2. AnalyzeC4d.py loading C4Dloader.py to do it.
import os
import sys
import subprocess
import string
import logging
import time
import shutil
... | [
"superdkk@gmail.com"
] | superdkk@gmail.com |
dcd129a74603a0715965552c23d7abc56eb7e6da | 484d73935f057756df8bc6556fc5704327443108 | /234ICPC/D_test.py | 7711282531746f22a74f0eb79cc78163db4c7043 | [] | no_license | kazuya030/CodeForces | 5d93d25f456589ad6343e1140ca27c5ecbd0d652 | 8d859c7680c7dd1c40943bb05116bf032ea5f9bd | refs/heads/master | 2021-03-12T23:45:53.592799 | 2012-12-02T06:57:30 | 2012-12-02T06:57:30 | 6,964,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | #coding: utf8
import sys
import StringIO
__date__ = '2012/10/20'
from D import solve
def test(input, ans):
ans = str(ans)
s_in = StringIO.StringIO(input)
s_out = StringIO.StringIO()
sys.stdin = s_in; sys.stdout = s_out
str(solve())
sys.stdin = sys.__stdin__; sys.stdout = sys.__stdout__
s... | [
"minami@Retinan.local"
] | minami@Retinan.local |
41363247c358198e8cecea4460b8076fd9c34398 | 01301e5f486883865e3696f38ef913a232958343 | /antlir/compiler/test_images/print_ok.py | a38dabfa12fe5a4e77e3b8b8fd720897c11764b0 | [
"MIT"
] | permissive | SaurabhAgarwala/antlir | 85fb09c87dafde56622b4107224b41f873f66442 | d9513d35d3eaa9d28717a40057a14d099c6ec775 | refs/heads/main | 2023-06-25T09:05:30.619684 | 2021-07-01T23:04:57 | 2021-07-01T23:06:11 | 382,355,446 | 0 | 0 | MIT | 2021-07-02T13:30:39 | 2021-07-02T13:30:39 | null | UTF-8 | Python | false | false | 294 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
'Prints the unicode string "ok" via the `print` function to `stdout`, on 1 line'
print("ok")
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a976c47dc9b2b9ea9159315a66f28ffebac319cd | 05fd81538aa32c0c3fa3e8762a5146342478421b | /NN_skin_cancer/cfgs/2020/ham_effb1_meta_nl.py | c913d659d2cd0126b43f716e7e0d327c2ecd9c0f | [
"MIT"
] | permissive | GavinHU66/DebugEntity | b0a23b51b339a4f70dcb98f6cc419e151cc94420 | 21f38f01bdfbbc363a73f640331c6f04a121cf82 | refs/heads/master | 2023-04-11T10:25:20.543185 | 2021-04-14T05:20:25 | 2021-04-14T05:20:25 | 300,828,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,021 | py | import numpy as np
def init(mdlParams_):
mdlParams = {}
# Save summaries and model here
mdlParams['saveDir'] = './models/model_ham_effb1_meta_nl'
mdlParams['model_load_path'] = './models/model_ham_effb1'
# Data is loaded from here
mdlParams['dataDir'] = './Data'
mdlParams['with_m... | [
"ec2-user@ip-172-31-16-196.us-east-2.compute.internal"
] | ec2-user@ip-172-31-16-196.us-east-2.compute.internal |
dba40b9bb798424bbf69d92708c6cfa4e6a370f6 | 3a0464e991ecb173bc4582892a8079e6312a82c8 | /app.py | 8da2a40496d28db0bf9e519e48a1895af6e072e4 | [] | no_license | noorbakerally/sparql-server-wrapper | d3003503b2d1892f0007114992372ac9cf8634ba | a7c6612cc20295871f4371c4a32c6c5cb64f5c92 | refs/heads/master | 2021-01-10T05:41:55.952301 | 2016-03-19T20:12:59 | 2016-03-19T20:12:59 | 54,285,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | from flask import Flask,request
from easyprocess import EasyProcess
from flask.ext.cors import CORS
app = Flask(__name__)
CORS(app)
@app.route("/generate", methods=['GET', 'POST'])
def generate():
#get the query
if request.method == 'POST':
query = request.form['query']
else:
query = request.args.get('query'... | [
"noorani.bakerally@gmail.com"
] | noorani.bakerally@gmail.com |
0f276a9b40c35cb921b2f49748656afb5c5442d9 | 0f0a7adfae45e07a896c5cd5648ae081d4ef7790 | /python数据结构/慕课测试题/打印实心矩形.py | f31f5eb66436884a6fbfd6372e3042c933196836 | [] | no_license | renlei-great/git_window- | e2c578544c7a8bdd97a7a9da7be0464d6955186f | 8bff20a18d7bbeeaf714aa49bf15ab706153cc28 | refs/heads/master | 2021-07-19T13:09:01.075494 | 2020-06-13T06:14:37 | 2020-06-13T06:14:37 | 227,722,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | args = input().split()
alist = [int(i) for i in args]
# min_number = min(alist)
min_number = alist[0]
for i in alist:
if min_number > i:
min_number = i
print(min_number)
| [
"1415977534@qq.com"
] | 1415977534@qq.com |
f36d77833c5ad2f75fe439282ecc35502d0153ca | 2ff5cf209663c660b38092e2c02f82b8114062fa | /api/utils/htmlreport.py | a160de4e2fb0f41a418318c879133edd4ab4770c | [] | no_license | wuchf/shuangshi-api-test | c48791c1e0a5e18c0fb4a252178514a19e2678ee | 473e933a751ee6485bfb7dc3455c91eaf8471ff5 | refs/heads/master | 2020-05-04T15:34:25.973665 | 2019-04-03T08:54:55 | 2019-04-03T08:54:55 | 179,246,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,320 | py | import sys
HTML_TMP='''
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="../../static/css/bootstrap.min.css" rel="stylesheet">
<script src="../../static/js/jquery-3.2.1.min.js"></script>
<script src="../../static/js/bootstrap.min.js"></script>
<script src="http... | [
"noreply@github.com"
] | wuchf.noreply@github.com |
87b9509ca6d5640d6e420dda4d191a0168607c51 | 45a917403e0865dcf161b24d2742f9cb766c1d69 | /floyd.py | 2021118f5f3f7e57549db3d5a4009445f37dbadc | [] | no_license | wkentdag/algorithms | 47daefa91ff0d0f39f8f885711ca667b9ee6a01b | a80d5d2df2906b82e4d2f916cfddcb8fddd82b02 | refs/heads/master | 2021-01-10T19:44:25.910009 | 2015-03-06T17:46:00 | 2015-03-06T17:46:00 | 31,781,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | # Will Kent-Daggett + Scott Hurlow
# COMP-221 Algorithms
# Programming 5, Question 4 (Floyd's Algorithm)
###################################################
import random
import timeit
def floyd(a, p):
"""Takes in an adjacency matrix a, and performs floyd's
algorithm for shortest pairs, returning time elapsed.
A... | [
"willkentdaggett@gmail.com"
] | willkentdaggett@gmail.com |
43aba86defd8b4fc8685a46d9e5ee312c9c10898 | 7e0b93b996c7eb89c450a65ea7c69b48780cbbc3 | /dingomata/cogs/bedtime/commands.py | d993e424754d7d0bc39e3c75a91253a3d41bce45 | [
"MIT"
] | permissive | KaiSkiFox/discord-dingomata | fcff446d26052abd0d21e8f69d0773f6e15f6357 | 79ffba2eff8a711c7bb6cf417d0ef7848d230738 | refs/heads/main | 2023-08-23T19:38:33.011227 | 2021-10-07T15:33:59 | 2021-10-07T15:33:59 | 410,990,784 | 0 | 0 | MIT | 2021-09-27T18:01:59 | 2021-09-27T18:01:58 | null | UTF-8 | Python | false | false | 8,882 | py | import logging
from datetime import datetime, timedelta
from random import choice
from typing import Optional, Dict
import pytz
import parsedatetime
from discord import Message, Forbidden
from discord.ext.commands import Bot, Cog
from discord_slash import SlashContext
from discord_slash.utils.manage_commands import cr... | [
"12706268+snazzyfox@users.noreply.github.com"
] | 12706268+snazzyfox@users.noreply.github.com |
4479613cc55c0bb5cd58770d3eb6318b6b0d2451 | 69c4313b5339243847dfae1658b04652ce59bda8 | /Naive-Bayes Classifier/prediction of movie reviews.py | 28999127fd4c1e862da79cff33359ed8bac41202 | [] | no_license | Ritik-Arora-576/DATA-SCIENCE | 667cd25bf01445572fe6ff823de8f4164ff6f412 | 8ef0bea6dcc6c06bfb5b2dd1266722fff1de435b | refs/heads/master | 2023-02-08T08:07:03.506197 | 2020-12-19T14:40:54 | 2020-12-19T14:40:54 | 280,922,746 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | #!/usr/bin/env python
# coding: utf-8
# # Training Dataset :
# In[1]:
train_data=[
'This was an awesome movie',
'Great movie ! I liked it alot',
'Happy Ending ! awesome acting by the hero',
'Loved it ! Truly great',
'bad not upto the mark',
'Surely a dissapointing movie'
]
y=[1,1,1,1,0,0]
... | [
"ritikarora656@gmail.com"
] | ritikarora656@gmail.com |
490cc5c17c7b44c4c6e43f0bad18fa2d38711e6e | bc8cd08c03e22625da04357fa95ca93f7f3dee26 | /backend/app/demo/__init__.py | a8e508d8ce4b43ad669d14edb367970e4f72289f | [] | no_license | huanglesi0605/room-seeker | 182149d2df725965d1e08ca007e73cf9bf56d556 | 9b004dba24f0ec9216d4fb0fa9ede2fe626f9f0e | refs/heads/master | 2023-02-06T04:07:24.623518 | 2019-12-08T13:24:33 | 2019-12-08T13:24:33 | 226,670,464 | 0 | 1 | null | 2023-02-02T05:11:20 | 2019-12-08T13:17:11 | JavaScript | UTF-8 | Python | false | false | 356 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from flask import Flask
from flask_cors import CORS
import v1
def create_app():
app = Flask(__name__, static_folder='static')
CORS(app)
app.register_blueprint(
v1.bp,
url_prefix='/v1')
return app
if __name__ == '__main__... | [
"huanglesi0605@gmail.com"
] | huanglesi0605@gmail.com |
139d90a724afb570f73766dcec13eb22481baa23 | e8bfb4565c63538b14a68b798093b79bcc934723 | /labs/lab4.py | 2edb40ca16e7d65c0d28b14f703e770d9fd217e6 | [] | no_license | ameru/cs-fundamentals-101 | 630230c1c384792da4d563dbe1990f888861cace | 2d3841e1bc21885f1f274fe70b4071152520c53e | refs/heads/main | 2023-02-03T19:32:15.527283 | 2020-12-21T07:25:00 | 2020-12-21T07:25:00 | 303,852,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | # no docstrings needed for __eq__ and __repr__
import turtle
def euclid_distance (point1, point2) -> float:
""" computes Euclidean distance
Arguments:
a (Point): a point
b (point): another point
Returns:
float: the euclidean distance between the points
"""
result = return ((a.x - b.x)**2) + (a.y - b.y)... | [
"noreply@github.com"
] | ameru.noreply@github.com |
c126f0f06bc1013db451d75b242298742e2ec9e8 | 389e5408ee9846219b52c68381a32f23deff6c68 | /app/core/migrations/0003_ingredient.py | 1f421c7b1e2b77927ddc2fafe9fcdd9365ec8969 | [
"MIT"
] | permissive | derwinterence04/recipe-app-api | 63703abb7b7d5e9c33a4ed5010927aee1c674ba4 | fee862987885d4dcd4878c48cb9cffa11d015ae1 | refs/heads/master | 2022-11-23T11:32:56.908589 | 2020-07-29T02:08:06 | 2020-07-29T02:08:06 | 282,761,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 3.0.8 on 2020-07-28 02:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0002_tag'),
]
operations = [
migrations.CreateModel(
n... | [
"dtcastro@ph.indra.com"
] | dtcastro@ph.indra.com |
166d339829928c03eae087789acaafe7f5329a46 | 267f2c09420436e97275986f825045cbe81fd3ec | /buy & sell vinyl records 3.5.3.py | 5215d6374e530fd31aa37d163087968486904c55 | [] | no_license | aiqbal-hhs/91906-7 | f1ddc21846bee6dd9dcf4f75bdabe68989390769 | 8d6aadedff8c6585c204a256b5bd3ad8294a815f | refs/heads/main | 2023-05-15T00:17:41.407536 | 2021-06-04T10:32:21 | 2021-06-04T10:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | from functools import partial
from tkinter import *
import random
root = Tk()
stock_list = ["Igor - Tyler The Creator",
"Good Kid Maad City - Kendrick Lamar",
"Demon Days - Gorillaz"]
class stock:
def __init__(self, name, amount):
self.name = name
self.amount
s... | [
"noreply@github.com"
] | aiqbal-hhs.noreply@github.com |
ef9dd66a281bd4a8cfff524ae8a983149449e1cd | ca17bd80ac1d02c711423ac4093330172002a513 | /binary_tree_longest_consecutive_sequence/LongestSequence_better.py | 3413f0a627ca955427b2a27755e726678c29a746 | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def helper(self, root):
if not root: return 0, 0
leftG, leftL = self.helper(root.left)
rightG, ri... | [
"zhao_j1@denison.edu"
] | zhao_j1@denison.edu |
59dd09fa952c05fb2664214cd30c0473025458e0 | 43e53df2f2bc1779c2896541940a235e66a02b02 | /day18/qq发送消息.py | ab63f8dfee03cb49856868ecbdb35ef1e150b795 | [] | no_license | songdanlee/python_code_basic | ddb3276b0473a261423c43d5d8e7a1ff038d5c51 | f32cd4dc9670e55ffa6abe04c9184bfa5d8bbc41 | refs/heads/master | 2020-07-14T21:05:30.471486 | 2019-08-30T14:55:51 | 2019-08-30T14:55:51 | 205,402,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | import os
Name = input('Name of the Receiver: ')
Name = '穆梓'
clientDict = {'lz':'513278236',
'穆梓':'318750798'
} # 人名 和对应的 qq号
os.system('start tencent://message/?uin=' + clientDict[Name]) | [
"2533636371@qq.com"
] | 2533636371@qq.com |
54f5e3cdf45372380069c8efe4a8c3f74a44ee5b | 637ad73004c056397e1f7ecd039c9c0ece9a1114 | /ScrapingCongress/cget.py | e830f32de64f7bef673b60a03070a049ec5f8be8 | [
"MIT"
] | permissive | Krewn/bukeVote | cf07c26dfb91e9c750b4cf7ea6435531c3cf3159 | 646ff194957cd6e4dd642ee1f61021c3be01a0d4 | refs/heads/master | 2016-09-13T17:11:01.576846 | 2016-06-07T07:25:25 | 2016-06-07T07:25:25 | 58,336,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # $$$$$$$\ $$\
# $$ __$$\ |$$| |$$|
# $$ | $$ | |$$\ $$| $$| $$$$$$$\
# $$$$$$$\ | $$| $$| $$| $$ _____|
# ... | [
"kpie314@gmail.com"
] | kpie314@gmail.com |
43987897857cb1721c0c822bde781613f26eea07 | 6bada87a5c36d1c711bf10d6a74fbb009aa6258c | /dumbpm/shared/shared.py | 7aed571d98d2badc46a66d2231dbab8ad3e75c48 | [
"Apache-2.0"
] | permissive | poros/dumbpm | 763e6d32645fe95af846ea4d3dc38a8714c8867f | 648d73caf4e8246fe2981907959fe8cae15bc98c | refs/heads/master | 2023-02-24T18:26:47.709512 | 2022-01-24T11:23:11 | 2022-01-24T11:23:11 | 162,490,710 | 7 | 0 | Apache-2.0 | 2023-02-11T00:31:53 | 2018-12-19T21:05:38 | Python | UTF-8 | Python | false | false | 275 | py | from pandas import DataFrame
def compute_stats(duration: list[int]) -> DataFrame:
"""Statistics to visualize for the result of a Monte Carlo simulation."""
return DataFrame(duration, columns=["Duration"]).describe(
percentiles=[0.5, 0.75, 0.90, 0.99]
)
| [
"noreply@github.com"
] | poros.noreply@github.com |
53a0c5631fbc7d5df21cab0051bc053183e747e3 | a6df1449b52ab0bf393b2eaabf859e89f07377e3 | /article/migrations/0003_auto_20191127_1549.py | f7de0863968eb1ec983749b2f0538bbc5d0281af | [] | no_license | adwinugroho/cryppy_blog_django | 3ddaacb0389a17e8cba4120340c33e72226a0bca | 723974469613301af7a6f7add5e67c1de4656f43 | refs/heads/master | 2021-06-30T14:08:29.771672 | 2019-12-14T08:42:14 | 2019-12-14T08:42:14 | 227,990,314 | 0 | 0 | null | 2019-12-14T08:35:19 | 2019-12-14T08:27:59 | HTML | UTF-8 | Python | false | false | 398 | py | # Generated by Django 2.2.7 on 2019-11-27 15:49
import ckeditor.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0002_article_slug'),
]
operations = [
migrations.AlterField(
model_name='article',
name='o... | [
"adwinnugroho16@gmail.com"
] | adwinnugroho16@gmail.com |
cf4860def85e20d2a28057aaa8e43165421b30f5 | abe88d197c288a553645a0add7ccc50f34ceb858 | /02_streamciphers/truthtable_to_anf.py | 09929b32eaaad66864d5afa71f15a82d803b1682 | [
"Unlicense"
] | permissive | StoneSwine/IMT4124-cryptology_software | eea3d8fe69c9c22929fdaa6e76cac1535f68effa | f480ad40a02802d82fdf2a3b35bc2251d5241f89 | refs/heads/main | 2023-01-24T03:13:25.562324 | 2020-11-19T07:55:35 | 2020-11-19T07:55:35 | 314,175,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | #!/usr/bin/env python3
import math
# CHANGEME:
#g = 0xE7
g = int("0b11010001", 2)
g = str(bin(g)[2:])
varnum = int(math.log2(len(g)))
n_rows = int("0b" + "1" * varnum, 2)
def find(s, ch):
return [x for x, ltr in enumerate(s) if ltr == ch]
def get_multiple_characters(s, indexes):
for i in indexes:
if s[i]... | [
"StoneSwine@users.noreply.github.com"
] | StoneSwine@users.noreply.github.com |
577b3103f6d545706880b49e0ca68d04a83bb05f | 25764226e0dcad2e4f8fccf712a01a29c64eba23 | /api_save_csv.py | 0b9fa15149a00e2bfbb58313504c07d538bbe126 | [] | no_license | 19-2-oss/19-2-oss-project | 24d9b1680c72aff9432fe8a85465bb7e0e5ead68 | a47330cc7a9493a0f615c9d61572d5ea0f2d4a8d | refs/heads/master | 2023-01-12T12:55:23.388124 | 2019-12-19T11:33:08 | 2019-12-19T11:33:08 | 226,592,289 | 0 | 4 | null | 2022-12-11T16:30:03 | 2019-12-08T00:06:47 | CSS | UTF-8 | Python | false | false | 980 | py | import urllib.request
import json
import pandas
name = urllib.parse.quote(input("경기도 시/군 명을 입력해주세요 : "))
url = 'https://openapi.gg.go.kr/PlaceThatDoATasteyFoodSt?KEY=30c8bab88c6249babce184a75ce9be0f&Type=json&SIGUN_NM='+name
request = urllib.request.Request(url)
response = urllib.request.urlopen(request)
rescode = res... | [
"wogus2838@naver.com"
] | wogus2838@naver.com |
40e657c8fd6cc4159d8d1aab9bd7146e9cb84561 | 7f8c9a91abfd776576edbefd9929b55ab249523e | /node_modules/uws/build/config.gypi | f29e879b0304e4bd03f5d2ec4d83ef0059b439f4 | [
"Zlib"
] | permissive | sam735/Direct_messaging | 6e854b195fe964c615501604ef4fc505e1968236 | e83b8cadcd29faa2fbb733250b76e8e0efe91996 | refs/heads/master | 2021-10-22T22:42:53.651443 | 2019-03-13T07:36:09 | 2019-03-13T07:36:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,235 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"ksanjeev@zeomega.com"
] | ksanjeev@zeomega.com |
ac0e7dab7b113ef703d686513e93015258211bce | aae2f576442eca943a3c3c73f9ae65075419e503 | /tests/test_api.py | 7c607f1502e5bb6ec421962a680e26403d8a386f | [] | no_license | joaquin-diaz/coding-challenge-backend | 38c6fa8d8d75f642ea3580a957e9c61871d7023d | f97b8ec6041525127794af4c00bf423af4f365bd | refs/heads/master | 2023-01-28T14:11:51.786278 | 2019-09-02T00:04:40 | 2019-09-02T00:04:40 | 205,566,615 | 0 | 0 | null | 2023-01-24T00:37:30 | 2019-08-31T16:06:40 | Python | UTF-8 | Python | false | false | 1,880 | py | import unittest
from unittest.mock import patch, MagicMock
from api import FilmLocationsAPI
from .common import mock_response
class TestAPI(unittest.TestCase):
def test_init_empty_api_key(self):
with self.assertRaises(Exception) as e:
FilmLocationsAPI(api_token=None)
self.assertEqual(
"Pleas... | [
"joaquin_fdv@goshippo.com"
] | joaquin_fdv@goshippo.com |
1221006e69505d6b9673acda6b899b46957c5ac5 | 9873c0b05522ea0ce574944712e6d5c6f829de2f | /diarrheapiechart.py | 1c3fe9d5dd80f77fee6f6c6035d6259251e67cab | [] | no_license | jiankaiwang/tcdc_opendata_visualization_data | 972f64606ede14355a65f8ea88b218dd1fed1978 | 2de3346ea8950d7027d6123169219d39802f09cb | refs/heads/master | 2021-05-04T16:09:56.239403 | 2018-02-05T02:45:41 | 2018-02-05T02:45:41 | 120,245,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,366 | py | # -*- coding: utf-8 -*-
"""
#
# author : jiankaiwang (https://jiankaiwang.no-ip.biz/)
# project : CKAN Visualization
# service : diarrheapiechart
#
"""
import csv
import urllib
import urllib2
import py2mysql
import json
import general
import sys
# service name (must be noticed if it is going to change)
serviceName =... | [
"s0973078@mail.ncyu.edu.tw"
] | s0973078@mail.ncyu.edu.tw |
4323d06509935ec626872716a0a5d1a8c8366b41 | 8feb5a91bfc7ffd267da5635a8c450f4db2da8dd | /Python Scripts/app_extractor_lib_based.py | dd70130260696bb9e07254d007e909a4396ddc4d | [] | no_license | jabhinav/Educational-Content-Enrichment | a8d8e62aed8c5a0cfa85fab1c8e26305cbe1426d | a73a466430142074e581f86ef91a5d35e22c6e76 | refs/heads/master | 2022-12-06T03:56:46.280482 | 2020-08-24T20:18:27 | 2020-08-24T20:18:27 | 213,155,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | import nltk
import wikipedia
import os
all_wiki_titles = "/home/abhinavj/video_enrichment/"
with open(os.path.join(all_wiki_titles,"wiki_all_titles.txt"),'r') as f:
titles = f.readlines()
# warning:: Calling `section` on a section that has subheadings will NOT return
# the full text of all of the sub... | [
"noreply@github.com"
] | jabhinav.noreply@github.com |
2668f757293e1c34a37a46665c3e67873ae603b9 | 9e2e70257f707751fdff54f3322fad09a4029118 | /graphing.py | e909d13d3ea132022069e91b5d9e7f5f33190375 | [] | no_license | danielchen09/CS448-Project3 | eb254c848ea9aff73ddd60c4e814a05cb4150b3b | 37212dacc9696f7504117ce21f2073a1bc20ec57 | refs/heads/master | 2023-04-13T02:01:28.281860 | 2021-04-22T09:18:28 | 2021-04-22T09:18:28 | 357,829,794 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
x = []
y_min = []
y_avg = []
y_max = []
ys = []
with open('part1test1-out/time.txt') as f:
while (True):
line = f.readline()
if not line:
break
x.append(line)
for i in range(4):
ys += f.r... | [
"chen3189@purdue.edu"
] | chen3189@purdue.edu |
c837a74da3788a0da98913e94694bbd9595db67c | f1d3274a55b8a2f059b47ab7ed812338d47617a5 | /untitled/SSW540_ASSIGNMENT/ASSIGNMENT06_AKSHAYSUNDERWANI_SSW540/Project07_AkshaySunderwani_SSW540.py | 10fd1bf2328a52ca94a670ef5f7f080135084877 | [] | no_license | akshya672222/PycharmProjects | aa04b495514c48401b75cb4c92f0bdecfb143398 | 20bddc14e164e9785ab831f06a0ada618bc627f9 | refs/heads/master | 2020-09-25T06:24:53.974135 | 2016-12-17T19:52:30 | 2016-12-17T19:52:30 | 67,933,996 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | # SSW 540 - Assignment 07 - P7: Finding unique strings
# Akshay Sunderwani
import re
def parsefileforpath(filepath):
try:
# opening the file
with open ( filepath ) as filetoread:
senderlist = [ ]
for lines in filetoread:
linelist = lines.split ( )
... | [
"akshya672222@gmail.com"
] | akshya672222@gmail.com |
bf883990f5d5a2a677f673e28b5c4877284c147d | fde186bd141ed055ba8ab915b2ad25355f8f3fb6 | /ABC/070/py/A.py | 66689bce17b2f299f4639476d5684fcfd9e35d34 | [] | no_license | Tsukumo3/Atcoder | 259ea6487ad25ba2d4bf96d3e1cf9be4a427d24e | 5f8d5cf4c0edee5f54b8e78bc14a62e23cab69cb | refs/heads/master | 2020-12-20T05:04:39.222657 | 2020-10-17T01:39:04 | 2020-10-17T01:39:04 | 235,969,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | '''
ABC070 A - Palindromic Number
https://atcoder.jp/contests/abc070/tasks/abc070_a
'''
n = input()
if n[0] == n[2]:
ans = 'Yes'
else:
ans = 'No'
print(ans)
| [
"53821328+Tsukumo3@users.noreply.github.com"
] | 53821328+Tsukumo3@users.noreply.github.com |
6f845db5411f67f682b1111722d978af04ad23c4 | 8d9d88743c9fdbc1115e652b114de3038ed5f5cc | /keyboards.py | b785a3bd64e1a0dc67b6b869650a06e70dea1dc8 | [] | no_license | yarosha/meeting_in_restaurant_project | c2d182b776146087fe6c1b9d371ed70109add2ec | 670a3a6f1394894780aa99569f55a24c59928840 | refs/heads/master | 2020-09-21T01:44:56.670731 | 2019-12-22T08:03:26 | 2019-12-22T08:03:26 | 224,643,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,994 | py | from vk_api.keyboard import VkKeyboard, VkKeyboardColor
import vk_api
vk = vk_api.VkApi(token='cb6145a957442835528d14699d5601685ccd389d585ab3f55786b6ec56d0600436670449ef71f0fc70f59')
vk._auth_token()
def main_keyboard():
keyboard = VkKeyboard(one_time=True)
keyboard.add_button('Хочу выпить кофе', color=VkKe... | [
"yarosha_ponomar@mail.ru"
] | yarosha_ponomar@mail.ru |
1b84850c1175fdf546f45c022e88d96e61c7b279 | 647ecca1802d5802325c9025c0dce2cbcaea2a9d | /homepage/models.py | 85961a3eabd6a08180624f31e7052c07a984f411 | [] | no_license | dukelester/flight-hotel-booking | 33cc4db535da19a5f4d4e64f98cf9f4eeb23ba0b | c8835a8ed49e4f4ee48a2acd60ad9a8c2e3fe7bc | refs/heads/master | 2023-06-23T11:23:44.489440 | 2021-07-15T11:14:46 | 2021-07-15T11:14:46 | 386,043,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from cloudinary.models import CloudinaryField
from ckeditor.fields import RichTextField
from django.utils import timezone
class EmailSubscribers(models.Model):
email=models.EmailField(max_length=54)
... | [
"dukelester4@gmail.com"
] | dukelester4@gmail.com |
f17adc2a15a876ed0c7c3c479bb7aa490936b59d | 3cc112b83216e39c15fe86ec067118a730a16706 | /neural_networks/python/cifar-100.py | 0d7788e2e2528e81e1e5c4d04d4ed5647bd3eb08 | [] | no_license | pixarninja/machine_learning | 1af40c7728241505ecc0cc3840ea86dc5f8e0aea | 241a52114314dfb580870622c143bd7c3492a53d | refs/heads/master | 2020-12-02T04:11:01.959313 | 2020-01-02T18:56:11 | 2020-01-02T18:56:11 | 230,883,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | # Modeled off of "The Sequential model API" (Keras Documentation)
# Source: https://keras.io/models/sequential/
from keras.models import Sequential
from keras.layers import Dense, Conv2D, Dropout, Flatten, MaxPooling2D
import matplotlib.pyplot as plt
import tensorflow as tf
import utils as utils
# Import training and ... | [
"wesharris505@gmail.com"
] | wesharris505@gmail.com |
588ac1a11719ecbd1b0003a30f176d8313194e4d | c98f0fa3ee2ac6c062ce349f885d5111ad4a7e58 | /practice/test.py | e972eabf27c2c2e61940bb7f3832982fbcc645fd | [] | no_license | PDeck101/NJIT_REU_Eye_Blinks | c9e5fee7fd719dd2d8fbc6a3597cad6f2ba5bedc | 65abfa6b1476fa2eba8363c30c7b82515292b35d | refs/heads/master | 2022-01-17T13:28:58.874327 | 2019-06-18T22:41:33 | 2019-06-18T22:41:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | #import kivy # importing main package
#from kivy.app import App # required base class for your app.
#from kivy.uix.videoplayer import VideoPlayer
#from kivy.uix.gridlayout import GridLayout
#from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg
#import numpy as np
#import matplotlib.pyplot as... | [
"noreply@github.com"
] | PDeck101.noreply@github.com |
94edc96b3d3caf3e7a2601956b85dd4d973dd127 | acdc1c11bb2b05e5a7ea0f28a071c0799cbe408e | /atuv/urls.py | 209066227336bd293e86e624f3484edfa459b759 | [] | no_license | adrianojalves/atuv2 | a8ec068c1920ae1c4fef2cdf4fdb2445e2f6777d | bf073022f02e15b438611c74476933f7d007fb4d | refs/heads/master | 2020-11-24T02:42:05.868296 | 2019-12-13T17:39:36 | 2019-12-13T17:39:36 | 227,931,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """atuv URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"adriano@prodados.inf.br"
] | adriano@prodados.inf.br |
b9b123916eba2a46e552b8cb0e286f5b55b8e3e2 | e6f2d7e407d2b516152094d0834e78603c9eb60b | /wen_python_16/pic_1.py | 6be48cde753d4cc2948ea9632e02d8c0580a5dbd | [] | no_license | pylinx64/wen_python_16 | 5d63a44d2cbc8380e57b9f3c6887ab91578ec6cb | c9e2f9083f848d502bce2e0cf049ccba2677e981 | refs/heads/main | 2023-04-18T04:43:32.601474 | 2021-05-05T10:07:30 | 2021-05-05T10:07:30 | 336,603,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | import turtle
import time
t = turtle.Pen()
colors = ['lime', '#C35A62', '#9CC35A', '#5AC3B7', '#C35AB8']
turtle.bgcolor('black')
t.pencolor(colors[2])
t.circle(100)
t.left(320)
t.forward(200)
t.circle(100)
time.sleep(50)
| [
"noreply@github.com"
] | pylinx64.noreply@github.com |
a2c75d7e2b2e0d54e1631a4ce6785d7266097d6e | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/network/v20170901/zone.py | 11bfa1976eb4864afd69e9171e7f0790cc681bd9 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,856 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
74fd6216df35173d3380117185232b4dbee41beb | ff65468b40a4879a6bb5389bb3ec4a7d29f6b4ed | /madcore/localtemplate.py | e6b743b22a7c32b9a1a9fd10f60efa54f4af0ea4 | [
"MIT"
] | permissive | Worldie-com/cli | 178dee726ff182f7efc81afac26dabaaab3b4627 | cfa530b001014f31058d1310eab14939a3086c67 | refs/heads/master | 2023-03-25T05:29:44.280753 | 2018-08-26T17:49:08 | 2018-08-26T17:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,485 | py | """
MIT License
Copyright (c) 2016-2018 Madcore Ltd
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, merge, publi... | [
"peter@styk.tv"
] | peter@styk.tv |
a85a4f29cf11b7633524ee4c215038de0901fa93 | 5041bdc8ce649616b6dcf32aeade9ae27075ae2b | /ppapi/native_client/src/shared/ppapi_proxy/DEPS | 1b9100dcede2c314940575b5beae13e3bddb5539 | [
"BSD-3-Clause",
"LicenseRef-scancode-khronos"
] | permissive | aSeijiNagai/Readium-Chromium | a15a1ea421c797fab6e0876785f9ce4afb784e60 | 404328b0541dd3da835b288785aed080f73d85dd | refs/heads/master | 2021-01-16T22:00:32.748245 | 2012-09-24T07:57:13 | 2012-09-24T07:57:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | include_rules = [
# TODO(bradnelson): eliminate this as its actually an incorrectly rooted
# internal reference.
"+native_client/src/trusted/plugin",
"+gpu",
"+native_client/src/shared/imc",
"+native_client/src/shared/srpc",
"+native_client/src/trusted/desc",
"+native_client/src/trusted/service_runtime... | [
"kerz@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c"
] | kerz@chromium.org@4ff67af0-8c30-449e-8e8b-ad334ec8d88c | |
c6b1d2325848e61f3d8eca55c4365fd3c3ab4671 | f5ee654bdc121f435514149c71a2e16703d95883 | /image_manager/abstract_image_manager.py | a408c84c9cb890f54f6ee83241c200db4b28a5f5 | [] | no_license | Alexundar/ObjectDetector | d4211c29c0af108e112fa3f1629ff9ffa8ac4f2a | 1afb97d9effe18cfffe1af0f19b55281c3647d70 | refs/heads/master | 2022-11-21T07:41:05.693205 | 2020-06-30T14:13:51 | 2020-06-30T14:13:51 | 272,921,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import pickle
from abc import ABC, abstractmethod
class AbstractImageManager(ABC):
def __init__(self):
super().__init__()
self.colors = pickle.load(open("../pallete", "rb"))
@abstractmethod
def read_images(self, images):
pass
@abstractmethod
def draw_bounding_boxes(self, ... | [
"a.lushnevsky@yandex.by"
] | a.lushnevsky@yandex.by |
d5f2b424d4ed273d886ee3533b078836331a62e5 | 97eac4a05c77e1b6898b84c9606afa13428e45df | /Important_Functions/fib.py | 84c34f782b19848ecb61c528a94af491a974b47a | [] | no_license | ryanmcg86/Euler_Answers | 8f71b93ea15fceeeeb6b661d7401e40b760a38e6 | 28374025448b16aab9ed1dd801aafc3d602f7da8 | refs/heads/master | 2022-08-11T13:31:11.038918 | 2022-07-28T00:35:11 | 2022-07-28T00:35:11 | 190,278,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | '''This is a O(log n) implementation of a function that retreives the nth number in Fibonacci's sequence.'''
fibs = {0: 0, 1: 1}
def fib(n):
if n in fibs: return fibs[n]
if n % 2 == 0:
fibs[n] = ((2 * fib((n / 2) - 1)) + fib(n / 2)) * fib(n / 2)
else:
fibs[n] = fib((n - 1) / 2)**2 + fib((n... | [
"noreply@github.com"
] | ryanmcg86.noreply@github.com |
7635383670a6850622d4fbe7ae512186c811aa78 | b2e5313f271d6e01c41081c03d86c7e54cb81766 | /users/views.py | 00ce66cb3b93464dd9b5fcddf570a001d2765928 | [] | no_license | iambajie/movie-recommend | c39e2e83996bee3245a80b4f1c4fbc6c180e38ed | e47b124116ecaa655b74b23622c331cbc04d41b6 | refs/heads/main | 2023-01-19T03:49:40.771894 | 2020-11-26T08:45:37 | 2020-11-26T08:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,776 | py | from django.shortcuts import render, redirect
from .forms import RegisterForm
from users.models import Resulttable,Insertposter
from users.recommend.myRecommend import *
from users.evaluate import *
from users.testRS2.experiment import *
from users.testRS2.experiment2 import *
from users.testRS3.experiment3 import *
fr... | [
"1079248835@qq.com"
] | 1079248835@qq.com |
e258038aad904c2a62e39e78d3c0d2cf97592f7e | 7714d7fe86c99c059e339e895e265658fa3ce36e | /backend/home/migrations/0005_auto_20200807_0839.py | aa38d5dae63fac410eabc371a886dabc919134b3 | [] | no_license | crowdbotics-apps/mobile-7-aug-dev-8582 | f9454c8a9b3ca34e0b7dce328554658fd3fe02e9 | f569d0a9ae3effb99d6ee00127f87015296a4993 | refs/heads/master | 2023-07-11T13:56:39.164407 | 2020-08-07T09:01:31 | 2020-08-07T09:01:31 | 285,739,310 | 0 | 0 | null | 2021-08-03T20:03:29 | 2020-08-07T04:46:04 | JavaScript | UTF-8 | Python | false | false | 551 | py | # Generated by Django 2.2.15 on 2020-08-07 08:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0004_hjkhgkjhkjhkj'),
]
operations = [
migrations.RemoveField(
model_name='customtext',
name='hgfhgfhgf',
)... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
1104320467509e437b8b361c7d15ee66fe93879c | 9491ec2a6ee861b4fb68065ec14c81c10806d746 | /src/pykeen/datasets/dbpedia.py | f5633c757e0cfe55836e5113f8b1e2c5d968c15a | [
"MIT"
] | permissive | Moon-xm/pykeen | 53f9693a432ad51b525c4309a1b638aca0d05c72 | eeaf1d623aa881c0c897772372988390e1d8302d | refs/heads/master | 2023-08-09T12:28:55.943173 | 2021-03-22T21:43:27 | 2021-03-22T21:43:27 | 351,089,062 | 1 | 0 | MIT | 2021-09-17T06:20:18 | 2021-03-24T13:25:50 | null | UTF-8 | Python | false | false | 1,966 | py | # -*- coding: utf-8 -*-
"""The DBpedia datasets from [shi2017b]_.
- GitHub Repository: https://github.com/bxshi/ConMask
- Paper: https://arxiv.org/abs/1711.03438
"""
from docdata import parse_docdata
from .base import UnpackedRemoteDataset
__all__ = [
'DBpedia50',
]
BASE = 'https://raw.githubusercontent.com/Z... | [
"noreply@github.com"
] | Moon-xm.noreply@github.com |
4b2e7d44c346f2d96b0a0cf42b48cfe1bbadc0ee | 6d6f28080019e400ea0fd8c87ec2761ea79ccd1a | /users/migrations/0001_initial.py | d59fbc7bbcc741c412ebdc0edfb73b0a06b23fc4 | [] | no_license | N01329655/Python_Django_FV_NewsP_APP | ce219f89fe50079ac714960a75296c26393b5f9e | d961bf509d08a1524d1d015551dce635e72c76bb | refs/heads/master | 2023-06-10T23:30:39.174180 | 2021-07-07T22:57:17 | 2021-07-07T22:57:17 | 380,044,009 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | # Generated by Django 3.2.4 on 2021-06-05 00:23
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_m... | [
"georgenechyporenko@gmail.com"
] | georgenechyporenko@gmail.com |
c1c0b55b76c86f1b101dd1186d123430cec8cf5f | b9f8af3f56577c2e15b7c4a91901b831ec39b1d9 | /Fortisw_Class.py | 70806594d1d6b4cc0d3886fc51172fae3bbabaff | [] | no_license | haobinzheng/ixia_automation | 3d9efef9e63d4c93598eeeffd39a0822a8f9b3fb | 7a0aeebb6b89d014cd8b4406f54459d57d87a2c1 | refs/heads/master | 2023-05-25T00:44:13.054388 | 2023-05-23T20:20:07 | 2023-05-23T20:20:07 | 213,509,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59,642 | py | from __future__ import print_function, unicode_literals
from __future__ import absolute_import, division
import telnetlib
import sys
import time
import logging
import traceback
import paramiko
import time
from time import sleep
import re
import os
from datetime import datetime
import pdb
# import xlsxwriter
# from exc... | [
"mike.zheng2008@Mikes-MacBook-Pro-2.local"
] | mike.zheng2008@Mikes-MacBook-Pro-2.local |
91b70b9e7f99fd5ea8db13db13c522fb98d55d9a | ce1ccae95278fcb7ccd0a187f36074bebe1aa3c3 | /fc_community/board/models.py | a12553c9ab8a6d644f5b0a5e1b0c98b05c360098 | [] | no_license | GeonWooPaeng/Django_basic | 32369de0c4a561cf4aa2552afb1b40fa4527996d | 77708b90f5d8060bf51e344ed858b24d422f92a8 | refs/heads/master | 2022-12-23T13:30:27.769818 | 2020-09-27T07:40:31 | 2020-09-27T07:40:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from django.db import models
# Create your models here.
class Board(models.Model):
title = models.CharField(max_length=128,
verbose_name='제목')
contents = models.TextField(verbose_name='내용') #길이 제한 없다
writer = models.ForeignKey('fcuser.Fcuser', on_delete=models.CASCADE,
... | [
"gwpaeng@naver.com"
] | gwpaeng@naver.com |
6168609a1bad6daf128ab051fb5b472ecef76552 | 1c2f2db1268667c253e3d6ee013a6c5b8ace76c4 | /calculator/.~c9_invoke_PvUwro.py | 849cd6c2b20646753076ed095d690aae9f856eef | [
"MIT"
] | permissive | rosiecakes/pyp-w1-gw-extensible-calculator | 69052e164230703109cf24da5f54f09fc669e3f5 | aa103a89d38d04a069f2fa62ed3ec8fda2ab7195 | refs/heads/master | 2021-01-21T04:13:25.142484 | 2016-05-25T02:37:30 | 2016-05-25T02:37:30 | 59,613,174 | 0 | 0 | null | 2016-05-24T22:34:04 | 2016-05-24T22:34:04 | null | UTF-8 | Python | false | false | 2,817 | py | from datetime import datetime
from calculator.operations import *
from calculator.exceptions import *
def create_new_calculator(operations=None):
"""
Creates a configuration dict for a new calculator. Optionally pre loads an
initial set of operations. By default a calculator with no operations
is cr... | [
"naha.hana@gmail.com"
] | naha.hana@gmail.com |
1677423680a3a2b5ea98689051194bfd8bc53b7b | eed071aa6ff3387cb2eafe94e3f90fe2a2c992d5 | /Task4.py | cdd3581aabd7d0e22cd52e782af594b235c0701a | [] | no_license | sanxiux/Task | 0a73429d75b6b038a6830311a2797618a4af4e33 | d9d6f92e1a81d358c7f61e4c86e6d15eae490cfc | refs/heads/master | 2020-03-07T08:50:45.572504 | 2018-04-02T02:18:52 | 2018-04-02T02:18:52 | 127,390,397 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | """
下面的文件将会从csv文件中读取读取短信与电话记录,
你将在以后的课程中了解更多有关读取文件的知识。
"""
import csv
#这是所有的播出电话号码
zidian_first =[]
#这是接听电话的
zidian_second = []
#这个是发短信的
zidian_third = []
#这个是接收短信的
zidian_forth = []
filename2 = 'calls.csv'
with open(filename2, 'r') as f:
reader = csv.reader(f)
calls = list(reader)
for i in range(len(cal... | [
"91934382@qq.com"
] | 91934382@qq.com |
af441a31b3a3854e5673bc4608ee3552b6733d79 | 5f78a8878db55b3ab4db48c4629bf72f06f7a4de | /mainapp/forms.py | 1ed5707ee3e32912a24d6e25e596547f586c8ced | [] | no_license | pehks1980/test2 | cc8cbf8813aabd1e1001177bad7404d005329c5f | 1031cbdae895af7f164800a3a2a4a42b35c65a68 | refs/heads/main | 2023-01-21T09:55:05.042693 | 2020-11-29T23:15:06 | 2020-11-29T23:15:06 | 312,154,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from django.contrib.auth.forms import AuthenticationForm
from .models import ShopUser
class ShopUserLoginForm(AuthenticationForm):
"""
Форма захода пользователя
"""
class Meta:
model = ShopUser
fields = ('email', 'password')
def __init__(self, *args, **kwargs):
super(Shop... | [
"pehks1980@gmail.com"
] | pehks1980@gmail.com |
4a7f5f2357fa7d77b29d6bf6ba5e13354365e83f | db9d8309266fd230b58b255201efa9e85f6a1909 | /Lesson9/list_proba.py | 9a9d791e54b3427358aaf4c5339a72c777a1ca73 | [] | no_license | vskolan/smartninja | 3470d80ac7aca41759d4bb9a36f16fd4b4027b9d | c8119be7ad0b4d2514cc7483cf834b1b37d62cf6 | refs/heads/master | 2020-12-30T13:20:52.835687 | 2017-11-15T21:25:19 | 2017-11-15T21:25:19 | 91,204,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | prazna_lista = []
print prazna_lista
lista_s_podacima = [1, 3, 3.4, "Text", True ]
print lista_s_podacima
var1 = "neki tekst"
var2 = 3.4
neka_lista=[var1,var2]
print neka_lista | [
"skolan.viktor@gmail.com"
] | skolan.viktor@gmail.com |
7d515ced4047eea5e9670410e3ea380ecc89b463 | 0f5a1b4c8abeab2c745c74f5a25e41a76b7502b0 | /playerset3.py | 13af6550fa71e6e8c91da1b447ea8c202c847309 | [] | no_license | sujatha-2/test | d0c7af8a11061ce45acd19e86c3e7cfc50f43179 | 9a6338fabd4168ae327cdc61e790dddfda8bba9d | refs/heads/master | 2021-07-19T13:28:46.356761 | 2019-01-09T09:19:10 | 2019-01-09T09:19:10 | 148,427,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | def extractMaximum(ss):
num, res = 0, 0
for i in range(len(ss)):
if ss[i] >= "0" and ss[i] <= "9":
num = num * 10 + int(int(ss[i]) - 0)
else:
res = max(res, num)
num = 0
return max(res, num)
ss = "100klh564abc365bg"
print(ex... | [
"noreply@github.com"
] | sujatha-2.noreply@github.com |
5cb4b3265a4257fb238248d7885ca2ac89655b57 | a479a5773fd5607f96c3b84fed57733fe39c3dbb | /napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/extended_ipv4_reachability/prefixes/prefix/undefined_subtlvs/undefined_subtlv/__init__.py | a8bd8939dcba1b7eac4ab69d320c8aff3409529a | [
"Apache-2.0"
] | permissive | napalm-automation/napalm-yang | 839c711e9294745534f5fbbe115e0100b645dbca | 9148e015b086ebe311c07deb92e168ea36fd7771 | refs/heads/develop | 2021-01-11T07:17:20.226734 | 2019-05-15T08:43:03 | 2019-05-15T08:43:03 | 69,226,025 | 65 | 64 | Apache-2.0 | 2019-05-15T08:43:24 | 2016-09-26T07:48:42 | Python | UTF-8 | Python | false | false | 19,744 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
1f6cdf7fa7dc542487efb3af6de7c40aed5fc954 | 9b944c37d52912f1fc24c7209f1688b6382c6f83 | /RapMatcher.py | a292c89afc826e3deba0485bc8214781ad7110c0 | [
"Apache-2.0"
] | permissive | Rapleaf/RapMatcher | 328ddbf239ac83072414edb993a4321806768e09 | 3ec99f664cc8cd2656a2f681389fbd0244fd39f4 | refs/heads/master | 2021-01-01T06:50:28.111048 | 2011-01-06T20:16:56 | 2011-01-06T20:16:56 | 1,207,880 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,908 | py | import Levenshtein
from nltk.corpus import wordnet
import RapleafInterest
import string
class RapMatcher:
"""
This class' constructor takes a list of interests and is called via
the match function. The match function is passed a tag and returns a dictionary
which maps a subset of the interests onto scores which in... | [
"gareth.aye@gmail.com"
] | gareth.aye@gmail.com |
6a87a8e5d278ede9d444df333d662804bf68b370 | fbd347498b4ec04440dd91da0f62d3bc8aa85bff | /ex.031.precoPassagemOnibus.py | a323c227e902c1c41edaa64acec1370c78d468cd | [
"MIT"
] | permissive | romulorm/cev-python | 254ae208b468aa4e23bf59838de389d045f7d8ef | b5c6844956c131a9e4e02355459c218739ebf8c5 | refs/heads/master | 2021-05-18T22:27:31.179430 | 2020-04-17T01:39:04 | 2020-04-17T01:39:04 | 251,455,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # Exercício Python 031: Desenvolva um programa que pergunte a distância de uma viagem em Km. Calcule o preço da passagem,
# cobrando R$0,50 por Km para viagens de até 200Km e R$0,45 parta viagens mais longas.
distancia = float(input("Qual a distância da viagem, em quilômetros? "))
preco = distancia * 0.45 if distancia... | [
"62728349+romulorm@users.noreply.github.com"
] | 62728349+romulorm@users.noreply.github.com |
c2a46f1f6041e0e81f8ca3ee069efd797ef9e04c | 9301b535ce8856ec4fee3ed62169f6eae0a347a1 | /nlp_module/utils.py | 1cf3f9d13d5427ac9cca46688d182eedcf2261e6 | [
"MIT"
] | permissive | L-M-Sherlock/HITszQAbot | d7c130e1f0dd56ebb2d7f003372022f5038d86fa | 556779a1957e4d21214a3afe2c959b04d96db855 | refs/heads/master | 2023-08-07T22:57:51.382665 | 2023-07-26T01:35:18 | 2023-07-26T01:35:18 | 232,526,186 | 10 | 5 | null | 2023-07-26T01:35:19 | 2020-01-08T09:24:21 | Python | UTF-8 | Python | false | false | 3,311 | py | # coding: UTF-8
import time
from datetime import timedelta
import torch
from tqdm import tqdm
PAD, CLS = '[PAD]', '[CLS]' # padding符号, bert中综合信息符号
def build_dataset(config):
def load_dataset(path, pad_size=32):
contents = []
with open(path, 'r', encoding='UTF-8') as f:
for line in ... | [
"jarrett.ye@outlook.com"
] | jarrett.ye@outlook.com |
04da6b3662e7776928386b7dc8e0924cec0cc143 | 5b2f3fc7461aae47192c2e7554c68dbe2e0f7142 | /apps/pet_app/urls.py | 7a2f70899e64658ccba7590ec2e5985cb6be7dd7 | [] | no_license | Chareesa/pet_project | 878b3efba26d3f785820fee036e758e894bd8ea1 | f5b062ab0c9fa23bdacfb1cc62d75507661f4493 | refs/heads/master | 2021-07-17T20:18:21.930155 | 2017-10-25T04:28:34 | 2017-10-25T04:28:34 | 108,219,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py |
from django.conf.urls import url
from django.contrib import admin
from . import views
urlpatterns = [
url(r'^dashboard$', views.dashboard),
#routes to user dashboard after logging in
url(r'^add$', views.add),
#routes to add function in pet_app views
url(r'^show/(?P<id>\d+)$', views.show),
#rou... | [
"chareesagraham@gmail.com"
] | chareesagraham@gmail.com |
e1dcaaad2a4fe69510a3a88e69f5edbf668180d9 | 9e5f891b51f3b5f0c78b0fbf97316df21ba929bb | /ArrayPartition1.py | d0ced6134c427b587150b5ddb48aa17e4a95a74a | [] | no_license | TanvirKaur17/Array-4 | cd80253b3c3970c7369b036417d9ca143e7ecbbc | f81d1520bd407c424e4234ac92f50ddd3c915df8 | refs/heads/master | 2020-08-04T13:31:04.851773 | 2019-10-01T17:04:33 | 2019-10-01T17:04:33 | 212,152,462 | 0 | 0 | null | 2019-10-01T17:03:45 | 2019-10-01T17:03:45 | null | UTF-8 | Python | false | false | 422 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 1 10:01:57 2019
@author: tanvirkaur
"""
class Solution(object):
def arrayPairSum(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums = sorted(nums)
summ =0
if not nums:
... | [
"noreply@github.com"
] | TanvirKaur17.noreply@github.com |
69cc4c7ebca922ff9a78d85842f463ce7049491b | bb1c17cdcbe941bb1d48da26e096f942b7b91d35 | /baselines/common/transformer.py | 0cb8a66b9bbe5c00d987a7dce422fcb7a5f5315f | [] | no_license | mauxam/kaithy | 3adb62824d3264327318339494197aa5bf5580ef | fbbfb76e670bdc46dd877593401e3a21ea46f488 | refs/heads/master | 2021-09-08T15:18:10.265014 | 2017-12-03T10:31:27 | 2017-12-03T10:31:27 | 124,669,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,987 | py | import tensorflow as tf
from . import position as pos
from . import image
def transform_actions(actions, board_size):
batch_size = tf.shape(actions)[0]
return tf.concat((
actions[0: batch_size // 8],
pos.rot90(
board_size, actions[batch_size // 8: batch_size // 4], 1),
po... | [
"buidoigiauco@gmail.com"
] | buidoigiauco@gmail.com |
df4962c536735e4684bc988e1e756f437ffe86f5 | 0aa870d4a1605dbdd3bcd1d9c0470634dba6c16b | /DD2419-PRAS/localization/scripts/scrap3.py | 029491bed25e7ab46fe3e8f0f4ab9d16d5be5531 | [] | no_license | sumodnandanwar/Crazyflie-project | ace2c6e0ff244be1933036eb23babd84f1553024 | d87e338fa4ae97fe3e97d6bcd9a6100f9c816070 | refs/heads/master | 2022-11-15T13:45:06.168175 | 2020-07-15T15:14:33 | 2020-07-15T15:14:33 | 276,144,552 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | #!/usr/bin/env python
from os.path import expanduser
import csv
def Dict_goal():
global dictgoal
dictgoal = []
pathcsv = expanduser('~')
pathcsv += '/dd2419_ws/src/DD2419-PRAS/localization/scripts/Pathcsv'
with open(pathcsv, 'rb') as csv_file:
csv_reader = csv.reader(csv_file)
next(... | [
"sumodnandanwar@gmail.com"
] | sumodnandanwar@gmail.com |
cc3d5864edd06fb58730325f6c22ab03bf004256 | 6f30b6fb0d096e7190904715c68ef3cfec5b721e | /example_python/6-the_wisdom_class/test_erase_exported.py | 9233a843e93109163a6841de4b95098374f27a63 | [
"BSD-3-Clause"
] | permissive | jbone/examples | bf4b8bbb4efd1a9c07196701a740fb58e8f36b50 | cdd34819770fbe04f6623006147a1e9d1f52b379 | refs/heads/master | 2021-01-15T10:53:38.253162 | 2014-11-25T12:47:23 | 2014-11-25T12:47:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!/usr/bin/env python
"""
NLUlite is a high-level Natural Language Understanding
framework.
This file is an example of the framework. This file is released with
BSD license.
"""
__author__ = 'NLUlite'
__version__ = '0.1.4'
__license__ = 'BSD'
from NLUlite import ServerProxy, Wisdom
server = ServerProxy('loca... | [
"contact@nlulite.com"
] | contact@nlulite.com |
0d0379c91606561fd1684c3b56b5a59c7ac79ac6 | 2147b03faa984c3f82b452bfa2e44738762c0620 | /users/models.py | 0e5dba17c8ef60df08f56723c7b7cee4655f5822 | [] | no_license | crowdbotics-apps/pawn-shop-30678 | 44d485d1e4bf5540320518921750293c8649ea53 | 844572b9e385948fdfbe1c3113481bf0961e810e | refs/heads/master | 2023-07-30T16:02:19.844017 | 2021-09-19T11:07:57 | 2021-09-19T11:07:57 | 408,103,844 | 2 | 0 | null | 2021-10-06T00:15:01 | 2021-09-19T11:05:16 | Python | UTF-8 | Python | false | false | 890 | py | from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.db import models
from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
class User(AbstractUser):
# WARNING!
"""
Some officially supported features of Crowdbotics Dashboard dep... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c7235d22a3086e2c781cd82e0f5e3d942d6c6445 | b2ffd58cb7af71b5909b516e0a4677d097db94d5 | /project01/record.py | bca9587895ff03cab4fee225492c038f3959fefe | [] | no_license | VietAnhLe2399/SpeechProcessing | 547641118eeaa4098e4822f07ce513d7a6987323 | b2be9eaf71482cd6e9dbda14c8a82699bf2db4d5 | refs/heads/master | 2022-12-25T21:05:40.590139 | 2020-10-05T09:42:46 | 2020-10-05T09:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | import re
import numpy as np
import sounddevice as sd
import soundfile as sf
import time
import queue
import os, shutil
from underthesea import sent_tokenize
q = queue.Queue()
category = ['thoi_su', 'goc_nhin', 'the_gioi', 'kinh_doanh', 'giai_tri', 'the_thao', 'phap_luat', 'giao_duc', 'suc_khoe', 'doi_song',
... | [
"vietanhle2399@gmail.com"
] | vietanhle2399@gmail.com |
371c65ef7e4cb56d160d1f0b7acfc34e96f128e2 | 549b7ecf880757483f6789e0532a65d497569626 | /exno66pro.py | e0ee4b9238972f049d3fe124f64ecc2fff863568 | [] | no_license | rahul120799/rahul | c093114c3598bab1421f161e7205da977b80039d | 5385bafca898822d25ff1aa3844a96e5b6a9a2cf | refs/heads/master | 2020-04-15T12:55:27.885699 | 2019-09-14T14:19:04 | 2019-09-14T14:19:04 | 164,692,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | o, a, f, k = map(int, input().split())
count = 0
a2 = a-f
if (a2 >= 0):
di = (o-f)*2
for i in range (k):
if (i == k-1):
di =di/ 2
if (a2 < di):
a2 = a
count += 1
a2 = a2 - di
if (a2 < 0):
count = -1
break
di = 2... | [
"noreply@github.com"
] | rahul120799.noreply@github.com |
a1067b028137e10af4a91f55ec8afdd3016ea6ce | f3c6b2f8e8612f1df71b87a7602245e9b94aa5f1 | /echelon/schema2asp.py | 2377ab74fb0641b606897691aee1282ab684e797 | [
"MIT"
] | permissive | Tubbz-alt/echelon-vis | a9a8911e5a45a938a3426831f536a5b06494b213 | 21be9ba13e622369abcdd9d7abd7c165937bff69 | refs/heads/master | 2022-11-25T01:06:11.009627 | 2020-03-29T10:46:02 | 2020-03-29T10:46:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | #!/usr/bin/env python3
# Todo: consider using model transformation language (e.g. JSON equivalent of XSLT) to
# covert schema to ASP.
import json
import sys
def getClassNameIts(ctx, prop):
return "{}".format(prop)
def getClassNameObj(ctx, prop):
return "{}".format(prop)
def deref(schema, jsonobj):
if "$... | [
"a.simmons@deakin.edu.au"
] | a.simmons@deakin.edu.au |
b1d6ae4dd46b033c203319c87878910bf65f15ff | c892379a87343ee326c9fd29ba573dcb6d3ef863 | /quizsite/wsgi.py | 073ec64d4925c451e2259220bfc9af4783d1459b | [] | no_license | Raffan11/quizproject | 20f853cd43f3fa764c1328e95a252013d04ca20a | 3e8e8dfc7a760869f0591b2404f13198d3242997 | refs/heads/master | 2021-05-05T13:34:23.787107 | 2017-09-29T13:31:28 | 2017-09-29T13:31:28 | 104,997,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | """
WSGI config for quizsite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/
"""
# import os
# from django.core.wsgi import get_wsgi_application
# os.environ.setdefault("DJANG... | [
"32261499+Raffan11@users.noreply.github.com"
] | 32261499+Raffan11@users.noreply.github.com |
9327c7c353f57edc531a78952f182e4b45b0c405 | a46e3ab5260c819e2b1a20343205b248a76314f3 | /pycharm_dict_str_split_unexpected.py | 9c4c8332fb5b3185d40c302f5e19bc170359ecf9 | [] | no_license | albertz/playground | 97ea882eb077e341c69f9e593918d38f89f8bc64 | f30c6330d855056f1756eeb558aa51fe72040c4e | refs/heads/master | 2023-08-16T16:33:01.780047 | 2023-07-31T11:46:58 | 2023-07-31T11:46:58 | 3,687,829 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 139 | py |
"""
https://youtrack.jetbrains.com/issue/PY-43916
"""
s = "a=b,c=d"
opts = dict([opt.split("=", 1) for opt in s.split(",")])
print(opts)
| [
"albzey@gmail.com"
] | albzey@gmail.com |
883d700804d9b19145bc3f36b3590a29fd7206bc | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptdiagp/rsfcoddiag.py | e9fdbd6d639608f643b2b2e047fbb1d9ba7e0857 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 8,484 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
22a8a08b7f13534d6a4c9439ebb9324d7efb9f49 | 46ad34abc8681ee69bb35dc75e5aa6c9b48e79f6 | /script/post_example.py | b1956c61ed6204bf3922912785593e9b90eb53d4 | [] | no_license | dingdan539/work_script | 23275a2b92238c9c736c6a4460f20aac6ecc1753 | 2e5833aa2f31b74b07b78f06ced5db687303b5b3 | refs/heads/master | 2021-01-25T11:27:50.809653 | 2017-06-17T04:16:50 | 2017-06-17T04:16:50 | 93,924,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import urllib
import urllib2
def getresponse(post_parm):
test_data_urlencode = urllib.urlencode(post_param)
requrl="http://oms.yihaodian.com.cn/api/notification/event/"
req = urllib2.Request(url=requrl,data=test_data_urlencode,headers={"Authorization": "Basic ZXZlbnRfcG9zdDpkaW5nZ28="})
return... | [
"dingdan@dingdande-MBP.lan"
] | dingdan@dingdande-MBP.lan |
74dfd93a93cab894593cc99b17f0005ace2dc769 | 3e71f4d64b63e74a61447994a68f497f66c5e905 | /nnutil/model/adversarial_transformer.py | b216c878941bcd5cfa1c15722b704591dca182ec | [
"BSD-3-Clause"
] | permissive | aroig/nnutil | 40a648ec56214dbad8610ec8d9c1bdc642f136e9 | 88df41ee89f592a28c1661ee8837dd8e8ca42cf3 | refs/heads/master | 2020-03-25T18:58:01.708160 | 2019-06-18T22:00:54 | 2019-06-18T22:00:54 | 144,058,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,274 | py | import os
import numpy as np
import tensorflow as tf
import nnutil as nn
from .base_model import BaseModel
class AdversarialTransformer(BaseModel):
def __init__(self, name, shape):
super(AdversarialTransformer, self).__init__(name)
self._shape = shape
self._transformer = None
s... | [
"abdo.roig@gmail.com"
] | abdo.roig@gmail.com |
5eb1a5ea9b7f705bd38dba510644b752d8cf4162 | a035633afbc4fa12faf5a83270be6640b61ecc4e | /328. 奇偶链表.py | 1fadc4bf4a4333eb00031ee16ea18ac32c9853df | [] | no_license | opwtryl/leetcode | cf6208628a643cb79666f0868d2de17b8110b770 | b28f6998d4153921c30e8c66c70a77681e67fe15 | refs/heads/master | 2020-04-01T03:56:06.938178 | 2018-11-13T02:06:16 | 2018-11-13T02:06:16 | 152,842,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | '''
给定一个单链表,把所有的奇数节点和偶数节点分别排在一起。请注意,这里的奇数节点和偶数节点指的是节点编号的奇偶性,而不是节点的值的奇偶性。
请尝试使用原地算法完成。你的算法的空间复杂度应为 O(1),时间复杂度应为 O(nodes),nodes 为节点总数。
示例 1:
输入: 1->2->3->4->5->NULL
输出: 1->3->5->2->4->NULL
示例 2:
输入: 2->1->3->5->6->4->7->NULL
输出: 2->3->6->7->1->5->4->NULL
说明:
应当保持奇数节点和偶数节点的相对顺序。
链表的第一个节点视为奇数节点,第二个节点视为偶数节点,以此类推。
'''
... | [
"noreply@github.com"
] | opwtryl.noreply@github.com |
75c1ffff51472f9e8835840089ae9d5bf686ca71 | 7a2b129b1ba60efa5a525c1e5e499dca69283ee9 | /Selenium/cppic.py | 0e43b850330c9c488318b0ad04c7781658f87d3d | [] | no_license | shyfeel/myTestCode | 364bc8ff19d9e588892090c165399f726fda2987 | a5a833eeafd72f228840cc8c2596f4613df0bd61 | refs/heads/master | 2021-01-25T07:28:57.140923 | 2018-07-31T03:05:49 | 2018-07-31T03:05:49 | 39,937,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | import cv2
import numpy as np
img = cv2.imread("./cat.jpg")
emptyImage = np.zeros(img.shape, np.uint8)
emptyImage2 = img.copy()
emptyImage3=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
#emptyImage3[...]=0
cv2.imshow("EmptyImage", emptyImage)
cv2.imshow("Image", img)
cv2.imshow("EmptyImage2", empty... | [
"shyfeel@qq.com"
] | shyfeel@qq.com |
9a945c38b5ac272314f3cc18b8d69a3004068b3d | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/trendmicro_visionone/icon_trendmicro_visionone/actions/submit_file_to_sandbox/__init__.py | aff6b3ae31a70139a54adafc52b8b179ae63bb49 | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 80 | py | # GENERATED BY KOMAND SDK - DO NOT EDIT
from .action import SubmitFileToSandbox
| [
"noreply@github.com"
] | rapid7.noreply@github.com |
1ffc53b3185a5ea505a06024cb8e86d6300109ef | 7e80274e4940123c11dee20b94d5142725ab6150 | /Minesweeper_Python/src/draft_MyAI.py | e5aea03a7f9480affc79ae907e74d74c9ddf7ab8 | [] | no_license | codewitty/GaiaAI | 18fc4eb2baa143ceb8c4702e905d49a214f961c6 | 0dd365b0f1ab1567e840c71d48befcdf28191519 | refs/heads/main | 2023-05-06T19:09:51.924170 | 2021-06-06T07:59:43 | 2021-06-06T07:59:43 | 368,739,527 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,604 | py | # ==============================CS-199==================================
# FILE: MyAI.py
#
# AUTHOR: Justin Chung
#
# DESCRIPTION: This file contains the MyAI class. You will implement your
# agent in this file. You will write the 'getAction' function,
# the constructor, and any additional helper functions.
#... | [
"gomesjoshua@gmail.com"
] | gomesjoshua@gmail.com |
dd05162bb6283bcd9dadd28dd5050c53e8467b4f | d8a39f2a8bcc41cb81dcda292ba81f65502417f2 | /deep_net/image_quality_tagging/utils.py | 75833d6ad0613bad76bef39d0c77d23453bba373 | [] | no_license | santoshgsk/DeepNet | 95d92ca9ea6db1dc13dde50b70b9657573015f3b | 00d5386b61aa105c11105db962876c5e5827412b | refs/heads/master | 2021-01-10T04:00:57.804955 | 2018-06-04T10:54:27 | 2018-06-04T10:54:27 | 44,368,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | from models import *
from random import randint
import time
import numpy as np
import keras
import os
from keras.models import model_from_json
from Crypto.Hash import MD5
from django.db.models import Min
from onetimeload import model
def encrypt(data):
data = data + str(time.time())
return MD5.new(data).hexdi... | [
"gsk.krishna@gmail.com"
] | gsk.krishna@gmail.com |
0265b67928a755c785a7fe897af01a048622a747 | 5e120b28006e054f0c524c8155598d73fd2d4281 | /base/catalog/exportViews.py | ce4969850529417ae6b999ba7a18a5fa28a542a0 | [
"MIT"
] | permissive | daavelino/vulnerability-catalog | 92bf12df36be9ab8937f6010d13b5a2eb02c819c | 61e0db9cc4656a16847ec635a4cac3e9a6c67dd4 | refs/heads/master | 2023-01-06T14:54:41.802416 | 2021-12-21T12:45:25 | 2021-12-21T12:45:25 | 80,522,058 | 12 | 7 | MIT | 2022-12-24T08:22:10 | 2017-01-31T13:19:07 | JavaScript | UTF-8 | Python | false | false | 1,525 | py | from datetime import datetime
from django.contrib.auth.decorators import login_required, permission_required
from django.core import serializers
from django.http import HttpRequest, HttpResponse, HttpResponseForbidden
from django.utils.decorators import method_decorator
from django.views.generic import ListView
from ... | [
"daavelino@gmail.com"
] | daavelino@gmail.com |
50561e28bfc2a862656bf2ed45c24ed34ac0cd05 | 3e659c92b20f8e08c0b60212351d74fce24d8974 | /migrations/0001_initial.py | 8c81f4886964505f16b79e4fb4ef317fd53620a5 | [] | no_license | Arpan612/Blogging-app-updated | e6d12c3fd9a690035a4f0c25ccb86a17f43b55da | 0068a53a978ff33bd5a603bc1ebe9db57f4bb3b5 | refs/heads/master | 2021-07-06T21:22:34.761440 | 2020-08-27T12:20:35 | 2020-08-27T12:20:35 | 169,705,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | # Generated by Django 2.0.9 on 2019-01-02 06:41
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
dependencies = [
migrations.swappable_dependency... | [
"noreply@github.com"
] | Arpan612.noreply@github.com |
d841badd34ccdcfe5480954322d0517052ffb407 | 23471682c3664940ed3af33908087c700b0e2da2 | /ControlVentas/src/accounts/views.py | 41a8c771d85344d71d6f7ca75e2b257bf199f4c3 | [] | no_license | MarianaYucra/ProyectoFinal | 0fa7a2992208573bb13521d4846d99a738b9494e | 30b1345d1a4aa37ad106532c6d55c2e733d85ff1 | refs/heads/master | 2022-11-30T13:21:27.325188 | 2020-08-13T14:35:21 | 2020-08-13T14:35:21 | 278,252,876 | 0 | 1 | null | 2020-07-12T00:27:58 | 2020-07-09T03:25:57 | Python | UTF-8 | Python | false | false | 1,956 | py | from django.shortcuts import render,redirect
from django.contrib import messages
from django.contrib.auth.models import User,auth
# Create your views here.
def login(request):
if request.method == 'POST':
username = request.POST['username']
password = request.POST['password']
user = auth.... | [
"whuaracha@unsa.edu.pe"
] | whuaracha@unsa.edu.pe |
f55c8a4be2c1181299895c4fe33e44f6c2de40c5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /ia95ckhN5ztgfJHe4_7.py | 3ba1f214826ddee32eec6ed44940399db61237ca | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | """
In JavaScript, there are two types of comments:
1. Single-line comments start with `//`
2. Multi-line or inline comments start with `/*` and end with `*/`
The input will be a sequence of `//`, `/*` and `*/`. **Every`/*` must have a
`*/` that immediately follows it**. To add, there can be **no single-line
c... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6f0da9774e428291d826ce32f0b2b035b3d95848 | adb6fe118613d60af9abfa73055599d205cf2108 | /视觉/XLwork/XL4/XL4_2.py | 5566d364d670d79d8f81b8ab2cda2c8a9d120eab | [] | no_license | lijianmin01/Third_college_grade | 18845f666a7fc1ece24d2ee45ee287e1efc0ca11 | 5e5b1f64375506de79ed94c8b2fc266fe1af4d6a | refs/heads/master | 2022-12-31T15:26:05.521297 | 2020-10-17T01:34:32 | 2020-10-17T01:34:32 | 295,317,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,738 | py | import cv2
import numpy as np
# 全局变量
# 第几张图片 0 第一张 1 第二张
img_flag = 0
# 第一张图片
def on_EVENT_LBUTTONDOWN1(event, x, y,flags, param):
# 点击三次,获得三个位置的坐标,销毁窗口
if event == cv2.EVENT_LBUTTONDOWN:
xy = "%d,%d" % (x, y)
a.append(x)
b.append(y)
cv2.circle(img1, (x, y), 1, ( 0, 0,255)... | [
"lijianmin01@126.com"
] | lijianmin01@126.com |
b7a60a72aec305247050106d7a6c5b6847ad98b0 | f2a70409df3d3ea1cc74a650038ffe2c8d648497 | /settings/__init__.py | 689240e02006106488d3a37b1c0c0ea91e096d06 | [] | no_license | abhi420bhardwaj/Django-Socialize | 120ca34c68d42b9fc2a73bd4b11eb1d32154d9b4 | b3fddab4150abb2f8721a07637c3c49d647d43b0 | refs/heads/master | 2021-03-03T01:49:31.007578 | 2020-03-09T02:21:43 | 2020-03-09T02:21:43 | 245,923,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | from .base import *
try:
from .local import *
except:
pass | [
"abhi420bhardwaj@gmail.com"
] | abhi420bhardwaj@gmail.com |
0b7abfd2850c397d76469bbbb02b3dd8687bcfde | cfc1be3ae11cfee97aac0cfc56672026f1a7c853 | /ping.py | 6f92fce1eecd55e7e8dfa301d2a64795d1f70761 | [] | no_license | AlfonsoOvalle/puertos_abiertos | 162301f57a76f0a1c2468aaa99db3b9181391fd7 | dd559475202e7dcb899112d6a677b5a0c6f152a4 | refs/heads/master | 2023-01-20T19:18:49.966281 | 2020-11-28T01:25:09 | 2020-11-28T01:25:09 | 316,634,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import socket;
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# host = '40.76.231.100'
print("Ingrese la Ip o nombre del host:")
Host = input()
print(f"Buscando puertos abiertos en el host:, {Host}")
for puerto in range(0, 65536):
result = sock.connect_ex((Host,puerto))
if result == 0:
print (... | [
"alfonso200925014@gmail.com"
] | alfonso200925014@gmail.com |
b7aca8b75628ed479dd4d1e1a071dc321a3000c5 | 45a2cce962a0fa3231fb206e3f2121e675ad6fcd | /get_commit.py | 5aabdd5f2a164375409b033d2ac2f9ba735457b1 | [] | no_license | relentless-coder/github_to_s3 | 9d461a1ecb2c3ab92eafff552ffe19eb2a97f4e3 | 25dc8b18703ad43a1124ba522d79b930d2644b57 | refs/heads/master | 2022-12-11T08:34:34.514646 | 2021-01-20T10:43:33 | 2021-01-20T10:43:33 | 126,624,681 | 2 | 0 | null | 2022-12-08T02:04:17 | 2018-03-24T17:44:01 | Python | UTF-8 | Python | false | false | 882 | py | """Fetches the commit for a commit_id"""
import os
from request_handler import request_handler
from error import ResponseError
def get_commit(commit_id):
"""Returns JSON with commit data
Arguments:
commit_id - a valid id of the commit
"""
url = 'https://api.github.com/repos/{:1}/{:2}/commits/{... | [
"contact@ayushbahuguna.com"
] | contact@ayushbahuguna.com |
1972d15adead71f72550f9c4ff7bfc3a1ad6a084 | 62c6884e9597d96a25d274515d6124c46daffec8 | /zvt/stats/stats.py | 7128f18fc673ad777d15adc0d5b1552ed4641b1b | [
"MIT"
] | permissive | doncat99/zvt | 0f9305442af287e63f15de11cb2e2f6b5f9b3d05 | 831183bdf7a6d0fc3acd3ea51984df590078eec6 | refs/heads/master | 2023-03-22T13:35:17.277276 | 2021-03-10T14:02:08 | 2021-03-10T14:02:08 | 284,984,720 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 22,003 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# QuantStats: Portfolio analytics for quants
# https://github.com/ranaroussi/quantstats
#
# Copyright 2019 Ran Aroussi
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a... | [
"doncat99@gmail.com"
] | doncat99@gmail.com |
39cd88f0f87221d1954869382294290420c184ff | f8f88c947975c569025f7c7ffd35014ecfc7f639 | /pyThosT/__init__.py | edd16243957c8e5f520fe363c9bdea579a00af5b | [] | no_license | afalaize/exchange | 16dbafbf2bff63c57112474184de4984a7eb7927 | 135f8ccf97ff88f1fe7c7c38fe0ce499d5ed9186 | refs/heads/master | 2020-07-05T05:04:55.806692 | 2017-03-14T09:41:27 | 2017-03-14T09:41:28 | 74,126,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 18 16:00:46 2017
@author: afalaize
"""
# | [
"noreply@github.com"
] | afalaize.noreply@github.com |
b3dc5ea3d89b1e07a55ce83f932073cd9b52c537 | b6df7cda5c23cda304fcc0af1450ac3c27a224c1 | /data/codes/ericmartel_Perforce.py | f0b775db30e972ffd0563d511eca16f05a452ea5 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | vieira-rafael/py-search | 88ee167fa1949414cc4f3c98d33f8ecec1ce756d | b8c6dccc58d72af35e4d4631f21178296f610b8a | refs/heads/master | 2021-01-21T04:59:36.220510 | 2016-06-20T01:45:34 | 2016-06-20T01:45:34 | 54,433,313 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 35,544 | py | # Written by Eric Martel (emartel@gmail.com / www.ericmartel.com)
# Direct port of the Sublime Text 2 version also available on my github, see README.md for more info.
import sublimeimport sublime_plugin
import osimport statimport subprocessimport tempfileimport threadingimport jsonimport systry: from Queue import Queu... | [
"thaisnviana@gmail.com"
] | thaisnviana@gmail.com |
115080ce1f0bce0813ec4a0f2dfe786aea708513 | ae181d786a3a7f010d18a7680dc9704273d31a47 | /useful/hamming_distance.py | ca23f0fb8f55abc38d23de60eb912621df337cf6 | [
"MIT",
"Unlicense"
] | permissive | zelr0x/solutions | f1a3a1deec6be5280193ec07da7e5ec4e6402fca | e073c64e866fd9b25d9bb9ae80f92fd3bc5c604d | refs/heads/master | 2023-08-31T21:41:04.250456 | 2023-08-03T18:32:44 | 2023-08-03T18:32:44 | 175,304,414 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | from typing import Iterable, TypeVar
from itertools import chain
def s_hamming_dist_bit(a: str, b: str, encoding='utf-8') -> int:
return hamming_dist_bit(a.encode(encoding), b.encode(encoding))
def hamming_dist_bit(a: Iterable[int], b: Iterable[int]) -> int:
a_bits = to_bits(a)
b_bits = to_bits(b)
r... | [
"noreply@github.com"
] | zelr0x.noreply@github.com |
4073df6d3ccfdb1360789995dbae5c54b8f6be5a | 778ddc9e596f368bc5fbf4ea78bd7044b94cd99e | /textutils/views.py | 9ba9ea7818e08bca4c93b9fb3cf59fb294984f86 | [] | no_license | sskanishk/django-textutil | e777202a8dac5312db1575ac19cc62c3349861a0 | f3c29de3c4a69af491dacb7bf1f71779bad3651a | refs/heads/master | 2020-12-02T20:38:06.619019 | 2019-12-31T16:06:09 | 2019-12-31T16:06:09 | 231,114,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,484 | py | # star
# views it is a python program
# views return HttpResponse
from django.shortcuts import render
from django.http import HttpResponse
def index(request):
return render(request, 'index.html')
# return HttpResponse("hello wotld")
# orignial
def analyse(request):
#Get the text
djtext = request.POST... | [
"kanishkmalviya78@gmail.com"
] | kanishkmalviya78@gmail.com |
f03e64fbebef264b8c776239227111949d6b19ed | 934d1653e6c48fdd32b82edd0167767ea8e38c32 | /code/resources/store.py | 3d9d82bfa5b34ff8dabbe912e31643c881381eeb | [] | no_license | Nishantk1906/flask-tut-api | 40f2e7df98aaa22d14f4a1edf96558d51f7ff92c | ef6d79bb12a9b32e29fb8f7c0160978eae9b4a45 | refs/heads/main | 2023-08-25T16:23:06.585136 | 2021-10-23T06:07:11 | 2021-10-23T06:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from flask_restful import Resource, reqparse
from models.store import Storemodel
class Store(Resource):
def get(self, name):
store= Storemodel.find_by_name(name)
if store:
return store.json()
return {'message': 'Store not found'}, 404
def post(self, name):
if Storem... | [
"nishant@corum8.com"
] | nishant@corum8.com |
51643692269809ea5f60e8640cb27fcf7291b775 | ccef22b749658409c4a7665196d8264824ebb9f4 | /ctci/arrays/setRowColumnZero.py | cd3fa085c658918b5cffc75923f53896a02e0630 | [] | no_license | anjaligr05/TechInterviews | 12afc9cb69758f129dbba213b88a7075b4484cdd | a6ba26f39afef3f91b2fbf4b0ff759ce096a03c7 | refs/heads/master | 2020-03-19T05:36:40.003074 | 2018-11-28T19:45:33 | 2018-11-28T19:45:33 | 135,947,817 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | def nullifyColumn(matrix, c):
for i in range(len(matrix)):
matrix[i][c] = 0
def nullifyRow(matrix, r):
for j in range(len(matrix[0])):
matrix[r][j] = 0
def setToZero(matrix):
for r in matrix:
print r
print('\n')
firstRowZero = False
firstColumnZero = False
for c in range(len(matrix[0])):
if matrix[0][c]... | [
"anjred@amazon.com"
] | anjred@amazon.com |
4d7441191bb081ae089a0ca2507ab8be71437200 | 4ddf61397e02ba4638ba1137e3f18e8ca5979ac7 | /examples/respmod_copy.py | a78e7288a0e94c685bb233cddde9bc52a8e3973c | [] | no_license | snobb/pyicap | 209282b433730b682fb47886f5abc04ad2851a08 | 2696697b40d2534ce0c9af0f3078525fd038a902 | refs/heads/master | 2021-05-27T23:49:38.687001 | 2013-07-08T07:30:13 | 2013-07-08T07:32:23 | 18,606,360 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,675 | py | #!/bin/env python
# -*- coding: utf8 -*-
import random
import SocketServer
from pyicap import *
class ThreadingSimpleServer(SocketServer.ThreadingMixIn, ICAPServer):
pass
class ICAPHandler(BaseICAPRequestHandler):
def example_OPTIONS(self):
self.set_icap_response(200)
self.set_icap_header('... | [
"tamas.fabian@vengit.com"
] | tamas.fabian@vengit.com |
b741ff399ab76da7346243c4a6b8b998babe038f | b3f33d53507b09bc8193c5fc113fe2f28d95f6da | /empinfo/forms.py | 4e01d73915ed2eae414d2d03cf9e13da6356e549 | [] | no_license | Jayant2185/Django_Employee | f07beb3b3497a84c75ba43a623a7ebb7390b18b4 | ac3650670ddecd634b847bb39c3f0e9372b1bb4f | refs/heads/master | 2020-04-24T07:49:20.986569 | 2019-02-21T06:13:06 | 2019-02-21T06:13:06 | 171,810,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from django import forms
from empinfo.models import Employee
class EmployeeForm(forms.ModelForm):
class Meta:
model = Employee
fields = "__all__" | [
"me@gmail.com"
] | me@gmail.com |
25d739c64d67666b3e512fd4009ad70803619a9c | 860ee2fc11471e5d08b7576fe1b539a1efa4ff2b | /AppleTomato.py | 72785b0bb10eca2a2bc94377df993c5ef35081ea | [] | no_license | itakuto/AppleTomatoWeb | 19b7ebfe9b4de5dbf614ce0964351dfb8e3d6be1 | 96a7ff425ae84a9ce47e45f184fe13d9039f2f48 | refs/heads/master | 2020-06-11T11:16:51.613092 | 2019-06-26T16:56:59 | 2019-06-26T16:56:59 | 193,944,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | # coding: utf-8
import os
import cv2
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
import tensorflow as tf
import keras
import numpy as np
# 各年代の画像をリスト化
Apple_files = os.listdir('downloads/Apple')
Tomato_files = os.listdir('downloads/Tomato')
# 配列Xに画像を入れる
X = []
for i in Apple_... | [
"itakuto.pw4@gmail.com"
] | itakuto.pw4@gmail.com |
e58e8361f66d4ba00ac7e23212da5f974c710fad | 67b2be20c931cf53df782dbfa7783542e60fa484 | /dgreed/tools/mkdig/SConscript | 6d14bd23c00ec634d9aaa7e916d44f23f3b7c9a3 | [] | no_license | carlossless/quibble | 78d3c19b552c447b2181c24d3bbd9462f9e20cc0 | f816d7fc2aa8566d3e410ed9ed6579364c9b9913 | refs/heads/master | 2021-01-10T13:27:55.083085 | 2014-10-13T11:29:03 | 2014-10-13T11:29:03 | 45,132,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | Import('env')
NAME='mkdig'
sources = Glob('*.c', strings=True)
app = env.Program(NAME + env['DGREED_POSTFIX'], sources, LIBS=env['DGREED_LIBS'])
env.Install('#'+env['DGREED_BIN_DIR'], app)
| [
"domas.marko@gmail.com"
] | domas.marko@gmail.com | |
b2ccb7f564008491a78614bd236d79beac6db0d3 | ce57fdf78884d99aacb3936f59146af81a56ccea | /scripts/global_distribution.py | 65dce48ed6346348dffcdd22d5a627db2a34c94c | [] | no_license | MenggeZhao/LinkedSV | 8f9c38cccfd5e8fa6575e755da2fa59c7dbd72dd | cb09730f55266931308c770c9e2d0056050fd5a6 | refs/heads/master | 2020-04-29T04:29:21.923274 | 2019-03-07T21:17:19 | 2019-03-07T21:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,093 | py | #!/usr/bin/env python
import os
import sys
from bed import *
from my_utils import *
import numpy as np
from fragment import *
import math
import subprocess
from sys import getrefcount
import cluster_reads
tab = '\t'
endl = '\n'
arg = sys.argv[1:]
def main():
args, dbo_args, endpoint_args = parse_user_argument... | [
"fangli0813@gmail.com"
] | fangli0813@gmail.com |
07f5f0febe13636216e15925edf3d44f1db27c2f | 2d80791a21a049243dd2bf7dd95a46c4d4b2510b | /domains/datastructures/linkedlist/CompareLists.py | c0436a2864f8f8fe985aca810532048acb762799 | [] | no_license | jayrav13/jr-hackerrank | 909346d101fdf08a54ff75ec2ee39c90e661b251 | b7e0130fdd1c2eb4436871be3255200eac8ca3d9 | refs/heads/master | 2021-01-15T15:36:16.772814 | 2016-11-21T18:59:15 | 2016-11-21T18:59:15 | 48,657,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | """
Compare two linked list
head could be None as well for empty list
Node is defined as
return back the head of the linked list in the below method.
"""
class Node(object):
def __init__(self, data=None, next_node=None):
self.data = data
self.next = next_node
def CompareLists(headA, headB):
count = 0
whil... | [
"jayrav13@gmail.com"
] | jayrav13@gmail.com |
6b174a065fbde2ba1c834f3c080c64112a4ee370 | 8c7e58a1c80dfb0b0f62175173bf56f48ee90880 | /models/store.py | da9628512c368a2b14cd37457ba0aea815bb2b81 | [] | no_license | veerdoshi/stores-rest-api | 90692bd7ca80a6d8e52306782bb68dc354c69878 | 6868a2305f0222e9cb58e12156f5a019ba1a6fbc | refs/heads/master | 2021-09-01T11:37:07.069630 | 2017-12-26T18:27:38 | 2017-12-26T18:27:38 | 114,919,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from db import db
class StoreModel(db.Model):
__tablename__ = 'stores'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80))
items = db.relationship('ItemModel', lazy='dynamic')
def __init__(self, name):
self.name = name
def json(self):
return {'na... | [
"noreply@github.com"
] | veerdoshi.noreply@github.com |
f875953eeb6bc655bf365406127b7e55f238a6e8 | d91fe0e972f2befab71987a732111b56245c5efc | /example_sm_pkg/nodes/subscriber_publisher_class_example.py | 9c626cf9b3902a827c6dde41ecd95bc0f3438280 | [] | no_license | karla3jo/robocup2014 | 2064e8102d5a3251ae582b7ed37ab80d0398f71c | 3d8563956fd1276b7e034402a9348dd5cb3dc165 | refs/heads/master | 2020-07-26T08:22:13.932741 | 2014-07-14T13:58:48 | 2014-07-14T13:58:48 | 21,850,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 22 12:00:00 2013
@author: sampfeiffer
"""
import roslib; roslib.load_manifest('example_sm_pkg')
import rospy
import sys
from std_msgs.msg import String
class myNode():
def __init__(self, argument_one):
# my class variables
sel... | [
"sammypfeiffer@gmail.com"
] | sammypfeiffer@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.