100+ results for 'os.system mplayer %s'

Not the results you expected?

CameraSound.java (https://github.com/Kali-/android_frameworks_base.git) Java · 217 lines

20 import android.media.MediaPlayer;

21 import android.os.SystemProperties;

22 import android.util.Log;

112 private int mSoundId;

113 private MediaPlayer mPlayer;

114 private Thread mThread;

146 }

147 mPlayer = new MediaPlayer();

148 try {

149 mPlayer.setAudioStreamType(AudioManager.STREAM_SYSTEM_ENFORCED);

150 mPlayer.setDataSource(soundFilePath);

151 mPlayer.setLooping(false);

152 mPlayer.prepare();

MediaThrottler.java (https://gitlab.com/jonnialva90/iridium-browser) Java · 218 lines

11 import android.os.Looper;

12 import android.os.SystemClock;

13

35 // Watch dog player. Used to listen to all media server crashes.

36 private MediaPlayer mPlayer;

37

71 synchronized (mLock) {

72 if (mRequestCount == 0 && mPlayer != null) {

73 mPlayer.release();

74 mPlayer = null;

75 }

104 synchronized (mLock) {

105 if (mPlayer != null || mRequestCount == 0) return null;

106 mPlayer = MediaPlayer.create(mContext, R.raw.empty);

HardwareLayersUpdatesPreferenceControllerTest.java (https://gitlab.com/SkyDragon-OSP/platform_packages_apps_settings) Java · 101 lines

22

23 import android.os.SystemProperties;

24 import android.support.v14.preference.SwitchPreference;

Timer.java (https://github.com/tigerking/sudoku-grabber.git) Java · 289 lines

35 import android.os.Handler;

36 import android.os.SystemClock;

37

LaunchActivity.java (https://github.com/gerges/apollo67.git) Java · 143 lines

16 import android.os.PowerManager;

17 import android.os.SystemClock;

18 import android.speech.tts.TextToSpeech;

60 am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, firstTime, 300*1000, mCamcorderSender);

61 MediaPlayer mPlayer = MediaPlayer.create(this, R.raw.launch_countdown);

62 mPlayer.start();

TransitionDrawable.java (https://github.com/richardfickling/android_frameworks_base.git) Java · 255 lines

20 import android.graphics.Canvas;

21 import android.os.SystemClock;

22

plugNetwork2SVM.py (https://github.com/lisa-lab/PLearn.git) Python · 121 lines

65 if os.path.isfile(global_results):

66 os.system("echo baseline test error rate : `plearn vmat cat "+global_results+" | tail -1 | awk '{print $NF}'` \% >> "+output_filename )

67 else:

PickContact.java (https://gitlab.com/brian0218/rk3188_rk3066_r-box_android4.4.2_sdk) Java · 114 lines

28 import android.net.Uri;

29 import android.os.SystemClock;

30 import android.os.Bundle;

import_maps.py (https://github.com/cholmes/mapstory.git) Python · 143 lines

25 temppath = lambda *p: os.path.join(tempdir, *p)

26 os.system('unzip %s -d %s' % (zipfile, tempdir))

27

expcleanup.py (https://github.com/lisa-lab/PLearn.git) Python · 115 lines

47 #

48 # os.system("""sh -c 'PATH=/bin:/usr/bin; find %s -name training_costs_layer_2.pmat -execdir rm -f outmat1.pmat \;' """ % rootdir)

49 # os.system("""sh -c 'PATH=/bin:/usr/bin; find %s -name training_costs_layer_3.pmat -execdir rm -f outmat2.pmat \;' """ % rootdir)

s.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 275 lines

6 import android.os.Message;

7 import android.os.SystemClock;

8 import com.google.android.exoplayer2.i.t;

quantize-constituency-model.ipynb (https://github.com/huseinzol05/Malaya.git) Jupyter · 471 lines

71 " print(k)\n",

72 " os.system(f\"wget https://f000.backblazeb2.com/file/malaya-model/{S3_PATH_CONSTITUENCY[k]['model']}\")"

73 ]

Visualization1.java (https://github.com/MIPS/packages-wallpapers-MusicVisualization.git) Java · 186 lines

23 import android.os.Handler;

24 import android.os.SystemClock;

25 import android.service.wallpaper.WallpaperService;

pytorch_tests.py (https://github.com/Tessellate-Imaging/monk_v1.git) Python · 1129 lines

277

278 os.system("rm -r workspace");

279

AccuTime_Statistic.py (https://gitlab.com/m10774708/dotcode) Python · 746 lines

140 #print("seconds:", seconds, "i_count:", i_count, "try", i_try, "i_correct:", i_correct/i_count)

141 #os.system("pause")

142 AccuTime_sta_dict = {"gameCode":game,

330 #print("seconds:", seconds, "i_count:", i_count, "try", i_try, "correct:", i_correct/i_count)

331 #os.system("pause")

332 AccuTime_sta_dict = {"gameCode":game,

TimeRange.java (https://gitlab.com/gossiks/bormotushek) Java · 202 lines

17

18 import android.os.SystemClock;

19 import org.telegram.messenger.exoplayer.util.Clock;

Metronome.py (https://github.com/litdream/Metronome.git) Python · 143 lines

139 os.system("rm -f t.wav")

140 os.system("mplayer a.wav")

141

MediaPlayerGlueTest.java (https://gitlab.com/SkyDragon-OSP/platform_frameworks_support) Java · 142 lines

26 import android.os.Build;

27 import android.os.SystemClock;

28 import android.support.test.InstrumentationRegistry;

IWifiStaIface.java (https://github.com/SivanLiu/HwFrameWorkSource.git) Java · 1218 lines

13 import android.os.RemoteException;

14 import android.os.SystemProperties;

15 import com.android.server.wifi.HalDeviceManager;

Amarok.py (https://github.com/csuarez/emesene-1.6.3-fixed.git) Python · 120 lines

48 try:

49 assert os.system( "ps aux|grep dcopserver|grep -v grep" ) == 0

50 except:

backend_driver.py (https://github.com/ericliang/matplotlib.git) Python · 107 lines

86 file(tmpfile, 'w').write(''.join(lines))

87 os.system('python %s' % tmpfile)

88

mesh_mount_stl.py (https://gitlab.com/Aaeinstein54/specfem3d) Python · 198 lines

32

33 os.system('rm -f topo_brick.stl topo_vol.stl topo_vol2.stl')

34

119

120 os.system('awk \'BEGIN{print \"solid Body_1\";}{if($0 !~ /solid/) print $0;}END{print \"endsolid Body_1\";}\' topo_vol.stl > topo_vol2.stl')

121 #checks if new file available

187 # cleanup

188 os.system('rm -f topo_brick.stl topo_vol.stl topo_vol2.stl')

189

191

192 os.system('mkdir -p MESH')

193 cubit2specfem3d.export2SPECFEM3D('MESH')

PlaylistItem.java (https://gitlab.com/vicidroiddev/platform_development) Java · 130 lines

20 import android.net.Uri;

21 import android.os.SystemClock;

22 import android.support.v7.media.MediaItemStatus;

EmergencyTonePlayer.java (https://gitlab.com/Atomic-ROM/packages_services_Telephony) Java · 133 lines

22 import android.media.ToneGenerator;

23 import android.os.SystemVibrator;

24 import android.os.Vibrator;

C8675b.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 146 lines

2

3 import android.os.SystemClock;

4 import com.google.android.exoplayer2.Format;

PhoneDisplayMessage.java (https://gitlab.com/Atomic-ROM/packages_services_Telephony) Java · 102 lines

20 import android.content.Context;

21 import android.os.SystemProperties;

22 import android.util.Log;

ui.py (https://github.com/Shaywei/Innovation.git) Python · 157 lines

76 print()

77 os.system("cls")

78 return action

agg_tests.py (https://github.com/pnnl/safekit.git) Python · 259 lines

29 print('\n\ncert dnn autoencoder w/diag covariance, batch norm, input norm, replay\n\n\n')

30 ok = os.system('python %s/dnn_agg.py %scert_head.csv /tmp %s/cert_all_in_all_out_agg.json -dist diag -norm batch -replay 2>> %s' % (modelpath, args.cert_datapath, specpath, args.logfile))

31 num_finished += ok == 0

36 print('\n\ncert dnn autoencoder w/diag covariance, batch norm, input norm\n\n\n')

37 ok = os.system('python %s/dnn_agg.py %scert_head.csv /tmp %s/cert_all_in_all_out_agg.json -dist diag -input_norm -alpha 0.5 -norm batch 2>> %s' % (modelpath, args.cert_datapath, specpath, args.logfile))

38 num_finished += ok == 0

43 print('\n\ncert dnn autoencoder w/diag covariance, layer norm, input norm\n\n\n')

44 ok = os.system('python %s/dnn_agg.py %scert_head.csv /tmp %s/cert_all_in_all_out_agg.json -dist diag -input_norm -alpha 0.5 -norm layer 2>> %s' % (modelpath, args.cert_datapath, specpath, args.logfile))

45 num_finished += ok == 0

50 print('\n\ncert dnn autoencoder w/ identity covariance, no model norm, input norm\n\n\n')

51 ok = os.system('python %s/dnn_agg.py %scert_head.csv /tmp %s/cert_all_in_all_out_agg.json -dist ident -input_norm -alpha 0.5 2>> %s' % (modelpath, args.cert_datapath, specpath, args.logfile))

52 num_finished += ok == 0

57 print('\n\ncert dnn autoencoder w/ full covariance, no model norm, no input norm\n\n\n')

58 ok = os.system('python %s/dnn_agg.py %scert_head.csv /tmp %s/cert_all_in_all_out_agg.json -dist full -input_norm -alpha 0.5 2>> %s' % (modelpath, args.cert_datapath, specpath, args.logfile))

59 num_finished += ok == 0

test_update_normal.py (https://github.com/Tessellate-Imaging/monk_v1.git) Python · 354 lines

16 if(not os.path.isdir("datasets")):

17 os.system("! wget --load-cookies /tmp/cookies.txt \"https://docs.google.com/uc?export=download&confirm=$(wget --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1rG-U1mS8hDU7_wM56a1kc-li_zHLtbq2' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1rG-U1mS8hDU7_wM56a1kc-li_zHLtbq2\" -O datasets.zip && rm -rf /tmp/cookies.txt")

18 os.system("! unzip -qq datasets.zip")

DummyPlayer.java (https://gitlab.com/0072016/Facebook-SDK-) Java · 236 lines

9 import android.os.Handler;

10 import android.os.SystemClock;

11 import android.support.v7.media.MediaItemStatus;

hookutils.py (https://github.com/Kapernikov/Erfgoedstats.git) Python · 90 lines

28 # Actually execute the statement

29 os.system(cmd)

30 finally:

TelephonyProperties.java (https://github.com/integralnd/android_frameworks_base.git) Java · 112 lines

20 * Contains a list of string constants used to get or set telephone properties

21 * in the system. You can use {@link android.os.SystemProperties os.SystemProperties}

22 * to get and set these values.

C6828d.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 140 lines

2

3 import android.os.SystemClock;

4 import com.tencent.matrix.trace.core.AppMethodBeat;

backend_driver.py (https://github.com/ericliang/matplotlib.git) Python · 131 lines

107 tmpfile.close()

108 os.system('%s %s' % (python, tmpfile_name))

109 os.remove(tmpfile_name)

MediaSourceEventListener.java (https://github.com/Zeus64/alcinoe.git) Java · 491 lines

18 import android.os.Handler;

19 import android.os.SystemClock;

20 import android.support.annotation.Nullable;

hangman.py (https://github.com/nielsbom/Hangman.git) Python · 138 lines

12 def clear():

13 os.system("clear")

14

Boggle.java (https://bitbucket.org/liuzzi/demo-android-app.git) Java · 143 lines

19 import android.os.Bundle;

20 import android.os.SystemClock;

21 import android.util.Log;

GetReady.java (https://gitlab.com/14cpark/wmp-lab-lineup) Java · 120 lines

7 import android.os.Handler;

8 import android.os.SystemClock;

9 import android.support.v7.app.AppCompatActivity;

magnetizer.py (https://github.com/aleray/datateb.git) Python · 95 lines

94 #

95 # os.system("killall mplayer")

AlbumsPlaybackStress.java (https://github.com/yeffel/android_packages_apps_Music.git) Java · 91 lines

23 import android.os.Bundle;

24 import android.os.SystemClock;

25 import android.test.ActivityInstrumentationTestCase;

Canvas.py (https://github.com/engineer-man/youtube.git) Python · 323 lines

128

129 globVar.numPlayers = int(n)

130

131 if globVar.numPlayers < 2:

132 random.seed(a=None)

133 if globVar.numPlayers == 0:

134 globVar.noPlayers = True

215 if platform.system() == "Linux":

216 os.system("clear")

217 if platform.system() == "Darwin":

218 os.system("clear")

219 elif platform.system() == "Windows":

RotateTwoLaunchedAppsRotateAndEnterAppPairsMode.kt (https://github.com/android/platform_frameworks_base.git) Kotlin · 116 lines

18

19 import android.os.SystemClock

20 import android.platform.test.annotations.Presubmit

pforensic.py (https://github.com/m4n3dw0lf/pythem.git) Python · 193 lines

163 elif self.input_list[0] == 'clear':

164 os.system('clear')

165 elif self.input_list[0] == 'ls':

166 os.system('ls')

167 elif self.input_list[0] == 'summary':

minesweeper_dependencies.py (https://gitlab.com/Nunuvin/minesweeper) Python · 198 lines

13 '''clear console window'''

14 os.system( 'cls' if os.name=='nt' else 'clear')

15

gradual-prg.py (https://github.com/litdream/Metronome.git) Python · 43 lines

34 cur_speed = int(working) + bump_up

35 os.system("python Metronome.py -t %d --gradual-dura=%s" % (cur_speed, dura))

36 print '''

40 ''' % cur_speed

41 os.system("mplayer a.wav > /dev/null")

42

AsyncPlayer.java (https://bitbucket.org/chaos_rom/miui_frameworks.git) Java · 189 lines

6 import android.os.PowerManager.WakeLock;

7 import android.os.SystemClock;

8 import android.util.Log;

16 private final LinkedList<Command> mCmdQueue = new LinkedList();

17 private MediaPlayer mPlayer;

18 private int mState = 2;

62 localMediaPlayer.start();

63 if (this.mPlayer != null)

64 this.mPlayer.release();

65 this.mPlayer = localMediaPlayer;

66 long l = SystemClock.uptimeMillis() - paramCommand.requestTime;

150 continue;

151 if (AsyncPlayer.this.mPlayer != null)

152 {

Logger.java (https://github.com/zhaolewei/MusicVisualizer.git) Java · 282 lines

6 import android.os.Environment;

7 import android.os.SystemClock;

8 import android.util.Log;

GameSoundPlayer.java (https://gitlab.com/smcdermott25/NightOfTheLivingGoat) Java · 62 lines

5 import android.media.SoundPool;

6 import android.os.SystemClock;

7

RunningSessionActivity.java (https://github.com/andyskw/Shisha-Manager.git) Java · 191 lines

11 import android.os.PowerManager.WakeLock;

12 import android.os.SystemClock;

13 import android.util.Log;

AsyncPlayer.java (https://github.com/dstmath/HWFramework.git) Java · 186 lines

7 import android.os.PowerManager;

8 import android.os.SystemClock;

9 import android.util.Log;

16 private final LinkedList<Command> mCmdQueue = new LinkedList<>();

17 private MediaPlayer mPlayer;

18 private int mState = 2;

49 player.start();

50 if (this.mPlayer != null) {

51 this.mPlayer.release();

52 }

53 this.mPlayer = player;

54 long delay = SystemClock.uptimeMillis() - cmd.requestTime;

80 } else if (i == 2) {

81 if (AsyncPlayer.this.mPlayer != null) {

82 long delay = SystemClock.uptimeMillis() - cmd.requestTime;

SystemClock.java (https://github.com/NekoX-Dev/NekoX.git) Java · 55 lines

37 public long elapsedRealtime() {

38 return android.os.SystemClock.elapsedRealtime();

39 }

42 public long uptimeMillis() {

43 return android.os.SystemClock.uptimeMillis();

44 }

47 public void sleep(long sleepTimeMs) {

48 android.os.SystemClock.sleep(sleepTimeMs);

49 }

SystemClock.java (https://gitlab.com/gossiks/bormotushek) Java · 28 lines

24 public long elapsedRealtime() {

25 return android.os.SystemClock.elapsedRealtime();

26 }

MediaPlayerGlueTest.java (https://github.com/androidx/androidx.git) Java · 142 lines

26 import android.os.Build;

27 import android.os.SystemClock;

28

DisplayDevice.java (https://github.com/SivanLiu/HwFrameWorkSource.git) Java · 195 lines

7 import android.os.IBinder;

8 import android.os.SystemProperties;

9 import android.util.HwPCUtils;

C41613s.java (https://github.com/HelloHuDi/AndroidReverseNotes.git) Java · 292 lines

6 import android.os.Message;

7 import android.os.SystemClock;

8 import com.google.android.exoplayer2.p111i.C17675v;

AsyncPlayer.java (https://github.com/wildfirechat/android-chat.git) Java · 185 lines

16 import android.os.PowerManager;

17 import android.os.SystemClock;

18 import android.util.Log;

58 player.start();

59 if (mPlayer != null) {

60 mPlayer.stop();

61 mPlayer.release();

62 }

63 mPlayer = player;

64 } catch (IOException e) {

91 Log.e(mTag, "STOP CMD");

92 if (mPlayer != null) {

93 Log.e("AsyncPlayer", "mediaPlayer stop & release");

PlaylistPlayer.java (https://github.com/jsjohnst/moby-scheme.git) Java · 128 lines

9 import android.os.Handler;

10 import android.os.SystemClock;

11 import android.app.Activity;

RandomTrackSelection.java (https://github.com/TelePlusDev/TelePlus-Android.git) Java · 132 lines

17

18 import android.os.SystemClock;

19 import android.support.annotation.Nullable;

musicplayer.py (https://gitlab.com/Rakowski/linsw_zad4) Python · 85 lines

7 FILES = '/mnt/files'

8 FIFO = '/root/mplayer_fifo'

9 MM = None

10

11 class MplayerManager:

12 def send(self, msg):

13 os.system('echo "' + msg + '" > ' + FIFO)

14

74 if __name__ == "__main__":

75 MM = MplayerManager()

76

RepeatingImageButton.java (https://github.com/PhoenixDevTeam/Phoenix-for-VK.git) Java · 161 lines

14 import android.content.Context;

15 import android.os.SystemClock;

16 import android.util.AttributeSet;

views.py (https://github.com/dennisjlee/icenine.git) Python · 76 lines

56 try:

57 #os.system('"c:\Program Files\Zoom Player\zplayer.exe" "%s"' % file.path)

58 p = os.path.normpath(file.path)

67 # associations in there.

68 os.system('"c:\Program Files\Zoom Player\zplayer.exe"')

69

VideoPlayerContainer.java (https://github.com/18Gray/ProCamera.git) Java · 211 lines

9 import android.os.Handler;

10 import android.os.SystemClock;

11 import android.util.AttributeSet;

SystemStateMgr.cs (https://github.com/Ryujinx/Ryujinx.git) C# · 106 lines

3

4 namespace Ryujinx.HLE.HOS.SystemState

5 {

voip.py (https://github.com/levigross/Scapy.git) Python · 150 lines

43 try:

44 os.system("soxmix -t .ul %s -t .ul %s -t ossdsp /dev/dsp &" % (FIFO1,FIFO2))

45

layerStackContextMenu.py (https://github.com/PixarAnimationStudios/USD.git) Python · 219 lines

157 print("Spawning usdview %s" % layerPath)

158 os.system("usdview %s &" % layerPath)

159

SubtitleRenderer.java (https://github.com/sonyxperiadev/MultimediaForAndroidLibrary.git) Java · 239 lines

28 import android.os.Message;

29 import android.os.SystemClock;

30 import android.util.Log;

VideoView.java (https://github.com/dstmath/HWFramework.git) Java · 101 lines

5 import android.media.SubtitleController;

6 import android.os.SystemProperties;

7 import android.util.AttributeSet;

MediaServerCrashListener.java (https://github.com/chromium/chromium.git) Java · 109 lines

7 import android.media.MediaPlayer;

8 import android.os.SystemClock;

9

25 // Watchdog player. Used to listen to all media server crashes.

26 private MediaPlayer mPlayer;

27

49 public void releaseWatchdog() {

50 if (mPlayer == null) return;

51

52 mPlayer.release();

53 mPlayer = null;

57 public boolean startListening() {

58 if (mPlayer != null) return true;

59

handler.py (https://github.com/mackstann/htpicker.git) Python · 126 lines

64

65 os.system(command + ' &')

66

70 # the above "should" work but results in a mysterious situation

71 # on my eeepc: mplayer outputs one line ("MPlayer SVN-r29237-4.4.1

72 # (C) 2000-2009 MPlayer Team") to the shell, and then everything

73 # stops. mplayer is hung, and htpicker has mysteriously received a

74 # SIGSTOP from somewhere. i don't get it AT ALL.

backend_driver.py (https://github.com/ericliang/matplotlib.git) Python · 124 lines

102 file(tmpfile, 'w').write(''.join(lines))

103 os.system('%s %s' % (python, tmpfile))

104

MediaAppPlaybackState.java (https://github.com/alexa/aac-sdk.git) Java · 201 lines

17

18 import android.os.SystemClock;

19 import android.support.v4.media.MediaMetadataCompat;

Clock.java (https://gitlab.com/gossiks/bormotushek) Java · 31 lines

24 /**

25 * Returns {@link android.os.SystemClock#elapsedRealtime}.

26 *

azucar.py (https://github.com/lesthack/azucar.git) Python · 81 lines

61 try:

62 os.system("xmms2-launcher")

63 xmms.connect(os.getenv("XMMS_PATH"))

musicplayer.py (https://gitlab.com/Rakowski/linsw_zad4) Python · 109 lines

7 FILES = '/mnt/files'

8 FIFO = '/root/mplayer_fifo'

9 MM = None

12

13 class MplayerManager():

14 mute = 0

19 print command

20 os.system(command)

21

97 if __name__ == "__main__":

98 MM = MplayerManager()

99

GifView.kt (https://github.com/Cutta/GifView.git) Kotlin · 227 lines

79 */

80 movieStart = android.os.SystemClock.uptimeMillis() - currentAnimationTime

81 invalidate()

176 private fun updateAnimationTime() {

177 val now = android.os.SystemClock.uptimeMillis()

178

converting.py (https://github.com/MechanisM/YTupload.git) Python · 69 lines

26 # start converting

27 os.system('nice -n 20 ffmpeg -i ' + os.path.join(settings.ENCODE_DIR_FROM, file.filename) + \

28 ' -ar ' + settings.FFMPEG_AR + \

paths.py (https://code.google.com/p/sugar-clic/) Python · 104 lines

101 if not os.path.exists(new_clics_path):

102 t = os.system('mkdir ' + new_clics_path)

103

jtvepg.py (https://github.com/technic/iptvdream.git) Python · 95 lines

80 self.trace(cmd)

81 os.system(cmd)

82

scale.py (https://github.com/ARM-software/SCALE-Sim.git) Python · 206 lines

136 if not os.path.exists("./outputs/"):

137 os.system("mkdir ./outputs")

138

147 if not os.path.exists(path):

148 os.system("mkdir " + path)

149 else:

151 new_path= path + "_" + str(t)

152 os.system("mv " + path + " " + new_path)

153 os.system("mkdir " + path)

156 cmd = "mv *.csv " + path

157 os.system(cmd)

158

159 cmd = "mkdir " + path +"/layer_wise"

160 os.system(cmd)

161

AmisGuiGtk.py (https://github.com/daisy/amis.git) Python · 92 lines

56 def play_audio(filepath, clipbegin, clipend):

57 cmd = "mplayer %s >/dev/null 2>&1 1</dev/null"%filepath

58 os.system(cmd)

__init__.py (https://gitlab.com/Aituglo/Onyx) Python · 88 lines

46 if platform.system() == "Linux":

47 os.system("sudo apt-get install moc mplayer python-dev")

48 try:

views.py (https://github.com/neskie/Secwepemc-Radio.git) Python · 122 lines

89 def play(request):

90 os.system("ssh -i %s -p %d %s@%s 'source init_dbus.sh; rhythmbox-client --play'" % (IDENTITY_FILE, PORT, USER, REMOTE_HOST))

91 return HttpResponseRedirect('/rb/player/')

94 def pause(request):

95 os.system("ssh -i %s -p %d %s@%s 'source init_dbus.sh; rhythmbox-client --pause'" % (IDENTITY_FILE, PORT, USER, REMOTE_HOST))

96 return HttpResponseRedirect('/rb/player/')

99 def next(request):

100 os.system("ssh -i %s -p %d %s@%s 'source init_dbus.sh; rhythmbox-client --next'" % (IDENTITY_FILE, PORT, USER, REMOTE_HOST))

101 return HttpResponseRedirect('/rb/player/')

PicturePlayerView1.java (https://github.com/a483210/PicturePlayerView.git) Java · 124 lines

11 import android.graphics.SurfaceTexture;

12 import android.os.SystemClock;

13 import android.util.AttributeSet;

train_mnist.py (https://gitlab.com/alvinahmadov2/mxnet) Python · 122 lines

36 if not os.path.isdir(data_dir):

37 os.system("mkdir " + data_dir)

38 os.chdir(data_dir)

42 (not os.path.exists('t10k-labels-idx1-ubyte')):

43 os.system("wget http://webdocs.cs.ualberta.ca/~bx3/data/mnist.zip")

44 os.system("unzip -u mnist.zip; rm mnist.zip")

test_play_music.py (https://github.com/Melissa-AI/Melissa-Core.git) Python · 200 lines

17 res = music_player(['item0', 'item1'])

18 m_os.system.assert_called_once_with("item0 'item1'")

19 assert res == m_os.system.return_value

ArtistAdapter.kt (https://github.com/Charlieras262/BeatPlayer.git) Kotlin · 136 lines

3 import android.content.Context

4 import android.os.SystemClock

5 import android.view.View

spotify-lyrics.py (https://github.com/metalelf0/dot-files.git) Python · 58 lines

55 old_song_info = song_info

56 os.system('clear')

57 print_lyrics(song_info[0], song_info[1])

TimeRange.java (https://github.com/pwrtelegram/pwrtelegram-app.git) Java · 203 lines

19

20 import android.os.SystemClock;

21

Connect4.py (https://github.com/JoryD/Connect4AI.git) Python · 323 lines

60 if CLEARABLE:

61 os.system('cls||echo -e \\\\033c')

62 if COLORAMA:

207 if showPotentialWinner(board): return

208 Drop(board, getMoveFromPlayer(board), CIRCLE_RED)

209 printGameBoard(board)

219 if showPotentialWinner(board): return

220 Drop(board, getMoveFromPlayer(board, CIRCLE_RED), CIRCLE_RED)

221

241

242 def getMoveFromPlayer(b, color):

243 potentialPlayerMove = -1

266 if showPotentialWinner(board): return

267 Drop(board, getMoveFromPlayer(board, CIRCLE_RED), CIRCLE_RED)

268 printGameBoard(board)

AdaptiveMediaSourceEventListener.java (https://github.com/ButterflyTV/ExoPlayer-with-RTMP-and-FLV-seek.git) Java · 323 lines

18 import android.os.Handler;

19 import android.os.SystemClock;

20 import com.google.android.exoplayer2.C;

train.py (https://github.com/PaddlePaddle/models.git) Python · 78 lines

76 if(os.path.exists(args.video_vec_path)):

77 os.system("rm " + args.video_vec_path)

78 train(args)

RecordAudioFragment.kt (https://github.com/nglauber/dominando_android3.git) Kotlin · 141 lines

5 import android.os.Bundle

6 import android.os.SystemClock

7 import android.view.LayoutInflater

convex_hull.py (https://github.com/ranahanocka/point2mesh.git) Python · 99 lines

63 cmd = f'{manifold_software_path}/manifold {path} {path} {res}'

64 os.system(cmd)

65

68 cmd = f'{manifold_software_path}/simplify -i {path} -o {path} -f {faces}'

69 os.system(cmd)

70

75 f' {target} {res} {dest} > /dev/null 2>&1'

76 os.system(cmd)

77

PlaylistItem.java (https://github.com/android/media-samples.git) Java · 130 lines

20 import android.net.Uri;

21 import android.os.SystemClock;

22 import androidx.mediarouter.media.MediaItemStatus;

MusicCommentTitleView.java (https://github.com/Yuye584312311/iMusic.git) Java · 136 lines

7 import android.graphics.drawable.Drawable;

8 import android.os.SystemClock;

9 import android.support.annotation.Nullable;

PlaybackManager.java (https://github.com/vpaliyX/Melophile.git) Java · 272 lines

3 import android.os.Bundle;

4 import android.os.SystemClock;

5 import android.support.v4.media.MediaMetadataCompat;

RootDetectReport.java (https://github.com/dstmath/HWFramework.git) Java · 168 lines

5 import android.util.HiLogLabel;

6 import com.huawei.android.os.SystemPropertiesEx;

7 import java.io.BufferedReader;

default.py (https://github.com/elum/OpenELEC.tv.git) Python · 23 lines

22

23 os.system("Airplayer-Suite.service")

24

AsyncPlayer.java (https://github.com/SivanLiu/HwFrameWorkSource.git) Java · 210 lines

7 import android.os.PowerManager.WakeLock;

8 import android.os.SystemClock;

9 import android.util.Log;

16 private final LinkedList<Command> mCmdQueue = new LinkedList();

17 private MediaPlayer mPlayer;

18 private int mState = 2;

67 case 2:

68 if (AsyncPlayer.this.mPlayer == null) {

69 Log.w(AsyncPlayer.this.mTag, "STOP command without a player");

80 }

81 AsyncPlayer.this.mPlayer.stop();

82 AsyncPlayer.this.mPlayer.release();

83 AsyncPlayer.this.mPlayer = null;

84 break;

scorekeeper.py (https://github.com/miller-time/scorekeeper.git) Python · 78 lines

69 """

70 just announce the winner, using deprecated os.system! eww!

71 """

72 (winner, score) = sorted(players.items(), key=snd, reverse=True)[0]

73 os.system("figlet the winner is "+winner+"!")

74 sys.exit(0)

MediaService.kt (https://github.com/Orfium/RxMusicPlayer-android.git) Kotlin · 171 lines

6 import android.os.IBinder

7 import android.os.SystemClock

8 import android.support.v4.media.MediaMetadataCompat

setup.py (https://gitlab.com/Spagnotti3/wpt) Python · 59 lines

25 if sys.argv[-1] == 'publish':

26 os.system('python setup.py sdist upload')

27 sys.exit()

record.py (http://sd-xbmc.googlecode.com/svn/trunk/) Python · 104 lines

70 file = os.path.join(str(dstpath), name + ".flv")

71 os.system(str(rtmp) + " -B " + str(rectime) + " -r " + str(opts['rtmp']) + " -s " + str(opts['ticket']) + " -p token -v live -o " + file)

72 os.remove(sys.argv[1])