blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
038d8af70d2975fdca13a66f5b4337d9efbc4a19 | 98818aebfb30a12eff9d37a6fd98656f8850e47b | /node_modules/kerberos/build/config.gypi | 183ab8ae7e3f078368283a5b11fb9c5079a436c6 | [
"Apache-2.0"
] | permissive | limonjuices/test-nlpf | b58694152cefdb86051a9bac11fa0269204956cf | 64863000e079326d099cf159adac9af3fbb91ade | refs/heads/master | 2021-07-10T08:03:07.090334 | 2017-10-10T13:39:38 | 2017-10-10T13:39:38 | 106,321,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,807 | 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"... | [
"limonjuices"
] | limonjuices |
1788d7fb0349eebc05ab37f91754b18e6ce66b3f | 5393cc633a96df60c2398d5e9f8382b23a7b11e0 | /SelectionSort/selection-sort.py | 8b52e49a085054df1b38c563e92655016dfa96f2 | [] | no_license | SeshaSusmitha/Data-Structures-and-Algorithms-in-Python | 5d1d96acccc1d8ba29c4e7444fd306d055f7c533 | 5e1d463e0229006f5d8cb104928bfe56662f78de | refs/heads/master | 2021-01-22T20:44:11.841711 | 2017-03-22T08:28:36 | 2017-03-22T08:28:36 | 85,347,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | def insertionSort(array1,length):
for i in range(0, length ):
min_pos = i;
for j in range(i+1, length):
if array1[j] < array1[min_pos]:
min_pos = j;
temp = array1[i];
array1[i] = array1[min_pos];
array1[min_pos] = temp;
array1 = [2, 7, 4, 1, 5, 3];
print "Array before Selection sort"
print(array1);... | [
"yellamraju.susmita@gmail.com"
] | yellamraju.susmita@gmail.com |
16ed1bbd15b7c2290b97b1c341d7040eccac0c3f | f2a1f9420030f70de2824aa93f47e48cd09745d2 | /MainOrbitPlots.py | eda0973442b46eb0a071662d520ed909ca1b464f | [] | no_license | TheJezzaS/Jupiter | acdbb60c0c9633acdb1b93f8ad25a0775d3178ea | 2c5468ec738de681b3624bd74191423cc1cc64b4 | refs/heads/main | 2023-06-25T06:32:10.953569 | 2021-07-29T08:25:37 | 2021-07-29T08:25:37 | 315,133,927 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | from CoreFunctions import *
# Using un-perterbed initial conditions:
sol = solver(
times,
5.455*np.sin(np.pi/3) , 5.455*np.cos(np.pi/3) , 0, #initial values of Trojan position
2.622*np.cos(np.pi/3), -2.622*np.sin(np.pi/3), 0 #initial values of Trojan Velocity
).transpose() # Creates 24 x len(times) arr... | [
"70977631+TheJezzaS@users.noreply.github.com"
] | 70977631+TheJezzaS@users.noreply.github.com |
80e2fd4809f7201fbfc0672f394bc66a92df6390 | 8e6a9a6eecf4d81fade63dd424b6a55a0c116936 | /FeatureSelection.py | 59266262f9eb6441673959dde6e2ba5216275305 | [] | no_license | kluaynum1150/Fake-News-Detection-Using-Machine-Learing | 8671c847fa49f588cf1f4a3d8aeb4924797901d5 | 2e5cee839f4a6ecaba100aaa83cff2abeca5bcb7 | refs/heads/main | 2023-03-27T19:14:54.474282 | 2021-03-20T18:53:11 | 2021-03-20T18:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,941 | py | # -*- coding: utf-8 -*-
"""
@author: Vatsal Verma
Note: before we can train an algorithm to classify fake news labels, we need to extract features from it. It means reducing the mass
of unstructured data into some uniform set of attributes that an algorithm can understand. For fake news detection, it could be
word ... | [
"noreply@github.com"
] | noreply@github.com |
64c32586630e0c01a48bb1e4907ab4ac66192273 | 98d8b7dd018b95dbf2c81431561546fd9619e391 | /model/ItemLimitModel.py | 4c9e5c484728ea86929619b001baca2ad8e6fea9 | [] | no_license | c1xfr2e/kkyadmin | 1642c42659724a676000768bab559684581f3b07 | e5cef8b8ed63d3db8c1ff22af0edf44c36c4df63 | refs/heads/master | 2021-09-08T08:55:17.448640 | 2018-03-09T00:07:46 | 2018-03-09T00:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
""""""
from third_party.orm.field import StringField
from third_party.orm.field import IntegerField
from third_party.orm.field import ObjectIdField
from third_party.orm.field import ListField
from third_party.orm import Document
from tornado import gen
im... | [
"gurity@163.com"
] | gurity@163.com |
48f53fce88946d524c83d625efe16376a4e5de8f | fb214cb2b1b11bec3185ad07e0257a65fa35db7f | /programmers/python/level2/올바른_괄호.py | 6649a30ac0c957b1c67125e6958fdeb4dc151547 | [] | no_license | LimHaksu/algorithm | 48738631ea9ea79edaf6d481ba2c6c4bd0d3d662 | 596307751301d2357f77319e047d1c9fc9adb635 | refs/heads/master | 2021-12-07T07:56:59.804361 | 2021-11-21T04:53:52 | 2021-11-21T04:53:52 | 180,160,651 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | def solution(s):
top = -1
for c in s:
if c == '(':
top += 1
else:
if top < 0:
return False
else:
top -= 1
return top == -1 | [
"neroren2@gmail.com"
] | neroren2@gmail.com |
65c7729551ddd86b53033485bf1841cf27281704 | 3b56e8b8a5478a396daf5a8189e5f339eea12eb3 | /Transition_Matrices/GDP_Cartesian/initialise.py | 025855f01343f89c7855eb0745591c73bf9709e1 | [] | no_license | rm1911/TestGit | 8df427634f3a78f7b82fadd84a44df7b5b9d8594 | ca62a7572ef8f2b278724c2aa0a9dfabba3dd48d | refs/heads/master | 2021-01-15T11:48:15.787964 | 2017-01-14T21:22:55 | 2017-01-14T21:22:55 | 78,834,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import numpy as np
from scipy.sparse import lil_matrix
def initialise(lonarray,latarray,sparse):
"""
Requires coordinate arrays for at the relevant resolution and the sparse matrix entries
"""
full=lil_matrix( ( (latarray.size-1)*(lonarray.size-1),(lonarray.size-1)*(latarray.size-1) ) )
for i in range(sparse[0].... | [
"rm1911@ic.ac.uk"
] | rm1911@ic.ac.uk |
c7bbf75e9ae960b5941a6ca595b5b3d9fe56c169 | fa96af5a7b13ef0c79c134f0f38e0c8beb2ad4ac | /runtime/python/tests/regression-tests/migration_huge_fold.py | 8213de5dc62f562501a82bd2425b9ce80ae0e86a | [] | no_license | tfmorris/wrangler | 0eda4610207128047187be427d53d90958860021 | 0ae804edd84cb8040e1c93cc42222e0a41a4e94a | refs/heads/master | 2021-01-24T00:24:50.076635 | 2013-06-18T20:55:05 | 2013-06-18T20:55:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | from wrangler import dw
w = dw.DataWrangler()
# Split data repeatedly on newline into rows
w.add(dw.Split(column=["data"],
table=0,
status="active",
drop=True,
result="row",
update=False,
insert_position="right",
row=N... | [
"tfmorris@gmail.com"
] | tfmorris@gmail.com |
c1af59b6e439cfba8c9a0c0ea6501303a66d886a | 2bb5ffa26516d667a3116d1f772f21b5abad1dcc | /fp/practic/services/ShowService.py | 3c78756094598d2d92798438769e47c21b00d705 | [] | no_license | Demon000/uni | 71a0c8d26ae1a6024f2215f4105dc8daee3c1bb5 | 7735fc90b17f452879bfca4b0e4e8c2c4e80831f | refs/heads/master | 2022-08-14T03:08:51.029670 | 2021-12-15T16:50:06 | 2021-12-15T16:51:09 | 154,342,332 | 0 | 4 | null | 2022-07-21T08:25:57 | 2018-10-23T14:26:35 | Jupyter Notebook | UTF-8 | Python | false | false | 3,746 | py | from entities.ProgramEntity import ProgramEntity
from errors.ServiceError import ServiceError
from random import randint
class ShowService():
def __init__(self, show_repo):
'''
Initialize a new show service.
Args:
show_repo (ShowRepository): The repository to retrieve shows fr... | [
"demonsingur@gmail.com"
] | demonsingur@gmail.com |
e06cadebacbff361ff878048b6fad071797735b4 | 531bf94573d8bad90fdf1fa0ee16c34d8fab8ad7 | /app/mailer.py | c4e47a001d1e971cae7aadd372646204f202648c | [
"MIT"
] | permissive | sam0737/niceboat | 0f141a32dfef7e28606269cd55fdaa0bc305a9f0 | 97a11ba2b382a95534e0a5224536ce795ba4d646 | refs/heads/master | 2021-06-06T16:02:23.666864 | 2021-02-24T10:51:56 | 2021-02-24T10:51:56 | 98,638,402 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | from config import Config
from email.mime.text import MIMEText
import smtplib
def sendmail(tos, subject, text):
message = """From: %s\nTo: %s\nSubject: %s\n\n%s
""" % (Config.smtp_from, ", ".join(tos), subject, text)
msg = MIMEText(text)
msg['Subject'] = subject
msg['From'] = Config.smtp_from
... | [
"sam@hellosam.net"
] | sam@hellosam.net |
8ed9e4186dac0518855857e80937519e864abf6b | b6e349a3731037f342224c5a8b30c785f632f88a | /Application/views.py | 14d0bbdf9a2b0ec65a683cb5b8dd1a9bf92a58d0 | [] | no_license | abhishekgupta3/GUI-Based-Marksheet-Generator | 325b0f218a56c7316f81d179c86d51b019907992 | 7f12131c18fe035b191db67ffcc834e37f5a80c8 | refs/heads/main | 2023-09-05T07:44:38.395052 | 2021-11-21T12:44:52 | 2021-11-21T12:44:52 | 424,215,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,190 | py | from django.http import response
from django.shortcuts import render, HttpResponse
from . models import myuploadfile
import os
import csv
import openpyxl
from openpyxl import workbook, load_workbook
from openpyxl import styles
from openpyxl.styles import PatternFill, Border, Side, Alignment, Protection, Font
from djang... | [
"abhishek_1901ee03@iitp.ac.in"
] | abhishek_1901ee03@iitp.ac.in |
abc5b6a8c336e7194e4f23944c25431c5fbe8e5d | 809401fd897e879fee9487b0718c872c1758dbd5 | /pybloom/src/backends/bitarraybackend.py | 66a8e39c808a6b74b457a40b9f1295545068afca | [
"MIT"
] | permissive | nitxiodev/python-bloomfilter | 7888e68d82b192f5780cfab4432e06d2f381ee3e | f83865ef28ce2b5052b16841d2877373bbd2c054 | refs/heads/master | 2023-04-04T23:53:25.457075 | 2020-03-22T17:55:22 | 2020-03-22T17:55:22 | 163,771,823 | 2 | 1 | MIT | 2023-03-31T14:35:52 | 2019-01-01T22:45:14 | Python | UTF-8 | Python | false | false | 957 | py | from bitarray import bitarray as Bitarray
from pybloom.src import BloomFilterException
from pybloom.src.backends import ThreadingBackend
class BitArrayBackend(ThreadingBackend):
def __init__(self, array_size: int, hash_size: int, filter_size: int, **kwargs):
self._array = Bitarray(array_size)
su... | [
"smnitxio@gmail.com"
] | smnitxio@gmail.com |
4d2368011cef249879537e524c2bec02359e13e0 | 5b0db9b68a243141505d2424cba65bce45851021 | /win.py | 8eae5a4d6eafd8ac578c542d0ff76988e1d9e796 | [] | no_license | Tayacan/Restless-game | 02bc1629e45a497e1991bdf5119be3f9f1ce7a2a | 7c4142b9c5a2d91b64b30508be17364304b38edd | refs/heads/master | 2016-09-02T05:28:58.542687 | 2014-10-09T22:04:34 | 2014-10-09T22:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | import pygame
import os
from pygame.locals import *
from gamelib.gameobject import GameObject
from gamelib.game import Game
from gamelib.input import Input
from gamelib.collider import BoxCollider
class WinScene(GameObject):
def __init__(self):
GameObject.__init__(self)
def draw(self,pos,screen):
... | [
"mayasaietz@gmail.com"
] | mayasaietz@gmail.com |
1aef2bdf27740de3c0b6b28a05b4afecc91e7556 | 3d445252518d34f2aa446a6851dcd0ac33a3b74f | /easycluster/server.py | 127bbbb79705fab50935636c9f1728fa9bf6be81 | [
"MIT"
] | permissive | pjcrosbie/easycluster | 36d45c0f90b954603735fb73acdfdf73d3977686 | a44992db04b25cb5b86922b309b228ca541393a1 | refs/heads/master | 2021-05-28T10:29:14.180166 | 2015-03-06T22:58:04 | 2015-03-06T22:58:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,855 | py | # Copyright (C) 2013 Jared Stafford (jspenguin@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... | [
"jspenguin@jspenguin.org"
] | jspenguin@jspenguin.org |
7126b93550683fbad9c87de9989134e029d88d9e | 49d17b01d560ed7a3ad05b312340a2540d0382e1 | /api/package/artnet/ArtSyncGroup.py | be5f041e4bed3eb2bc4b67e6743d5c380c01b549 | [] | no_license | HE-Arc/Extrusion---web-interface | 709f851e7efcee61ba43c17bb2e29869376c0bc3 | de1408317d5071b7e0c6b2fea6f281660115d728 | refs/heads/master | 2023-01-10T15:50:20.759994 | 2019-11-01T19:56:44 | 2019-11-01T19:56:44 | 171,432,440 | 4 | 0 | null | 2023-01-04T05:22:47 | 2019-02-19T08:08:39 | Python | UTF-8 | Python | false | false | 887 | py | class ArtSyncGroup:
"""ArtSyncGroup is a class to manage multiple instance of StupidArtSync"""
def __init__(self, *args):
"""Constructor of ArtNet
:param args: StupidArtSnyc objects
"""
self.listArtNet = []
for a in args:
self.listArtNet.append(a)
def _... | [
"charles-lewis.jaggi@he-arc.ch"
] | charles-lewis.jaggi@he-arc.ch |
6e475fa396e9a6dcef96eed3caf04907181bd82f | 03f9b8bdea312636afb4df3737b55cb0cc4b21ff | /RLEIterator.py | abaa4b9c89f81c3310c20d22aec12ca5c65ea68a | [] | no_license | ellinx/LC-python | f29dd17bbe15407ba0d06ad68386efdc9a343b56 | 9190d3d178f1733aa226973757ee7e045b7bab00 | refs/heads/master | 2021-06-01T15:21:24.379811 | 2020-10-29T04:37:07 | 2020-10-29T04:37:07 | 132,704,788 | 1 | 1 | null | 2019-05-15T03:26:11 | 2018-05-09T05:13:26 | Python | UTF-8 | Python | false | false | 2,435 | py | """
Write an iterator that iterates through a run-length encoded sequence.
The iterator is initialized by RLEIterator(int[] A), where A is a run-length encoding of some sequence.
More specifically, for all even i, A[i] tells us the number of times that
the non-negative integer value A[i+1] is repeated in the sequence.... | [
"ellin.xll@gmail.com"
] | ellin.xll@gmail.com |
76cad8d6f9cf5a33dd57f097e8dc97bfb3eca44c | 13db353823e1c118eff8ab19e06bbc9fe03421ed | /PytorchExamples/network.py | fbe026a16f02cffa4535b1ec148585727ad14f64 | [] | no_license | Pol22/TCSVT-LightWeight-CNNs | 8d446fa6334ababebc475e2157a8f9ba50dd77f7 | f5ced9005f126edda89cb986159722189f7577a5 | refs/heads/master | 2023-03-10T06:48:55.927737 | 2021-01-22T00:19:14 | 2021-01-22T00:19:14 | 285,706,019 | 0 | 0 | null | 2020-08-07T01:14:55 | 2020-08-07T01:14:54 | null | UTF-8 | Python | false | false | 1,960 | py | import torch
import torch.nn as nn
from block import LIST
class DnCNN(nn.Module):
""" The bare-bone skeleton to implement the fullscale baseline of DnCNN denoising network.
"""
def __init__(self, channels=1, num_of_layers=17):
super(DnCNN, self).__init__()
kernel_size = 3
padd... | [
"noreply@github.com"
] | noreply@github.com |
dae0a454a1758a196f7dfa316c463a1e98caa99c | 8e6b35febea0e730d726616d807756a760dfff96 | /generators/vtt.py | 86120a0e11b1289f623fe6d561744e3dbc216aa8 | [
"MIT"
] | permissive | additive/bulk-optimization | 6a43f0796fe2be721d140ad5b81f48a2bcf8ea7f | 31fcf8f0d5100779902bef586ac1c6c562b9cd14 | refs/heads/master | 2020-09-24T01:34:16.663947 | 2019-12-11T15:59:14 | 2019-12-11T15:59:14 | 225,630,887 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,324 | py | """
Generates video thumbnails (VTT)
"""
import random
import shutil
import math
import tempfile
import datetime
from sty import fg
from moviepy.editor import VideoFileClip
from PIL import Image
from pathlib import Path
from utils.display import Box
from utils.progress import show_progress
from generators.generator ... | [
"marvin.heilemann@googlemail.com"
] | marvin.heilemann@googlemail.com |
0943a2cdb3a5924d2bbdcf5810eded4886b41065 | bf4c1793a20dcb5fac58ede1532212171fb5800c | /boss_service/models/Data/WholeService.py | 65a011ff880f6420da9edcee195d3b76468157a1 | [] | no_license | a2381165/bss-service | 392a52f02ecc383a240a08336141c9484705c028 | f5ab00f5a6abccdb53653eecc29c0f14b50da07d | refs/heads/master | 2020-04-13T23:17:03.336220 | 2018-12-29T10:33:50 | 2018-12-29T10:33:50 | 163,502,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,989 | py | # -*- coding: utf-8 -*-
from config import db
class WholeService(db.Model):
__tablename__ = "data_whole_service"
id = db.Column(db.Integer, primary_key=True, nullable=False)
task_id = db.Column(db.Integer)
service_id = db.Column(db.Integer)
customer_name = db.Column(db.String(20))
service_sta... | [
"haijiesong@qq.com"
] | haijiesong@qq.com |
0515a62c6cc6621fa0f4326bb75a9fd20e3fc87a | dbb5dd7f21c24cb9b64d7d9f2cf991c808439ddb | /Apps/hoteles/migrations/0006_auto_20210621_2131.py | 6ac5000646b0b44fcd5606ce83d56f548ccfc4d0 | [] | no_license | belisario-cogua/cogua | ade5567251bc7368bfecd498134f06ecd4dae7c5 | b5777a9bb11c60177997db21a226e58712cc8893 | refs/heads/master | 2023-06-25T05:22:34.312187 | 2021-07-28T15:39:06 | 2021-07-28T15:39:06 | 372,070,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 2.2.3 on 2021-06-22 02:31
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hoteles', '0005_auto_20210604_0720'),
]
operations = [
migrations.AlterField(
model_name='hotel',
name='estado',
... | [
"gad10cogua@gmail.com"
] | gad10cogua@gmail.com |
e673a7b29f1fb572b569c9d26973535990ca05f3 | 7082f389c6a45e5e8c3b8941c464da5c363bf727 | /src/create_modify_sample_db.py | a0d80417f89ced3893fe864797971f373a473832 | [] | no_license | Debdan1997/Transcriber | b56964e2284a0dd4c94b08c9b3d75bab724ddc35 | 504eb6c849889393930b9eb6088964e33dfaa841 | refs/heads/master | 2022-12-24T21:38:46.919135 | 2020-09-26T13:58:12 | 2020-09-26T13:58:12 | 298,006,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from pymongo import MongoClient
# client = MongoClient("localhost",27017)
# db = client['mydb']
# print("Database created........")
# #Verification
# print("List of databases after creating new one")
# print(client.list_database_names())
# coll = db['user']
#Inserting document into a collection
# doc1 = {"name": ... | [
"dpapan.rik.1996@gmail.com"
] | dpapan.rik.1996@gmail.com |
d02f2d250c358142dcbb2a70abe23fecd7cd7660 | 973809418dd45fe6f5812fa44cae8be25e4ef6f7 | /pythonTest/Test.py | b29b32bf7cb8039e54744d2d199b5b40ecf7b0bb | [] | no_license | lcz92416/PythonTest | 667cd704e462bb94762c995310e0b9f7eb38a1dd | a7287e1e42b4267b46aa9c79140bb14fbc3184c2 | refs/heads/master | 2020-03-31T16:39:53.623106 | 2019-09-09T02:11:00 | 2019-09-09T02:11:00 | 152,384,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | rows =int(input("请输入列数"))
i=j=k=1
flag=1
for i in range(rows):
for j in range(rows-i-1):
print(" ", end="\t"),
for k in range(i+1):
print("+ ", end="\t"),
print("\n")
print(u'Hello World !')
print("123".join("678")) | [
"lcz92416@163.com"
] | lcz92416@163.com |
59b75e69476326cd91132b9429c444faa2be4fd1 | de159327146dbdb23ba6f9388edbc867da4878a7 | /pages/basket_page.py | 415f0c4c3cb1af4adaa163238fea25fb52397d06 | [] | no_license | eddjimlab/stepik_module_4 | 7128d61fabbc929d244d74faf128d59b52e8cfb2 | cdc35f58818855b130be3420978fc929da49a4b5 | refs/heads/master | 2023-07-02T04:15:33.047183 | 2021-08-10T11:02:32 | 2021-08-10T11:02:32 | 392,316,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from .base_page import BasePage
from .locators import BasketPageLocators
class BasketPage(BasePage):
def basket_is_empty(self):
assert self.is_not_element_present(*BasketPageLocators.CART_TOTAL_PRICE), "Basket should be empty, but it`s not"
def basket_message_is_empty(self):
assert self.is_el... | [
"jimlab@mail.ru"
] | jimlab@mail.ru |
c1ceb404454ce567e24d20d975800d5a86c84ea7 | 4140a1eecd862356d7d41b171d8956a7ab96be7b | /nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/stat/lsn/lsndslite_stats.py | 23db16cfc4e72bdd3a3490761b166565c8a07ce0 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Citrix-TechSpecialist/NS-Init | 1c4311fef80d47d80fb5bfe107df058f5ff93e20 | bd1b695584a6acadec0140457782c7f4e97c266b | refs/heads/master | 2020-12-02T10:00:13.245312 | 2017-07-09T09:30:51 | 2017-07-09T09:30:51 | 96,673,273 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,736 | py | #
# Copyright (c) 2008-2015 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
29808ad57a6fe8e50a2fc17e6c3c306b1bedb653 | 4f2cef2daf4083aa0f9113e588d3063cdaca05ad | /lost_found/urls.py | fcb4bd2440877ec3911551e1e6e327f036054bc0 | [] | no_license | leslierere/lost_found | b8bc0250c3e84819c5d46d1c01ff8f06a3809cfc | 39fec4caafd4ebd6997aba6eb40f5558b6291608 | refs/heads/master | 2022-12-09T15:21:57.323320 | 2021-05-21T20:39:23 | 2021-05-21T20:39:23 | 248,314,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | """lost_found 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-ba... | [
"leslierenzy@gmail.com"
] | leslierenzy@gmail.com |
65fa851821b2faa7844845a608de280119f33769 | b38776cc1609e0e39cf7fda5cd23f0c191e7a268 | /old/test_bilingual_doc2vec.py | 6d6b29603c837fb922e15d19e00b792731fe5594 | [] | no_license | ryorda/clir-indonesia-english | 9a1c8a41a225f4dca641d60b88de9776894f2ffe | 0ea866c9a982adb22aa8d751b564bb27adf7a2b4 | refs/heads/master | 2020-05-23T04:31:42.383442 | 2018-06-28T08:18:48 | 2018-06-28T08:18:48 | 186,505,596 | 0 | 1 | null | 2019-10-14T15:22:37 | 2019-05-13T22:41:22 | null | UTF-8 | Python | false | false | 2,055 | py | from gensim.models import keyedvectors
from gensim.models import Doc2Vec
from gensim.models import Word2Vec
import re
import os
import Queries
from multiprocessing import Pool
import sys
from nltk.tokenize import TweetTokenizer
import time
import numpy as np
import tensorflow as tf
from Sastrawi.Stemmer.StemmerFactory... | [
"triaptahadiryorda@yahoo.co.id"
] | triaptahadiryorda@yahoo.co.id |
7dac1faa0f1cf04e45591073afc0b5fa07317f4c | 7de6f8b6b9f75444431156d8eac1e69b2e43b6b8 | /index.py | d9b9d420336909c1cab54d6ecac174e148905fe1 | [] | no_license | rainStone819/cnn-image-retrieval | a83067742459df194223c6692cfbca46f16ea1e1 | 7fd42d14ff602187f54abb73e8d02a3ddd750870 | refs/heads/master | 2022-12-08T10:23:01.500275 | 2018-01-25T10:11:01 | 2018-01-25T10:11:01 | 118,896,818 | 1 | 0 | null | 2022-11-22T01:27:19 | 2018-01-25T10:12:30 | Python | UTF-8 | Python | false | false | 2,169 | py | from feature import vgg16FeatureCode
import numpy as np
import os
import sklearn
import sklearn.neighbors
from sklearn.externals import joblib
index_dir = './index'
imagePath = "/htdocs/image-retrieval-UI/database_images"
features_file="%s/img_name_ftr.npz" % index_dir
kdtree_index_file="%s/kdtree_index.data" % index_... | [
"@qq.com"
] | @qq.com |
4d3bf528a77469025477e60365fc5db57a33ee28 | af4b9a65ccd2a641d2644ebd9742e399baec5f82 | /examples/pywrentest.py | 98ce52629be78db04358c2a151d1c3def5e2a57b | [] | no_license | idoyehe/Industrial_Project_234313 | 38ac06e892b45bbc878f078a9bc80b7bc4b4bd9a | 6399f96b0d5d0dc46dfeae4ca1a7231bc28ec4b4 | refs/heads/master | 2022-03-14T17:02:07.847060 | 2019-04-06T06:13:47 | 2019-04-06T06:13:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | """
Simple PyWren example using one single function invocation
"""
import pywren_ibm_cloud as pywren
def my_function(x):
return x + 7
if __name__ == '__main__':
pw = pywren.ibm_cf_executor(runtime_memory=2048)
pw.call_async(my_function, 3)
print (pw.get_result())
| [
"idoye@campus.technion.ac.il"
] | idoye@campus.technion.ac.il |
afaff866a995edab1d19006e1057464873748af1 | 750b90962f24110c1ed626acbfbd12d0ae360cfa | /TSC_tests.py | b45d8debe88b32783001b88457a32484f8e43232 | [] | no_license | mhunterak/tweet_syllable_count | addd1e54f19fef8aa6b313cdb4178c50e6f30d50 | aa26344f694675660c470995bd438c05a47a9791 | refs/heads/master | 2021-07-16T22:28:25.957253 | 2018-12-06T02:41:06 | 2018-12-06T02:41:06 | 132,646,227 | 0 | 0 | null | 2018-12-06T02:41:07 | 2018-05-08T18:02:33 | Python | UTF-8 | Python | false | false | 4,670 | py | import unittest
import tweet_syllable_count
class test_WordCount(unittest.TestCase):
def test_WordCount(self):
# test Word Count function
self.assertEqual(tweet_syllable_count.word_count('K'), 1)
self.assertEqual(tweet_syllable_count.word_count('Hello World'), 2)
self.assertEqual(t... | [
"maxwell@treehousestickers.com"
] | maxwell@treehousestickers.com |
6f84a6cf095fb5a86314bab9ec6f5027ef1c7133 | 09c95dc1035faa150f10fbe13dfb95b41113a68e | /common/apiRequests.py | 6f951eb40624bfa8c96179413cd7040e66660b5b | [] | no_license | a31503214/KFF_interface | baa65039ff9b22d80af913615ca6fcc2eb75884b | 16e2924d854c5bafb9587aab5b45eda50a630e29 | refs/heads/master | 2020-03-15T05:20:09.819278 | 2018-04-26T09:10:03 | 2018-04-26T09:10:03 | 131,986,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py |
import requests
base_url = "http://47.98.197.101/tzg-rest"
read_url = ""
method = ""
params = ""
url = base_url + read_url
headers = ""
resp = requests.request(method = method,url = url,params = params,headers = headers)
# respJson = resp.json() | [
"331503214@qq.com"
] | 331503214@qq.com |
72dfa4af3c48f3f9e9ab6d048b15530e9766f1c3 | 176b74119a26d60f2eb4ff0dd50e7f652755e92e | /searchBST.py | 7855011bf0b54f4cfd576ae7bf881c5118fa9e3a | [] | no_license | brdayauon/interviewPreparation | f1faeb8dced3e39df9dd3f5bacb067b8c12e9aa9 | ba17a6fdf3f6c979caaf0d84bb7bfbb38c8c42bd | refs/heads/master | 2021-01-03T17:25:38.882170 | 2020-10-11T17:00:52 | 2020-10-11T17:00:52 | 240,168,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def searchBST(self, root: TreeNode, val: int) -> TreeNode:
if root == None or root.val == val:
return root
... | [
"brdayauon@gmail,com"
] | brdayauon@gmail,com |
c8efb6ca68f3b38c35bd336830be207587da48e6 | 282032635ad666f072b7885aa1230d561cd9674b | /ENV/bin/jupyter-bundlerextension | 87effb65d8593ef5e52c061d67e151cf3048be67 | [
"MIT"
] | permissive | ShannonTully/data-science | 690ac38c149153cd38bba6c19bd727452e2498e1 | f0e08aec65d9bfa7694308b653283a35a8affb26 | refs/heads/master | 2021-04-12T11:26:25.987817 | 2018-03-29T22:13:12 | 2018-03-29T22:13:12 | 126,892,958 | 0 | 0 | MIT | 2018-03-29T22:13:13 | 2018-03-26T21:36:38 | Python | UTF-8 | Python | false | false | 277 | #!/home/shannon/Projects/401/data-science/ENV/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from notebook.bundler.bundlerextensions import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"scatman.st@gmail.com"
] | scatman.st@gmail.com | |
69a1f0b6fd6245b262107582163cc8ddd44ea88e | 38a92e99215d4bd6146374408513e7b8446ec828 | /ocpu/views.py | 59a753c4ddfbdf47b2487cad764f92feee416851 | [] | no_license | andi-nl/ANDI-frontend | b953ca50d1c1f3a4d6d12de8e68b7d81e815f0dc | 8d41bc8b6764444ab7b7a7ac053cdf8c317a568a | refs/heads/master | 2020-04-14T23:12:14.309292 | 2017-06-22T12:08:43 | 2017-06-22T12:08:43 | 41,303,252 | 1 | 12 | null | 2017-01-02T13:17:41 | 2015-08-24T13:00:35 | JavaScript | UTF-8 | Python | false | false | 932 | py |
import json
import logging
from django.http import JsonResponse
from django.views.decorators.csrf import csrf_exempt
from django.contrib.auth.decorators import login_required
from django.core.exceptions import SuspiciousOperation
from .utils import do_normcomp, do_calccomposite
logger = logging.getLogger(__name__)
... | [
"j.vanderzwaan@esciencecenter.nl"
] | j.vanderzwaan@esciencecenter.nl |
7b6058bd35243dcac57bec06afb8147e964d4555 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_softwoods.py | bf431aa729f540bf80fb4fb0ce05106eaa0eb798 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
from xai.brain.wordbase.nouns._softwood import _SOFTWOOD
#calss header
class _SOFTWOODS(_SOFTWOOD, ):
def __init__(self,):
_SOFTWOOD.__init__(self)
self.name = "SOFTWOODS"
self.specie = 'nouns'
self.basic = "softwood"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7212c1460cb4513d331eb1e6bd7dcf43c8f34b88 | efd056771312954e08ebf55dce2e34426859baf5 | /models/pipeline.py | 9973355f5a7cb89c288f6262768ad78b635e7aff | [] | no_license | ArjunBhalla98/intrinsic-video-factorisation | 6ba5fc322b9b95c7ca49ac008343fecdc1957daa | e0015b9d23a1070178d51e6d984871f06b9ab629 | refs/heads/main | 2023-06-25T12:37:47.445992 | 2021-07-26T19:58:37 | 2021-07-26T19:58:37 | 364,341,167 | 0 | 0 | null | 2021-07-26T14:54:44 | 2021-05-04T17:53:04 | Python | UTF-8 | Python | false | false | 837 | py | import torch.nn as nn
from .denselight_model import DenseLightNet
from .decoder import Decoder
class DLNetPipeline(nn.Module):
def __init__(self):
self.denselight_net = DenseLightNet()
self.person_detector = (
None # Fill in with model that gets people bounding boxes
)
... | [
"arjunbhallasg@gmail.com"
] | arjunbhallasg@gmail.com |
59b9b08feec2da2cb9977c691922d1fc53855551 | affd204765ad98bb7068e3cb1a612d740259f752 | /Mile-Kilometer converter.py | 1c69768300eae2ae80e607de4dcad810c886fbc4 | [] | no_license | tylerstjacques/SchoolPrograms | 46750cb34dd3f39718024bdcfbaaea1fe516a5e0 | 2ef22a6ec045f657d0d96ac3c5925075c0d0e357 | refs/heads/main | 2023-02-16T17:59:45.998560 | 2021-01-11T19:43:36 | 2021-01-11T19:43:36 | 328,770,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | conversionDirection = input('Hello! Are you converting from miles to kilometers or kilometers to miles?')
if conversionDirection == 'kilometers to miles':
lengthKilometers = int(input('how many kilometers would you like to convert?'))
miles = lengthKilometers / 1.6
print(lengthKilometers, 'kilometers is eq... | [
"noreply@github.com"
] | noreply@github.com |
57c2e18f8e35f1bc40f98393fdd6e4900f962fd9 | 90d912a9f935f2b570a25f7f8d9a88cff27387fc | /s2p/s2p.py | 8065ae6b66c088da0c286a6e196918414f11e4a4 | [] | no_license | ogtony/scout2parse | d42f9f76d36b70483ecaddb337491381dfb30dd2 | 6ff42c1beeacd9ce601967ec31a7d27bc2563965 | refs/heads/master | 2021-09-01T22:33:29.278266 | 2017-12-28T23:48:45 | 2017-12-28T23:48:45 | 115,465,696 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,187 | py | #!/usr/bin/env python3
"""
Commands to parse scout2's json database into CSV's for easy reporting.
"""
import csv
import json
from collections import defaultdict
import click
from s2p.findings import ec2_findings
def parse_scout2_json(filepath):
"""
The scout2
:param filepath:
:return: Dictionary co... | [
"tlozano@bishopfox.com"
] | tlozano@bishopfox.com |
850ecdca5bc07271e05e480aefeb8432c7ea8f48 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /EPXH424t2SSjMzms5_5.py | 6f2e5df2ee3869baab5543822cd15128d9777f20 | [] | 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 | 901 | py | """
Create a function that takes both a string and a list of integers and
rearranges the letters in the string to be in the order specified by the index
numbers. Return the "remixed" string.
### Examples
remix("abcd", [0, 3, 1, 2]) ➞ "acdb"
The string you'll be returning will have:
* "a" at index 0
* "b"... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a65d9b6be9bfa40b2f5756ccec4b3c57dc2420d4 | d2d130231290316284c18e2113bcb621e91c1c37 | /untitled/apps/adopcion/migrations/0001_initial.py | 3f2336f4768437c94294cf54a7ecfcc7022f1bfe | [] | no_license | lucasretamoso/pycharm-project | 66b9f58591954f8fd521e0eba1879c4a375379f5 | b14691ae60e24e8409a704e7b6239682155d2978 | refs/heads/master | 2020-03-21T04:32:13.441677 | 2018-06-21T02:14:37 | 2018-06-21T02:14:37 | 138,113,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # Generated by Django 2.0.6 on 2018-06-20 21:56
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Persona',
fields=[
('id', models.AutoField(... | [
"37214243+lucasretamoso@users.noreply.github.com"
] | 37214243+lucasretamoso@users.noreply.github.com |
6acd20ceb29a97562aa2e4f03105e1219598d240 | 5ce01d9feed7aae0ae864705fd98fa5904d61923 | /dati_fitting modelli interpolazioni/MILANO/aria - ozono/02 - air_map.py | c1e57a9f4db984bf6713a51676d4d992574e5db6 | [] | no_license | thedcfix/CodiceTesi | 85a5a597337637e2102532aab732ada13c561e7c | 2f6959dd43a79e78f553bc7f81d3ee441ab0d209 | refs/heads/master | 2020-03-24T12:19:43.877785 | 2018-12-20T20:31:19 | 2018-12-20T20:31:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | import numpy as np
import pykrige.kriging_tools as kt
from pykrige.rk import OrdinaryKriging
from pykrige.uk import UniversalKriging
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.colors as colors
import matplotlib.patches as mpatches
import warnings... | [
"davide.cattaneo.it@gmail.com"
] | davide.cattaneo.it@gmail.com |
7d3cd784657b9a873cf429d28e69dfc86050ddcf | 3a26d7bef9bf9339f3b1dbfc3650798bc8736f1a | /rest_router.py | bada1677522d5ad1420ea9256d95e921940b3705 | [] | no_license | andreiburuntia/restful-sentiment-analyzer | a370aabba3f3e32eb97c4f1fd1e412f3f4cd0068 | 24eacb7acda8585b10303d5c1772c29247bbece2 | refs/heads/master | 2020-03-17T01:20:56.171506 | 2018-05-12T13:30:00 | 2018-05-12T13:30:00 | 133,148,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | from flask import Flask
from flask_restful import Resource, Api
import analyzer
app = Flask(__name__)
api = Api(app)
class Analyze(Resource):
def get(self, sentence):
return analyzer.analyze(sentence)
api.add_resource(Analyze, '/<string:sentence>')
if __name__ == '__main__':
app.run(debug=True) | [
"andreiburuntia@gmail.com"
] | andreiburuntia@gmail.com |
8ebea4a768a74346f669199a18f9034a5a72fcd3 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006912.py | b626d2d86f3f2c0c06e456ec94bdbe994424a7eb | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
e8fd044df4f91a9541f51d1a974c2bcd3921cf30 | c1584b39560377fce4e069133a87e6ad4a0013c3 | /bai24.py | 45332319528e4ea8358d538b90d31048b4ed71d9 | [] | no_license | dqnhdsky/BaiKiemTra | a6d1ac759274d7a6c7ec90f9430d39c5ac413c21 | df1a7e3d0cf17b8379a5b5464c28bd86c797fd42 | refs/heads/main | 2023-08-02T08:34:34.170241 | 2021-10-09T09:43:08 | 2021-10-09T09:43:08 | 415,265,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # In:
import numpy as np
np.random.binomial(20, 0.5, 10)
print("array",np.random.binomial(20, 0.5, 10))
# Out:
# array([10 8 13 14 8 11 8 15 8 14]) | [
"nghiadzvc123@gmail.com"
] | nghiadzvc123@gmail.com |
cd7068b64a3c3621d5b186be6818e8df57e9db80 | 0479e695c96807f616a68471d179d01c541c6865 | /innterpret/function/smoothgrad.py | 19bdf1945a70257860bf8f5bbcc8acb5b2c88e55 | [
"MIT"
] | permissive | paudom/iNNterpret | 01ff5449237fe0f42f5b87c1a0adc1d7b0d0ef54 | 8e6a4fc43bfc497e26fea37942765a5efaf5b7c4 | refs/heads/master | 2022-11-29T14:53:28.719244 | 2020-03-12T15:01:45 | 2020-03-12T15:01:45 | 179,162,284 | 2 | 0 | MIT | 2022-11-22T04:30:56 | 2019-04-02T21:34:43 | Jupyter Notebook | UTF-8 | Python | false | false | 2,290 | py | from __future__ import absolute_import
# -- EXTERN IMPORT -- #
import numpy as np
import keras.backend as K
# -- IMPORT -- #
from .. import __verbose__ as vrb
from ..utils.data import load_image, deprocess_image, visualize_heatmap
from .gradient import Gradient
# -- SMOOTHGRAD METHOD -- #
class SmoothGrad(Gradient):... | [
"pavdom72@gmail.com"
] | pavdom72@gmail.com |
542ca145410789ca97fe7c88c049a026e0b616de | 977fac8d2143156ddc4d2c750136caafe154fddd | /Python3 Basics/if_statement.py | 809c7eb48d04951b4a36a3fcd2969f824aa54e38 | [] | no_license | murtalaliyu/Python3 | a46d67dac44f9e401ef3c7c64b398f398bd383bb | fa80ac53ebafe93c80071fa62c4687da50252bdd | refs/heads/master | 2021-01-11T21:36:29.838641 | 2017-01-16T06:54:56 | 2017-01-16T06:54:56 | 78,816,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | x = 5
y = 8
z = 5
a = 3
if z < y > x > a:
print('y is greater than z and greater than x')
if z <= x:
print('z is less than or equal to x')
if z == x:
print('z is equal to x')
if y != x:
print('y is not equal to x')
| [
"noreply@github.com"
] | noreply@github.com |
0f753428d03fbb09b89fca840230398b3dbc823a | 5a5323f8378749845dbabce23e46d6c878f24916 | /plots.py | 8fccc28f4938290b7070d4b797a3c27b6304ba71 | [] | no_license | sankasuraj/a10_ae625 | 75dd27c249d21c09633318b8d4e7b0a147d5a00d | 0822973b4409936385535c053bf366acd375bd7e | refs/heads/master | 2020-01-23T21:43:46.822992 | 2016-11-24T15:06:31 | 2016-11-24T15:06:31 | 74,683,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,818 | py | from pysph.solver.utils import load
from pysph.tools.interpolator import Interpolator
from pysph.examples.ghia_cavity_data import get_u_vs_y, get_v_vs_x
import numpy as np
import matplotlib.pyplot as plt
import os
cwd = os.getcwd()
def l2_error(theoritical, numerical):
difference = theoritical - numerical
temp = su... | [
"sankasuraj@gmail.com"
] | sankasuraj@gmail.com |
2f3d2e5096813d7e960b429df1473a648ae51389 | f04dfbe61b0e12cd0bce03aa259a9e446ca6818b | /mysite/settings.py | a5c977f00442284398a9c4b00b8f05fd8384fb66 | [] | no_license | Osteribo/mysite | 14430e0aacd5161001b086afc7afe9d0e411ea1b | e4fdf2138e0894fa34e57c7c2c0d51d85698af98 | refs/heads/master | 2022-11-02T14:26:31.947007 | 2020-06-18T13:12:36 | 2020-06-18T13:12:36 | 258,354,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"36780370+Osteribo@users.noreply.github.com"
] | 36780370+Osteribo@users.noreply.github.com |
87d50a6fe9dd9abd9d0786ad1b8b15d7b1e2efce | 978c6a861b93d64550dc198d4188bbde46f3a5a1 | /homework3/problema16-Copy1.py | 9285b87043bab3f73dcdbba0ea173a0a36fd026d | [] | no_license | Ardashes/Intro-to-python | d037762b3d1596b5868b730a1b0f0d67f3b47bf2 | c9ca34a81910e274ba69b65f90a4f5382078b46d | refs/heads/master | 2020-08-22T04:44:00.213162 | 2019-12-05T12:03:28 | 2019-12-05T12:03:28 | 216,320,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | t1=(1,"a")
t2=(2,"b")
t3=(3,"c")
l1=[t1,t2,t3]
print (l1)
d1={}
d1[(t1[0])]=t1[1]
d1[(t2[0])]=t2[1]
d1[(t3[0])]=t3[1]
print (d1) | [
"ardoo93@hotmail.com"
] | ardoo93@hotmail.com |
a2f371d608c16c9395b500111c9cc9be4f765cc7 | e647410f1863643ee79cc926c59478ddce3d44f5 | /tests/test_2000_integration/test_1000_client/test_1000_hello/test_1000_base.py | d20911336c775eea76dc3d3cf45944411660672a | [
"MIT"
] | permissive | happyfaults/pywtfrestful | 9411e6de9ad1f8bf5c0ae56c9844ce6dd5f9bdd2 | 3b22a9ed111d88bf1eab533fc2758283943443e0 | refs/heads/master | 2020-03-27T00:46:10.362960 | 2018-08-25T21:37:13 | 2018-08-25T21:37:13 | 145,645,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | import wtfrestful
from wtfrestful import pytest
@pytest.fixture
def app():
from wtfrestful.client.hello import World
return World.Load()
@pytest.fixture
def files_dir():
from os import path
return path.join(
path.dirname(
path.abspath(__file__)
),
'files'
)... | [
"happyfaults@gmail.com"
] | happyfaults@gmail.com |
6ae9b39fb3269abaaaed38b9ead3d33fb2e5a277 | bf229b223561b1fef70f2cd2ef12fa3bca309a81 | /test_player.py | 614189d576c411bafed53b46fb2945346dff1586 | [] | no_license | Darksheid/MXP3 | ced7f58ca34fd5c810537746778baf19e7fa7d19 | 8b14a3fd34545baadfa1170a9c05ecf9d2bbe88f | refs/heads/master | 2020-03-28T06:12:21.534574 | 2018-09-10T18:17:30 | 2018-09-10T18:17:30 | 147,820,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,521 | py | import os
from tkinter.filedialog import askdirectory
import pygame
from mutagen.id3 import ID3
from mutagen.mp3 import MP3
from tkinter import *
import math
################################################################################
###################################variables###########################... | [
"noreply@github.com"
] | noreply@github.com |
25002055ff5e41904646a87c818eada99447a73e | 1936b1417223cc3f6679e02888d98cd2feec3cc8 | /game/val_pretrain.py | 4e5f323220d5c74b1a730780607dc2a4284bd10a | [] | no_license | dendisuhubdy/deep_pepper_chess | e70d8693dcb69ed91a2e3d2513acbbc5a9db6340 | b05bfe2e6defad7a85d6099ad5d69e1b46888eb5 | refs/heads/master | 2020-07-03T05:53:54.342694 | 2018-11-04T04:53:10 | 2018-11-04T04:53:10 | 201,808,792 | 1 | 0 | null | 2019-08-11T19:52:37 | 2019-08-11T19:52:37 | null | UTF-8 | Python | false | false | 2,202 | py | from random import shuffle
import chess.pgn
import chess.uci
# import random
import torch
from torch.autograd import Variable
from config import Config
from game.features import board_to_feature
from game.stockfish import Stockfish
def cross_entropy(pred, soft_targets):
return torch.mean(torch.sum(- soft_target... | [
"saikrish@cedar5.cedar.computecanada.ca"
] | saikrish@cedar5.cedar.computecanada.ca |
6b692d10b1730270b76669e1b35e9650edd7aaf2 | 01dfd817931803f5ca3a41832171082e84323d9e | /apps/applogReg/urls.py | fd05ed8fe6c674eb9ffb88c415767ef447c8705f | [] | no_license | alialwahish/rep92 | 41d715b043233a85ce968d835a3c7ba303593445 | 743e2684783f8f86df9e5b8493ab267679e250bc | refs/heads/master | 2022-11-26T21:33:23.643273 | 2018-05-23T01:22:42 | 2018-05-23T01:22:42 | 134,494,751 | 0 | 0 | null | 2022-11-22T01:06:15 | 2018-05-23T01:20:24 | Python | UTF-8 | Python | false | false | 484 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$',views.index),
url(r'^main$',views.main),
url(r'^login$',views.login),
url(r'^register$',views.register),
url(r'^quotes$',views.quotes),
url(r'logout$',views.logout),
url(r'^add_quote$',views.add_quote),
url(r... | [
"bayati.ali@icloud.com"
] | bayati.ali@icloud.com |
c4684ae2238c6010c37de86b69f07d3419185f7c | d4141174ce514d122aa7cdbec5c8aa5f51700ff6 | /turnaround_period/rest.py | e2a039b8cf10b760d6737d13fe36311adb58f286 | [] | no_license | benp2443/NRL | a5c26530ce22907ef7de69e7c5fc384ba9e79885 | 32d4f880b41862323f960c63eceb02adb766e944 | refs/heads/master | 2021-04-29T19:00:00.144952 | 2018-05-05T10:28:01 | 2018-05-05T10:28:01 | 121,705,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,732 | py | import pandas as pd
import numpy as np
pd.set_option("display.max_columns", 20)
pd.set_option("display.max_rows", 50)
df = pd.read_csv('../data/NRL_cleaned.csv')
df['date_time'] = pd.to_datetime(df['date_time'], format = "%Y-%m-%d %H:%M:%S")
df['Date'] = df['Year'].astype(str) + '-' + df['Date']
df['Date'] = pd.to_da... | [
"benpaul374@gmail.com"
] | benpaul374@gmail.com |
de88198ad56a67db6c73e182f32e9f880a797afd | 07292116cfab3ac205649782ac404d9956a79103 | /source/resources/variables/_country.py | 7db858d4fdeee4e270292ff7e13dc186fca6f19a | [] | no_license | Group03AT/UK-Student-Visa | dd1d634412e76d74564557600932ec80301e3576 | d3911a37691fe9bfad813f80938ef65ff2c9431e | refs/heads/master | 2020-06-05T02:24:48.671230 | 2015-07-31T08:47:09 | 2015-07-31T08:47:09 | 39,963,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,068 | py | DICT_COUNTRY={"1":"United Kingdom",
"2":"Ireland",
"3":"USA",
"4":"Abu-Dhabi",
"127":"Afghanistan",
"128":"Albania",
"5":"Algeria",
"129":"American Samoa",
"115":"Andorra",
"6":"Angola",
"130":"Anguilla",
"131":"Antigua and Barbuda",
"7":"Argentina",
"132":"Armenia",
"133":"Aruba",
"8":"Australia",
"9":"Austria",
"134"... | [
"Group03AT"
] | Group03AT |
d1069e766090080234c254f2fd17be2e2baf85d4 | d6bc1b824d6df773f7f641476f8d5c3f6252a028 | /flaskblog/main/routes.py | 9dffc6c5054d5c4cce03ba15bbc23bd8e1aa5eb6 | [] | no_license | nailakaliyeva/Nailas_Blog | fc0293c7fcd420b52ddd6a5fa3576aaf8c194037 | a9b87b200d5ffa5f34e4407988842b316a7b85c7 | refs/heads/master | 2023-01-22T03:36:24.231241 | 2020-12-13T22:00:54 | 2020-12-13T22:00:54 | 320,900,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from flask import render_template, request, Blueprint
from flaskblog.models import Post
main = Blueprint('main', __name__)
@main.route("/about")
def about():
return render_template('about.html', title='About')
@main.route("/")
@main.route("/home")
def home():
page = request.args.get('page', 1, type=int)
... | [
"nailakaliyeva@gmail.com"
] | nailakaliyeva@gmail.com |
a5421125f820b7b418cd77f04061ae04b7af8054 | 096098a350fb093c8297c5e00201c2c0c09ec62f | /DPAIRS.py | e339551e7fc574d7aa53dc48f779044bba874570 | [] | no_license | Aviadonis/Practice-Programs | 35f2038c6a98136493dcfc547f53659781498a1f | 6e880f35e384d897ecc9857c7bd8743f10ded418 | refs/heads/master | 2020-04-24T19:01:43.904719 | 2019-03-05T05:17:35 | 2019-03-05T05:17:35 | 172,199,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | n=input()
m=input()
a=list(n)
for i in range(n):
n=raw_input()
a.append(int(n))
b=list()
i=0
for i in range(n):
n=raw_input()
b.append(int(n))
master=list()
i=0
for i in range(n):
for j in range(m):
master.append(a[i]+b[j])
for i in range(n):
for j in range(m):
elem=a[i]+b[j]
if(master.count(ele... | [
"avi.adonis241997@gmail.com"
] | avi.adonis241997@gmail.com |
8eb5839c081c577236c903b4be8df6e4168d5533 | bd0594e618bbf18b67643af9ac95bd4a62127a2b | /blogapp/__init__.py | 88be909c0b15a5e4aa76d072db1f457c00ea20ef | [] | no_license | RiturajJain/microblog-flask | cdf888485793c0497278ba89b9d474ce49e89d75 | 64e1fb055d6c56216b7c02f0b96510f56ca90c05 | refs/heads/master | 2022-10-12T20:40:35.344141 | 2019-10-25T07:43:04 | 2019-10-25T07:43:04 | 214,363,165 | 0 | 0 | null | 2022-09-16T18:11:28 | 2019-10-11T06:44:41 | Python | UTF-8 | Python | false | false | 1,640 | py | from flask import Flask
from config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
import logging
from logging.handlers import SMTPHandler, RotatingFileHandler
import os
app = Flask(__name__)
app.config.from_object(Config)
db = SQLAlchemy(ap... | [
"rituraj.jain17@gmail.com"
] | rituraj.jain17@gmail.com |
0d8dd1d03f65d1af54b1ad4ea455fdf604cca010 | fb82bd3d2ad159a50da424f665135f40c939d67d | /test_vs_minimax.py | 741d01df269809ad4c1a131591905c727a172a64 | [
"MIT"
] | permissive | ColdFrenzy/Adaptive_Learning | f4cac51e7c9b4325feb7573642639abbe3b726bc | 02cdd519a7e224fe5f2a49b0c21baa3dac5ce0e1 | refs/heads/master | 2023-05-29T15:01:32.762298 | 2021-06-14T22:36:01 | 2021-06-14T22:36:01 | 335,719,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | # import gym
import sys
import os
# NO GPU
# os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
sys.path.insert(1, os.path.abspath(os.path.curdir))
from tqdm import tqdm
# from env.LogWrapper import LogsWrapper
# from ray.rllib.agents.trainer_template import build_trainer
from ray.rllib.agents.ppo import PPOTrainer
from m... | [
"nemesi.95@hotmail.it"
] | nemesi.95@hotmail.it |
c16a052f5e599401dc6d6b8c2649ce28ad7d31e5 | 476497f41b081c52ab13c1ca95afc501dd8858d5 | /gpcgrlib/setup.py | 5254ce6c6102df9b568d9d6e4a6aed968f503347 | [] | no_license | gpc-gr/panel3552-scripts | 10e84bda7279b8b522a7ad61e31c6adfea16cb63 | 48b78fb578e3453a222a8d3bbbbdd989fa54b39c | refs/heads/master | 2020-04-06T08:29:31.580170 | 2019-01-22T10:07:24 | 2019-01-22T10:07:24 | 157,306,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python3
from setuptools import setup
setup(
name='gpcgrlib',
version='0.0.0-SNAPSHOT',
description='common libraries for gpc-gr project',
long_description='common libraries for gpc-gr project',
url='',
author='gpc-gr',
author_email='gr@gpc.megabank.tohoku.ac.jp',
licen... | [
"tadaka@megabank.tohoku.ac.jp"
] | tadaka@megabank.tohoku.ac.jp |
a7d41a6414c7d8d30f1ffcb2cdbff2c3826afef1 | 045bc96db861c139bace6bfc1cc1ce2afbd36cf7 | /rest/wechat_sdk.py | e7777ab90eddcce746e25c2f1d5c71d922620edc | [
"Apache-2.0"
] | permissive | currycan/github-enterprise-wechat | 8f249abd4d2ed0a75dc4aa5543e8017833e29f19 | f04ee0e4a9f61047fb914d48d22864af48cd7c19 | refs/heads/master | 2020-04-09T23:22:45.936161 | 2017-07-26T09:50:06 | 2017-07-26T09:50:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | # -*- coding:utf-8 -*-
import datetime
import requests
def token(func):
def get_newest_token(self, *args, **kwargs):
if "access_token" not in self.token or self.token['expires_time'] < datetime.datetime.now():
self.get_token()
return func(self, *args, **kwargs)
return get_newest_to... | [
"ttslj@163.com"
] | ttslj@163.com |
e60882fc81d4a7a0fdba8bc5cfbea5b5d6e38c24 | cde1eb088fb420c83cac6c1eae114336d05d3971 | /common/time.py | 0ddab55a8a246a3bce136dfdfe5003077134cb42 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | UniversityRadioYork/lass-pyramid | 6965f5caefef420dd9a56140572423cf56959344 | 6da18619d940a84cc3e2972078d277313ef40c43 | refs/heads/master | 2020-05-17T17:39:40.801599 | 2013-08-30T22:34:45 | 2013-08-30T22:34:45 | 12,490,983 | 1 | 0 | null | 2013-08-30T22:34:38 | 2013-08-30T16:42:55 | Python | UTF-8 | Python | false | false | 7,900 | py | """Common functions for dealing with dates and/or times.
Yes, this module does define tools for working with local times. This is
necessary for dealing with some aspects of schedule code, but we prefer to work
in UTC wherever possible, so only use the local time functions from template
logic or where absolutely neces... | [
"matt.windsor@ury.york.ac.uk"
] | matt.windsor@ury.york.ac.uk |
b66d2ae78a2abe5aa52b983e5773f4b95f0dfe9f | 11334e46d3575968de5062c7b0e8578af228265b | /Examples/OpenCV/PPOCV/C6/arithmetic.py | f062fdf7c94256bec4b4af759f4f493579109cb4 | [] | no_license | slowrunner/Carl | 99262f16eaf6d53423778448dee5e5186c2aaa1e | 1a3cfb16701b9a3798cd950e653506774c2df25e | refs/heads/master | 2023-06-08T05:55:55.338828 | 2023-06-04T02:39:18 | 2023-06-04T02:39:18 | 145,750,624 | 19 | 2 | null | 2023-06-04T02:39:20 | 2018-08-22T18:59:34 | Roff | UTF-8 | Python | false | false | 2,217 | py | #!/usr/bin/env python3
#
# arithmetic.py
"""
Documentation:
PPOCV C6
"""
# from __future__ import print_function # use python 3 syntax but make it compatible with python 2
# from __future__ import division # ''
import sys
try:
sys.path.append('/home/pi/Carl/plib')
import ... | [
"slowrunner@users.noreply.gethub.com"
] | slowrunner@users.noreply.gethub.com |
9fd7e20fe99d276a1d55c53a01429c9d843a8a8a | 0e59444628f9a3caffb1a40091ef8f993d040a90 | /RNN_version/network_GRU.py | b214827d0a8cc12be198465ce05d5b15c752204b | [] | no_license | woshiyitongshui/CoCoRec | 94f644b4173fbe09b31fb40366c4c1157574e8d9 | e6746fd43b44e13caeb120bca2d9b4b632ef7941 | refs/heads/main | 2023-08-16T08:37:46.447761 | 2021-09-24T15:59:21 | 2021-09-24T15:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,080 | py | from torch import nn
import torch
import torch.nn.functional as F
import datetime
import numpy as np
class GRU4REC(nn.Module):
def __init__(self, log, ss, input_size, hidden_size, output_size, num_layers=1, final_act='tanh', dropout_hidden=.8, dropout_input=0, embedding_dim=-1, use_cuda=False, shared_embedding=Tru... | [
"rc7ne@hcdmg3.cs.Virginia.EDU"
] | rc7ne@hcdmg3.cs.Virginia.EDU |
3973555778019db217774d4721379af1d424f009 | 43595f4a1cb5be5eb411322502d314a8e1b628d4 | /gravcollector_client.spec | e86b108058c8085c24bab99068508d507a95034f | [] | no_license | bradyzp/GravityCollector-Client | a2f904917c16edcc4eed1be1b4261974258aee01 | 4008116374621a5d6de6d036300055731f345281 | refs/heads/master | 2020-04-10T07:25:03.148995 | 2018-12-12T00:46:41 | 2018-12-12T00:46:41 | 160,879,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['src\\gravcollector_client.py'],
pathex=['C:\\Dev\\PyProjects\\GravityCollector-Client'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
exclud... | [
"bradyzp@dynamicgravitysystems.com"
] | bradyzp@dynamicgravitysystems.com |
9750cf23cce430194b8b16b976a1ab00836d8e25 | 59f478f985cb6092fcbd8f08005500cae9070139 | /tests/test_plotter.py | d1088d38bf6b2f0d6e86816fc63e52e9e9012b70 | [
"MIT"
] | permissive | lexruee/weight-plotter | c48fec1c64257a1c82a36c2d7f9a80bc4f66cb65 | 0aec15dafe3c36018b7870fea0c8a326b385be02 | refs/heads/master | 2020-04-14T09:22:27.789428 | 2019-01-01T23:06:50 | 2019-01-01T23:06:50 | 163,758,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import pytest
import random
from weightplotter.plotter import Plotter
def test_create_plotter():
date_list = ["{:02}.01.19".format(x) for x in range(0, 20)]
weight_list = [66 + random.random() for _ in range(0, 20)]
plotter = Plotter(date_list, weight_list)
plotter.plot()
| [
"a.rueedlinger@gmail.com"
] | a.rueedlinger@gmail.com |
30717a5a9f1b9bf25d7384d49c1bf6f311de121a | 4eb8454cdae9d7a4bb324476bb69f8cc8549704d | /scikits/timeseries/lib/plotlib.py | 9c0cc320276aaceaaecf8c56fa76b6b38eb00838 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-egenix-1.0.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | pierregm/scikits.timeseries | 389437b878d76efaff9aef85884d4cc2af3af005 | 05cbb314612ce516160270d59c933c420ef860ea | refs/heads/master | 2016-08-03T15:48:32.932861 | 2010-09-28T23:50:34 | 2010-09-28T23:50:34 | 946,544 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 49,413 | py | """
.. currentmodule:: scikits.timeseries.lib.plotlib
Classes to plot :class:`~scikits.timeseries.tseries.TimeSeries` with matplotlib.
Classes
=======
:class:`TimeSeriesPlot`
-----------------------
.. autoclass:: TimeSeriesPlot
:class:`TimeSeriesFigure`
-------------------------
.. autoclass:: TimeSeriesFigure... | [
"pierregmcode@gmail.com"
] | pierregmcode@gmail.com |
d2bc7ee4605a7a5ea67b74c73693739b31b353cd | ac093742b9dcc44f33ffb3babb3f8c00098a45a9 | /src/pnt_reader.py | f8455801cabfd797ebca7d49de60b9ef89d61be8 | [] | no_license | BSAProject/BSAProject_python | b9b7f9d628b6cbbe24ca22fbfa25dc96283506a3 | 143da4ba45dd1aade6b1ce18b4163d28bd7b64fd | refs/heads/master | 2021-08-08T20:47:58.251340 | 2017-11-11T06:10:38 | 2017-11-11T06:10:38 | 110,277,132 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | import os
import struct
import re
from my_config import nrays
def get_header(filename):
header = dict()
header_list = []
f = open(filename,"r")
first_line = f.readline()
header_re = re.compile(r'(?P<key>\w*)\s*(?P<value>.*)')
res_dict = header_re.search(first_line).groupdict()
he... | [
"KZhingalov@gmail.com"
] | KZhingalov@gmail.com |
b52eafaad74302292417a6626ab9bb243557b442 | 4448149578d2cc25797c4e1db4567a2d88e7db2b | /todoapp/todolist/migrations/0003_remove_todolist_content.py | 2761681615f9bba871708d21dd2afb20bdaf6b4d | [] | no_license | pabeli/test-django | 07f5fa975ef9e3936bebd7e174bbe0f955e07fe0 | 143183f9eadf95c2f0419d96411da21fb788df69 | refs/heads/master | 2023-01-15T12:06:10.028354 | 2020-11-22T23:13:49 | 2020-11-22T23:13:49 | 313,123,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | # Generated by Django 3.1.3 on 2020-11-19 17:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('todolist', '0002_auto_20201119_1439'),
]
operations = [
migrations.RemoveField(
model_name='todolist',
name='content',
... | [
"paula.lima@rosariosoftware.com"
] | paula.lima@rosariosoftware.com |
739affa96344cfb64530ee80750a907358e85dad | d5481d47bc22db53dd4535af15d8de4111333621 | /gfx/draw_bitmap/pygame/main.py | ed4bd00c0d28e6b1f0772baf009fc159a25b05a9 | [] | no_license | nurpax/aihiot | ceafa0e48d0b857a9354bb12e22aee0a76d7e5ed | 5ac75227130f5d7b65ab62de55356bc27c0a4662 | refs/heads/master | 2021-01-18T13:51:30.749571 | 2008-11-16T16:47:01 | 2008-11-16T16:47:01 | 38,955,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | #!/usr/bin/env python
# On Debian/Ubuntu you may need to install pygame. Fortunately it's as easy as:
#
# apt-get install python-pygame
#
# Thanks to Simo Melenius for contributing this example.
import pygame, math
from pygame.locals import *
def setscreen ((width, height) = (256, 256)):
"""Update the window ... | [
"jjhellst@60e57fd4-d74e-0410-81ba-8d1bba1f1622"
] | jjhellst@60e57fd4-d74e-0410-81ba-8d1bba1f1622 |
5d339b6997ca8a0f7b740c9d8da3886db9c74e9e | 10c4c215819ab846f75b8d7019db23583b3a90b7 | /webapp/analyze_gender/analyze_gender/urls.py | a613067bdf82d0361a96fa657f2c0cf703b78667 | [] | no_license | viswajithiii/gendermeme | 926645c29b65c15bf0113dd7bcb7bbae4951dfeb | 7a3740f93b0bdcac6c3d5566fa4704e64ea97779 | refs/heads/master | 2018-11-03T07:13:14.351044 | 2017-09-06T06:53:13 | 2017-09-06T06:53:13 | 63,036,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | """analyze_gender URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
C... | [
"viswajithiii@gmail.com"
] | viswajithiii@gmail.com |
ca939545e7c8fb9609dfe863f897e95bf1e74436 | 058d4532c7183ef7fd2ca1cb8372a3b0cf4d8410 | /datasets/qa4mre/qa4mre.py | ec00aff75a2f209c457b6f2ffa200bc9e6dec202 | [
"Apache-2.0"
] | permissive | darshan-gandhi/datasets | 126036049eb9603d96456ad1d2aa0de380f515d5 | 81bfa2a13cc22522ff0cd84993871ede6a1c5560 | refs/heads/master | 2023-02-04T23:25:31.230042 | 2020-12-07T10:47:23 | 2020-12-07T10:47:23 | 319,290,441 | 2 | 0 | Apache-2.0 | 2020-12-08T06:53:57 | 2020-12-07T10:56:06 | null | UTF-8 | Python | false | false | 12,672 | py | # coding=utf-8
# Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LI... | [
"noreply@github.com"
] | noreply@github.com |
5ba52dcc4a35001019d5785ae919e60acd7d8f5b | 7f371e1fbd14150ad7e556d5cec2ed92ca62137f | /Attn.py | ebbaf9e159cacc1aab83c9d10f91fd0e62856578 | [] | no_license | why-2004/Structured-Content-Preservation-for-Unsupervised-Text-Style-Transfer | 94821c2ef4f18dd7efc851c0a01f5f279dbb9154 | 8476a164130638b343f0799f6cbfb8fe24e53956 | refs/heads/master | 2023-04-01T11:33:40.368997 | 2021-04-08T00:25:25 | 2021-04-08T00:25:25 | 355,437,894 | 0 | 0 | null | 2021-04-07T06:34:46 | 2021-04-07T06:34:46 | null | UTF-8 | Python | false | false | 1,063 | py | import torch
from torch import nn
from config import Config
import torch.nn.functional as F
import math
class Attn(nn.Module):
def __init__(self,hidden_size):
super(Attn, self).__init__()
self.hidden_size = hidden_size
self.attn = nn.Linear(self.hidden_size * 2, hidden_size)
self.v =... | [
"noreply@github.com"
] | noreply@github.com |
6c4822dbc208ab96cfe62e279653a1092e0b4a38 | 759c233c8db36c61ec574851e87f3f0010ef9bc9 | /grades/grades.py | c1ebdbb40ad72774865dfb8bb6ecd8211b387459 | [] | no_license | Ekultek/codecademy | 008f582d583baa1da148ccf88c35a2b43d182524 | d5216e98590baed1ff1b5f40acc16cdb48aebbe8 | refs/heads/master | 2020-12-04T18:03:52.163305 | 2016-08-26T18:27:08 | 2016-08-26T18:27:08 | 66,596,301 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | grades = [100, 100, 90, 40, 80, 100, 85, 70, 90, 65, 90, 85, 50.5]
def print_grades(grades):
for grade in grades:
print grade
def grades_sum(grades):
total = 0
for grade in grades:
total += grade
return total
def grades_average(grades):
sum_of_grades = grades_su... | [
"thomas.perkins23@icloud.com"
] | thomas.perkins23@icloud.com |
01879fbd806988a699e8526e05d4f4af5cbbab7b | bab36f0eb5729ca7816015a9c1851c880a0b3c32 | /checkout/admin.py | bd9d0963d1d36c66ea4a0405f4b80fb240c4bdc5 | [] | no_license | ColinHammarberg/Boutique_Ado | 6ef9ab500f59ee54b09a6069fb23dca192928879 | 8697390dbf409d6316add63efd455c60f375ac38 | refs/heads/main | 2023-07-20T06:50:29.317229 | 2021-08-30T08:11:41 | 2021-08-30T08:11:41 | 395,569,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | from django.contrib import admin
from .models import Order, OrderLineItem
class OrderLineItemAdminInline(admin.TabularInline):
model = OrderLineItem
readonly_fields = ('lineitem_total',)
class OrderAdmin(admin.ModelAdmin):
inlines = (OrderLineItemAdminInline,)
readonly_fields = ('order_number', 'da... | [
"colin.hammarberg2@gmail.com"
] | colin.hammarberg2@gmail.com |
c0af9660ddd1c5fc615af6876b5a6cc8e63d5383 | 410c7c234992bd8a631baa526f6cdd7c4c86befd | /boolean_search/spimi.py | 880666267bb0b7326a82321cd730d2080f66c067 | [] | no_license | Tann-chen/ir-indexing | 16e49efb2119a4b80cf70a25f42301baa10b4efd | c72e04dafbe6f7c2430b68ecb686b504e49e9062 | refs/heads/master | 2021-08-08T20:41:37.288660 | 2017-11-11T04:58:14 | 2017-11-11T04:58:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,128 | py | import sys
import re
import pickle
import string
import nltk
from nltk.stem.porter import PorterStemmer
from nltk.corpus import stopwords
from fileparser.fileparser import Fileparser
from statistic.counter import Counter
def estimated_increase_size(token, doc_id):
temp_dict = {}
temp_dict[token] = doc_id
... | [
"tianen.chen@outlook.com"
] | tianen.chen@outlook.com |
2ee74236990a3abc8bf5ffd10c5813c776e61eb4 | 249aba5962579d18e873355fccd4836b5df813b1 | /feeback/urls.py | 7e2cad14ba207d421859e5adc99dd7c4c4fc1278 | [] | no_license | Fabricourt/Web-Theme-Editor-Clone-Wix.com- | 35fb13a3f8cabc8c41f39affa1d8ce7f3a72c770 | 60d1f97c036cc0eb276c43fe31e97f1e78100ed2 | refs/heads/master | 2022-03-18T00:59:27.991461 | 2019-09-28T20:26:30 | 2019-09-28T20:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.urls import path
from feeback.views import feedback, thankyou
app_name = 'feedback'
urlpatterns =[
path('feedback', feedback, name='feedback'),
path('feedback/thankyou', thankyou, name='thankyou'),
] | [
"Shravan2967@gmail.com"
] | Shravan2967@gmail.com |
d6466105ed7fcebea67a87df05fdc82930ef9b46 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/removeBrackets_20200908135618.py | 2cc917333227bb1d3ebec239f45ed72cebf22209 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | def remove(str):
# find how many make a complete pair
# subtract that from the | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
fb0cef46d4684cf1db79e27c9e2e379e81a9be8f | f8b4001a06d5c2e85052b84ddc4fa18eec72559d | /project.py | f69db46addc8e6e86e617cb999fc8852a89acc27 | [] | no_license | dawnyaya/Coffee-Shops-Catalog | ce710c55a6363ee6053db6076764624817022126 | f786f85cfac4e76bee3bef6e7417f46470aface8 | refs/heads/master | 2016-08-11T12:37:39.779665 | 2016-01-08T08:41:39 | 2016-01-08T08:41:39 | 49,260,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,239 | py | from flask import Flask, render_template, request
from flask import redirect, url_for, flash, jsonify
from sqlalchemy import create_engine, asc
from sqlalchemy.orm import sessionmaker
from database_setup import Base, Coffee, MenuItem, User
from flask import session as login_session
import random
import string
from oaut... | [
"dawnyayas@gmail.com"
] | dawnyayas@gmail.com |
3569db6b3ac516591e08da38e3f8674310ee5db2 | 2e29ed138ab0fdb7e0a6e87b7c52c097b350fecf | /MechPro Tech/randomElementSets.py | be6c201ac4e08bf05befb843bb10394f4b91df6b | [] | no_license | ronniegeiger/Abaqus-Scripts | 1e9c66664bd7dc7e5264bf763f15936eadcff529 | c071bbfe0e6c54148dfd4a23f786f017dfef4ae4 | refs/heads/master | 2023-03-18T06:33:13.690549 | 2018-08-14T11:37:07 | 2018-08-14T11:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | # Script to create element sets based on % distribution
from textRepr import prettyPrint as pp
import random
N_150mm = 3591
N_100mm = 7271
N_50mm = 38778
n_200mm = 2020
n_150mm = 3591
n_100mm = 8079
n_50mm = 32315
N_total = float(N_150mm + N_100mm + N_50mm + n_200mm + n_150mm + n_100mm + n_50mm)
else... | [
"noreply@github.com"
] | noreply@github.com |
e46ab1f47eeb5977cfba432993361002ca590d76 | 12966a1a68006ddbbaedac43c048bbf7b0dfd718 | /kMeans.py | 95c286d4567ec50a1e7b4afbf0bda4683bac0272 | [] | no_license | chandancit668/kMeansAlgorithm | 0d260f23bf8033883ce3a7dd22a7a20e5c2ccbaa | d5a1974d0074a6075753e3f07f4beac8735580f6 | refs/heads/master | 2020-04-23T03:46:49.231471 | 2019-02-15T16:30:31 | 2019-02-15T16:30:31 | 170,887,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | '''
put point 1 in cluster1
from next point compare with every cluster
if point is in cluster then compare distance
else
create new cluster and insert this point
'''
import math as m
from matplotlib import pyplot as plt
cluster_list = []
Points = [
(2, 10),
(2, 5),
(8, 4... | [
"STUDENT-CIT\\r00171433@com-c127-32913.student-cit.local"
] | STUDENT-CIT\r00171433@com-c127-32913.student-cit.local |
82c0ad85c74d804ea6724faf9252d85e73c347c6 | b2239863c3963431d1229e7e08f4bca024818210 | /coupon/admin.py | 3af6c36f0f14674fac3948a4f2522284eff53120 | [] | no_license | csdusunlight/qudao | ed4a4aaaf3a7a1c64aed3ade5c8eda32aa7f2c96 | 74c7ef441326014740df9563fbbf2c0c5e57f1ae | refs/heads/master | 2021-06-16T00:44:11.260952 | 2018-06-13T01:34:34 | 2018-06-13T01:34:34 | 102,178,218 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.contrib import admin
from coupon.models import UserCoupon, Contract
# Register your models here.
admin.site.register(UserCoupon)
admin.site.register(Contract) | [
"lvchunhui7@126.com"
] | lvchunhui7@126.com |
03330d2e13d8c0bfeef3ef89cace8e9d5abd39a1 | dad4bdba3ee752ab26b42ff957543c98f78da274 | /opdracht_010_rekenen/rekenen.py | 14c8dddb5b7c35a7ffd22aa2340a17e4a4d04ecb | [] | no_license | DR-84/winc_backend_opdrachten | 802789423c3c616d88928b78f6b470010c01702c | 358bb3141bdbf450dec2c5cf35daa17a8ff8cc19 | refs/heads/master | 2022-07-09T11:08:23.353890 | 2020-05-15T18:57:56 | 2020-05-15T18:57:56 | 257,566,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | """ 1. maak 3 variabelen, elke variabele naam is de naam van een product uit de supermarkt, elk product heeft een prijs in hele euro's. Voorbeeld: `broccoli = 2` / OK
2. tel de producten bij elkaar op, stop de nieuwe waarde in een variabele / OK
3. bereken de gemiddelde prijs van de producten / OK
1. rond dit getal... | [
"58080204+DR-84@users.noreply.github.com"
] | 58080204+DR-84@users.noreply.github.com |
8848e453bde68ab1159546add3177a390482d288 | 8600bfffe2aac43037a96c27f78d8121a4537b8e | /magenta/models/music_vae/chord_utils_test.py | 3cef1de968206ce109bbcb51e35b6f45f31b8c52 | [
"Apache-2.0"
] | permissive | jesuscast/magenta | 23ff7e1bb817d4704c05069ba044277162046c1b | 7fc059eb9b5a1093465f61353eb79512ee443204 | refs/heads/master | 2021-04-28T19:38:45.950265 | 2018-02-18T00:34:54 | 2018-02-18T00:34:54 | 121,902,436 | 1 | 0 | null | 2018-02-17T23:48:24 | 2018-02-17T23:48:23 | null | UTF-8 | Python | false | false | 2,303 | py | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"noreply@github.com"
] | noreply@github.com |
82608d76f5244b969a864dbae2c8206a43df6b1d | a205f15083877371f9a45c3c36fb7dd497f63b35 | /表白神器.py | e34f9029c5e8b7bced7cb2bd1902267763ffd327 | [] | no_license | 2000guweiqiang/pycharm | 2d728ca52aea8ecd2dd0b21a9101f17b8dd03bcd | 38f917b083d0db078c2458e4abf81abeaf2c2d1e | refs/heads/master | 2020-04-19T23:51:20.168048 | 2019-03-03T06:07:30 | 2019-03-03T06:07:30 | 168,507,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | #引用tkinter工具包
from tkinter import * # all = [a,b]
#from tkinter import messagebox
#定义关闭窗口提示
from tkinter import messagebox
def closeWindow():
messagebox.showinfo(title="警告",message="回去,必须选一个")
return
#定义喜欢的提示按钮
def Love():
love = Toplevel(window)
love.geometry("300x100+250+260")
love.title("我也... | [
"guweiqiang22@163.com"
] | guweiqiang22@163.com |
1f7b6aff08eefda2618ab492eb5dbc5971b01eba | 8d80cafc835f65ed04dc6cf44356b25224ec91c4 | /lab3/final/Source/scripts/evaluate_for_all_combinations_knn_naive_bayes.py | 23dbfd09e85fa5b53d177b4c9116ee925db066c0 | [
"MIT"
] | permissive | etzinis/pat_rec_ntua | 2a433364580629d0a52193b867946f29f7d90377 | e565b791206a6a1ab44630db519fd54f62f6e3e0 | refs/heads/master | 2021-08-25T16:44:43.884438 | 2017-11-21T12:26:19 | 2017-11-21T12:26:19 | 104,560,265 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,825 | py | import sys, os, re
def extract_results(filename):
f_in = open(filename)
text = f_in.read()
f_in.close()
results = re.findall('^Weighted Avg\..*$', text, flags=re.MULTILINE)
try:
test_line = results[-1].split()
accuracy = float(test_line[2])
f_measure = float(test_line[6])
except:
print "No match for ... | [
"etzinis@gmail.com"
] | etzinis@gmail.com |
d768d8a688644896473a941261a6765053258e6c | b1d2e25469a24ab129fa999e35c5dc3b979b61e4 | /experiment/Dialogue/dialogue/toolbox/layers.py | fd65cbfdfc69e56afc497484183c640d12222829 | [
"MIT"
] | permissive | IndexFziQ/ASER | 1525fe67b3d0c13685f364f7d3fa3db252e89541 | 67dd1a2a25cec175c15675cc1f8a63ca065b447e | refs/heads/master | 2021-08-19T18:35:43.567751 | 2020-07-02T07:11:07 | 2020-07-02T07:11:07 | 200,779,420 | 0 | 0 | MIT | 2020-07-02T07:11:08 | 2019-08-06T04:59:13 | Python | UTF-8 | Python | false | false | 17,740 | py | # -*- coding: utf-8 -*-
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
def sequence_mask(lengths, max_len=None):
"""
Creates a boolean mask from sequence lengths.
"""
... | [
"myscarlet@sina.com"
] | myscarlet@sina.com |
57b900f082ef3e189f5857a9b98bd202478c3803 | 5e89e2c53a6b80971456ef564ecf026a35d8cff2 | /train.py | 40d2445d3973df64141946c16b40a1c14dce49a7 | [] | no_license | VHugoBarnes/plant-disease-detection | c41f75f2cdda53fc35b897c0f5795f6181ac68b3 | 799c032c32d144ad6a76ba317d876a8f4aa1e38c | refs/heads/main | 2023-03-23T05:54:49.685893 | 2021-03-21T21:43:03 | 2021-03-21T21:43:03 | 350,178,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,364 | py | import numpy as np
import pathlib
import cv2
import tensorflow as tf
import matplotlib.pyplot as plt
import os
from tensorflow.python.ops.gen_batch_ops import batch
filepath = os.path.dirname(os.path.abspath(__file__))
training_img_dir = filepath + '/cassava/train'
test_img_dir = filepath + '/cassava/test'
datagen ... | [
"hugovg799@gmail.com"
] | hugovg799@gmail.com |
343ba2e8c8dbc7bad29a57b1416f628800566367 | b0bd3342c244ebf30ae5ab29daa078f2b39010f7 | /SimpleEmbedModel.py | eea650c39544213933830a7ab48737a89881b223 | [] | no_license | naiqili/itime_learning | 30a8af7f1234277162ccdd4c69cd9f9a4a7ab412 | d9b191bb32a7e49cb99443d7dccea5bb392aee90 | refs/heads/master | 2021-06-19T04:54:06.239320 | 2017-06-26T13:35:39 | 2017-06-26T13:35:39 | 92,792,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | import tensorflow as tf
import numpy as np
class SimpleEmbedModel():
def __init__(self, conf):
self.conf = conf
self.uif_mat = np.load(conf.uif_path)
self.iur_mat = np.load(conf.iur_path)
def add_variables(self, reuse=False):
conf = self.conf
with tf.variable_scope('Fix... | [
"naiqil@student.unimelb.edu.au"
] | naiqil@student.unimelb.edu.au |
ac2f389497f158fe59cc5e3f600d4fd7a0de203e | 2316ce8a21d44a5d09284968ef42530633dc10d2 | /sample_code/ep188/rev01/foo.py | 0576101a0190082ed83986d6e8f76bcf20481717 | [] | no_license | AlexanderWinkelmeier/explains | 160de2c41fc5fc0156b482b41f89644dc585c4f3 | d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc | refs/heads/master | 2023-07-30T04:55:31.234482 | 2021-09-15T02:59:42 | 2021-09-15T02:59:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py |
x = 1
def increment_thing() -> None:
global x
x += 1
def get_thing() -> int:
return x
| [
"int3l@users.noreply.github.com"
] | int3l@users.noreply.github.com |
b8984ab34e7e9be135e98dcc2ccf72559a665801 | 81d3f10e5b94567f3889612679f99e77f2622551 | /certbot-adc/certbot_adc/CadcProviderAliyun.pyi | a812fcf051c37d4fd148003fcd62b0282ca0ab3b | [
"Apache-2.0"
] | permissive | shadowSeventh/docker | 323e1d20f7561707a7db9e03e5c7f38ddda03631 | ef4f598154ccd76a1a8a3d3cdadaca9ca5a56907 | refs/heads/master | 2021-06-05T02:07:54.070182 | 2020-09-11T15:39:40 | 2020-09-11T15:39:40 | 115,692,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | pyi | # -*- coding: utf8 -*-
from certbot_adc import CadcProviderBase
from aliyunsdkcore.client import AcsClient
class CadcProviderAliyun(CadcProviderBase):
acs_client: AcsClient
def __init__(self, acs_client: AcsClient): ...
def get_owned_domain_info(self, main_domain: str) -> dict: ...
def owns_domain... | [
"949895691@qq.com"
] | 949895691@qq.com |
3d815cf4c784f1a2be9517e8cc5fba02c7679106 | 23753e7083bd8d20e1c83c30fae3bb3afc64fb63 | /ESRGAN-PyTorch/train.py | 916ea2328fe4f47ede8be13480c1c9d2c08a6c46 | [
"Apache-2.0"
] | permissive | anneouyang/noisy-superres | 1df471f2617d95cdaf8bea6535e5291800d4be62 | 9ebced948813ec9e2fc37b00914089152442b29e | refs/heads/master | 2023-04-19T18:16:37.352510 | 2021-05-20T15:16:13 | 2021-05-20T15:16:13 | 361,929,234 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,686 | py | # Copyright 2021 Dakewe Biotech Corporation. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"howardzh01@github.com"
] | howardzh01@github.com |
8911baef08bda0f8de3e8966b0c08a82dc27b42d | 55f2a837a7a75d25d6af14106616e6107d67703b | /Python Programs/Simple interest.py | 5b432dfc1fba5934794c56bb8fa6163b53a45d39 | [
"MIT"
] | permissive | SpooderManEXE/Hacktoberfest2020-Expert | fd63d011478fa25b8437fab0917cc6e21ff3bd41 | aa7aa4b22c52cee3b00e900d87a93284dea351de | refs/heads/master | 2023-08-11T12:21:11.615267 | 2020-11-02T02:01:59 | 2020-11-02T02:01:59 | 292,271,265 | 79 | 328 | MIT | 2021-10-01T03:26:08 | 2020-09-02T12:03:46 | Jupyter Notebook | UTF-8 | Python | false | false | 234 | py | def simple_interest(p,t,r):
print('The principal is', p)
print('The time period is', t)
print('The rate of interest is',r)
si = (p * t * r)/100
print('The Simple Interest is', si)
return si
simple_interest(8, 6, 8)
| [
"noreply@github.com"
] | noreply@github.com |
373e4f049cea8386fbd57e288660868ad6f2a5ab | a1bffcd8854e1843e56bb812d4d83b3161a5211e | /tests/unit/modules/storage/netapp/test_na_ontap_net_port.py | 07ea6a104c088e71872248865edf07e619628ac8 | [] | no_license | goneri/ansible.community | 1a71f9d98c164b77f8ed2ed7f558b4963005ff8f | f26f612dd0a3154050d90b51a75502018c95f6e4 | refs/heads/master | 2020-12-29T07:47:35.353515 | 2020-01-22T17:43:18 | 2020-01-22T17:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,647 | py | # (c) 2018, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
''' unit test template for ONTAP Ansible module '''
from __future__ import print_function
import json
import pytest
from ansible_collections.ansible.community.tests.unit.compat import unittest
from an... | [
"ansible_migration@example.com"
] | ansible_migration@example.com |
37c4a63a6bd370520d50ea2579440b3a98dc9561 | 2d3dcc2aa265ec7779196a4a626b05353d3a98a2 | /day07/list-tuple-dict-set的文件操作.py | 1a96386d0b28e3e3713cc7fd92702ce7131faece | [] | no_license | evanqianyue/Python | b6c19710bad6d3ae4c8a48ecc1aec4c91bfe2275 | ea3a1fb501bbf835b09cc75de7657b616ece9865 | refs/heads/master | 2020-04-03T01:46:29.529242 | 2018-11-11T04:47:02 | 2018-11-11T04:47:02 | 154,939,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
"""
@ Author :Evan
@ Date :2018/10/30 11:25
@ Version : 1.0
@ Description:
@ Modified By:
"""
import pickle # 数据持久性模块
import json
myList = [1, 2, 3, 4, 5, "he is good"]
with open(r"D:\file\write2.txt", "wb") as f:
pickle.dump(myList, f)
with open... | [
"evanqianyue@163.com"
] | evanqianyue@163.com |
c0b50ff294e715e35366a0be9bc0deae46b6eced | a203ace8d20288e6420bb32c3610c0d58c0212e9 | /RcCar_makeClass_Python/simplecode_raspberrypi_JMOD.py | 087c50c1789baad6767a8a7a7c6625605e0c89dd | [] | no_license | lejk8104/ControlofRCcar-Raspberrypi | 6b16246d8a3d593702693028ab95eaea200717e0 | 3c39a843b951b0058ab33a25a06378a71baf0ca0 | refs/heads/master | 2022-08-30T15:10:08.069560 | 2020-05-23T14:53:04 | 2020-05-23T14:53:04 | 258,775,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,996 | py | import RPi.GPIO as GPIO
from time import sleep
import sys
import numpy as np
# =============================================================================
# using JMOD-Motor-Drive
#this version is able to control to two motor plz use it
# =============================================================================... | [
"lejk8104@gmail.com"
] | lejk8104@gmail.com |
8f2f849bee56e5919c8ec77b4d3c77eb9ae38648 | cde0ef9b3f4964f34d1c27a5e4c25fbbd58619bc | /backapp/migrations/0001_initial.py | d683ea03fd447bae10b64edf79234ffed3c8ef76 | [] | no_license | DoDoDoHee/hackerton_final | eed769ba927d6641cd5d8b0690173d3306e13de0 | ed807572b5102abcb6172a406dff8073d37b8da1 | refs/heads/master | 2020-07-12T19:19:05.582468 | 2019-08-28T08:55:41 | 2019-08-28T08:55:41 | 204,889,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 2.2.4 on 2019-08-04 15:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='goods',
fields=[
('id', models.AutoField(au... | [
"emma970326@likelion.org"
] | emma970326@likelion.org |
0ca716046914007256d10bbb37b5f1a4cafa8580 | 71b7b6d84a61f514b038fac7741e6d16973fcaa9 | /build/object_manipulation_msgs/catkin_generated/pkg.installspace.context.pc.py | 3e6fd0a4ff97ee24b62a27bea0521aebb8561551 | [] | no_license | YiKangJ/perception_driven_ws | 15c02e523f1a708fe63b216d73019c8c2bde97a1 | 0a0f8fcbe3f5fed26439f449999b85f1e38c0f70 | refs/heads/master | 2020-04-01T19:47:48.372111 | 2018-10-18T06:17:57 | 2018-10-18T06:17:57 | 153,571,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/jyk/perception_driven_ws/install/include".split(';') if "/home/jyk/perception_driven_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;actionlib_msgs;std_msgs;geometry_m... | [
"jinyikangjyk@163.com"
] | jinyikangjyk@163.com |
d89def813cc2f5627c5cc5f591b3ff3acea8ce8d | e4386d9b45366b0c2b03c1807ed5a8cbfb288c05 | /04_Django_first/mysite/elections/views.py | 39b0e9d9dec91b3c23ee3469965ca28976b8bdc9 | [] | no_license | tlarbgus89/Django_first | ce0d01a44a77270ad34b8e391d3bb50e8c8b940a | a3f2551a8fdcad23a3c6e9f2ea9cd56caedd1ba3 | refs/heads/master | 2020-04-28T06:06:46.273089 | 2019-03-11T16:58:03 | 2019-03-11T16:58:03 | 175,044,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from django.shortcuts import render
from django.http import HttpResponse
from .models import Candidate, Poll, Choice
import datetime
# Create your views here.
def index(request):
candidates = Candidate.objects.all()
context = {'candidates' : candidates}
return render(request, 'elections/index.html', cont... | [
"noreply@github.com"
] | noreply@github.com |
43ba515a8423b274561cd976f5a2b91fcaff4a28 | f2a7d3a0fa0595dc3ff76db85c6129c50121448f | /accounts/migrations/0001_initial.py | aee90def1335335ea1ef5760bb00ef3638638dae | [] | no_license | pokhrelhari1/venuebackend | b40397250e7b0457da2a7884262a2debc5b9de96 | 0e4751d76555349a8d374b7f86f7defa6f4d62d9 | refs/heads/main | 2023-04-12T12:40:16.642760 | 2021-04-24T08:07:01 | 2021-04-24T08:07:01 | 357,931,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,382 | py | # Generated by Django 3.1.2 on 2021-03-29 18:34
import datetime
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL)... | [
"pratimachaudhary84@gmail.com"
] | pratimachaudhary84@gmail.com |
34df4ab23e66034adc09b4cd41068f9486653996 | d6f9e6c3b3bc21aba3f5b41ea7345dacd8fa9eb6 | /tests/test_disk.py | 7a7dfce7b5c401a756c081ebeefebae4d0a5148d | [] | no_license | Neterukun1993/homebuilt-rdbms | b0cb61a965535a85eb8a23371d1218f8853e84f3 | e02481323fba7c531930b081444552be716a3d17 | refs/heads/main | 2023-07-10T01:16:35.545977 | 2021-08-10T19:30:10 | 2021-08-10T19:30:10 | 391,050,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | import pytest
from src.disk import PageID, PAGE_SIZE, DiskManager
class TestPage:
def test_create_page_id(self):
page_id = PageID(10)
assert page_id.to_int() == 10
def test_page_size(self):
assert PAGE_SIZE == 4096
def test_compare_two_page_id(self):
page_id = PageID(10)... | [
"v5del11138@gmail.com"
] | v5del11138@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.